2002-04-05 17:03:46

by Peter Horton

[permalink] [raw]
Subject: Init data debugging

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.


2002-04-06 17:34:51

by Alan

[permalink] [raw]
Subject: Re: Init data debugging

> 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