summaryrefslogtreecommitdiff
path: root/CREDITS
diff options
context:
space:
mode:
authorLeon Yu <chianglungyu@gmail.com>2018-03-06 23:16:24 +0800
committerJessica Yu <jeyu@kernel.org>2018-03-08 21:58:51 +0100
commit3f553b308bb004eb730da8e00a28150c157c7724 (patch)
tree8d4b221ca45c45763e1d037b9a312cbff91414ed /CREDITS
parent661e50bc853209e41a5c14a290ca4decc43cbfd1 (diff)
downloadlinux-next-3f553b308bb004eb730da8e00a28150c157c7724.tar.gz
module: propagate error in modules_open()
otherwise kernel can oops later in seq_release() due to dereferencing null file->private_data which is only set if seq_open() succeeds. BUG: unable to handle kernel NULL pointer dereference at 0000000000000000 IP: seq_release+0xc/0x30 Call Trace: close_pdeo+0x37/0xd0 proc_reg_release+0x5d/0x60 __fput+0x9d/0x1d0 ____fput+0x9/0x10 task_work_run+0x75/0x90 do_exit+0x252/0xa00 do_group_exit+0x36/0xb0 SyS_exit_group+0xf/0x10 Fixes: 516fb7f2e73d ("/proc/module: use the same logic as /proc/kallsyms for address exposure") Cc: Jessica Yu <jeyu@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: stable@vger.kernel.org # 4.15+ Signed-off-by: Leon Yu <chianglungyu@gmail.com> Signed-off-by: Jessica Yu <jeyu@kernel.org>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions