Re: [PATCH net V2 1/1] net/smc: take sock lock in smc_ioctl()

From: David Miller
Date: Mon Jul 16 2018 - 17:45:53 EST


From: Ursula Braun <ubraun@xxxxxxxxxxxxx>
Date: Mon, 16 Jul 2018 13:56:52 +0200

> From: Ursula Braun <ursula.braun@xxxxxxxxxxxxx>
>
> SMC ioctl processing requires the sock lock to work properly in
> all thinkable scenarios.
> Problem has been found with RaceFuzzer and fixes:
> KASAN: null-ptr-deref Read in smc_ioctl
>
> Reported-by: Byoungyoung Lee <lifeasageek@xxxxxxxxx>
> Reported-by: syzbot+35b2c5aa76fd398b9fd4@xxxxxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Ursula Braun <ubraun@xxxxxxxxxxxxx>

Applied and queued up for -stable.