Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.embedded > #352
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!fed11.iad.POSTED!not-for-mail |
|---|---|
| X-Newsreader | xrn 9.03-beta-14-64bit |
| Sender | scott@lews.sl.home (Scott Lurndal) |
| From | scott@slp53.sl.home (Scott Lurndal) |
| Reply-To | slp53@pacbell.net |
| Subject | Re: memory protection in linux kernels |
| Newsgroups | comp.unix.programmer, comp.os.linux.embedded |
| References | <k5n858$g72$1@speranza.aioe.org> <JRTfs.4$Ci6.1@fe03.iad> <k5p8t1$3fq$1@speranza.aioe.org> |
| Lines | 44 |
| Message-ID | <R2Wfs.9$726.7@fed11.iad> (permalink) |
| X-Complaints-To | abuse@usenetserver.com |
| NNTP-Posting-Date | Thu, 18 Oct 2012 16:24:17 UTC |
| Organization | UseNetServer - www.usenetserver.com |
| Date | Thu, 18 Oct 2012 16:24:17 GMT |
| X-Received-Bytes | 2429 |
| Xref | csiph.com comp.unix.programmer:3592 comp.os.linux.embedded:352 |
Cross-posted to 2 groups.
Show key headers only | View raw
"Mark" <mark_cruzNOTFORSPAM@hotmail.com> writes: > >"Scott Lurndal" <scott@slp53.sl.home> wrote in message >news:JRTfs.4$Ci6.1@fe03.iad... >>>I'm debugging my kernel module, which appears to have a memory corruption, >>>basically a piece of memory allocated by alloc_netdev() for 'net_device' >>>instance has benn corrupted. I'm wondering if I could apply some >>>"read-only" >>>attribute on this memory, this way I expect to have Oops generated when >>>someone tries to modify the memory. >>> >>>Does it sound reasonable or my ideas are undoable ? >>>Thanks. >>> >>>Mark >>> >> >> Turn on CONFIG_KDB and use kdb to set a watchpoint on the location being >> corrupted. The processor will automatically stop and drop into kdb >> when the location is modified. >> >> See the documentation for the bp command in kdb under the Documentation >> directory in the kernel source tree. > >Thank you. The target is ARM-based and runs the kernel 2.6.31.8, which has >only KGDB support, i.e. as I understand it allows to debug via rs232. What >is the difference with KDB? KDB is built in; it doesn't require a client on another machine like KGDB; but kgdb should work for your case since you've an earlier kernel. KGDB and KDB both part of the kernel 3.x series, even for ARM as I understand it, although I've seen recent changes fly by on LKML. ARM processors also have external debug capabilities in some implementations (e.g. ETM via jtag). > >Also, do I have to enable CONFIG_MAGIC_SYSRQ except CONFIG_KGDB and >CONFIG_DEBUG_INFO (CONFIG_FRAME_POINTER is also recommended) ? The Kconfig files should handle any required dependencies for you. scott
Back to comp.os.linux.embedded | Previous | Next — Previous in thread | Next in thread | Find similar
memory protection in linux kernels "Mark" <mark_cruzNOTFORSPAM@hotmail.com> - 2012-10-17 17:32 -0400
Re: memory protection in linux kernels scott@slp53.sl.home (Scott Lurndal) - 2012-10-18 13:53 +0000
Re: memory protection in linux kernels "Mark" <mark_cruzNOTFORSPAM@hotmail.com> - 2012-10-18 11:57 -0400
Re: memory protection in linux kernels scott@slp53.sl.home (Scott Lurndal) - 2012-10-18 16:24 +0000
Re: memory protection in linux kernels "Mark" <mark_cruzNOTFORSPAM@hotmail.com> - 2012-10-19 18:08 -0400
Re: memory protection in linux kernels Ian Collins <ian-news@hotmail.com> - 2012-10-20 12:29 +1300
Re: memory protection in linux kernels scott@slp53.sl.home (Scott Lurndal) - 2012-10-20 19:49 +0000
Re: memory protection in linux kernels Rainer Weikusat <rweikusat@mssgmbh.com> - 2012-10-18 17:56 +0100
csiph-web