syzbot


WARNING in __ip6_make_skb (2)

Status: upstream: reported C repro on 2024/05/27 10:59
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+d7b227731ec589e7f4f0@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: 29d, last: 12d
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 __ip6_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 __ip6_make_skb (2) 0 (1) 2024/05/27 10:59
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __ip6_make_skb net C 1 2170d 2169d 8/27 fixed on 2018/08/08 18:10

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5089 at include/linux/skbuff.h:4226 skb_set_delivery_type_by_clockid include/linux/skbuff.h:4226 [inline]
WARNING: CPU: 1 PID: 5089 at include/linux/skbuff.h:4226 __ip6_make_skb+0x14f8/0x2470 net/ipv6/ip6_output.c:1930
Modules linked in:
CPU: 1 PID: 5089 Comm: syz-executor227 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:__ip6_make_skb+0x14f8/0x2470 net/ipv6/ip6_output.c:1930
Code: c0 0f 85 94 0a 00 00 41 8b 5d 00 4d 85 f6 74 0d e8 dd 50 6e f7 83 e3 fc 44 09 e3 eb 79 e8 d0 50 6e f7 eb 6f e8 c9 50 6e f7 90 <0f> 0b 90 48 8b 5c 24 08 48 8d 7b 20 48 89 f8 48 c1 e8 03 42 80 3c
RSP: 0018:ffffc9000345f400 EFLAGS: 00010293
RAX: ffffffff8a27e107 RBX: 00000000000000ff RCX: ffff888025a99e00
RDX: 0000000000000000 RSI: ffffffff8f6e8f20 RDI: 00000000000000ff
RBP: ffffc9000345f610 R08: 0000000000000001 R09: ffffffff8a27e049
R10: 0000000000000003 R11: ffff888025a99e00 R12: ffff88807ab76730
R13: dffffc0000000000 R14: 0000000000000000 R15: ffffc9000345f6a0
FS:  000055556e2a2380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000045ad50 CR3: 000000007e9e2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ip6_make_skb+0x48b/0x530 net/ipv6/ip6_output.c:2046
 udpv6_sendmsg+0x237f/0x3270 net/ipv6/udp.c:1584
 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:0x7fe6cfe18ab9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe2f15e328 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fe6cfe18ab9
RDX: 0000000000000000 RSI: 0000000020000400 RDI: 0000000000000003
RBP: 00007fe6cfe8b5f0 R08: 0000000000000006 R09: 0000000000000006
R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000000001
R13: 431bde82d7b634db R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (104):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/25 02:43 bpf-next 2c1713a8f1c9 a10a183e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/11 02:14 bpf-next f85af9d955ac 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/10 16:21 bpf-next f85af9d955ac 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/10 08:33 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/10 07:08 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/10 05:36 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/10 00:55 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/09 23:42 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/09 22:19 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/09 19:15 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/09 13:12 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/08 20:48 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/08 12:12 bpf-next f85af9d955ac 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/07 15:57 bpf-next f85af9d955ac 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/07 06:31 bpf-next f85af9d955ac 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/07 04:02 bpf-next f85af9d955ac 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/06 21:11 bpf-next 7015843afcaf 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/06 15:06 bpf-next 7015843afcaf 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/06 07:35 bpf-next 072088704433 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/06 06:22 bpf-next 072088704433 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/06 04:34 bpf-next 072088704433 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/05 22:22 bpf-next 072088704433 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/05 11:29 bpf-next 61ce0ea7591f e1e2c66e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/05 08:06 bpf-next 61ce0ea7591f e1e2c66e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/05 04:57 bpf-next 61ce0ea7591f e1e2c66e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/04 23:48 bpf-next 61ce0ea7591f e1e2c66e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/04 21:06 bpf-next 49df0019f367 a1feae05 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/04 13:16 bpf-next 49df0019f367 a1feae05 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/04 06:25 bpf-next 49df0019f367 a1feae05 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/03 20:17 bpf-next 96a27ee76f0e 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/03 17:26 bpf-next 96a27ee76f0e 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/03 11:54 bpf-next 531876c80004 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/03 09:04 bpf-next 531876c80004 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/03 07:37 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/03 05:09 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/03 01:48 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/02 20:15 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/02 18:50 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/02 18:16 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/02 16:37 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/02 11:32 net-next 6d9e9c36e1a6 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __ip6_make_skb
2024/06/02 10:12 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/02 08:26 net-next 6d9e9c36e1a6 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __ip6_make_skb
2024/06/02 06:20 net-next 6d9e9c36e1a6 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __ip6_make_skb
2024/06/02 04:39 net-next 6d9e9c36e1a6 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __ip6_make_skb
2024/06/02 03:10 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in __ip6_make_skb
2024/06/02 00:26 net-next 6d9e9c36e1a6 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __ip6_make_skb
2024/05/29 07:52 linux-next 9d99040b1bc8 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __ip6_make_skb
* Struck through repros no longer work on HEAD.