[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.15.215' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 63.613106][ T6956] input: syz1 as /devices/virtual/input/input5 [ 63.626986][ T6956] ================================================================== [ 63.635236][ T6956] BUG: KASAN: use-after-free in __mutex_lock+0x1033/0x13c0 [ 63.642445][ T6956] Read of size 8 at addr ffff8880a3601158 by task syz-executor281/6956 [ 63.650684][ T6956] [ 63.653032][ T6956] CPU: 1 PID: 6956 Comm: syz-executor281 Not tainted 5.7.0-rc6-next-20200522-syzkaller #0 [ 63.662921][ T6956] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 63.672987][ T6956] Call Trace: [ 63.676356][ T6956] dump_stack+0x18f/0x20d [ 63.680707][ T6956] ? __mutex_lock+0x1033/0x13c0 [ 63.685684][ T6956] ? __mutex_lock+0x1033/0x13c0 [ 63.690636][ T6956] print_address_description.constprop.0.cold+0xd3/0x413 [ 63.697684][ T6956] ? cdev_device_del+0x69/0x80 [ 63.702483][ T6956] ? evdev_disconnect+0x3d/0xb0 [ 63.707383][ T6956] ? __input_unregister_device+0x1b0/0x430 [ 63.713184][ T6956] ? input_unregister_device+0xb4/0xf0 [ 63.718649][ T6956] ? uinput_destroy_device+0x1e2/0x240 [ 63.724135][ T6956] ? vprintk_func+0x97/0x1a6 [ 63.728717][ T6956] ? __mutex_lock+0x1033/0x13c0 [ 63.733557][ T6956] kasan_report.cold+0x1f/0x37 [ 63.738323][ T6956] ? __mutex_lock+0x1033/0x13c0 [ 63.743225][ T6956] __mutex_lock+0x1033/0x13c0 [ 63.747962][ T6956] ? evdev_cleanup+0x21/0x190 [ 63.752751][ T6956] ? print_usage_bug+0x240/0x240 [ 63.757744][ T6956] ? trace_hardirqs_off+0x50/0x220 [ 63.762881][ T6956] ? mutex_trylock+0x2c0/0x2c0 [ 63.767648][ T6956] ? mark_held_locks+0x9f/0xe0 [ 63.772411][ T6956] ? kfree+0x1eb/0x2b0 [ 63.776622][ T6956] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 63.782775][ T6956] ? kfree_const+0x51/0x60 [ 63.787254][ T6956] ? evdev_cleanup+0x21/0x190 [ 63.791936][ T6956] evdev_cleanup+0x21/0x190 [ 63.796468][ T6956] evdev_disconnect+0x45/0xb0 [ 63.801169][ T6956] __input_unregister_device+0x1b0/0x430 [ 63.806827][ T6956] input_unregister_device+0xb4/0xf0 [ 63.812118][ T6956] uinput_destroy_device+0x1e2/0x240 [ 63.817426][ T6956] ? uinput_destroy_device+0x240/0x240 [ 63.822881][ T6956] uinput_release+0x37/0x50 [ 63.827418][ T6956] __fput+0x33e/0x880 [ 63.831400][ T6956] task_work_run+0xf4/0x1b0 [ 63.835893][ T6956] do_exit+0xb5e/0x2e10 [ 63.840076][ T6956] ? debug_smp_processor_id+0x2f/0x185 [ 63.845531][ T6956] ? mm_update_next_owner+0x7a0/0x7a0 [ 63.850895][ T6956] ? rcu_read_lock_any_held.part.0+0x50/0x50 [ 63.856867][ T6956] do_group_exit+0x125/0x340 [ 63.861454][ T6956] __x64_sys_exit_group+0x3a/0x50 [ 63.866476][ T6956] do_syscall_64+0xf6/0x7d0 [ 63.871005][ T6956] entry_SYSCALL_64_after_hwframe+0x49/0xb3 [ 63.876988][ T6956] RIP: 0033:0x43eee8 [ 63.880910][ T6956] Code: Bad RIP value. [ 63.884968][ T6956] RSP: 002b:00007ffd6f103aa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 63.893383][ T6956] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043eee8 [ 63.901369][ T6956] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 63.909355][ T6956] RBP: 00000000004be728 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 63.917322][ T6956] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 63.925291][ T6956] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 63.933288][ T6956] [ 63.935621][ T6956] Allocated by task 6956: [ 63.939944][ T6956] save_stack+0x1b/0x40 [ 63.944092][ T6956] __kasan_kmalloc.constprop.0+0xbf/0xd0 [ 63.949712][ T6956] kmem_cache_alloc_trace+0x153/0x7d0 [ 63.955069][ T6956] evdev_connect+0x80/0x4d0 [ 63.959563][ T6956] input_attach_handler+0x194/0x200 [ 63.964788][ T6956] input_register_device.cold+0xf5/0x246 [ 63.970489][ T6956] uinput_ioctl_handler.isra.0+0x1210/0x1d80 [ 63.976491][ T6956] ksys_ioctl+0x11a/0x180 [ 63.980954][ T6956] __x64_sys_ioctl+0x6f/0xb0 [ 63.985714][ T6956] do_syscall_64+0xf6/0x7d0 [ 63.990236][ T6956] entry_SYSCALL_64_after_hwframe+0x49/0xb3 [ 63.996140][ T6956] [ 63.998472][ T6956] Freed by task 6956: [ 64.002798][ T6956] save_stack+0x1b/0x40 [ 64.006954][ T6956] __kasan_slab_free+0xf7/0x140 [ 64.011798][ T6956] kfree+0x109/0x2b0 [ 64.015785][ T6956] device_release+0x71/0x200 [ 64.020359][ T6956] kobject_put+0x1c8/0x2f0 [ 64.025196][ T6956] cdev_device_del+0x69/0x80 [ 64.029778][ T6956] evdev_disconnect+0x3d/0xb0 [ 64.034455][ T6956] __input_unregister_device+0x1b0/0x430 [ 64.040069][ T6956] input_unregister_device+0xb4/0xf0 [ 64.045359][ T6956] uinput_destroy_device+0x1e2/0x240 [ 64.050625][ T6956] uinput_release+0x37/0x50 [ 64.055108][ T6956] __fput+0x33e/0x880 [ 64.059068][ T6956] task_work_run+0xf4/0x1b0 [ 64.063570][ T6956] do_exit+0xb5e/0x2e10 [ 64.067821][ T6956] do_group_exit+0x125/0x340 [ 64.072459][ T6956] __x64_sys_exit_group+0x3a/0x50 [ 64.077493][ T6956] do_syscall_64+0xf6/0x7d0 [ 64.082024][ T6956] entry_SYSCALL_64_after_hwframe+0x49/0xb3 [ 64.087955][ T6956] [ 64.090313][ T6956] The buggy address belongs to the object at ffff8880a3601000 [ 64.090313][ T6956] which belongs to the cache kmalloc-2k of size 2048 [ 64.104358][ T6956] The buggy address is located 344 bytes inside of [ 64.104358][ T6956] 2048-byte region [ffff8880a3601000, ffff8880a3601800) [ 64.117705][ T6956] The buggy address belongs to the page: [ 64.123348][ T6956] page:ffffea00028d8040 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 [ 64.132566][ T6956] flags: 0xfffe0000000200(slab) [ 64.137408][ T6956] raw: 00fffe0000000200 ffffea00028b1948 ffffea00028b73c8 ffff8880aa000e00 [ 64.146012][ T6956] raw: 0000000000000000 ffff8880a3601000 0000000100000001 0000000000000000 [ 64.154581][ T6956] page dumped because: kasan: bad access detected [ 64.161026][ T6956] [ 64.163344][ T6956] Memory state around the buggy address: [ 64.168974][ T6956] ffff8880a3601000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 64.177220][ T6956] ffff8880a3601080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 64.185308][ T6956] >ffff8880a3601100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 64.193376][ T6956] ^ [ 64.200306][ T6956] ffff8880a3601180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 64.208379][ T6956] ffff8880a3601200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 64.216430][ T6956] ================================================================== [ 64.224482][ T6956] Disabling lock debugging due to kernel taint [ 64.231262][ T6956] Kernel panic - not syncing: panic_on_warn set ... [ 64.237892][ T6956] CPU: 1 PID: 6956 Comm: syz-executor281 Tainted: G B 5.7.0-rc6-next-20200522-syzkaller #0 [ 64.249177][ T6956] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 64.259255][ T6956] Call Trace: [ 64.262557][ T6956] dump_stack+0x18f/0x20d [ 64.266903][ T6956] ? __mutex_lock+0xf50/0x13c0 [ 64.271681][ T6956] panic+0x2e3/0x75c [ 64.275718][ T6956] ? __warn_printk+0xf3/0xf3 [ 64.280300][ T6956] ? preempt_schedule_common+0x5e/0xc0 [ 64.285759][ T6956] ? __mutex_lock+0x1033/0x13c0 [ 64.290624][ T6956] ? __mutex_lock+0x1033/0x13c0 [ 64.295517][ T6956] ? preempt_schedule_thunk+0x16/0x18 [ 64.301013][ T6956] ? trace_hardirqs_on+0x55/0x230 [ 64.306034][ T6956] ? __mutex_lock+0x1033/0x13c0 [ 64.311011][ T6956] ? __mutex_lock+0x1033/0x13c0 [ 64.315917][ T6956] end_report+0x4d/0x53 [ 64.320076][ T6956] kasan_report.cold+0xd/0x37 [ 64.324740][ T6956] ? __mutex_lock+0x1033/0x13c0 [ 64.329624][ T6956] __mutex_lock+0x1033/0x13c0 [ 64.334318][ T6956] ? evdev_cleanup+0x21/0x190 [ 64.338977][ T6956] ? print_usage_bug+0x240/0x240 [ 64.343892][ T6956] ? trace_hardirqs_off+0x50/0x220 [ 64.348988][ T6956] ? mutex_trylock+0x2c0/0x2c0 [ 64.353746][ T6956] ? mark_held_locks+0x9f/0xe0 [ 64.358491][ T6956] ? kfree+0x1eb/0x2b0 [ 64.362562][ T6956] ? lockdep_hardirqs_on_prepare+0x3a2/0x590 [ 64.368556][ T6956] ? kfree_const+0x51/0x60 [ 64.372958][ T6956] ? evdev_cleanup+0x21/0x190 [ 64.377644][ T6956] evdev_cleanup+0x21/0x190 [ 64.382166][ T6956] evdev_disconnect+0x45/0xb0 [ 64.386978][ T6956] __input_unregister_device+0x1b0/0x430 [ 64.392615][ T6956] input_unregister_device+0xb4/0xf0 [ 64.397947][ T6956] uinput_destroy_device+0x1e2/0x240 [ 64.403241][ T6956] ? uinput_destroy_device+0x240/0x240 [ 64.408692][ T6956] uinput_release+0x37/0x50 [ 64.413185][ T6956] __fput+0x33e/0x880 [ 64.417292][ T6956] task_work_run+0xf4/0x1b0 [ 64.421785][ T6956] do_exit+0xb5e/0x2e10 [ 64.425939][ T6956] ? debug_smp_processor_id+0x2f/0x185 [ 64.431382][ T6956] ? mm_update_next_owner+0x7a0/0x7a0 [ 64.436742][ T6956] ? rcu_read_lock_any_held.part.0+0x50/0x50 [ 64.442713][ T6956] do_group_exit+0x125/0x340 [ 64.447285][ T6956] __x64_sys_exit_group+0x3a/0x50 [ 64.452294][ T6956] do_syscall_64+0xf6/0x7d0 [ 64.456780][ T6956] entry_SYSCALL_64_after_hwframe+0x49/0xb3 [ 64.462662][ T6956] RIP: 0033:0x43eee8 [ 64.466566][ T6956] Code: Bad RIP value. [ 64.470621][ T6956] RSP: 002b:00007ffd6f103aa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 64.479083][ T6956] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043eee8 [ 64.487057][ T6956] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 64.495022][ T6956] RBP: 00000000004be728 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 64.502990][ T6956] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 64.510977][ T6956] R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 [ 64.520141][ T6956] Kernel Offset: disabled [ 64.525866][ T6956] Rebooting in 86400 seconds..