syzbot


WARNING in __ip_make_skb

Status: upstream: reported C repro on 2024/05/27 15:12
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+30a35a2e9c5067cc43fa@syzkaller.appspotmail.com
Fix commit: net: validate SO_TXTIME clockid coming from userspace
Patched on: [ci-upstream-bpf-next-kasan-gce ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci2-upstream-net-next-test-gce], missing on: [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-upstream-bpf-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-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 20d, last: 4d12h
Cause bisection: introduced by (bisect log) :
commit 1693c5db6ab8262e6f5263f9d211855959aa5acd
Author: Abhishek Chauhan <quic_abchauha@quicinc.com>
Date: Thu May 9 21:18:33 2024 +0000

  net: Add additional bit to support clockid_t timestamp type

Crash: WARNING in __ip_make_skb (log)
Repro: C syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH net-next v2] net: validate SO_TXTIME clockid coming from userspace 3 (3) 2024/06/01 22:50
[PATCH net] net: validate SO_TXTIME clockid coming from userspace 7 (7) 2024/05/29 16:04
[syzbot] [net?] WARNING in __ip_make_skb 0 (1) 2024/05/27 15:12

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5088 at include/linux/skbuff.h:4226 skb_set_delivery_type_by_clockid include/linux/skbuff.h:4226 [inline]
WARNING: CPU: 0 PID: 5088 at include/linux/skbuff.h:4226 __ip_make_skb+0x1283/0x1eb0 net/ipv4/ip_output.c:1463
Modules linked in:
CPU: 0 PID: 5088 Comm: syz-executor398 Not tainted 6.9.0-syzkaller-08561-g2c1713a8f1c9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:skb_set_delivery_type_by_clockid include/linux/skbuff.h:4226 [inline]
RIP: 0010:__ip_make_skb+0x1283/0x1eb0 net/ipv4/ip_output.c:1463
Code: 00 00 00 00 fc ff df 4c 8b 64 24 20 eb 7d e8 b4 c8 af f7 49 bf 00 00 00 00 00 fc ff df 4c 8b 64 24 20 eb 64 e8 9e c8 af f7 90 <0f> 0b 90 49 8d 7c 24 20 48 89 f8 48 c1 e8 03 42 80 3c 38 00 74 05
RSP: 0018:ffffc900034f7248 EFLAGS: 00010293
RAX: ffffffff89e66932 RBX: 00000000000000ff RCX: ffff888022079e00
RDX: 0000000000000000 RSI: ffffffff8f6a3c10 RDI: 00000000000000ff
RBP: 0000000000000000 R08: 0000000000000001 R09: ffffffff89e66851
R10: 0000000000000003 R11: ffff888022079e00 R12: ffff88801f9f3780
R13: 1ffff110044d3802 R14: 0000000000000000 R15: dffffc0000000000
FS:  0000555579628380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001a00 CR3: 000000007740e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ip_make_skb+0x304/0x420 net/ipv4/ip_output.c:1569
 udp_sendmsg+0x1bef/0x2a60 net/ipv4/udp.c:1263
 udpv6_sendmsg+0x1383/0x3270 net/ipv6/udp.c:1399
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0xef/0x270 net/socket.c:745
 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2584
 ___sys_sendmsg net/socket.c:2638 [inline]
 __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2667
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f001e015369
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd03f53f78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007ffd03f54148 RCX: 00007f001e015369
RDX: 0000000000000004 RSI: 0000000020001a00 RDI: 0000000000000003
RBP: 00007f001e088610 R08: 00007ffd03f54148 R09: 00007ffd03f54148
R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffd03f54138 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (54):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/25 11:04 bpf-next 2c1713a8f1c9 a10a183e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/10 16:22 bpf-next f85af9d955ac 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/10 10:44 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/10 08:17 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/09 23:07 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/09 19:35 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/09 13:50 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/09 06:04 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/08 23:32 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/08 20:54 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/08 00:10 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/07 17:07 bpf-next f85af9d955ac 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/06 10:32 bpf-next 072088704433 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/05 11:01 bpf-next 61ce0ea7591f e1e2c66e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/05 07:26 bpf-next 61ce0ea7591f e1e2c66e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/05 01:37 bpf-next 61ce0ea7591f e1e2c66e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/03 17:16 bpf-next 96a27ee76f0e 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/03 08:18 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/03 07:48 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/03 05:57 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/03 05:23 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/03 03:43 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/03 03:17 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/02 17:50 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/02 17:43 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/02 10:53 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/02 10:37 net-next 6d9e9c36e1a6 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __ip_make_skb
2024/06/02 10:15 net-next 6d9e9c36e1a6 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __ip_make_skb
2024/06/02 08:20 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/01 22:37 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/01 18:40 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/01 15:08 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/01 14:29 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/01 02:40 bpf-next 3f8fde319524 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/05/31 15:40 net-next ccf23c916ca3 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __ip_make_skb
2024/05/29 18:43 bpf-next eb4e7726279a 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/05/29 04:51 net-next 93bda33046e7 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __ip_make_skb
2024/05/29 04:51 net-next 93bda33046e7 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __ip_make_skb
2024/05/29 04:12 net-next 93bda33046e7 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __ip_make_skb
2024/05/29 04:12 net-next 93bda33046e7 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __ip_make_skb
2024/05/29 02:49 bpf-next d9cbd8343b01 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/05/28 16:49 bpf-next d9cbd8343b01 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/05/28 13:21 bpf-next d9cbd8343b01 f550015e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/05/28 13:21 bpf-next d9cbd8343b01 f550015e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/05/28 10:37 bpf-next e245ef8a0b06 f550015e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/05/27 16:56 bpf-next e245ef8a0b06 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/05/27 14:25 bpf-next e245ef8a0b06 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/05/27 10:50 bpf-next e245ef8a0b06 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/05/26 00:51 bpf-next f980f13e4eb2 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/05/25 17:15 bpf-next 2c1713a8f1c9 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/05/25 12:46 bpf-next 2c1713a8f1c9 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/05/25 10:26 bpf-next 2c1713a8f1c9 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip_make_skb
2024/06/02 03:49 linux-next 0e1980c40b6e 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ip_make_skb
* Struck through repros no longer work on HEAD.