Re: [PATCH] ipmi_si: fix use-after-free of resource->name

2019-01-25 Thread Yang Yingliang
On 2019/1/26 4:35, Corey Minyard wrote: On Fri, Jan 25, 2019 at 10:30:59AM +0800, Yang Yingliang wrote: When we excute the following commands, we got oops rmmod ipmi_si cat /proc/ioports snip... If io_setup is called successful in try_smi_init() but try_smi_init() goes out_err before call

Re: [PATCH] ipmi_si: fix use-after-free of resource->name

2019-01-25 Thread Corey Minyard
On Fri, Jan 25, 2019 at 10:30:59AM +0800, Yang Yingliang wrote: > When we excute the following commands, we got oops > rmmod ipmi_si > cat /proc/ioports > snip... > > If io_setup is called successful in try_smi_init() but try_smi_init() > goes out_err before calling ipmi_register_smi(), so ipmi

[PATCH] ipmi_si: fix use-after-free of resource->name

2019-01-24 Thread Yang Yingliang
When we excute the following commands, we got oops rmmod ipmi_si cat /proc/ioports [ 1623.482380] Unable to handle kernel paging request at virtual address 0901d478 [ 1623.482382] Mem abort info: [ 1623.482383] ESR = 0x9607 [ 1623.482385] Exception class = DABT (current EL), IL =