RE: Page Fault

2020-04-22 Thread 양원혁
I'm sorry I said the wrong thing. First of all, page fault isn't blocked by cli instuction. Page fault is a type of fulat(not a interrupt) This log is printed from the page fault handler. > [ 4024.792614] #PF: supervisor write access in kernel mode > [ 4024.793944] #PF: error_code(0x0002) -

Re: Page Fault

2020-04-22 Thread Enzo Desiage
Thanks for the answer! I set the clear interrupt flag from this article: http://vulnfactory.org/blog/2011/08/12/wp-safe-or-not/ As apparently if not done it could lead to a scheduling problem on SMP systems? Thanks, Enzo On Thu, Apr 23, 2020 at 2:05 AM 양원혁 wrote: > According to the log, the

RE: Page Fault

2020-04-22 Thread 양원혁
According to the log, the page frame of sys_call_table is not currently present. So it should be handled by page fault handler. But. disable_write_protection blocks the interrupt via the cli instruction. So the page fault handler cannot be performed. > [ 4024.772066] Module loading > [

Page Fault

2020-04-22 Thread Enzo Desiage
Hi, I am trying to write a proof of concept where the execve system call gets replaced by a new one, that would print a message if ls is launched. However, this is giving me a page fault everytime I try to insmod it, and I cannot figure out why. Thanks, Enzo here is the code: + #include

Re: Email being rejected by vger.kernel.org

2020-04-22 Thread Jeffrey Walton
On Sat, Apr 18, 2020 at 1:57 PM Bijan Tabatabai wrote: > > I tried to send a patch to the linux-trace-devel mailing list using > git-send-email, and the email got bounced back to me with the message > > 553: 5.7.1 Hello [98.137.68.147], for your MAIL FROM address > > policy analysis reported:

local_irq_enable in restart handler

2020-04-22 Thread Tomek The Messenger
Hi The background: Interrupts are disabled just before stopping other cores during handling restart: See example from: /arch/arm/kernel/reboot.c: /* * Restart requires that the secondary CPUs stop performing any activity * while the primary CPU resets the system. */ void machine_restart(char