Re: [PATCH resend] module: propagate error in modules_open()

2018-03-08 Thread Jessica Yu
+++ Leon Yu [06/03/18 23:16 +0800]: 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 IP: seq_release+0xc/0x30 Call Trace:

Re: [PATCH resend] module: propagate error in modules_open()

2018-03-08 Thread Jessica Yu
+++ Leon Yu [06/03/18 23:16 +0800]: 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 IP: seq_release+0xc/0x30 Call Trace:

[PATCH resend] module: propagate error in modules_open()

2018-03-06 Thread Leon Yu
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 IP: seq_release+0xc/0x30 Call Trace: close_pdeo+0x37/0xd0 proc_reg_release+0x5d/0x60

[PATCH resend] module: propagate error in modules_open()

2018-03-06 Thread Leon Yu
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 IP: seq_release+0xc/0x30 Call Trace: close_pdeo+0x37/0xd0 proc_reg_release+0x5d/0x60