=============================
[ BUG: Invalid wait context ]
6.13.0-rc3-syzkaller-00136-g8faabc041a00 #0 Not tainted
-----------------------------
sshd/5918 is trying to lock:
ffffffff8e3a41b8 (stack_list_lock){-.-.}-{3:3}, at: add_stack_record_to_list mm/page_owner.c:182 [inline]
ffffffff8e3a41b8 (stack_list_lock){-.-.}-{3:3}, at: inc_stack_record_count mm/page_owner.c:214 [inline]
ffffffff8e3a41b8 (stack_list_lock){-.-.}-{3:3}, at: __set_page_owner+0x3ea/0x560 mm/page_owner.c:329
other info that might help us debug this:
context-{2:2}
7 locks held by sshd/5918:
#0: ffff8880329d1bd8 (sk_lock-AF_INET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1617 [inline]
#0: ffff8880329d1bd8 (sk_lock-AF_INET){+.+.}-{0:0}, at: tcp_recvmsg+0x113/0x680 net/ipv4/tcp.c:2851
#1: ffffffff8e1bb900 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#1: ffffffff8e1bb900 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#1: ffffffff8e1bb900 (rcu_read_lock){....}-{1:3}, at: __ip_queue_xmit+0x73/0x1970 net/ipv4/ip_output.c:471
#2: ffffffff8e1bb900 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#2: ffffffff8e1bb900 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#2: ffffffff8e1bb900 (rcu_read_lock){....}-{1:3}, at: ip_finish_output2+0x364/0x2150 net/ipv4/ip_output.c:229
#3: ffffffff8e1bb8a0 (rcu_read_lock_bh){....}-{1:3}, at: local_bh_disable include/linux/bottom_half.h:20 [inline]
#3: ffffffff8e1bb8a0 (rcu_read_lock_bh){....}-{1:3}, at: rcu_read_lock_bh include/linux/rcupdate.h:901 [inline]
#3: ffffffff8e1bb8a0 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit+0x277/0x43e0 net/core/dev.c:4359
#4: ffff88802b4c0258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline]
#4: ffff88802b4c0258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{3:3}, at: qdisc_run_begin include/net/sch_generic.h:197 [inline]
#4: ffff88802b4c0258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{3:3}, at: qdisc_run_begin include/net/sch_generic.h:194 [inline]
#4: ffff88802b4c0258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{3:3}, at: __dev_xmit_skb net/core/dev.c:3814 [inline]
#4: ffff88802b4c0258 (dev->qdisc_tx_busylock ?: &qdisc_tx_busylock){+...}-{3:3}, at: __dev_queue_xmit+0x11b2/0x43e0 net/core/dev.c:4400
#5: ffff888024dc1d18 (_xmit_ETHER#2){+.-.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline]
#5: ffff888024dc1d18 (_xmit_ETHER#2){+.-.}-{3:3}, at: __netif_tx_lock include/linux/netdevice.h:4445 [inline]
#5: ffff888024dc1d18 (_xmit_ETHER#2){+.-.}-{3:3}, at: sch_direct_xmit+0x340/0xc30 net/sched/sch_generic.c:341
#6: ffff88806a73ebd8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:598
stack backtrace:
CPU: 1 UID: 0 PID: 5918 Comm: sshd Not tainted 6.13.0-rc3-syzkaller-00136-g8faabc041a00 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
print_lock_invalid_wait_context kernel/locking/lockdep.c:4826 [inline]
check_wait_context kernel/locking/lockdep.c:4898 [inline]
__lock_acquire+0x878/0x3c40 kernel/locking/lockdep.c:5176
lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5849
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162
add_stack_record_to_list mm/page_owner.c:182 [inline]
inc_stack_record_count mm/page_owner.c:214 [inline]
__set_page_owner+0x3ea/0x560 mm/page_owner.c:329
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1556
prep_new_page mm/page_alloc.c:1564 [inline]
get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3474
__alloc_pages_noprof+0x223/0x25b0 mm/page_alloc.c:4751
alloc_pages_mpol_noprof+0x2c9/0x610 mm/mempolicy.c:2269
stack_depot_save_flags+0x8aa/0x9c0 lib/stackdepot.c:627
kasan_save_stack+0x42/0x60 mm/kasan/common.c:48
__kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:544
task_work_add+0xc0/0x3b0 kernel/task_work.c:77
task_tick_numa kernel/sched/fair.c:3616 [inline]
task_tick_fair+0x524/0x8e0 kernel/sched/fair.c:13101
sched_tick+0x1dd/0x4f0 kernel/sched/core.c:5652
update_process_times+0x19c/0x2d0 kernel/time/timer.c:2524
tick_sched_handle kernel/time/tick-sched.c:276 [inline]
tick_nohz_handler+0x376/0x530 kernel/time/tick-sched.c:297
__run_hrtimer kernel/time/hrtimer.c:1739 [inline]
__hrtimer_run_queues+0x5fb/0xae0 kernel/time/hrtimer.c:1803
hrtimer_interrupt+0x392/0x8e0 kernel/time/hrtimer.c:1865
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline]
__sysvec_apic_timer_interrupt+0x10f/0x400 arch/x86/kernel/apic/apic.c:1055
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0x9f/0xc0 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:writel arch/x86/include/asm/io.h:67 [inline]
RIP: 0010:e1000_xmit_frame+0x37ad/0x5820 drivers/net/ethernet/intel/e1000/e1000_main.c:3276
Code: c1 ea 03 48 01 c3 48 b8 00 00 00 00 00 fc ff df 0f b6 04 02 84 c0 74 08 3c 03 0f 8e 6b 1b 00 00 48 8b 44 24 08 8b 40 18 89 03 ec e9 ff ff e8 c9 6b 3a fb 48 8d 6b 20 be 04 00 00 00 48 89 ef
RSP: 0018:ffffc90004516eb8 EFLAGS: 00000246
RAX: 0000000000000020 RBX: ffffc90006803818 RCX: ffffffff865fa8ce
RDX: 1ffff11004e85f93 RSI: ffffffff865fa8db RDI: ffff88802742fcaa
RBP: 0000000000000020 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000006 R12: 00000000ab10003c
R13: dffffc0000000000 R14: ffff888108038000 R15: ffffc900000bd1f0
__netdev_start_xmit include/linux/netdevice.h:5002 [inline]
netdev_start_xmit include/linux/netdevice.h:5011 [inline]
xmit_one net/core/dev.c:3590 [inline]
dev_hard_start_xmit+0x9a/0x7b0 net/core/dev.c:3606
sch_direct_xmit+0x1ae/0xc30 net/sched/sch_generic.c:343
__dev_xmit_skb net/core/dev.c:3827 [inline]
__dev_queue_xmit+0x13d4/0x43e0 net/core/dev.c:4400
dev_queue_xmit include/linux/netdevice.h:3168 [inline]
neigh_hh_output include/net/neighbour.h:523 [inline]
neigh_output include/net/neighbour.h:537 [inline]
ip_finish_output2+0xc6c/0x2150 net/ipv4/ip_output.c:236
__ip_finish_output net/ipv4/ip_output.c:314 [inline]
__ip_finish_output+0x49e/0x950 net/ipv4/ip_output.c:296
ip_finish_output+0x35/0x380 net/ipv4/ip_output.c:324
NF_HOOK_COND include/linux/netfilter.h:303 [inline]
ip_output+0x13b/0x2a0 net/ipv4/ip_output.c:434
dst_output include/net/dst.h:450 [inline]
ip_local_out+0x33e/0x4a0 net/ipv4/ip_output.c:130
__ip_queue_xmit+0x777/0x1970 net/ipv4/ip_output.c:536
__tcp_transmit_skb+0x2b39/0x3e10 net/ipv4/tcp_output.c:1468
__tcp_send_ack.part.0+0x390/0x6f0 net/ipv4/tcp_output.c:4272
__tcp_send_ack net/ipv4/tcp_output.c:4278 [inline]
tcp_send_ack+0x82/0xa0 net/ipv4/tcp_output.c:4278
__tcp_cleanup_rbuf+0x278/0x4b0 net/ipv4/tcp.c:1506
tcp_recvmsg_locked+0x124b/0x2780 net/ipv4/tcp.c:2822
tcp_recvmsg+0x12e/0x680 net/ipv4/tcp.c:2852
inet_recvmsg+0x12b/0x6a0 net/ipv4/af_inet.c:883
sock_recvmsg_nosec net/socket.c:1033 [inline]
sock_recvmsg+0x1b2/0x250 net/socket.c:1055
sock_read_iter+0x2bb/0x3b0 net/socket.c:1125
new_sync_read fs/read_write.c:484 [inline]
vfs_read+0xa4c/0xbe0 fs/read_write.c:565
ksys_read+0x207/0x250 fs/read_write.c:708
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff1aed16b6a
Code: 00 3d 00 00 41 00 75 0d 50 48 8d 3d 2d 08 0a 00 e8 ea 7d 01 00 31 c0 e9 07 ff ff ff 64 8b 04 25 18 00 00 00 85 c0 75 1b 0f 05 <48> 3d 00 f0 ff ff 76 6c 48 8b 15 8f a2 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffcf8330738 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000040000 RCX: 00007ff1aed16b6a
RDX: 0000000000040000 RSI: 000055e76c78fd90 RDI: 0000000000000004
RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcf83307a0 R14: 000055e76c7280b0 R15: 00007ffcf8330818
----------------
Code disassembly (best guess):
0: c1 ea 03 shr $0x3,%edx
3: 48 01 c3 add %rax,%rbx
6: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
d: fc ff df
10: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax
14: 84 c0 test %al,%al
16: 74 08 je 0x20
18: 3c 03 cmp $0x3,%al
1a: 0f 8e 6b 1b 00 00 jle 0x1b8b
20: 48 8b 44 24 08 mov 0x8(%rsp),%rax
25: 8b 40 18 mov 0x18(%rax),%eax
28: 89 03 mov %eax,(%rbx)
* 2a: e9 ec e9 ff ff jmp 0xffffea1b <-- trapping instruction
2f: e8 c9 6b 3a fb call 0xfb3a6bfd
34: 48 8d 6b 20 lea 0x20(%rbx),%rbp
38: be 04 00 00 00 mov $0x4,%esi
3d: 48 89 ef mov %rbp,%rdi