BUG: sleeping function called from invalid context at net/core/sock.c:3830 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 25778, name: syz.9.6503 preempt_count: 101, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] __schedule_loop kernel/sched/core.c:7308 [inline] [] schedule+0x15d/0x2b0 kernel/sched/core.c:7324 CPU: 0 UID: 0 PID: 25778 Comm: syz.9.6503 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 __might_resched+0x378/0x4d0 kernel/sched/core.c:9195 lock_sock_nested+0x56/0x100 net/core/sock.c:3830 lock_sock include/net/sock.h:1713 [inline] x25_kill_by_neigh+0x10d/0x250 net/x25/af_x25.c:1778 x25_lapb_receive_frame+0x1b0/0xfb0 net/x25/x25_dev.c:138 __netif_receive_skb_one_core net/core/dev.c:6215 [inline] netif_receive_skb_core+0x2a6/0x2b0 net/core/dev.c:6240 lapbeth_napi_poll+0x42/0x90 drivers/net/wan/lapbether.c:100 __napi_poll+0xaa/0x330 net/core/dev.c:7738 napi_poll net/core/dev.c:7801 [inline] net_rx_action+0x61d/0xf50 net/core/dev.c:7958 handle_softirqs+0x225/0x840 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:finish_task_switch+0x417/0xc60 kernel/sched/core.c:5361 Code: 04 00 00 41 c7 84 24 20 0e 00 00 00 00 00 00 0f 1f 44 00 00 49 83 c4 48 4c 89 e7 e8 93 ce 46 0a e8 4e de 39 00 fb 4c 8b 65 c8 <49> 8d bc 24 10 17 00 00 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 RSP: 0018:ffffc90004bb76c0 EFLAGS: 00000246 RAX: 0000000000000001 RBX: ffff8880b863c820 RCX: 0000000080000002 RDX: 0000000000000000 RSI: ffffffff8c4c7660 RDI: ffffffff8195de62 RBP: ffffc90004bb7710 R08: ffffffff9058947f R09: 1ffffffff20b128f R10: dffffc0000000000 R11: fffffbfff20b1290 R12: ffff88801dba9f40 R13: ffff88801dba9f40 R14: dffffc0000000000 R15: 1ffff110170c7904 context_switch kernel/sched/core.c:5513 [inline] __schedule+0x1b32/0x59a0 kernel/sched/core.c:7232 __schedule_loop kernel/sched/core.c:7309 [inline] schedule+0x164/0x2b0 kernel/sched/core.c:7324 schedule_timeout+0x152/0x2c0 kernel/time/sleep_timeout.c:99 snd_rawmidi_write+0x3b4/0xbc0 sound/core/rawmidi.c:1614 do_loop_readv_writev fs/read_write.c:851 [inline] vfs_writev+0x4bb/0x990 fs/read_write.c:1060 do_writev+0x154/0x2e0 fs/read_write.c:1104 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x510 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcf7f19e0d9 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:00007fcf800b8028 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fcf7f425fa0 RCX: 00007fcf7f19e0d9 RDX: 0000000000000002 RSI: 0000200000000840 RDI: 0000000000000005 RBP: 00007fcf7f235024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fcf7f426038 R14: 00007fcf7f425fa0 R15: 00007ffe63d14e08 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 00 00 add %al,(%rax) 2: 41 c7 84 24 20 0e 00 movl $0x0,0xe20(%r12) 9: 00 00 00 00 00 e: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 13: 49 83 c4 48 add $0x48,%r12 17: 4c 89 e7 mov %r12,%rdi 1a: e8 93 ce 46 0a call 0xa46ceb2 1f: e8 4e de 39 00 call 0x39de72 24: fb sti 25: 4c 8b 65 c8 mov -0x38(%rbp),%r12 * 29: 49 8d bc 24 10 17 00 lea 0x1710(%r12),%rdi <-- trapping instruction 30: 00 31: 48 89 f8 mov %rdi,%rax 34: 48 c1 e8 03 shr $0x3,%rax 38: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax 3d: 84 c0 test %al,%al