Warning: Permanently added '10.128.10.18' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 70.418352][ T8476] usb 1-1: new high-speed USB device number 2 using dummy_hcd [ 70.778395][ T8476] usb 1-1: config 0 has an invalid interface number: 123 but max is 0 [ 70.786710][ T8476] usb 1-1: config 0 has an invalid descriptor of length 0, skipping remainder of the config [ 70.798441][ T8476] usb 1-1: config 0 has no interface number 0 [ 70.804544][ T8476] usb 1-1: config 0 interface 123 altsetting 0 has 0 endpoint descriptors, different from the interface descriptor's value: 15 [ 70.978295][ T8476] usb 1-1: New USB device found, idVendor=0781, idProduct=0100, bcdDevice= 1.00 [ 70.987433][ T8476] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 70.995675][ T8476] usb 1-1: Product: syz [ 71.000009][ T8476] usb 1-1: Manufacturer: syz [ 71.004695][ T8476] usb 1-1: SerialNumber: syz [ 71.016856][ T8476] usb 1-1: config 0 descriptor?? [ 71.278725][ T8504] [ 71.281158][ T8504] ======================================================== [ 71.289003][ T8504] WARNING: possible irq lock inversion dependency detected [ 71.296174][ T8504] 5.10.0-rc7-syzkaller #0 Not tainted [ 71.301541][ T8504] -------------------------------------------------------- [ 71.308749][ T8504] syz-executor273/8504 just changed the state of lock: [ 71.316631][ T8504] ffff88802594f2b8 (&f->f_owner.lock){.+..}-{2:2}, at: do_fcntl+0x8ab/0x1070 [ 71.325671][ T8504] but this lock was taken by another, HARDIRQ-safe lock in the past: [ 71.333722][ T8504] (&dev->event_lock){-...}-{2:2} [ 71.333735][ T8504] [ 71.333735][ T8504] [ 71.333735][ T8504] and interrupts could create inverse lock ordering between them. [ 71.333735][ T8504] [ 71.354684][ T8504] [ 71.354684][ T8504] other info that might help us debug this: [ 71.362729][ T8504] Chain exists of: [ 71.362729][ T8504] &dev->event_lock --> &new->fa_lock --> &f->f_owner.lock [ 71.362729][ T8504] [ 71.375916][ T8504] Possible interrupt unsafe locking scenario: [ 71.375916][ T8504] [ 71.384452][ T8504] CPU0 CPU1 [ 71.389799][ T8504] ---- ---- [ 71.395140][ T8504] lock(&f->f_owner.lock); [ 71.399621][ T8504] local_irq_disable(); [ 71.406362][ T8504] lock(&dev->event_lock); [ 71.413366][ T8504] lock(&new->fa_lock); [ 71.420106][ T8504] [ 71.423547][ T8504] lock(&dev->event_lock); [ 71.428235][ T8504] [ 71.428235][ T8504] *** DEADLOCK *** [ 71.428235][ T8504] [ 71.436373][ T8504] no locks held by syz-executor273/8504. [ 71.442292][ T8504] [ 71.442292][ T8504] the shortest dependencies between 2nd lock and 1st lock: [ 71.451648][ T8504] -> (&dev->event_lock){-...}-{2:2} { [ 71.457284][ T8504] IN-HARDIRQ-W at: [ 71.461518][ T8504] lock_acquire+0x29d/0x740 [ 71.468185][ T8504] _raw_spin_lock_irqsave+0x39/0x50 [ 71.475556][ T8504] input_event+0x7b/0xb0 [ 71.481953][ T8504] psmouse_report_standard_buttons+0x2c/0x80 [ 71.490081][ T8504] psmouse_process_byte+0x1e1/0x890 [ 71.497425][ T8504] psmouse_handle_byte+0x41/0x1b0 [ 71.504597][ T8504] psmouse_interrupt+0x304/0xf00 [ 71.511682][ T8504] serio_interrupt+0x88/0x150 [ 71.518502][ T8504] i8042_interrupt+0x27a/0x520 [ 71.525412][ T8504] __handle_irq_event_percpu+0x303/0x8f0 [ 71.533208][ T8504] handle_irq_event+0x102/0x290 [ 71.540233][ T8504] handle_edge_irq+0x25f/0xd00 [ 71.547218][ T8504] asm_call_irq_on_stack+0xf/0x20 [ 71.554494][ T8504] common_interrupt+0x120/0x200 [ 71.561721][ T8504] asm_common_interrupt+0x1e/0x40 [ 71.568907][ T8504] _raw_spin_unlock_irqrestore+0x25/0x50 [ 71.576806][ T8504] i8042_command+0x12e/0x150 [ 71.583778][ T8504] i8042_aux_write+0xd7/0x120 [ 71.590705][ T8504] ps2_do_sendbyte+0x2ca/0x710 [ 71.597623][ T8504] ps2_sendbyte+0x58/0x150 [ 71.604274][ T8504] cypress_ps2_sendbyte+0x2e/0x160 [ 71.611621][ T8504] cypress_send_ext_cmd+0x1d0/0x8d0 [ 71.618965][ T8504] cypress_detect+0x75/0x190 [ 71.625793][ T8504] psmouse_try_protocol+0x211/0x370 [ 71.633137][ T8504] psmouse_extensions+0x557/0x930 [ 71.640305][ T8504] psmouse_switch_protocol+0x52a/0x740 [ 71.647927][ T8504] psmouse_connect+0x5e6/0xfc0 [ 71.654835][ T8504] serio_driver_probe+0x72/0xa0 [ 71.661829][ T8504] really_probe+0x291/0xde0 [ 71.668522][ T8504] driver_probe_device+0x26b/0x3d0 [ 71.675777][ T8504] device_driver_attach+0x228/0x290 [ 71.683116][ T8504] __driver_attach+0x15b/0x2f0 [ 71.690020][ T8504] bus_for_each_dev+0x147/0x1d0 [ 71.697012][ T8504] serio_handle_event+0x5f6/0xa30 [ 71.704179][ T8504] process_one_work+0x933/0x15a0 [ 71.711613][ T8504] worker_thread+0x64c/0x1120 [ 71.718442][ T8504] kthread+0x3b1/0x4a0 [ 71.724662][ T8504] ret_from_fork+0x1f/0x30 [ 71.731218][ T8504] INITIAL USE at: [ 71.735352][ T8504] lock_acquire+0x29d/0x740 [ 71.741912][ T8504] _raw_spin_lock_irqsave+0x39/0x50 [ 71.749182][ T8504] input_inject_event+0xa6/0x310 [ 71.756175][ T8504] led_set_brightness_nosleep+0xe6/0x1a0 [ 71.764131][ T8504] led_set_brightness+0x134/0x170 [ 71.771585][ T8504] led_trigger_event+0x70/0xd0 [ 71.778406][ T8504] kbd_led_trigger_activate+0xfa/0x130 [ 71.786016][ T8504] led_trigger_set+0x61e/0xbd0 [ 71.793705][ T8504] led_trigger_set_default+0x1a6/0x230 [ 71.801219][ T8504] led_classdev_register_ext+0x5b1/0x7c0 [ 71.808917][ T8504] input_leds_connect+0x3fb/0x740 [ 71.816010][ T8504] input_attach_handler+0x180/0x1f0 [ 71.823438][ T8504] input_register_device.cold+0xf0/0x307 [ 71.831137][ T8504] atkbd_connect+0x736/0xa00 [ 71.837784][ T8504] serio_driver_probe+0x72/0xa0 [ 71.844866][ T8504] really_probe+0x291/0xde0 [ 71.852020][ T8504] driver_probe_device+0x26b/0x3d0 [ 71.859195][ T8504] device_driver_attach+0x228/0x290 [ 71.866552][ T8504] __driver_attach+0x15b/0x2f0 [ 71.874075][ T8504] bus_for_each_dev+0x147/0x1d0 [ 71.881096][ T8504] serio_handle_event+0x5f6/0xa30 [ 71.888179][ T8504] process_one_work+0x933/0x15a0 [ 71.895172][ T8504] worker_thread+0x64c/0x1120 [ 71.901993][ T8504] kthread+0x3b1/0x4a0 [ 71.908206][ T8504] ret_from_fork+0x1f/0x30 [ 71.914683][ T8504] } [ 71.917427][ T8504] ... key at: [] __key.8+0x0/0x40 [ 71.924779][ T8504] ... acquired at: [ 71.928834][ T8504] _raw_spin_lock+0x2a/0x40 [ 71.933497][ T8504] evdev_pass_values.part.0+0xf6/0x970 [ 71.939128][ T8504] evdev_events+0x28b/0x3f0 [ 71.943781][ T8504] input_to_handler+0x2a0/0x4c0 [ 71.948788][ T8504] input_pass_values.part.0+0x284/0x700 [ 71.954481][ T8504] input_handle_event+0x324/0x1400 [ 71.959911][ T8504] input_inject_event+0x2f5/0x310 [ 71.965092][ T8504] evdev_write+0x430/0x760 [ 71.969654][ T8504] vfs_write+0x28e/0xa30 [ 71.974051][ T8504] ksys_write+0x1ee/0x250 [ 71.978812][ T8504] do_syscall_64+0x2d/0x70 [ 71.983407][ T8504] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 71.989456][ T8504] [ 71.991770][ T8504] -> (&client->buffer_lock){....}-{2:2} { [ 71.997822][ T8504] INITIAL USE at: [ 72.001891][ T8504] lock_acquire+0x29d/0x740 [ 72.008291][ T8504] _raw_spin_lock+0x2a/0x40 [ 72.015044][ T8504] evdev_pass_values.part.0+0xf6/0x970 [ 72.022390][ T8504] evdev_events+0x28b/0x3f0 [ 72.028779][ T8504] input_to_handler+0x2a0/0x4c0 [ 72.035601][ T8504] input_pass_values.part.0+0x284/0x700 [ 72.043041][ T8504] input_handle_event+0x324/0x1400 [ 72.050073][ T8504] input_inject_event+0x2f5/0x310 [ 72.057092][ T8504] evdev_write+0x430/0x760 [ 72.063403][ T8504] vfs_write+0x28e/0xa30 [ 72.069557][ T8504] ksys_write+0x1ee/0x250 [ 72.075773][ T8504] do_syscall_64+0x2d/0x70 [ 72.082074][ T8504] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 72.089841][ T8504] } [ 72.092499][ T8504] ... key at: [] __key.4+0x0/0x40 [ 72.099746][ T8504] ... acquired at: [ 72.103711][ T8504] _raw_read_lock+0x5b/0x70 [ 72.108456][ T8504] kill_fasync+0x14b/0x460 [ 72.113050][ T8504] evdev_pass_values.part.0+0x64e/0x970 [ 72.118760][ T8504] evdev_events+0x28b/0x3f0 [ 72.123423][ T8504] input_to_handler+0x2a0/0x4c0 [ 72.128419][ T8504] input_pass_values.part.0+0x284/0x700 [ 72.134126][ T8504] input_handle_event+0x324/0x1400 [ 72.139401][ T8504] input_inject_event+0x2f5/0x310 [ 72.144574][ T8504] evdev_write+0x430/0x760 [ 72.149144][ T8504] vfs_write+0x28e/0xa30 [ 72.153540][ T8504] ksys_write+0x1ee/0x250 [ 72.158026][ T8504] do_syscall_64+0x2d/0x70 [ 72.162588][ T8504] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 72.168894][ T8504] [ 72.171213][ T8504] -> (&new->fa_lock){....}-{2:2} { [ 72.176391][ T8504] INITIAL READ USE at: [ 72.180783][ T8504] lock_acquire+0x29d/0x740 [ 72.187432][ T8504] _raw_read_lock+0x5b/0x70 [ 72.194089][ T8504] kill_fasync+0x14b/0x460 [ 72.200649][ T8504] evdev_pass_values.part.0+0x64e/0x970 [ 72.208456][ T8504] evdev_events+0x28b/0x3f0 [ 72.215129][ T8504] input_to_handler+0x2a0/0x4c0 [ 72.222239][ T8504] input_pass_values.part.0+0x284/0x700 [ 72.230720][ T8504] input_handle_event+0x324/0x1400 [ 72.237985][ T8504] input_inject_event+0x2f5/0x310 [ 72.245175][ T8504] evdev_write+0x430/0x760 [ 72.251734][ T8504] vfs_write+0x28e/0xa30 [ 72.258422][ T8504] ksys_write+0x1ee/0x250 [ 72.264912][ T8504] do_syscall_64+0x2d/0x70 [ 72.271559][ T8504] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 72.279599][ T8504] } [ 72.282297][ T8504] ... key at: [] __key.0+0x0/0x40 [ 72.289470][ T8504] ... acquired at: [ 72.293353][ T8504] _raw_read_lock+0x5b/0x70 [ 72.298267][ T8504] send_sigio+0x24/0x350 [ 72.302743][ T8504] kill_fasync+0x205/0x460 [ 72.307307][ T8504] evdev_pass_values.part.0+0x64e/0x970 [ 72.314387][ T8504] evdev_events+0x28b/0x3f0 [ 72.319222][ T8504] input_to_handler+0x2a0/0x4c0 [ 72.324217][ T8504] input_pass_values.part.0+0x284/0x700 [ 72.329907][ T8504] input_handle_event+0x324/0x1400 [ 72.335509][ T8504] input_inject_event+0x2f5/0x310 [ 72.340768][ T8504] evdev_write+0x430/0x760 [ 72.345331][ T8504] vfs_write+0x28e/0xa30 [ 72.349721][ T8504] ksys_write+0x1ee/0x250 [ 72.354199][ T8504] do_syscall_64+0x2d/0x70 [ 72.358762][ T8504] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 72.364803][ T8504] [ 72.367122][ T8504] -> (&f->f_owner.lock){.+..}-{2:2} { [ 72.372482][ T8504] HARDIRQ-ON-R at: [ 72.376443][ T8504] lock_acquire+0x29d/0x740 [ 72.382745][ T8504] _raw_read_lock+0x5b/0x70 [ 72.388957][ T8504] do_fcntl+0x8ab/0x1070 [ 72.394823][ T8504] __x64_sys_fcntl+0x165/0x1e0 [ 72.401221][ T8504] do_syscall_64+0x2d/0x70 [ 72.407278][ T8504] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 72.414789][ T8504] INITIAL READ USE at: [ 72.419112][ T8504] lock_acquire+0x29d/0x740 [ 72.426013][ T8504] _raw_read_lock+0x5b/0x70 [ 72.432904][ T8504] send_sigio+0x24/0x350 [ 72.439246][ T8504] kill_fasync+0x205/0x460 [ 72.445752][ T8504] evdev_pass_values.part.0+0x64e/0x970 [ 72.453312][ T8504] evdev_events+0x28b/0x3f0 [ 72.459905][ T8504] input_to_handler+0x2a0/0x4c0 [ 72.466755][ T8504] input_pass_values.part.0+0x284/0x700 [ 72.474794][ T8504] input_handle_event+0x324/0x1400 [ 72.482081][ T8504] input_inject_event+0x2f5/0x310 [ 72.489091][ T8504] evdev_write+0x430/0x760 [ 72.496003][ T8504] vfs_write+0x28e/0xa30 [ 72.502334][ T8504] ksys_write+0x1ee/0x250 [ 72.508671][ T8504] do_syscall_64+0x2d/0x70 [ 72.515277][ T8504] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 72.523309][ T8504] } [ 72.525792][ T8504] ... key at: [] __key.5+0x0/0x40 [ 72.533062][ T8504] ... acquired at: [ 72.536847][ T8504] __lock_acquire+0x120a/0x5500 [ 72.542246][ T8504] lock_acquire+0x29d/0x740 [ 72.546992][ T8504] _raw_read_lock+0x5b/0x70 [ 72.551771][ T8504] do_fcntl+0x8ab/0x1070 [ 72.556196][ T8504] __x64_sys_fcntl+0x165/0x1e0 [ 72.561134][ T8504] do_syscall_64+0x2d/0x70 [ 72.565813][ T8504] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 72.572325][ T8504] [ 72.576033][ T8504] [ 72.576033][ T8504] stack backtrace: [ 72.582137][ T8504] CPU: 1 PID: 8504 Comm: syz-executor273 Not tainted 5.10.0-rc7-syzkaller #0 [ 72.591072][ T8504] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 72.602238][ T8504] Call Trace: [ 72.605540][ T8504] dump_stack+0x107/0x163 [ 72.610566][ T8504] mark_lock.cold+0x1a/0x73 [ 72.615663][ T8504] ? lock_chain_count+0x20/0x20 [ 72.620503][ T8504] ? putname+0xe1/0x120 [ 72.624652][ T8504] ? __x64_sys_openat+0x13f/0x1f0 [ 72.629659][ T8504] ? do_syscall_64+0x2d/0x70 [ 72.634230][ T8504] ? entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 72.640284][ T8504] ? find_held_lock+0x2d/0x110 [ 72.645287][ T8504] __lock_acquire+0x120a/0x5500 [ 72.650128][ T8504] ? _raw_spin_unlock_irqrestore+0x42/0x50 [ 72.657469][ T8504] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 72.663439][ T8504] ? lockdep_hardirqs_on+0x79/0x100 [ 72.669018][ T8504] lock_acquire+0x29d/0x740 [ 72.673605][ T8504] ? do_fcntl+0x8ab/0x1070 [ 72.678119][ T8504] ? lock_release+0x710/0x710 [ 72.683506][ T8504] ? putname+0xe1/0x120 [ 72.687833][ T8504] ? do_sys_openat2+0xa1/0x420 [ 72.692688][ T8504] _raw_read_lock+0x5b/0x70 [ 72.697196][ T8504] ? do_fcntl+0x8ab/0x1070 [ 72.701607][ T8504] do_fcntl+0x8ab/0x1070 [ 72.706007][ T8504] ? f_setown+0x230/0x230 [ 72.710446][ T8504] ? __x64_sys_openat+0x13f/0x1f0 [ 72.715456][ T8504] ? tomoyo_file_fcntl+0x6e/0xc0 [ 72.720652][ T8504] ? bpf_lsm_file_fcntl+0x5/0x10 [ 72.726793][ T8504] __x64_sys_fcntl+0x165/0x1e0 [ 72.731569][ T8504] do_syscall_64+0x2d/0x70 [ 72.736280][ T8504] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 72.742163][ T8504] RIP: 0033:0x4475d9 [ 72.746598][ T8504] Code: e8 bc af 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 9b d7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 72.766470][ T8504] RSP: 002b:00007ffef0849868 EFLAGS: 00000246 ORIG_RAX: 0000000000000048 [ 72.776386][ T8504] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004475d9 [ 72.784360]