syzbot


WARNING in nla_get_range_unsigned (2)

Status: fixed on 2023/06/08 14:41
Subsystems: net
[Documentation on labels]
Fix commit: b20b8aec6ffc devlink: Fix netdev notifier chain corruption
First crash: 462d, last: 426d
Cause bisection: introduced by (bisect log) :
commit 565b4824c39fa335cba2028a09d7beb7112f3c9a
Author: Jiri Pirko <jiri@nvidia.com>
Date: Mon Feb 6 09:41:51 2023 +0000

  devlink: change port event netdev notifier from per-net to global

Crash: unregister_netdevice: waiting for DEV to become free (log)
Repro: C syz .config
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in nla_get_range_unsigned net C done 63 1360d 1361d 15/26 fixed on 2020/11/16 12:12

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5075 at lib/nlattr.c:118 nla_get_range_unsigned+0x199/0x560 lib/nlattr.c:118
Modules linked in:
CPU: 1 PID: 5075 Comm: syz-executor380 Not tainted 6.2.0-rc7-syzkaller-01963-g84cb1b53cdba #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
RIP: 0010:nla_get_range_unsigned+0x199/0x560 lib/nlattr.c:118
Code: 00 00 a8 90 0f 85 41 02 00 00 a9 08 00 08 00 75 20 e8 2b bc 47 fd 0f 0b 5b 41 5c 41 5d 41 5e 5d e9 1c bc 47 fd e8 17 bc 47 fd <0f> 0b e9 50 ff ff ff e8 0b bc 47 fd 4d 8d 74 24 08 48 b8 00 00 00
RSP: 0018:ffffc90003e0f3b0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffffff8b7cfde0 RCX: 0000000000000000
RDX: ffff88807c480000 RSI: ffffffff84394579 RDI: 0000000000000003
RBP: ffffc90003e0f3d0 R08: 0000000000000003 R09: 0000000000000000
R10: 000000000000ffff R11: 0000000000000000 R12: ffffc90003e0f488
R13: ffffffff8b7cfde1 R14: 000000000000ffff R15: ffff8880224f551c
FS:  00005555568f9300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fab55bf6260 CR3: 0000000028db6000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 nla_validate_range_unsigned lib/nlattr.c:202 [inline]
 nla_validate_int_range lib/nlattr.c:327 [inline]
 validate_nla lib/nlattr.c:547 [inline]
 __nla_validate_parse+0x1691/0x2550 lib/nlattr.c:603
 __nla_parse+0x41/0x50 lib/nlattr.c:700
 __nlmsg_parse include/net/netlink.h:749 [inline]
 genl_family_rcv_msg_attrs_parse.constprop.0+0x1ab/0x290 net/netlink/genetlink.c:785
 genl_family_rcv_msg_doit.isra.0+0x9f/0x2d0 net/netlink/genetlink.c:946
 genl_family_rcv_msg net/netlink/genetlink.c:1048 [inline]
 genl_rcv_msg+0x4ff/0x7e0 net/netlink/genetlink.c:1065
 netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2574
 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1076
 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
 netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365
 netlink_sendmsg+0x91b/0xe10 net/netlink/af_netlink.c:1942
 sock_sendmsg_nosec net/socket.c:722 [inline]
 sock_sendmsg+0xde/0x190 net/socket.c:745
 ____sys_sendmsg+0x71c/0x900 net/socket.c:2501
 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2555
 __sys_sendmsg+0xf7/0x1c0 net/socket.c:2584
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f2db2914b59
Code: 28 c3 e8 5a 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:00007ffc9bd7fcd8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f2db2914b59
RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000003
RBP: 00007f2db28d8520 R08: 0000000000000008 R09: 0000000000000000
R10: 0000000000000142 R11: 0000000000000246 R12: 00007f2db28d85b0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (433):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/17 05:10 net-next-old 84cb1b53cdba 851bc19a .config strace log report syz C ci-upstream-net-kasan-gce WARNING in nla_get_range_unsigned
2023/03/18 09:08 upstream 8d3c682a5e3d 7939252e .config console log report info ci-upstream-kasan-gce WARNING in nla_get_range_unsigned
2023/03/18 02:53 upstream 8d3c682a5e3d 7939252e .config console log report info ci-upstream-kasan-gce WARNING in nla_get_range_unsigned
2023/03/17 19:13 upstream 38e04b3e4240 18b58603 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in nla_get_range_unsigned
2023/03/17 15:04 upstream 38e04b3e4240 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in nla_get_range_unsigned
2023/03/17 14:01 upstream 38e04b3e4240 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in nla_get_range_unsigned
2023/03/03 06:36 upstream a9a01e1238cf f8902b57 .config console log report info ci-qemu-upstream WARNING in nla_get_range_unsigned
2023/03/16 19:28 upstream 9c1bec9c0b08 18b58603 .config console log report info ci-upstream-kasan-gce-386 WARNING in nla_get_range_unsigned
2023/03/16 18:19 upstream 9c1bec9c0b08 18b58603 .config console log report info ci-qemu-upstream-386 WARNING in nla_get_range_unsigned
2023/03/08 18:44 net cdd28833100c d2b00170 .config console log report info ci-upstream-net-this-kasan-gce WARNING in nla_get_range_unsigned
2023/03/09 17:23 net-next ed69e0667db5 f08b59ac .config console log report info ci-upstream-net-kasan-gce WARNING in nla_get_range_unsigned
2023/03/07 03:03 linux-next dc837c1a5137 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in nla_get_range_unsigned
2023/03/24 16:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 9700afae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/24 06:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/23 21:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/23 19:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/23 07:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/23 06:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/23 05:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/23 00:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/22 18:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e d846e076 .config console log report info ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/22 14:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e d846e076 .config console log report info ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/22 11:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e d846e076 .config console log report info ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/22 07:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 8b4eb097 .config console log report info ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/22 03:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 8b4eb097 .config console log report info ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/22 00:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 8b4eb097 .config console log report info ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/21 21:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 8b4eb097 .config console log report info ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/21 17:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 03fb9538 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/21 14:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 03fb9538 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/21 11:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 03fb9538 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/21 10:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 03fb9538 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/21 04:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/21 03:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/20 18:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/20 16:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/20 14:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/20 12:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/20 10:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/20 03:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/19 22:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/19 19:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/19 19:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/19 14:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/19 13:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/19 10:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/18 23:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/18 22:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/18 20:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/18 19:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/18 17:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/18 15:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/18 07:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/18 05:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
2023/03/18 04:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in nla_get_range_unsigned
* Struck through repros no longer work on HEAD.