ARC: mm: fix uninitialised signal code in do_page_fault
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Wed, 7 Nov 2018 12:12:49 +0000 (15:12 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 12 Nov 2018 18:38:27 +0000 (10:38 -0800)
commit121e38e5acdc8e1e4cdb750fcdcc72f94e420968
tree7f3c6d5a0dc41b23920c59e590968a430d4f6148
parent4592f11e47a2b28562d6cfe165d5ea7495ff4dca
ARC: mm: fix uninitialised signal code in do_page_fault

Commit 15773ae938d8 ("signal/arc: Use force_sig_fault where
appropriate") introduced undefined behaviour by leaving si_code
unitiailized and leaking random kernel values to user space.

Fixes: 15773ae938d8 ("signal/arc: Use force_sig_fault where appropriate")
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/mm/fault.c