Re: [PATCH] s390: cio: fix two use-after-free bugs in device.c

2020-11-30 Thread Qinglang Miao
在 2020/11/20 15:55, Cornelia Huck 写道: On Fri, 20 Nov 2020 15:48:49 +0800 Qinglang Miao wrote: put_device calls release function which do kfree() inside. So following use of sch&cdev would cause use-after-free bugs. Fix these by simply adjusting the position of put_device. Fixes: 37db8985b

Re: [PATCH] s390: cio: fix two use-after-free bugs in device.c

2020-11-19 Thread Cornelia Huck
On Fri, 20 Nov 2020 15:48:49 +0800 Qinglang Miao wrote: > put_device calls release function which do kfree() inside. > So following use of sch&cdev would cause use-after-free bugs. > > Fix these by simply adjusting the position of put_device. > > Fixes: 37db8985b211 ("s390/cio: add basic protec

[PATCH] s390: cio: fix two use-after-free bugs in device.c

2020-11-19 Thread Qinglang Miao
put_device calls release function which do kfree() inside. So following use of sch&cdev would cause use-after-free bugs. Fix these by simply adjusting the position of put_device. Fixes: 37db8985b211 ("s390/cio: add basic protected virtualization support") Fixes: 74bd0d859dc3 ("s390/cio: fix unloc