syzbot


WARNING in tcp_ack (3)

Status: internal: reported on 2022/04/05 15:30
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: 40570375356c tcp: add accessors to read/set tp->snd_cwnd
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 84d, last: 26d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in tcp_ack (2) 2 188d 273d 0/22 auto-closed as invalid on 2022/03/22 20:38
upstream WARNING in tcp_ack C done 3 902d 902d 16/22 fixed on 2020/02/18 14:31

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 11 at include/net/tcp.h:1219 tcp_snd_cwnd_set include/net/tcp.h:1219 [inline]
WARNING: CPU: 0 PID: 11 at include/net/tcp.h:1219 tcp_mtup_probe_success net/ipv4/tcp_input.c:2712 [inline]
WARNING: CPU: 0 PID: 11 at include/net/tcp.h:1219 tcp_clean_rtx_queue net/ipv4/tcp_input.c:3356 [inline]
WARNING: CPU: 0 PID: 11 at include/net/tcp.h:1219 tcp_ack+0x541e/0x58f0 net/ipv4/tcp_input.c:3861
Modules linked in:
CPU: 0 PID: 11 Comm: kworker/u4:1 Not tainted 5.18.0-syzkaller-11972-gd1dc87763f40 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: phy10 ieee80211_iface_work
RIP: 0010:tcp_snd_cwnd_set include/net/tcp.h:1219 [inline]
RIP: 0010:tcp_mtup_probe_success net/ipv4/tcp_input.c:2712 [inline]
RIP: 0010:tcp_clean_rtx_queue net/ipv4/tcp_input.c:3356 [inline]
RIP: 0010:tcp_ack+0x541e/0x58f0 net/ipv4/tcp_input.c:3861
Code: dc d5 ff ff 48 8b 7c 24 78 e8 ee 84 ea f9 e9 a7 d5 ff ff 48 8b bc 24 88 00 00 00 e8 cc 84 ea f9 e9 1e d5 ff ff e8 a2 c4 9d f9 <0f> 0b e9 6e f4 ff ff 48 89 f7 e8 b3 84 ea f9 e9 7c cf ff ff 48 8b
RSP: 0018:ffffc90000007690 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000100
RDX: ffff888010e73b00 RSI: ffffffff87dcbfae RDI: 0000000000000005
RBP: ffff888073dbedc0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff888073dbef84
R13: 0000000000001004 R14: ffff888073dbef88 R15: ffff888073dbe600
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555556279708 CR3: 00000000317d3000 CR4: 0000000000350ef0
Call Trace:
 <IRQ>
 tcp_rcv_established+0x5e8/0x20e0 net/ipv4/tcp_input.c:5973
 tcp_v6_do_rcv+0x810/0x13a0 net/ipv6/tcp_ipv6.c:1476
 tcp_v6_rcv+0x2d5f/0x3790 net/ipv6/tcp_ipv6.c:1735
 ip6_protocol_deliver_rcu+0x2e1/0x1930 net/ipv6/ip6_input.c:436
 ip6_input_finish+0x14c/0x2c0 net/ipv6/ip6_input.c:481
 NF_HOOK include/linux/netfilter.h:307 [inline]
 NF_HOOK include/linux/netfilter.h:301 [inline]
 ip6_input+0x9c/0xd0 net/ipv6/ip6_input.c:490
 dst_input include/net/dst.h:461 [inline]
 ip6_rcv_finish net/ipv6/ip6_input.c:76 [inline]
 NF_HOOK include/linux/netfilter.h:307 [inline]
 NF_HOOK include/linux/netfilter.h:301 [inline]
 ipv6_rcv+0x27f/0x3b0 net/ipv6/ip6_input.c:306
 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:5478
 __netif_receive_skb+0x24/0x1b0 net/core/dev.c:5592
 process_backlog+0x3a0/0x7c0 net/core/dev.c:5920
 __napi_poll+0xb3/0x6e0 net/core/dev.c:6486
 napi_poll net/core/dev.c:6553 [inline]
 net_rx_action+0x9c1/0xd90 net/core/dev.c:6664
 __do_softirq+0x29b/0x9c2 kernel/softirq.c:571
 invoke_softirq kernel/softirq.c:445 [inline]
 __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:__zone_watermark_ok+0x23f/0x450 mm/page_alloc.c:3949
Code: 8b 85 70 01 00 00 48 39 d8 0f 84 e2 fe ff ff 48 83 c4 28 b8 01 00 00 00 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 83 c4 28 31 c0 5b <5d> 41 5c 41 5d 41 5e 41 5f c3 49 8d bd 90 06 00 00 be 08 00 00 00
RSP: 0018:ffffc90000107380 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000002 RCX: 1ffff11027fff5c8
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88813fffae40
RBP: 0000000000000002 R08: 0000000000000001 R09: fffffffffffffff9
R10: 0000000000000001 R11: 0000000000000100 R12: 0000000000000003
R13: ffff88813fffae00 R14: 0000000000000901 R15: 0000000000000000
 zone_watermark_fast mm/page_alloc.c:3979 [inline]
 get_page_from_freelist+0x936/0x3b70 mm/page_alloc.c:4152
 __alloc_pages+0x1c7/0x510 mm/page_alloc.c:5426
 alloc_pages+0x1aa/0x310 mm/mempolicy.c:2272
 alloc_slab_page mm/slub.c:1797 [inline]
 allocate_slab+0x26c/0x3c0 mm/slub.c:1942
 new_slab mm/slub.c:2002 [inline]
 ___slab_alloc+0x985/0xd90 mm/slub.c:3002
 __slab_alloc.constprop.0+0x4d/0xa0 mm/slub.c:3089
 slab_alloc_node mm/slub.c:3180 [inline]
 slab_alloc mm/slub.c:3222 [inline]
 kmem_cache_alloc_trace+0x310/0x3f0 mm/slub.c:3253
 kmalloc include/linux/slab.h:600 [inline]
 kzalloc include/linux/slab.h:733 [inline]
 ieee802_11_parse_elems_crc+0xd5/0x1050 net/mac80211/util.c:1502
 ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2257 [inline]
 ieee80211_bss_info_update+0x42c/0xb00 net/mac80211/scan.c:212
 ieee80211_rx_bss_info net/mac80211/ibss.c:1119 [inline]
 ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1610 [inline]
 ieee80211_ibss_rx_queued_mgmt+0x1ab8/0x33f0 net/mac80211/ibss.c:1639
 ieee80211_iface_process_skb net/mac80211/iface.c:1527 [inline]
 ieee80211_iface_work+0xa78/0xd10 net/mac80211/iface.c:1581
 process_one_work+0x996/0x1610 kernel/workqueue.c:2289
 worker_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e9/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302
 </TASK>
----------------
Code disassembly (best guess):
   0:	8b 85 70 01 00 00    	mov    0x170(%rbp),%eax
   6:	48 39 d8             	cmp    %rbx,%rax
   9:	0f 84 e2 fe ff ff    	je     0xfffffef1
   f:	48 83 c4 28          	add    $0x28,%rsp
  13:	b8 01 00 00 00       	mov    $0x1,%eax
  18:	5b                   	pop    %rbx
  19:	5d                   	pop    %rbp
  1a:	41 5c                	pop    %r12
  1c:	41 5d                	pop    %r13
  1e:	41 5e                	pop    %r14
  20:	41 5f                	pop    %r15
  22:	c3                   	retq
  23:	48 83 c4 28          	add    $0x28,%rsp
  27:	31 c0                	xor    %eax,%eax
  29:	5b                   	pop    %rbx
* 2a:	5d                   	pop    %rbp <-- trapping instruction
  2b:	41 5c                	pop    %r12
  2d:	41 5d                	pop    %r13
  2f:	41 5e                	pop    %r14
  31:	41 5f                	pop    %r15
  33:	c3                   	retq
  34:	49 8d bd 90 06 00 00 	lea    0x690(%r13),%rdi
  3b:	be 08 00 00 00       	mov    $0x8,%esi

Crashes (16):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/06/02 16:41 upstream d1dc87763f40 5783034f .config log report info WARNING in tcp_ack
ci-upstream-kasan-gce-root 2022/06/01 07:50 upstream 2a5699b0de4e 3666edfe .config log report info WARNING in tcp_ack
ci-upstream-kasan-gce-root 2022/05/31 06:34 upstream 2c5ca23f7414 af70c3a9 .config log report info WARNING in tcp_ack
ci-upstream-kasan-gce-root 2022/05/29 05:10 upstream 9d004b2f4fea a46af346 .config log report info WARNING in tcp_ack
ci-upstream-kasan-gce-root 2022/05/28 08:28 upstream 8291eaafed36 a46af346 .config log report info WARNING in tcp_ack
ci-upstream-kasan-gce-selinux-root 2022/05/27 10:33 upstream 7f50d4dfe816 116e7a7b .config log report info WARNING in tcp_ack
ci-upstream-kasan-gce 2022/05/27 07:11 upstream babf0bb978e3 3037caa9 .config log report info WARNING in tcp_ack
ci-upstream-kasan-gce-selinux-root 2022/05/27 04:17 upstream 7f50d4dfe816 3037caa9 .config log report info WARNING in tcp_ack
ci-upstream-kasan-gce-selinux-root 2022/05/26 13:27 upstream babf0bb978e3 3037caa9 .config log report info WARNING in tcp_ack
ci-upstream-kasan-gce 2022/05/26 13:10 upstream 7e062cda7d90 3037caa9 .config log report info WARNING in tcp_ack
ci-upstream-kasan-gce-root 2022/05/26 03:59 upstream 7e062cda7d90 3037caa9 .config log report info WARNING in tcp_ack
ci-upstream-kasan-gce-smack-root 2022/04/05 15:29 upstream 312310928417 0127c10f .config log report info WARNING in tcp_ack
ci-upstream-linux-next-kasan-gce-root 2022/05/30 04:10 linux-next d3fde8ff50ab a46af346 .config log report info WARNING in tcp_ack
ci-upstream-linux-next-kasan-gce-root 2022/05/18 10:12 linux-next 3f7bdc402fb0 744a39e2 .config log report info WARNING in tcp_ack
ci-upstream-linux-next-kasan-gce-root 2022/05/15 02:02 linux-next 1e1b28b936ae 744a39e2 .config log report info WARNING in tcp_ack
ci-upstream-linux-next-kasan-gce-root 2022/04/17 19:28 linux-next 40354149f4d7 8bcc32a6 .config log report info WARNING in tcp_ack