syzbot


WARNING in skb_release_data

Status: internal: reported on 2024/10/30 14:50
Subsystems: net
[Documentation on labels]
Fix commit: iov-iter: do not return more bytes than requested in iov_iter_extract_bvec_pages()
Patched on: [], missing on: [ci-qemu-gce-upstream-auto ci-qemu-native-arm64-kvm ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root 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-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 10d, last: 6d01h

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 6116 at include/net/netmem.h:80 netmem_to_page include/net/netmem.h:80 [inline]
WARNING: CPU: 1 PID: 6116 at include/net/netmem.h:80 skb_page_unref include/linux/skbuff_ref.h:43 [inline]
WARNING: CPU: 1 PID: 6116 at include/net/netmem.h:80 __skb_frag_unref include/linux/skbuff_ref.h:56 [inline]
WARNING: CPU: 1 PID: 6116 at include/net/netmem.h:80 skb_release_data+0x4c2/0x8a0 net/core/skbuff.c:1119
Modules linked in:
CPU: 1 UID: 0 PID: 6116 Comm: syz.1.48 Not tainted 6.12.0-rc5-next-20241101-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:netmem_to_page include/net/netmem.h:80 [inline]
RIP: 0010:skb_page_unref include/linux/skbuff_ref.h:43 [inline]
RIP: 0010:__skb_frag_unref include/linux/skbuff_ref.h:56 [inline]
RIP: 0010:skb_release_data+0x4c2/0x8a0 net/core/skbuff.c:1119
Code: 04 38 84 c0 75 4b 41 0f b6 45 00 48 39 c3 73 6e e8 c3 e4 0d f8 49 83 c6 10 48 83 44 24 30 10 e9 1f ff ff ff e8 af e4 0d f8 90 <0f> 0b 90 45 31 ff eb b1 48 8b 4c 24 08 80 e1 07 38 c1 0f 8c 2f ff
RSP: 0018:ffffc900047d70d0 EFLAGS: 00010283
RAX: ffffffff8987d951 RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc9000c612000 RSI: 000000000000c744 RDI: 000000000000c745
RBP: ffff88802c516240 R08: ffffffff8987d8fd R09: 1ffffffff203a1f6
R10: dffffc0000000000 R11: fffffbfff203a1f7 R12: 0000000000000000
R13: ffff88802c516242 R14: ffff88802c516270 R15: 3735203a2020656d
FS:  00007fe3d75d36c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c28a90a CR3: 000000002ed72000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 skb_release_all net/core/skbuff.c:1190 [inline]
 __kfree_skb net/core/skbuff.c:1204 [inline]
 sk_skb_reason_drop+0x1c9/0x380 net/core/skbuff.c:1242
 kfree_skb_reason include/linux/skbuff.h:1262 [inline]
 kfree_skb include/linux/skbuff.h:1271 [inline]
 __ip_flush_pending_frames net/ipv4/ip_output.c:1538 [inline]
 ip_flush_pending_frames+0x12d/0x260 net/ipv4/ip_output.c:1545
 udp_flush_pending_frames net/ipv4/udp.c:829 [inline]
 udp_sendmsg+0x5d2/0x2a50 net/ipv4/udp.c:1302
 sock_sendmsg_nosec net/socket.c:729 [inline]
 __sock_sendmsg+0x1a6/0x270 net/socket.c:744
 sock_sendmsg+0x134/0x200 net/socket.c:767
 splice_to_socket+0xa10/0x10b0 fs/splice.c:889
 do_splice_from fs/splice.c:941 [inline]
 direct_splice_actor+0x11b/0x220 fs/splice.c:1164
 splice_direct_to_actor+0x586/0xc80 fs/splice.c:1108
 do_splice_direct_actor fs/splice.c:1207 [inline]
 do_splice_direct+0x289/0x3e0 fs/splice.c:1233
 do_sendfile+0x561/0xe10 fs/read_write.c:1388
 __do_sys_sendfile64 fs/read_write.c:1455 [inline]
 __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1441
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe3d677e719
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe3d75d3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fe3d6936058 RCX: 00007fe3d677e719
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 000000000000000a
RBP: 00007fe3d67f132e R08: 0000000000000000 R09: 0000000000000000
R10: 0000020000023893 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe3d6936058 R15: 00007ffc71b65f68
 </TASK>

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/03 22:13 linux-next c88416ba074a f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in skb_release_data
2024/11/03 11:13 linux-next c88416ba074a f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in skb_release_data
2024/11/03 01:02 linux-next c88416ba074a f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in skb_release_data
2024/11/03 00:50 linux-next c88416ba074a f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in skb_release_data
2024/10/30 16:48 linux-next 86e3904dcdc7 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in skb_release_data
2024/10/30 16:46 linux-next 86e3904dcdc7 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in skb_release_data
2024/10/30 15:10 linux-next 86e3904dcdc7 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in skb_release_data
2024/10/30 14:49 linux-next 86e3904dcdc7 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in skb_release_data
* Struck through repros no longer work on HEAD.