From: SUGIOKA T. <su...@it...> - 2000-09-04 04:22:12
|
At 10:53 00/09/05 +1100, Greg Banks wrote: >NIIBE Yutaka wrote: >> >> Sugioka-san pointed me that there's a problem using lsmod, and it caused >> by vmalloced page. Here's the patch. Basically, we set "SH" bit on PTE >> for the vmalloced pages. > > Looks ok to me. So let me guess -- lsmod was causing an oops because a >page vmalloc()ed in the insmod process context was not mapped for the >lsmod process context because the vmalloc()ed PTEs weren't marked shared? > I guessed, interrupt handler in the kernel module loaded by insmod should be executed in no-context. and other part of the module is shared by all process. so ASID should not be used by MMU in kernel modules. otherwise unnecessary TLB entry may be used by modules. I'm not so sure, but oops would not be caused by modules, because __do_page_fault1() should find proper TLB entry and then do_page_fault() is not executed. ---- SUGIOKA Toshinobu |