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.
> 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