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+0x174/0x210 kernel/sched/wait.c:256 WARNING: kernel/sched/core.c:9124 at __might_sleep+0x92/0xf0 kernel/sched/core.c:9120, CPU#0: syz.0.0/5321 Modules linked in: CPU: 0 UID: 0 PID: 5321 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:__might_sleep+0xac/0xf0 kernel/sched/core.c:9120 Code: 00 00 48 89 3c 24 41 89 f5 4c 8d 35 7e ae c4 0e 43 80 3c 3c 00 74 08 48 89 df e8 8f 37 a0 00 48 8b 0b 4c 89 f7 89 ee 48 89 ca <67> 48 0f b9 3a 44 89 ee 48 8b 3c 24 eb b5 44 89 f1 80 e1 07 80 c1 RSP: 0018:ffffc9000fce74f0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff888000fc3db0 RCX: ffffffff819fa6a4 RDX: ffffffff819fa6a4 RSI: 0000000000000001 RDI: ffffffff905abdf0 RBP: 0000000000000001 R08: ffffc9000fce72f8 R09: 0000000000000020 R10: 0000000000000000 R11: ffffffff81a324e0 R12: 1ffff110001f87b6 R13: 0000000000000143 R14: ffffffff905abdf0 R15: dffffc0000000000 FS: 00007f2228bd46c0(0000) GS:ffff88808c54a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000042e66000 CR4: 0000000000352ef0 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+0x94/0x660 mm/slub.c:5485 _kmalloc_noprof include/linux/slab.h:988 [inline] _kzalloc_noprof include/linux/slab.h:1309 [inline] spcp8x5_get_msr+0xd3/0x2d0 drivers/usb/serial/spcp8x5.c:197 spcp8x5_carrier_raised+0x30/0x80 drivers/usb/serial/spcp8x5.c:243 serial_port_carrier_raised+0x8c/0xc0 drivers/usb/serial/usb-serial.c:757 tty_port_carrier_raised drivers/tty/tty_port.c:441 [inline] tty_port_block_til_ready+0x449/0x8b0 drivers/tty/tty_port.c:559 tty_open+0x48a/0xcc0 drivers/tty/tty_io.c:2137 chrdev_open+0x4d9/0x600 fs/char_dev.c:411 do_dentry_open+0x816/0x1380 fs/open.c:947 vfs_open+0x3b/0x340 fs/open.c:1052 do_open fs/namei.c:4700 [inline] path_openat+0x2e44/0x3830 fs/namei.c:4863 do_file_open+0x23e/0x4a0 fs/namei.c:4892 do_sys_openat2+0x115/0x200 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+0x138/0x170 fs/open.c:1385 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f222c79e0d9 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:00007f2228bd3fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f222ca26090 RCX: 00007f222c79e0d9 RDX: 0000000000000000 RSI: 0000200000000700 RDI: ffffffffffffff9c RBP: 00007f222c835024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f222ca26128 R14: 00007f222ca26090 R15: 00007fff6a2d6e18 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 48 89 3c 24 mov %rdi,(%rsp) 6: 41 89 f5 mov %esi,%r13d 9: 4c 8d 35 7e ae c4 0e lea 0xec4ae7e(%rip),%r14 # 0xec4ae8e 10: 43 80 3c 3c 00 cmpb $0x0,(%r12,%r15,1) 15: 74 08 je 0x1f 17: 48 89 df mov %rbx,%rdi 1a: e8 8f 37 a0 00 call 0xa037ae 1f: 48 8b 0b mov (%rbx),%rcx 22: 4c 89 f7 mov %r14,%rdi 25: 89 ee mov %ebp,%esi 27: 48 89 ca mov %rcx,%rdx * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 44 89 ee mov %r13d,%esi 32: 48 8b 3c 24 mov (%rsp),%rdi 36: eb b5 jmp 0xffffffed 38: 44 89 f1 mov %r14d,%ecx 3b: 80 e1 07 and $0x7,%cl 3e: 80 .byte 0x80 3f: c1 .byte 0xc1