[v6.1] WARNING in subflow_data_ready

0 views
Skip to first unread message

syzbot

unread,
Jan 11, 2024, 3:07:30 AMJan 11
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 7c58bfa711cb Linux 6.1.72
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11681aebe80000
kernel config: https://syzkaller.appspot.com/x/.config?x=36d06871d6eebdd3
dashboard link: https://syzkaller.appspot.com/bug?extid=05ac4099d36f3228e6bc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/b20a634d81c4/disk-7c58bfa7.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/d6a58728d5fa/vmlinux-7c58bfa7.xz
kernel image: https://storage.googleapis.com/syzbot-assets/c418bf23bed2/bzImage-7c58bfa7.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+05ac40...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 0 PID: 26631 at net/mptcp/subflow.c:1347 subflow_data_ready+0x2da/0x390
Modules linked in:
CPU: 0 PID: 26631 Comm: syz-executor.0 Not tainted 6.1.72-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:subflow_data_ready+0x2da/0x390 net/mptcp/subflow.c:1346
Code: 60 0f 85 d2 00 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 95 9b 10 f7 4c 89 e7 e8 5d 0f 00 00 eb b8 e8 86 9b 10 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:ffffc90005636b20 EFLAGS: 00010283
RAX: ffffffff8a79d73a RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc90004e72000 RSI: 000000000000e5af RDI: 000000000000e5b0
RBP: ffffc90005636bd0 R08: ffffffff8a79d630 R09: ffffed10029d73f8
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807c48a4c0
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff888014eb9700
FS: 00007f26451f56c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1de9cd56c6 CR3: 000000003be1e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
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
sk_backlog_rcv include/net/sock.h:1117 [inline]
__release_sock+0x198/0x4b0 net/core/sock.c:2934
release_sock+0x5d/0x1c0 net/core/sock.c:3498
__mptcp_close_ssk+0x655/0xe60 net/mptcp/protocol.c:2444
mptcp_pm_nl_rm_addr_or_subflow+0x41d/0xa40 net/mptcp/pm_netlink.c:817
mptcp_pm_nl_rm_subflow_received net/mptcp/pm_netlink.c:848 [inline]
mptcp_nl_remove_id_zero_address net/mptcp/pm_netlink.c:1494 [inline]
mptcp_nl_cmd_del_addr+0xa5a/0x1ab0 net/mptcp/pm_netlink.c:1524
genl_family_rcv_msg_doit net/netlink/genetlink.c:756 [inline]
genl_family_rcv_msg net/netlink/genetlink.c:833 [inline]
genl_rcv_msg+0xc1a/0xf70 net/netlink/genetlink.c:850
netlink_rcv_skb+0x1cd/0x410 net/netlink/af_netlink.c:2508
genl_rcv+0x24/0x40 net/netlink/genetlink.c:861
netlink_unicast_kernel net/netlink/af_netlink.c:1326 [inline]
netlink_unicast+0x7d8/0x970 net/netlink/af_netlink.c:1352
netlink_sendmsg+0xa26/0xd60 net/netlink/af_netlink.c:1874
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg net/socket.c:730 [inline]
____sys_sendmsg+0x5a5/0x8f0 net/socket.c:2514
___sys_sendmsg net/socket.c:2568 [inline]
__sys_sendmsg+0x2a9/0x390 net/socket.c:2597
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:0x7f264447cd29
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:00007f26451f50c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f26445ac050 RCX: 00007f264447cd29
RDX: 0000000000000000 RSI: 0000000020000740 RDI: 0000000000000005
RBP: 00007f26444c947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f26445ac050 R15: 00007fffa3187f28
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Apr 3, 2024, 7:54:28 PMApr 3
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 347385861c50 Linux 6.1.84
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16222075180000
kernel config: https://syzkaller.appspot.com/x/.config?x=40dfd13b04bfc094
dashboard link: https://syzkaller.appspot.com/bug?extid=05ac4099d36f3228e6bc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10ea4a3d180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16c5d93d180000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/73d2a8622b6e/disk-34738586.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/e7bc2e0101a7/vmlinux-34738586.xz
kernel image: https://storage.googleapis.com/syzbot-assets/7b96d1168608/bzImage-34738586.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+05ac40...@syzkaller.appspotmail.com

------------[ 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


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages