* pageexec@freemail.hu (pageexec@freemail.hu) wrote:I just want to ask for confirmation about two things : First, that calling this text_poke implementation to modify text in a module won't fail. Is virt_to_page(addr) ok if addr is in a vmalloc'ed area ? Second, that calling virt_to_page(addr + PAGE_SIZE) won't have undesirable side-effects if addr happens to be in the last page of an allocated range. It should be ok for the core kernel text, because it is followed by the kernel rodata, but I am not certain for modules. If any of these two are not true, then we should add a test for if (kernel_text_address(addr)) { around the vmap() allocation and fallback on } else vaddr = addr; in the cases where text_poke is called to modify module code. Mathieu -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68 --
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Roland McGrath | Re: Linus 2.6.23-rc1 |
| James Bottomley | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
git: | |
| Gerrit Renker | [PATCH 13/37] dccp: Deprecate Ack Ratio sysctl |
| Corey Minyard | [PATCH 3/3] Convert the UDP hash lock to RCU |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
