kprobes vs __ex_table
From: Peter Zijlstra
Date: Thu Feb 23 2017 - 13:30:08 EST
I just wondered what would happen if I put a probe on an instruction
that was listed in __ex_table or __bug_table.
And it looks like it will happily do that. It will then run the
instruction out-of-line, and when said instruction traps, the
instruction address will not match the one listed in either __ex_table
or __bug_table and badness will happen.
If kprobes does indeed not check this, we should probably fix it, if it
does do check this, could you point me to it?