Re: [PATCH] net: llc: check for device before dereferencing

2014-09-29 Thread David Miller
From: Sasha Levin Date: Fri, 26 Sep 2014 21:41:43 -0400 > llc_ui_sendmsg would not make sure that a device indeed exists before > dereferencing it. This caused a user triggerable NULL ptr deref: ... > Signed-off-by: Sasha Levin The bug is real, but I don't think the fix is in the correct spot.

[PATCH] net: llc: check for device before dereferencing

2014-09-26 Thread Sasha Levin
llc_ui_sendmsg would not make sure that a device indeed exists before dereferencing it. This caused a user triggerable NULL ptr deref: [ 430.542391] BUG: unable to handle kernel NULL pointer dereference at 021e [ 430.551939] IP: llc_ui_sendmsg (net/llc/af_llc.c:912) [ 430.551939] P