Re: [Patch net] kcm: return immediately after copy_from_user() failure
From: David Miller <davem@davemloft.net> Date: 2017-03-24 20:14:39
From: Cong Wang <redacted>
Date: Thu, 23 Mar 2017 11:03:31 -0700
There is no reason to continue after a copy_from_user()
failure.
Fixes: ab7ac4eb9832 ("kcm: Kernel Connection Multiplexor module")
Cc: Tom Herbert <redacted>
Signed-off-by: Cong Wang <redacted>
Applied and queued up for -stable and this bug could make the kernel
use uninitialized on-stack data.