
Developer, Gamer.| Just me and my bot...
- Tweets246
- Following262
- Followers33
- Likes128

ALT /* * This is popl %eax ; movl $__NR_sigreturn, %eax ; int $0x80 * * WE DO NOT USE IT ANY MORE! It's only left here for historical * reasons and because gdb uses it as a signature to notice * signal handler stack frames. */ unsafe_put_user(*((u64 *)&retcode), (u64 *)frame->retcode, Efault); user_access_end(); /* Set up registers for signal handler */ regs->sp = (unsigned long)frame; regs->ip = (unsigned long)ksig->ka.sa.sa_handler; regs->ax = (unsigned long)sig; regs->dx = 0; regs->cx = 0;

ALT #ifdef CONFIG_X86_32 static const struct { u16 poplmovl; u32 val; u16 int80; } __attribute__((packed)) retcode = { 0xb858, /* popl %eax; movl $..., %eax */ __NR_sigreturn, 0x80cd, /* int $0x80 */ }; static const struct { u8 movl; u32 val; u16 int80; u8 pad; } __attribute__((packed)) rt_retcode = { 0xb8, /* movl $..., %eax */ __NR_rt_sigreturn, 0x80cd, /* int $0x80 */ 0 };

ALT As a junior developer (which I still am), I felt similarly towards code reviews. I didn’t like doing them. I thought, Why am I reviewing code written by senior developers? It’s not like I’m going to catch any of their errors. However what I didn’t understand at the time was that the code review was more for me than it was for them.
























