commit | 4f0835d6677dc69263f90f976524cb92b257d9f4 | [log] [tgz] |
---|---|---|
author | Sean Young <sean@mess.org> | Sat Aug 08 13:19:12 2020 +0200 |
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | Fri Aug 28 14:06:35 2020 +0200 |
tree | 8770fcd8530254e36a605179dee74ae4306b32bf | |
parent | 8a30c017c99603b216907c2f7aa22d3afe4137c3 [diff] |
media: rc: uevent sysfs file races with rc_unregister_device() Only report uevent file contents if device still registered, else we might read freed memory. Reported-by: syzbot+ceef16277388d6f24898@syzkaller.appspotmail.com Cc: Hillf Danton <hdanton@sina.com> Cc: <stable@vger.kernel.org> # 4.16+ Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>