> > I assumed it was NIP because ... I'm not sure why. TRAP() above > > dereferences regs, and that didn't fail, but I didn't see that until > > now. > > Yes, it is a bit strange though that the kernel isn't allowed to read from > NULL. Is that expected?
Yes, that's absolutely expected :-) You really want any NULL deref to blow up asap. 0 is actually part of the address space assigned to user processes. By default they don't have anything there neither though, but if the current process do have something mapped there, then the kernel would read that when doing a NULL deref. Cheers, Ben. _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev