gdb not loading kernel module symbols at the correct offset

2017-06-17 Thread Kamran Khan
On the guest VM, I'm parsing kernel module's .text address with: > # cat /sys/module/dm_crypt/sections/{.text,.data} > 0xa04ee000 > 0xa04f3000 > root@ubuntu-zesty:~# cat /proc/kallsyms | grep dm_crypt_exit > a04f14d2 t dm_crypt_exit [dm_crypt] When I load the module

Re: Virtualbox + kgdb: Can't see vmlinux symbols

2017-06-16 Thread Kamran Khan
, Jun 16, 2017 at 3:02 PM, Kamran Khan <krk...@inspirated.com> wrote: > The debug symbols are on for all of them, and gdb *does* load the > symbols. I have a suspicion that KASLR that was introduced around 4.7 > might be the culprit here. CONFIG_RANDOMIZE_MEMORY is an option that'

Re: Virtualbox + kgdb: Can't see vmlinux symbols

2017-06-16 Thread Kamran Khan
, Kamran. On Fri, Jun 16, 2017 at 1:41 PM, <valdis.kletni...@vt.edu> wrote: > On Fri, 16 Jun 2017 13:24:58 -0700, Kamran Khan said: >> This is happening only with kernel 4.8+. >> >> When I compile kernel 4.4 with a stock Ubuntu Xenial .config, symbols >> appear just fine

Re: Virtualbox + kgdb: Can't see vmlinux symbols

2017-06-16 Thread Kamran Khan
This is happening only with kernel 4.8+. When I compile kernel 4.4 with a stock Ubuntu Xenial .config, symbols appear just fine. When I compile kernel 4.8/4.10 with Yakkety/Zesty stock configs the symbols disappear. On Wed, Jun 14, 2017 at 4:58 PM, Kamran Khan <krk...@inspirated.com> wrot