================================ WARNING: inconsistent lock state 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor.1/6186 [HC0[0]:SC1[1]:HE0:SE0] takes: ffff888027ace148 (&timer->lock){+.?.}-{2:2}, at: class_spinlock_irqsave_constructor include/linux/spinlock.h:574 [inline] ffff888027ace148 (&timer->lock){+.?.}-{2:2}, at: snd_timer_interrupt.part.0+0x31/0xd80 sound/core/timer.c:818 {SOFTIRQ-ON-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x540 kernel/locking/lockdep.c:5719 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] class_spinlock_constructor include/linux/spinlock.h:561 [inline] snd_timer_close_locked+0x65/0xbd0 sound/core/timer.c:412 snd_timer_close+0x8b/0xf0 sound/core/timer.c:464 snd_timer_user_release+0x91/0x260 sound/core/timer.c:1468 __fput+0x270/0xb80 fs/file_table.c:422 __fput_sync+0x47/0x50 fs/file_table.c:507 __do_sys_close fs/open.c:1556 [inline] __se_sys_close fs/open.c:1541 [inline] __x64_sys_close+0x86/0x100 fs/open.c:1541 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6d/0x75 irq event stamp: 1649 hardirqs last enabled at (1648): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] hardirqs last enabled at (1648): [] _raw_spin_unlock_irq+0x23/0x50 kernel/locking/spinlock.c:202 hardirqs last disabled at (1649): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (1649): [] _raw_spin_lock_irqsave+0x52/0x60 kernel/locking/spinlock.c:162 softirqs last enabled at (1614): [] local_bh_enable include/linux/bottom_half.h:33 [inline] softirqs last enabled at (1614): [] ip6_pol_route+0x3ff/0x1150 net/ipv6/route.c:2267 softirqs last disabled at (1645): [] invoke_softirq kernel/softirq.c:428 [inline] softirqs last disabled at (1645): [] __irq_exit_rcu kernel/softirq.c:633 [inline] softirqs last disabled at (1645): [] irq_exit_rcu+0xb9/0x120 kernel/softirq.c:645 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&timer->lock); lock(&timer->lock); *** DEADLOCK *** 3 locks held by syz-executor.1/6186: #0: ffff88802aaa4a58 (sk_lock-AF_INET6){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1671 [inline] #0: ffff88802aaa4a58 (sk_lock-AF_INET6){+.+.}-{0:0}, at: sctp_sendmsg+0xda6/0x1eb0 net/sctp/socket.c:1970 #1: ffffffff8d7b08e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #1: ffffffff8d7b08e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #1: ffffffff8d7b08e0 (rcu_read_lock){....}-{1:2}, at: page_ext_get+0x34/0x310 mm/page_ext.c:508 #2: ffffc90000007cb0 ((&priv->tlist)){+.-.}-{0:0}, at: call_timer_fn+0x11a/0x5b0 kernel/time/timer.c:1789 stack backtrace: CPU: 0 PID: 6186 Comm: syz-executor.1 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 print_usage_bug kernel/locking/lockdep.c:3971 [inline] valid_state kernel/locking/lockdep.c:4013 [inline] mark_lock_irq kernel/locking/lockdep.c:4216 [inline] mark_lock+0x923/0xc60 kernel/locking/lockdep.c:4678 mark_usage kernel/locking/lockdep.c:4567 [inline] __lock_acquire+0x13d4/0x3b30 kernel/locking/lockdep.c:5091 lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x540 kernel/locking/lockdep.c:5719 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:574 [inline] snd_timer_interrupt.part.0+0x31/0xd80 sound/core/timer.c:818 snd_timer_interrupt sound/core/timer.c:1107 [inline] snd_timer_s_function+0x14f/0x200 sound/core/timer.c:1107 call_timer_fn+0x1a0/0x5b0 kernel/time/timer.c:1792 expire_timers kernel/time/timer.c:1843 [inline] __run_timers+0x74b/0xab0 kernel/time/timer.c:2408 __run_timer_base kernel/time/timer.c:2419 [inline] __run_timer_base kernel/time/timer.c:2412 [inline] run_timer_base+0x111/0x190 kernel/time/timer.c:2428 run_timer_softirq+0x1a/0x40 kernel/time/timer.c:2438 __do_softirq+0x218/0x8de kernel/softirq.c:554 invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:633 [inline] irq_exit_rcu+0xb9/0x120 kernel/softirq.c:645 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:finish_task_switch.isra.0+0x220/0xcc0 kernel/sched/core.c:5283 Code: a9 0a 00 00 44 8b 0d 37 d3 40 0e 45 85 c9 0f 85 c0 01 00 00 48 89 df e8 ae f8 ff ff e8 29 38 36 00 fb 65 48 8b 1d a0 03 a6 7e <48> 8d bb f0 15 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 RSP: 0018:ffffc900043b6860 EFLAGS: 00000202 RAX: 000000000000066b RBX: ffff888062c0bc00 RCX: 1ffffffff27be763 RDX: 0000000000000000 RSI: ffffffff8b0cb740 RDI: ffffffff8b6e88a0 RBP: ffffc900043b68a8 R08: 0000000000000001 R09: fffffbfff27b4e48 R10: ffffffff93da7247 R11: 0000000000000002 R12: ffff8880b943f3f8 R13: ffff888062c0da00 R14: 0000000000000000 R15: ffff8880b943e680 context_switch kernel/sched/core.c:5412 [inline] __schedule+0xf1d/0x5c70 kernel/sched/core.c:6736 preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:7058 irqentry_exit+0x36/0x90 kernel/entry/common.c:348 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:__set_page_owner_handle+0x140/0x3b0 mm/page_owner.c:173 Code: 00 00 e8 23 97 9c ff 48 8b 1d 0c fa a6 0b 48 b8 00 00 00 00 00 fc ff df 4c 01 e3 48 8d 7b 08 48 89 fa 48 c1 ea 03 0f b6 04 02 <84> c0 74 08 3c 03 0f 8e d5 01 00 00 8b 44 24 14 48 89 da 48 c1 ea RSP: 0018:ffffc900043b6b20 EFLAGS: 00000a06 RAX: 0000000000000000 RBX: ffff888016252e28 RCX: ffffc90004f69000 RDX: 1ffff11002c4a5c6 RSI: ffffffff81f0618d RDI: ffff888016252e30 RBP: 0000000000000000 R08: 0000000000000004 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000001 R12: ffff888016252e20 R13: 0000000005e002d3 R14: 0000000000000000 R15: 0000000000000000 __set_page_owner+0x48/0x60 mm/page_owner.c:200 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d4/0x350 mm/page_alloc.c:1533 prep_new_page mm/page_alloc.c:1540 [inline] get_page_from_freelist+0xa28/0x3780 mm/page_alloc.c:3311 __alloc_pages+0x22b/0x2410 mm/page_alloc.c:4569 __alloc_pages_node include/linux/gfp.h:238 [inline] alloc_pages_node include/linux/gfp.h:261 [inline] alloc_slab_page mm/slub.c:2175 [inline] allocate_slab mm/slub.c:2338 [inline] new_slab+0xcc/0x3a0 mm/slub.c:2391 ___slab_alloc+0x66d/0x1790 mm/slub.c:3525 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3610 __slab_alloc_node mm/slub.c:3663 [inline] slab_alloc_node mm/slub.c:3835 [inline] kmem_cache_alloc+0x2e9/0x320 mm/slub.c:3852 kmem_cache_zalloc include/linux/slab.h:739 [inline] sctp_chunkify+0x4d/0x2c0 net/sctp/sm_make_chunk.c:1381 _sctp_make_chunk+0x148/0x270 net/sctp/sm_make_chunk.c:1454 sctp_make_control+0x2f/0x2d0 net/sctp/sm_make_chunk.c:1490 sctp_make_init_ack+0xa8d/0x13d0 net/sctp/sm_make_chunk.c:472 sctp_sf_do_unexpected_init.isra.0+0xdd3/0x16e0 net/sctp/sm_statefuns.c:1642 sctp_do_sm+0x17f/0x5c90 net/sctp/sm_sideeffect.c:1166 sctp_assoc_bh_rcv+0x392/0x6f0 net/sctp/associola.c:1051 sctp_inq_push+0x1d8/0x270 net/sctp/inqueue.c:88 sctp_backlog_rcv+0x169/0x590 net/sctp/input.c:331 sk_backlog_rcv include/net/sock.h:1106 [inline] __release_sock+0x35f/0x400 net/core/sock.c:2984 release_sock+0x5a/0x220 net/core/sock.c:3550 sctp_wait_for_connect+0x1c6/0x5c0 net/sctp/socket.c:9344 sctp_sendmsg_to_asoc+0x174d/0x1ab0 net/sctp/socket.c:1885 sctp_sendmsg+0xf0a/0x1eb0 net/sctp/socket.c:2031 inet_sendmsg+0x119/0x140 net/ipv4/af_inet.c:851 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] __sys_sendto+0x42c/0x4e0 net/socket.c:2191 __do_sys_sendto net/socket.c:2203 [inline] __se_sys_sendto net/socket.c:2199 [inline] __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2199 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f457927de69 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f457a09f0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f45793abf80 RCX: 00007f457927de69 RDX: 0000000000034000 RSI: 0000000020847fff RDI: 0000000000000003 RBP: 00007f45792ca47a R08: 000000002005ffe4 R09: 000000000000001c R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f45793abf80 R15: 00007ffe0998a248 ---------------- Code disassembly (best guess): 0: a9 0a 00 00 44 test $0x4400000a,%eax 5: 8b 0d 37 d3 40 0e mov 0xe40d337(%rip),%ecx # 0xe40d342 b: 45 85 c9 test %r9d,%r9d e: 0f 85 c0 01 00 00 jne 0x1d4 14: 48 89 df mov %rbx,%rdi 17: e8 ae f8 ff ff call 0xfffff8ca 1c: e8 29 38 36 00 call 0x36384a 21: fb sti 22: 65 48 8b 1d a0 03 a6 mov %gs:0x7ea603a0(%rip),%rbx # 0x7ea603ca 29: 7e * 2a: 48 8d bb f0 15 00 00 lea 0x15f0(%rbx),%rdi <-- trapping instruction 31: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 38: fc ff df 3b: 48 89 fa mov %rdi,%rdx 3e: 48 rex.W 3f: c1 .byte 0xc1