Maciej W. Rozycki wrote: >On Sat, 5 Nov 2005, Andi Kleen wrote: > > > >>I don't think it's a good idea. Relying on nested faults in oops >>is a bit unsafe because it could lead to recursive faults in the worst case. >> >> > > Good point. > > > >>Better keep the if >> >> > > Except the condition is wrong. Presence of CR4 could be tested elsewhere >though, with the result being the condition here. > > Maciej > > > While this is at least no worse in the nested fault case than earlier kernels, I really wish I had one of those weird 486s so I could test the faulting mechanism. It seems the trap handling code has gotten quite complicated now, with notifiers adding nice functionality, but making the ordering of potential fault paths difficult to reason about (in particular when considering functionality like kexec, kprobes, NMIs and friends). Zach