syzbot


WARNING in ip_rt_bug (2)

Status: upstream: reported C repro on 2022/10/12 18:26
Reported-by: syzbot+e738404dcd14b620923c@syzkaller.appspotmail.com
First crash: 972d, last: 45d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in sysfs_warn_dup (log)
Repro: C syz .config

Fix bisection: failed (bisect log)
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in ip_rt_bug C error 2 419d 967d 0/1 upstream: reported C repro on 2020/04/03 11:53
linux-4.14 WARNING in ip_rt_bug C inconclusive 1 895d 955d 0/1 upstream: reported C repro on 2020/04/15 03:43
upstream WARNING in ip_rt_bug 1 1700d 1692d 0/24 auto-closed as invalid on 2019/02/22 10:34

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3651 at net/ipv4/route.c:1246 kfree_skb include/linux/skbuff.h:1114 [inline]
WARNING: CPU: 0 PID: 3651 at net/ipv4/route.c:1246 ip_rt_bug+0x24/0x130 net/ipv4/route.c:1245
Modules linked in:
CPU: 0 PID: 3651 Comm: syz-executor319 Not tainted 5.17.0-rc2-syzkaller-00398-gd8ad2ce873ab #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:ip_rt_bug+0x24/0x130 net/ipv4/route.c:1246
Code: 01 0f 1f 44 00 00 55 48 89 d5 53 48 83 ec 08 e8 02 3c cd f9 66 90 e8 fb 3b cd f9 e8 f6 3b cd f9 31 f6 48 89 ef e8 3c d7 7d ff <0f> 0b 48 83 c4 08 31 c0 5b 5d c3 e8 dc 3b cd f9 48 8d 7d 10 48 b8
RSP: 0018:ffffc90000d87438 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffffff8d3169c0 RCX: 0000000000000000
RDX: ffff888026076080 RSI: ffffffff87aa7254 RDI: 0000000000000000
RBP: ffff88801ba531c0 R08: 0000000000000001 R09: ffffffff8ffc39df
R10: 0000000000000001 R11: 0000000000000001 R12: ffff8880204d9800
R13: ffff88801ba531c0 R14: 0000000000000000 R15: ffff88801ba53218
FS:  00005555566c0300(0000) GS:ffff88802ca00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002014f000 CR3: 0000000013a7f000 CR4: 0000000000150ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 dst_output include/net/dst.h:451 [inline]
 ip_local_out net/ipv4/ip_output.c:126 [inline]
 ip_send_skb net/ipv4/ip_output.c:1570 [inline]
 ip_push_pending_frames+0x125/0x2b0 net/ipv4/ip_output.c:1590
 icmp_push_reply+0x351/0x4a0 net/ipv4/icmp.c:393
 __icmp_send+0xb99/0x13d0 net/ipv4/icmp.c:769
 icmp_send include/net/icmp.h:43 [inline]
 ip_options_compile+0xad/0xf0 net/ipv4/ip_options.c:486
 ip_rcv_options net/ipv4/ip_input.c:279 [inline]
 ip_rcv_finish_core.constprop.0+0x4b6/0x1e90 net/ipv4/ip_input.c:371
 ip_rcv_finish+0x135/0x2f0 net/ipv4/ip_input.c:427
 NF_HOOK include/linux/netfilter.h:307 [inline]
 NF_HOOK include/linux/netfilter.h:301 [inline]
 ip_rcv+0xaa/0xd0 net/ipv4/ip_input.c:540
 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:5351
 __netif_receive_skb+0x24/0x1b0 net/core/dev.c:5465
 netif_receive_skb_internal net/core/dev.c:5551 [inline]
 netif_receive_skb+0x13e/0x8e0 net/core/dev.c:5610
 tun_rx_batched.isra.0+0x460/0x720 drivers/net/tun.c:1516
 tun_get_user+0x257e/0x3720 drivers/net/tun.c:1963
 tun_chr_write_iter+0xdd/0x1a0 drivers/net/tun.c:1993
 call_write_iter include/linux/fs.h:2074 [inline]
 new_sync_write+0x431/0x660 fs/read_write.c:503
 vfs_write+0x7cd/0xae0 fs/read_write.c:590
 ksys_write+0x12d/0x250 fs/read_write.c:643
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f7bf9811499
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd08006d98 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7bf9811499
RDX: 000000000000100c RSI: 0000000020000240 RDI: 0000000000000005
RBP: 00007f7bf97d5480 R08: 0000000000002c00 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7bf97d5510
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (25):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-qemu-upstream 2022/02/07 06:48 upstream d8ad2ce873ab a7dab638 .config log report syz C WARNING in ip_rt_bug
ci-upstream-kasan-gce-root 2020/04/22 10:22 upstream 189522da8b3a 2e44d63e .config log report syz C
ci-upstream-net-this-kasan-gce 2020/03/29 12:33 net a0ba26f37ea0 05736b29 .config log report syz C
ci-upstream-net-kasan-gce 2020/03/29 12:39 net-next 1a147b74c2fd 05736b29 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/04/24 19:57 linux-next ac935d227366 03d97a1b .config log report syz C
ci-qemu-upstream 2022/05/26 03:52 upstream d7227785e384 3037caa9 .config log report info WARNING in ip_rt_bug
ci-qemu-upstream 2022/05/25 13:58 upstream fdaf9a5840ac 3037caa9 .config log report info WARNING in ip_rt_bug
ci-qemu-upstream 2022/05/23 23:11 upstream 1e57930e9f40 e7f9308d .config log report info WARNING in ip_rt_bug
ci-upstream-kasan-gce-smack-root 2022/01/31 13:57 upstream 26291c54e111 6b7c57fe .config log report info WARNING in ip_rt_bug
ci-qemu-upstream 2021/12/18 04:46 upstream 9eaa88c7036e 44068e19 .config log report info WARNING in ip_rt_bug
ci-qemu-upstream 2021/12/08 01:39 upstream 2a987e65025e 0230ba3e .config log report info WARNING in ip_rt_bug
ci-qemu-upstream 2021/12/04 17:52 upstream bbef3c7a63d2 a617004c .config log report info WARNING in ip_rt_bug
ci-upstream-net-this-kasan-gce 2022/09/14 06:16 net 0727a9a5fbc1 b884348d .config log report info WARNING in ip_rt_bug
ci-upstream-net-this-kasan-gce 2022/08/21 03:25 net e82c649e851c 26a13b38 .config log report info WARNING in ip_rt_bug
ci-upstream-net-this-kasan-gce 2022/01/31 18:00 net 6449520391df 6b7c57fe .config log report info WARNING in ip_rt_bug
ci-upstream-net-this-kasan-gce 2021/06/22 18:31 net 0cd58e5c53ba aba2b2fb .config log report info WARNING in ip_rt_bug
ci-upstream-net-kasan-gce 2022/08/11 10:44 net-next 3c47fb2f4c4d a6201f11 .config log report info WARNING in ip_rt_bug
ci-upstream-linux-next-kasan-gce-root 2022/01/31 15:33 linux-next 887a333c44eb 6b7c57fe .config log report info WARNING in ip_rt_bug
ci-upstream-gce-arm64 2022/10/12 11:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 16a9c9e0 .config log report info WARNING in ip_rt_bug
ci-upstream-net-kasan-gce 2021/01/12 08:59 net-next beb401ec5006 2c1f2513 .config log report info
ci-upstream-net-kasan-gce 2020/09/03 06:20 net-next d3dfc362e073 abf9ba4f .config log report
ci-upstream-net-kasan-gce 2020/08/06 14:55 net-next c1055b76ad00 1f122f88 .config log report
ci-upstream-net-kasan-gce 2020/06/29 07:54 net-next b08866f42a87 a2cdad9d .config log report
ci-upstream-net-kasan-gce 2020/05/21 16:53 net-next de1b99ef2aa1 1f30020f .config log report
ci-upstream-net-kasan-gce 2020/05/02 20:50 net-next bf2320a60e68 58da4c35 .config log report
* Struck through repros no longer work on HEAD.