On Thu, Apr 08, 2010 at 11:57:20AM +0200, Eric Dumazet wrote:
user_mode_vm() can not work here as we are actually filling
regs from scratch.
But we indeed need to have a safe dereference to avoid such
crashes. A simple probe_kernel_address() should do the trick.
This API is going to change for the next cycle as it won't need
to rewind further than the first caller. So I'm going to do a
rough probe_kernel_address() fix for the current version. The next
one won't have this problem.
--