mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Init data debugging
@ 2002-04-05 17:02 Peter Horton
  2002-04-06 17:52 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Horton @ 2002-04-05 17:02 UTC (permalink / raw)
  To: linux-kernel

Would it be feasible to add a kernel debugging option which rather than
discarding init data/code sections just marked the pages as not
accessible, so illegal accesses could be caught ?

P.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Init data debugging
  2002-04-05 17:02 Init data debugging Peter Horton
@ 2002-04-06 17:52 ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2002-04-06 17:52 UTC (permalink / raw)
  To: Peter Horton; +Cc: linux-kernel

> Would it be feasible to add a kernel debugging option which rather than
> discarding init data/code sections just marked the pages as not
> accessible, so illegal accesses could be caught ?

Not efficiently. You can memset the pages to an illegal instruction which
does seem to help 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-06 17:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-05 17:02 Init data debugging Peter Horton
2002-04-06 17:52 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®