SPCP8x5 ttyUSB0: failed to set control lines: -32 ------------[ cut here ]------------ do not call blocking ops when !TASK_RUNNING; state=1 set at [] prepare_to_wait+0x98/0x380 kernel/sched/wait.c:256 WARNING: kernel/sched/core.c:9120 at __might_sleep+0x94/0xc0 kernel/sched/core.c:9120, CPU#2: syz.6.1153/10308 Modules linked in: CPU: 2 UID: 0 PID: 10308 Comm: syz.6.1153 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:__might_sleep+0x97/0xc0 kernel/sched/core.c:9120 Code: 8b 94 24 70 18 00 00 48 85 d2 75 14 48 83 c4 08 89 ee 48 89 df 31 d2 5b 5d 41 5c e9 33 fc ff ff 48 8d 3d 0c 27 50 0f 48 89 d1 <67> 48 0f b9 3a eb db e8 9d 3a a5 00 eb 9f 89 74 24 04 e8 c2 3a a5 RSP: 0018:ffffc900058ef558 EFLAGS: 00010286 RAX: dffffc0000000000 RBX: ffffffff8e193d30 RCX: ffffffff81e258b8 RDX: ffffffff81e258b8 RSI: 0000000000000001 RDI: ffffffff9125db30 RBP: 0000000000000143 R08: 0000000000000001 R09: 00000000000000b3 R10: 0000000000000200 R11: 0000000000000000 R12: ffff88802a6e8000 R13: 0000000000000001 R14: ffffffff87b457e0 R15: dffffc0000000000 FS: 00007fb383c9a6c0(0000) GS:ffff8880d5fd8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c3b7e19 CR3: 000000002be60000 CR4: 0000000000352ef0 DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000002 DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: might_alloc include/linux/sched/mm.h:323 [inline] slab_pre_alloc_hook mm/slub.c:4537 [inline] slab_alloc_node mm/slub.c:4897 [inline] __kmalloc_cache_noprof+0x3fd/0x6c0 mm/slub.c:5485 _kmalloc_noprof include/linux/slab.h:988 [inline] _kzalloc_noprof include/linux/slab.h:1309 [inline] spcp8x5_get_msr+0xe9/0x2d0 drivers/usb/serial/spcp8x5.c:197 spcp8x5_carrier_raised+0x75/0xe0 drivers/usb/serial/spcp8x5.c:243 serial_port_carrier_raised+0x8f/0xd0 drivers/usb/serial/usb-serial.c:757 tty_port_carrier_raised drivers/tty/tty_port.c:441 [inline] tty_port_block_til_ready+0x43f/0x910 drivers/tty/tty_port.c:559 tty_port_open+0x19c/0x1f0 drivers/tty/tty_port.c:775 tty_open+0x3dd/0xfa0 drivers/tty/tty_io.c:2137 chrdev_open+0x234/0x6a0 fs/char_dev.c:411 do_dentry_open+0x6ab/0x14d0 fs/open.c:947 vfs_open+0x82/0x3f0 fs/open.c:1052 do_open fs/namei.c:4700 [inline] path_openat+0x2873/0x4280 fs/namei.c:4863 do_file_open+0x20e/0x430 fs/namei.c:4892 do_sys_openat2+0x10f/0x1e0 fs/open.c:1368 do_sys_open fs/open.c:1374 [inline] __do_sys_openat fs/open.c:1390 [inline] __se_sys_openat fs/open.c:1385 [inline] __x64_sys_openat+0x12d/0x210 fs/open.c:1385 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb382d9e0d9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb383c9a028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fb383025fa0 RCX: 00007fb382d9e0d9 RDX: 0000000000149100 RSI: 0000200000000700 RDI: ffffffffffffff9c RBP: 00007fb382e35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000080 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb383026038 R14: 00007fb383025fa0 R15: 00007ffd6011e858 ---------------- Code disassembly (best guess): 0: 8b 94 24 70 18 00 00 mov 0x1870(%rsp),%edx 7: 48 85 d2 test %rdx,%rdx a: 75 14 jne 0x20 c: 48 83 c4 08 add $0x8,%rsp 10: 89 ee mov %ebp,%esi 12: 48 89 df mov %rbx,%rdi 15: 31 d2 xor %edx,%edx 17: 5b pop %rbx 18: 5d pop %rbp 19: 41 5c pop %r12 1b: e9 33 fc ff ff jmp 0xfffffc53 20: 48 8d 3d 0c 27 50 0f lea 0xf50270c(%rip),%rdi # 0xf502733 27: 48 89 d1 mov %rdx,%rcx * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: eb db jmp 0xc 31: e8 9d 3a a5 00 call 0xa53ad3 36: eb 9f jmp 0xffffffd7 38: 89 74 24 04 mov %esi,0x4(%rsp) 3c: e8 .byte 0xe8 3d: c2 3a a5 ret $0xa53a