• Jiri Kosina's avatar
    HID: protect hid_debug_list · 2353f2be
    Jiri Kosina authored
    Accesses to hid_device->hid_debug_list are not serialized properly, which
    could result in SMP concurrency issues when HID debugfs events are accessesed
    by multiple userspace processess.
    
    Serialize all the list operations by a mutex.
    
    Spotted by Al Viro.
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
    2353f2be
hid-debug.c 36.8 KB