syzbot


WARNING in ipvlan_l3s_unregister

Status: upstream: reported syz repro on 2020/07/06 10:48
Reported-by: syzbot+bb3d7a24f705078b1286@syzkaller.appspotmail.com
First crash: 768d, last: 216d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in sysfs_warn_dup (log)
Repro: 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.


Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7217 at drivers/net/ipvlan/ipvlan_l3s.c:148 ipvlan_unregister_nf_hook drivers/net/ipvlan/ipvlan_l3s.c:148 [inline]
WARNING: CPU: 0 PID: 7217 at drivers/net/ipvlan/ipvlan_l3s.c:148 ipvlan_l3s_unregister+0x145/0x1d0 drivers/net/ipvlan/ipvlan_l3s.c:221
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 7217 Comm: syz-executor.0 Not tainted 5.8.0-rc7-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+0x1f0/0x31e lib/dump_stack.c:118
 panic+0x264/0x7a0 kernel/panic.c:231
 __warn+0x227/0x250 kernel/panic.c:600
 report_bug+0x1b1/0x2e0 lib/bug.c:198
 handle_bug+0x42/0x80 arch/x86/kernel/traps.c:235
 exc_invalid_op+0x16/0x40 arch/x86/kernel/traps.c:255
 asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:540
RIP: 0010:ipvlan_unregister_nf_hook drivers/net/ipvlan/ipvlan_l3s.c:148 [inline]
RIP: 0010:ipvlan_l3s_unregister+0x145/0x1d0 drivers/net/ipvlan/ipvlan_l3s.c:221
Code: 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 32 57 dc fc 49 c7 06 00 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 ab 47 9d fc <0f> 0b eb c8 e8 a2 47 9d fc c6 05 ab e2 b1 04 01 48 c7 c7 ec f3 09
RSP: 0018:ffffc9000228f308 EFLAGS: 00010293
RAX: ffffffff84d74a95 RBX: 1ffff1101526eb18 RCX: ffff888095ba4400
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff84d74a1e R09: fffffbfff131a7ee
R10: fffffbfff131a7ee R11: 0000000000000000 R12: dffffc0000000000
R13: ffff8880a93758c0 R14: ffff8880a2232000 R15: ffff888090f28040
 ipvlan_set_port_mode+0x33e/0x420 drivers/net/ipvlan/ipvlan_main.c:37
 ipvlan_link_new+0x733/0xab0 drivers/net/ipvlan/ipvlan_main.c:611
 __rtnl_newlink net/core/rtnetlink.c:3339 [inline]
 rtnl_newlink+0x143d/0x1c10 net/core/rtnetlink.c:3398
 rtnetlink_rcv_msg+0x889/0xd40 net/core/rtnetlink.c:5461
 netlink_rcv_skb+0x190/0x3a0 net/netlink/af_netlink.c:2469
 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline]
 netlink_unicast+0x786/0x940 net/netlink/af_netlink.c:1329
 netlink_sendmsg+0xa57/0xd70 net/netlink/af_netlink.c:1918
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg net/socket.c:672 [inline]
 ____sys_sendmsg+0x519/0x800 net/socket.c:2352
 ___sys_sendmsg net/socket.c:2406 [inline]
 __sys_sendmsg+0x2b1/0x360 net/socket.c:2439
 do_syscall_64+0x73/0xe0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45c369
Code: 8d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 5b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f8ba9a3fc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000002b740 RCX: 000000000045c369
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000004
RBP: 000000000078bf40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078bf0c
R13: 00007ffc8b295b4f R14: 00007f8ba9a409c0 R15: 000000000078bf0c
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (441):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2020/07/29 20:09 upstream 6ba1b005ffc3 19a8de55 .config log report syz
ci-upstream-kasan-gce-smack-root 2020/07/26 07:10 upstream 23ee3e4e5bd2 1f7cc1ca .config log report syz
ci-upstream-kasan-gce-smack-root 2021/12/01 22:04 upstream 58e1100fdc59 61f86278 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/30 22:05 upstream f080815fdb3e 80270552 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/30 21:00 upstream f080815fdb3e 80270552 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/30 12:43 upstream d58071a8a76d 80270552 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/30 11:01 upstream d58071a8a76d 80270552 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/30 05:21 upstream d58071a8a76d d0830353 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/29 15:57 upstream d58071a8a76d d0830353 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/29 00:06 upstream d06c942efea4 63eeac02 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/28 12:06 upstream 3498e7f2bb41 63eeac02 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/27 21:58 upstream 741392771338 63eeac02 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/27 00:15 upstream c5c17547b778 63eeac02 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/26 22:47 upstream c5c17547b778 63eeac02 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/26 11:37 upstream a4849f6000e2 63eeac02 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/26 07:00 upstream b501b85957de 63eeac02 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/25 20:27 upstream b501b85957de 63eeac02 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/25 01:01 upstream 5f53fa508db0 545ab074 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/24 23:31 upstream 5f53fa508db0 545ab074 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/24 00:10 upstream 5d9f4cf36721 545ab074 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/23 20:10 upstream 136057256686 545ab074 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/23 04:08 upstream 136057256686 545ab074 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/22 14:50 upstream 136057256686 545ab074 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/21 22:19 upstream 40c93d7fff6f 4eb20a4e .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/20 15:30 upstream a90af8f15bdc 4eb20a4e .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/20 13:50 upstream a90af8f15bdc 4eb20a4e .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/19 17:04 upstream 4c388a8e740d 3a9d0024 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/19 13:11 upstream 4c388a8e740d 31a30fc0 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/18 14:52 upstream 42eb8fdac2fc 31a30fc0 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/18 09:18 upstream 42eb8fdac2fc cafff8b6 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/17 20:33 upstream ee1703cda8dc cafff8b6 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/17 01:24 upstream 8ab774587903 cafff8b6 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/16 23:08 upstream 8ab774587903 cafff8b6 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/16 19:48 upstream 8ab774587903 600426bd .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/15 03:28 upstream fa55b7dcdc43 83f5c9b5 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/14 15:41 upstream c8c109546a19 83f5c9b5 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/14 13:19 upstream c8c109546a19 83f5c9b5 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/14 01:40 upstream ccfff0a2bd2a 83f5c9b5 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/13 10:17 upstream 66f4beaa6c1d 83f5c9b5 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/12 22:07 upstream 7246f4dcaccc 83f5c9b5 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/12 18:02 upstream 5833291ab6de 83f5c9b5 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/12 16:53 upstream 5833291ab6de 83f5c9b5 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/12 01:49 upstream 5833291ab6de 75b04091 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2021/11/11 09:48 upstream debe436e77c7 75b04091 .config log report info WARNING in ipvlan_l3s_unregister
ci-upstream-kasan-gce-smack-root 2020/12/16 04:56 upstream d635a69dd498 f213e07e .config log report info
ci-upstream-kasan-gce-smack-root 2020/07/03 23:24 upstream 7cc2a8ea1048 51095195 .config log report
ci-upstream-kasan-gce-smack-root 2020/05/29 04:26 upstream 75caf310d16c d19ed305 .config log report