* Ingo Molnar <mingo@elte.hu> wrote:all the TASK_SIZE checks relate to the soft breakpoint write accesses. and access_ok() does not cut it: it's also a bit dangerous from debug context: uses current->address_space, which is task dependent and can accidentally allow an int3 write to userspace if executed in a kernel thread that has lazy-inherited the TLB from a user task, etc., and it also does not give enough protection on some other architectures. is_kernel_text() is not good, because it does not cover modules. is_module_address() is not good either, because it also covers module data areas, and is a bit thick (hence crash-risky) as well. So there's no existing facility to cover this. so i'd say the safest would be to remove the TASK_SIZE check altogether. If someone typoes a raw breakpoint - it is still enumerated by gdb and can still be cleared. It's not like kgdb cannot be used to shoot in one's own foot ... Ingo --
| Greg Kroah-Hartman | [PATCH 006/196] Chinese: add translation of oops-tracing.txt |
| Andrew Morton | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
| Eric W. Biederman | [PATCH] nfs lockd reclaimer: Convert to kthread API |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
