syzbot


WARNING in rtnl_dellink

Status: fixed on 2022/05/13 11:13
Reported-by: syzbot+b3b5c64f4880403edd36@syzkaller.appspotmail.com
Fix commit: f123cffdd8fe net: netlink: af_netlink: Prevent empty skb by adding a check on len.
First crash: 727d, last: 213d

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: fixed by (bisect log) :
commit f123cffdd8fe8ea6c7fded4b88516a42798797d0
Author: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Date: Mon Nov 29 17:53:27 2021 +0000

  net: netlink: af_netlink: Prevent empty skb by adding a check on len.

similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in rtnl_dellink C error 1 696d 726d 0/1 upstream: reported C repro on 2020/08/17 07:56
linux-4.14 WARNING in rtnl_dellink C error 1 696d 726d 0/1 upstream: reported C repro on 2020/08/17 04:45

Sample crash report:
bond1 (unregistering): Released all slaves
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7319 at net/core/dev.c:9304 rollback_registered_many+0xecd/0x1210 net/core/dev.c:9304
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 7319 Comm: syz-executor007 Not tainted 5.9.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x18f/0x20d lib/dump_stack.c:118
 panic+0x2e3/0x75c kernel/panic.c:231
 __warn.cold+0x20/0x4a kernel/panic.c:600
 report_bug+0x1bd/0x210 lib/bug.c:198
 handle_bug+0x38/0x90 arch/x86/kernel/traps.c:234
 exc_invalid_op+0x14/0x40 arch/x86/kernel/traps.c:254
 asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:536
RIP: 0010:rollback_registered_many+0xecd/0x1210 net/core/dev.c:9304
Code: 0a 1b 00 00 48 c7 c6 c0 ef fe 88 48 c7 c7 00 f0 fe 88 c6 05 68 fc 70 04 01 e8 a1 16 09 fb 0f 0b e9 13 fc ff ff e8 93 05 38 fb <0f> 0b e9 ea fb ff ff e8 87 05 38 fb 0f 0b e9 29 fc ff ff e8 9b 19
RSP: 0018:ffffc9000756f290 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 000000009df50501 RCX: ffffffff863c3566
RDX: ffff8880a105c280 RSI: ffffffff863c397d RDI: 0000000000000001
RBP: ffff8880a2f41f00 R08: 0000000000000000 R09: ffffffff8a7e5ce7
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: ffff888092abc000 R14: dffffc0000000000 R15: ffff8880a2f41f00
 unregister_netdevice_many.part.0+0x1a/0x2f0 net/core/dev.c:10426
 unregister_netdevice_many+0x36/0x50 net/core/dev.c:10425
 rtnl_delete_link net/core/rtnetlink.c:3055 [inline]
 rtnl_dellink+0x34a/0xa60 net/core/rtnetlink.c:3107
 rtnetlink_rcv_msg+0x44e/0xad0 net/core/rtnetlink.c:5563
 netlink_rcv_skb+0x15a/0x430 net/netlink/af_netlink.c:2470
 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1330
 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:671
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2353
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2407
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2440
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x44b0f9
Code: e8 3c 14 03 00 48 83 c4 18 c3 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 0f 83 cb 04 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fd3ad4d3d98 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000700038 RCX: 000000000044b0f9
RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000009
RBP: 0000000000700030 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000070003c
R13: 0000000000000000 R14: 0000000000000000 R15: 068500100000003c
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (94):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2020/08/22 03:39 upstream cd02217a5d81 6436ce4b .config log report syz C
ci-upstream-kasan-gce-root 2020/08/19 11:16 upstream 18445bf405cb e1c29030 .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/08/17 22:05 upstream 9123e3a74ec7 424dd8e7 .config log report syz C
ci-upstream-kasan-gce-smack-root 2020/08/17 07:47 upstream 2cc3c4b3c2e9 424dd8e7 .config log report syz C
ci-upstream-net-this-kasan-gce 2020/08/17 00:47 net 4ca0d9ac3fd8 424dd8e7 .config log report syz C
ci-upstream-net-kasan-gce 2020/08/17 11:38 net-next 7fca4dee610d 424dd8e7 .config log report syz C
ci-upstream-kasan-gce-root 2021/12/24 12:25 upstream 7a29b11da965 6caa12e4 .config log report info WARNING in rtnl_dellink
ci-upstream-kasan-gce-smack-root 2021/12/16 21:23 upstream fa36bbe6d43f 8dd6a5e3 .config log report info WARNING in rtnl_dellink
ci-qemu-upstream 2021/12/01 07:43 upstream 58e1100fdc59 5fa3eacc .config log report info WARNING in rtnl_dellink
ci-qemu-upstream 2021/12/01 00:02 upstream 58e1100fdc59 80270552 .config log report info WARNING in rtnl_dellink
ci-qemu-upstream 2021/11/27 01:16 upstream c5c17547b778 63eeac02 .config log report info WARNING in rtnl_dellink
ci-qemu-upstream 2021/11/24 00:03 upstream 5d9f4cf36721 545ab074 .config log report info WARNING in rtnl_dellink
ci-qemu-upstream 2021/11/15 01:55 upstream fa55b7dcdc43 83f5c9b5 .config log report info WARNING in rtnl_dellink
ci-upstream-kasan-gce-selinux-root 2021/10/21 00:37 upstream 8e37395c3a5d f111d03b .config log report info WARNING in rtnl_dellink
ci-upstream-net-this-kasan-gce 2021/12/25 00:07 net b45396afa417 6caa12e4 .config log report info WARNING in rtnl_dellink
ci-upstream-net-this-kasan-gce 2021/11/15 23:20 net 10a2308ffb8c 83f5c9b5 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2022/01/12 23:45 net-next fe8152b38d3a 44d1319a .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/16 09:13 net-next bd1d97d861e4 572bcb40 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/15 03:20 net-next a3c62a042237 f752fb53 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/14 13:11 net-next a3c62a042237 d018dd31 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/14 11:17 net-next a3c62a042237 5d14b1ea .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/14 03:50 net-next a3c62a042237 5d14b1ea .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/13 16:30 net-next 9b5bcb193a3b 49ca1f59 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/13 06:34 net-next 8c8b7aa7fb0c 49ca1f59 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/13 01:27 net-next 8c8b7aa7fb0c 49ca1f59 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/12 22:55 net-next 8c8b7aa7fb0c 49ca1f59 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/12 16:05 net-next 8c8b7aa7fb0c 49ca1f59 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/11 21:56 net-next 77ab714f0070 49ca1f59 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/11 17:33 net-next be3158290db8 49ca1f59 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/10 13:25 net-next 3150a73366b6 4d4ce9bc .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/08 22:07 net-next 150791442e7c a4a2a501 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/08 20:52 net-next 150791442e7c a4a2a501 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/08 14:33 net-next 150791442e7c a4a2a501 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/08 06:11 net-next 1c5526968e27 0230ba3e .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/07 08:31 net-next 4c375272fb0b 0230ba3e .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/07 01:31 net-next 4c375272fb0b 0230ba3e .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/06 19:39 net-next ce83278f313c 579a8754 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/06 08:53 net-next ce83278f313c a617004c .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/06 07:12 net-next ce83278f313c a617004c .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/05 18:57 net-next ce83278f313c a617004c .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/05 16:14 net-next ce83278f313c a617004c .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/04 23:03 net-next ce83278f313c a617004c .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/12/04 18:59 net-next ce83278f313c a617004c .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/11/18 20:18 net-next bb8cecf8ba12 31a30fc0 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/11/18 12:21 net-next 75082e7f4680 cafff8b6 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/11/17 21:43 net-next b9241f54138c cafff8b6 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/11/17 11:43 net-next b9241f54138c cafff8b6 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/11/17 09:50 net-next 62803fec52f8 cafff8b6 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/11/17 07:24 net-next 62803fec52f8 cafff8b6 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/11/16 01:36 net-next cb3ef7b00042 83f5c9b5 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/11/15 20:43 net-next cb3ef7b00042 83f5c9b5 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/11/15 00:38 net-next 1274a4eb318d 83f5c9b5 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/11/14 21:35 net-next 1274a4eb318d 83f5c9b5 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/11/14 11:21 net-next 66f4beaa6c1d 83f5c9b5 .config log report info WARNING in rtnl_dellink
ci-upstream-net-kasan-gce 2021/11/13 22:08 net-next 66f4beaa6c1d 83f5c9b5 .config log report info WARNING in rtnl_dellink
ci-upstream-linux-next-kasan-gce-root 2021/12/13 10:54 linux-next ea922272cbe5 49ca1f59 .config log report info WARNING in rtnl_dellink
ci-upstream-kasan-gce 2020/09/01 12:54 upstream b51594df17d0 d5a3ae1f .config log report
ci-upstream-net-this-kasan-gce 2020/08/16 22:53 net 4ca0d9ac3fd8 424dd8e7 .config log report
ci-upstream-net-kasan-gce 2021/01/15 22:16 net-next 1d9f03c0a15f 65a7a854 .config log report info