syzbot


WARNING in ipvlan_unregister_nf_hook

Status: fixed on 2022/09/20 07:46
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: f123cffdd8fe net: netlink: af_netlink: Prevent empty skb by adding a check on len.
First crash: 1059d, last: 423d

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.14 WARNING in ipvlan_unregister_nf_hook C error 271 354d 1056d 0/1 upstream: reported C repro on 2020/03/09 15:13
linux-4.19 WARNING in ipvlan_unregister_nf_hook C error 629 453d 1058d 0/1 upstream: reported C repro on 2020/03/07 09:17
Last patch testing requests:
Created Duration User Patch Repo Result
2022/09/16 13:29 16m retest repro net OK log
2022/09/16 13:29 16m retest repro net-next OK log
2022/09/16 10:29 16m retest repro net-next OK log
2022/09/16 10:29 16m retest repro net OK log
2022/09/16 07:29 15m retest repro net OK log
2022/09/16 04:29 16m retest repro net OK log
2022/09/16 01:29 16m retest repro net OK log
2022/09/15 22:29 15m retest repro net OK log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7419 at drivers/net/ipvlan/ipvlan_l3s.c:148 ipvlan_unregister_nf_hook+0x2b8/0x2f0 drivers/net/ipvlan/ipvlan_l3s.c:148
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 7419 Comm: syz-executor539 Not tainted 5.8.0-rc7-next-20200730-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:ipvlan_unregister_nf_hook+0x2b8/0x2f0 drivers/net/ipvlan/ipvlan_l3s.c:148
Code: fc 48 c7 c2 a0 cc c2 88 be 2d 00 00 00 48 c7 c7 e0 cd c2 88 c6 05 8f 83 f8 05 01 e8 a7 81 9e fc e9 26 fe ff ff e8 28 25 b8 fc <0f> 0b 5b 5d 41 5c 41 5d e9 1b 25 b8 fc 4c 89 e7 e8 c3 45 f8 fc e9
RSP: 0018:ffffc900077ef0f0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff84bc195d
RDX: ffff88809e172180 RSI: ffffffff84bc1a88 RDI: 0000000000000005
RBP: ffff8880a7e92040 R08: 0000000000000001 R09: ffff88809e172a48
R10: 0000000000000000 R11: 0000000000000001 R12: ffff8880a75ca780
R13: ffff888092a4f800 R14: 0000000000000000 R15: 0000000000000001
 ipvlan_l3s_unregister+0xac/0x150 drivers/net/ipvlan/ipvlan_l3s.c:221
 ipvlan_set_port_mode+0x41f/0x4b0 drivers/net/ipvlan/ipvlan_main.c:37
 ipvlan_link_new+0x697/0xc04 drivers/net/ipvlan/ipvlan_main.c:611
 __rtnl_newlink+0x1090/0x1750 net/core/rtnetlink.c:3338
 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3397
 rtnetlink_rcv_msg+0x44e/0xad0 net/core/rtnetlink.c:5460
 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:2359
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2413
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2446
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x449929
Code: e8 0c 0f 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 eb 07 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc3fdad1e8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000449929
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000005
RBP: 00007ffc3fdad220 R08: 00000000000000ff R09: 00000000000000ff
R10: 00000000000000ff R11: 0000000000000246 R12: 000000000008fd99
R13: 0000000000000000 R14: 0000000001860850 R15: 0000000000000001
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (4151):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-linux-next-kasan-gce-root 2020/07/31 12:26 linux-next 7b287a5c6ac5 8df85ed9 .config console log report syz C
ci-upstream-kasan-gce-selinux-root 2021/09/19 06:53 upstream d4d016caa4b8 70b76c1d .config console log report syz WARNING in ipvlan_unregister_nf_hook
ci-upstream-kasan-gce-root 2021/08/27 06:49 upstream 73f3af7b4611 b318694d .config console log report syz WARNING in ipvlan_unregister_nf_hook
ci-upstream-kasan-gce-selinux-root 2021/08/10 02:44 upstream 36a21d51725a 6972b106 .config console log report syz WARNING in ipvlan_unregister_nf_hook
ci-upstream-kasan-gce-root 2021/07/27 03:35 upstream ff1176468d36 fd511809 .config console log report syz WARNING in ipvlan_unregister_nf_hook
ci-upstream-kasan-gce-root 2021/06/19 11:17 upstream b1edae0d5f2e aba2b2fb .config console log report syz WARNING in ipvlan_unregister_nf_hook
ci-upstream-kasan-gce-selinux-root 2021/05/31 02:19 upstream b90e90f40b4f 325a8dab .config console log report syz WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/02/20 21:09 net-next 38b5133ad607 3e5ed8b4 .config console log report syz WARNING in ipvlan_unregister_nf_hook
ci-upstream-linux-next-kasan-gce-root 2021/10/12 17:07 linux-next d3134eb5de85 838e7e2c .config console log report syz WARNING in ipvlan_unregister_nf_hook
ci-upstream-linux-next-kasan-gce-root 2021/08/27 06:02 linux-next 88fac11862d3 b318694d .config console log report syz WARNING in ipvlan_unregister_nf_hook
ci-upstream-linux-next-kasan-gce-root 2021/05/27 15:45 linux-next a1f92694393a 858ea628 .config console log report syz WARNING in ipvlan_unregister_nf_hook
ci-upstream-kasan-gce-root 2020/08/20 19:19 upstream 7eac66d0456f ed282a3a .config console log report syz
ci-upstream-kasan-gce-root 2020/08/01 23:40 upstream 7dc6fd0f3b84 d895b3be .config console log report syz
ci-upstream-kasan-gce-selinux-root 2020/07/28 11:47 upstream 92ed30191993 cb93dc6a .config console log report syz
ci-upstream-net-this-kasan-gce 2020/08/18 05:05 net b3b2854dcf70 424dd8e7 .config console log report syz
ci-upstream-net-this-kasan-gce 2020/07/25 06:08 net 8e8135862ccb 554af388 .config console log report syz
ci-upstream-net-kasan-gce 2020/08/18 04:14 net-next 7fca4dee610d 424dd8e7 .config console log report syz
ci-upstream-linux-next-kasan-gce-root 2020/08/21 23:00 linux-next 494d311a82bb 6436ce4b .config console log report syz
ci-upstream-linux-next-kasan-gce-root 2020/08/04 08:46 linux-next 01830e6c042e 196277c4 .config console log report syz
ci-upstream-net-this-kasan-gce 2021/04/30 16:05 net bbd6f0a94813 77e2b668 .config console log report syz WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-this-kasan-gce 2021/04/17 23:34 net 88a5af943985 7e2b734b .config console log report syz WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-this-kasan-gce 2021/02/20 15:55 net 3af409ca278d 3e5ed8b4 .config console log report syz WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-this-kasan-gce 2021/01/21 18:40 net 1c45ba93d34c d4f4eca5 .config console log report syz WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/04/30 16:10 net-next 95aafe911db6 77e2b668 .config console log report syz WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/04/17 18:12 net-next e7ad33fa7bc5 7e2b734b .config console log report syz WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-this-kasan-gce 2020/12/27 02:10 net 1f45dc220667 821e0b09 .config console log report syz
ci-upstream-net-this-kasan-gce 2020/11/16 09:10 net 849920c70339 1bf9a662 .config console log report syz
ci-upstream-kasan-gce-root 2021/12/02 15:09 upstream 58e1100fdc59 61f86278 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-kasan-gce-root 2021/12/01 10:31 upstream 58e1100fdc59 5fa3eacc .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-kasan-gce-root 2021/12/01 09:10 upstream 58e1100fdc59 5fa3eacc .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-kasan-gce-root 2021/11/30 10:52 upstream d58071a8a76d 80270552 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-kasan-gce-root 2021/11/29 16:47 upstream d58071a8a76d d0830353 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-kasan-gce-root 2021/11/29 14:17 upstream d58071a8a76d 63eeac02 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-kasan-gce-selinux-root 2021/10/29 04:56 upstream f25a5481af12 2353a3ec .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-qemu-upstream 2021/10/15 23:10 upstream 8fe31e0995f0 0c5d9412 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-qemu-upstream-386 2021/11/02 15:15 upstream bfc484fe6abb 098b5d53 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-this-kasan-gce 2021/11/30 22:48 net 1a59c9c55585 80270552 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-this-kasan-gce 2021/11/30 15:23 net 1a59c9c55585 80270552 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-this-kasan-gce 2021/11/29 15:35 net f8e7dfd6fdab d0830353 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-this-kasan-gce 2021/11/29 04:48 net c5c17547b778 63eeac02 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-this-kasan-gce 2021/11/29 00:30 net c5c17547b778 63eeac02 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-this-kasan-gce 2021/11/28 21:30 net c5c17547b778 63eeac02 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-this-kasan-gce 2021/11/28 19:08 net c5c17547b778 63eeac02 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-this-kasan-gce 2021/11/28 18:07 net c5c17547b778 63eeac02 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-this-kasan-gce 2021/11/28 16:59 net c5c17547b778 63eeac02 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/12/02 23:36 net-next ce8299b6f76f 61f86278 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/12/02 22:18 net-next ce8299b6f76f 61f86278 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/12/02 16:42 net-next ce8299b6f76f 61f86278 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/12/02 10:58 net-next 10184da91666 61f86278 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/12/02 10:33 net-next 10184da91666 61f86278 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/12/02 08:58 net-next 10184da91666 61f86278 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/12/02 07:01 net-next 10184da91666 61f86278 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/12/02 01:21 net-next 10184da91666 61f86278 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/12/01 21:09 net-next 23ea630f86c7 5fa3eacc .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/12/01 18:49 net-next 23ea630f86c7 5fa3eacc .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/12/01 17:01 net-next 23ea630f86c7 5fa3eacc .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/12/01 01:23 net-next 196073f9c44b 80270552 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/12/01 00:14 net-next 72a2ff567fc3 80270552 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/11/30 21:19 net-next 72a2ff567fc3 80270552 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/11/30 19:43 net-next 72a2ff567fc3 80270552 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/11/30 12:07 net-next 72a2ff567fc3 80270552 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/11/30 03:30 net-next 2f7ed29f2c54 d0830353 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/11/30 02:30 net-next 2f7ed29f2c54 d0830353 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/11/30 00:35 net-next 2f7ed29f2c54 d0830353 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/11/29 22:42 net-next 2f7ed29f2c54 d0830353 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/11/29 18:12 net-next 2f7ed29f2c54 d0830353 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/11/29 12:46 net-next 2f7ed29f2c54 63eeac02 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/11/29 11:21 net-next d40ce48cb3a6 63eeac02 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/11/29 08:19 net-next d40ce48cb3a6 63eeac02 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/11/29 03:14 net-next d40ce48cb3a6 63eeac02 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/11/29 02:14 net-next d40ce48cb3a6 63eeac02 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/11/28 22:53 net-next d40ce48cb3a6 63eeac02 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/11/28 14:12 net-next d40ce48cb3a6 63eeac02 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-kasan-gce 2021/11/28 12:36 net-next d40ce48cb3a6 63eeac02 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-linux-next-kasan-gce-root 2021/11/02 00:33 linux-next bdcc9f6a5682 098b5d53 .config console log report info WARNING in ipvlan_unregister_nf_hook
ci-upstream-net-this-kasan-gce 2020/03/06 18:18 net 3614d05b5e6b c88c7b75 .config console log report
ci-upstream-linux-next-kasan-gce-root 2021/01/17 14:07 linux-next b3a3cbdec55b 813be542 .config console log report info
* Struck through repros no longer work on HEAD.