In kernel 2.6.11.5, divide zero exception handler is set up as:
set_trap_gate(0,÷_error);
According to \"Understanding The Linux
DPL bit in IDT is looked at only when software interrupt is called with the int instruction. Division by zero is a software interrupt triggered by the CPU and thus has DPL has no effect in this case