syzbot


WARNING in subflow_data_ready

Status: upstream: reported C repro on 2024/01/11 08:07
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+05ac4099d36f3228e6bc@syzkaller.appspotmail.com
First crash: 132d, last: 20d
Bug presence (2)
Date Name Commit Repro Result
2024/05/02 linux-6.1.y (ToT) 909ba1f1b414 C [report] WARNING in subflow_data_ready
2024/05/02 upstream (ToT) 49a73b1652c5 C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in subflow_data_ready mptcp 42 126d 210d 25/26 fixed on 2024/01/20 21:18
upstream WARNING in subflow_data_ready (2) mptcp C done 9 101d 119d 0/26 auto-obsoleted due to no activity on 2024/05/21 09:30

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4374 at net/mptcp/subflow.c:1348 subflow_data_ready+0x2da/0x390
Modules linked in:
CPU: 0 PID: 4374 Comm: syz-executor993 Not tainted 6.1.84-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:subflow_data_ready+0x2da/0x390 net/mptcp/subflow.c:1347
Code: 60 0f 85 d2 00 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 a5 22 11 f7 4c 89 e7 e8 5d 0f 00 00 eb b8 e8 96 22 11 f7 <0f> 0b e9 57 ff ff ff 44 89 f9 80 e1 07 38 c1 0f 8c bf fd ff ff 4c
RSP: 0018:ffffc90000006fc0 EFLAGS: 00010246
RAX: ffffffff8a79645a RBX: 0000000000000000 RCX: ffff888076213b80
RDX: 0000000000000102 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000007070 R08: ffffffff8a796350 R09: ffffed100435c568
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888077f5e200
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff888021ae2280
FS:  00007fe8045d16c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcc705a9b0 CR3: 0000000028fa2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 tcp_data_queue+0x21c5/0x6fd0 net/ipv4/tcp_input.c:5102
 tcp_rcv_state_process+0x2682/0x4510 net/ipv4/tcp_input.c:6704
 tcp_v4_do_rcv+0x729/0xb00 net/ipv4/tcp_ipv4.c:1700
 tcp_v4_rcv+0x29e0/0x3250 net/ipv4/tcp_ipv4.c:2099
 ip_protocol_deliver_rcu+0x381/0x740 net/ipv4/ip_input.c:205
 ip_local_deliver_finish+0x2b4/0x4f0 net/ipv4/ip_input.c:233
 NF_HOOK+0x39d/0x450 include/linux/netfilter.h:302
 NF_HOOK+0x39d/0x450 include/linux/netfilter.h:302
 __netif_receive_skb_one_core net/core/dev.c:5528 [inline]
 __netif_receive_skb+0x1c6/0x530 net/core/dev.c:5642
 process_backlog+0x381/0x760 net/core/dev.c:5970
 __napi_poll+0xc7/0x470 net/core/dev.c:6537
 napi_poll net/core/dev.c:6604 [inline]
 net_rx_action+0x70f/0xeb0 net/core/dev.c:6718
 __do_softirq+0x2e9/0xa4c kernel/softirq.c:571
 invoke_softirq kernel/softirq.c:445 [inline]
 __irq_exit_rcu+0x155/0x240 kernel/softirq.c:650
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:memset_erms+0xb/0x10 arch/x86/lib/memset_64.S:65
Code: 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 f3 aa <4c> 89 c8 c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 01 01 01
RSP: 0018:ffffc9000491f418 EFLAGS: 00000202
RAX: 0000000000000000 RBX: 1ffffffff1df0952 RCX: 0000000000000000
RDX: 0000000000000010 RSI: 0000000000000000 RDI: ffffc9000491f560
RBP: dffffc0000000000 R08: dffffc0000000000 R09: ffffc9000491f550
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc9000491f500
R13: ffffffff8ef84a96 R14: ffffc9000491f535 R15: ffffc9000491f550
 unwind_next_frame+0xde7/0x2220 arch/x86/kernel/unwind_orc.c:546
 arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
 save_stack+0xf6/0x1e0 mm/page_owner.c:127
 __set_page_owner+0x26/0x390 mm/page_owner.c:190
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2513
 prep_new_page mm/page_alloc.c:2520 [inline]
 get_page_from_freelist+0x31a1/0x3320 mm/page_alloc.c:4279
 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5547
 alloc_slab_page+0x6a/0x150 mm/slub.c:1794
 allocate_slab mm/slub.c:1939 [inline]
 new_slab+0x84/0x2d0 mm/slub.c:1992
 ___slab_alloc+0xc20/0x1270 mm/slub.c:3180
 __slab_alloc mm/slub.c:3279 [inline]
 slab_alloc_node mm/slub.c:3364 [inline]
 slab_alloc mm/slub.c:3406 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3413 [inline]
 kmem_cache_alloc_lru+0x1a5/0x2d0 mm/slub.c:3429
 alloc_inode_sb include/linux/fs.h:3193 [inline]
 sock_alloc_inode+0x24/0xc0 net/socket.c:306
 alloc_inode fs/inode.c:261 [inline]
 new_inode_pseudo+0x61/0x1d0 fs/inode.c:1020
 sock_alloc net/socket.c:631 [inline]
 __sock_create+0x11f/0x910 net/socket.c:1514
 sock_create net/socket.c:1601 [inline]
 __sys_socket_create net/socket.c:1638 [inline]
 __sys_socket+0x136/0x3a0 net/socket.c:1666
 __do_sys_socket net/socket.c:1679 [inline]
 __se_sys_socket net/socket.c:1677 [inline]
 __x64_sys_socket+0x76/0x80 net/socket.c:1677
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fe804614a79
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 1a 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:00007fe8045d1228 EFLAGS: 00000246 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 00007fe80469f428 RCX: 00007fe804614a79
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 000000000000000a
RBP: 00007fe80469f420 R08: 00007fe8045d16c0 R09: 00007fe8045d16c0
R10: 00007fe8045d16c0 R11: 0000000000000246 R12: 00007fe80469f42c
R13: 00007fe80466b620 R14: 6d705f706374706d R15: 00007ffcc703d308
 </TASK>
----------------
Code disassembly (best guess):
   0:	03 40 0f             	add    0xf(%rax),%eax
   3:	b6 f6                	mov    $0xf6,%dh
   5:	48 b8 01 01 01 01 01 	movabs $0x101010101010101,%rax
   c:	01 01 01
   f:	48 0f af c6          	imul   %rsi,%rax
  13:	f3 48 ab             	rep stos %rax,%es:(%rdi)
  16:	89 d1                	mov    %edx,%ecx
  18:	f3 aa                	rep stos %al,%es:(%rdi)
  1a:	4c 89 c8             	mov    %r9,%rax
  1d:	c3                   	ret
  1e:	90                   	nop
  1f:	49 89 f9             	mov    %rdi,%r9
  22:	40 88 f0             	mov    %sil,%al
  25:	48 89 d1             	mov    %rdx,%rcx
  28:	f3 aa                	rep stos %al,%es:(%rdi)
* 2a:	4c 89 c8             	mov    %r9,%rax <-- trapping instruction
  2d:	c3                   	ret
  2e:	90                   	nop
  2f:	49 89 fa             	mov    %rdi,%r10
  32:	40 0f b6 ce          	movzbl %sil,%ecx
  36:	48 b8 01 01 01 01 01 	movabs $0x101010101010101,%rax
  3d:	01 01 01

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/03 23:53 linux-6.1.y 347385861c50 51c4dcff .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in subflow_data_ready
2024/04/03 16:23 linux-6.1.y 347385861c50 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in subflow_data_ready
2024/01/11 08:06 linux-6.1.y 7c58bfa711cb 00f3cc59 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in subflow_data_ready
2024/03/13 17:50 linux-6.1.y 61adba85cc40 f919f202 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in subflow_data_ready
2024/02/01 02:40 linux-6.1.y e5c3b988b827 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in subflow_data_ready
2024/01/18 13:50 linux-6.1.y fec3b1451d5f 239abf84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in subflow_data_ready
* Struck through repros no longer work on HEAD.