Re: [PATCH 01/12] [media] rc-main: clear rc_map.name in ir_free_table()

2016-11-14 Thread Shuah Khan
On 08/09/2016 03:32 PM, Max Kellermann wrote: > rc_unregister_device() will first call ir_free_table(), and later > device_del(); however, the latter causes a call to rc_dev_uevent(), > which prints rc_map.name, which at this point has already bee freed. > > This fixes a use-after-free bug found w

[PATCH 01/12] [media] rc-main: clear rc_map.name in ir_free_table()

2016-08-09 Thread Max Kellermann
rc_unregister_device() will first call ir_free_table(), and later device_del(); however, the latter causes a call to rc_dev_uevent(), which prints rc_map.name, which at this point has already bee freed. This fixes a use-after-free bug found with KASAN. Signed-off-by: Max Kellermann --- drivers/