GDB can't access mmap()'d kernel allocated memory?
I'm running into an issue with GDB and some buffers allocated in kernel space. The buffers are allocated by a kernel module that is supposed to allocate contiguous blocks of memory, and then memory mapped into userspace via a mmap() call. GDB, however, can't seem to access these blocks at any time. For example, after hitting a breakpoint in GDB: (gdb) x /10xb 0x4567e000 0x4567e000: Cannot access memory at address 0x4567e000 However, looking at the application's currently mapped memory regions in /proc//smaps shows: 4567e000-456d3000 rwxs 8913f000 00:0d 883 /dev/cmem Size: 340 kB Rss: 340 kB