LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-20-2019, 10:55 AM   #1
liu242
LQ Newbie
 
Registered: Jun 2019
Posts: 2

Rep: Reputation: Disabled
kgdb can not set breakpoint on 5.2 kernel


Hi,
After updated the kernel from 5.0 to 5.2, it seems I can not set break point anymore .
I already tried add nokaslr option, also use the configure file that works normally on 5.0 kernel. On new kernel I always get following message when try to add a break point. What could be wrong ?
...
(gdb) b do_init_module
Breakpoint 1 at 0xffffffff8112ac77: file /shares/hsa/kernel/kernel/module.c, line 3455.
(gdb) c
Continuing.
Warning:
Cannot insert breakpoint 1.
Cannot access memory at address 0xffffffff8112ac77

Command aborted.
(gdb)

Thanks in advance.
 
Old 06-20-2019, 03:56 PM   #2
liu242
LQ Newbie
 
Registered: Jun 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Just tried to disabled following kernel config

#CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y
#CONFIG_STRICT_KERNEL_RWX=y
#CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
#CONFIG_STRICT_MODULE_RWX=y

#CONFIG_RANDOMIZE_BASE=y

Still got the same failure.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set breakpoint to obtain address of a function in fork.c , in the kernel sourc jyteh Linux - Kernel 4 11-08-2013 03:47 AM
can i add a breakpoint in the kernel or kernel module? Richard.Yang Linux - Kernel 13 09-20-2011 09:30 AM
KGDB breakpoint problem. droneprime Linux - Software 3 09-08-2009 12:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration