syzbot


BUG: MAX_LOCKDEP_ENTRIES too low!

Status: upstream: reported C repro on 2023/05/17 04:24
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+bade942b7519fb0b7a00@syzkaller.appspotmail.com
First crash: 286d, last: 19d
Fix commit to backport (bisect log) :
tree: upstream
commit 425b9c7f51c98443db71ad679893725483b21196
Author: Vasily Averin <vvs@openvz.org>
Date: Mon May 2 12:15:51 2022 +0000

  memcg: accounting for objects allocated for new netdevice

  
Fix bisection: the issue occurs on the latest tested release (bisect log)
Crash: BUG: MAX_LOCKDEP_ENTRIES too low! (log)
Repro: C syz .config
  
Bug presence (3)
Date Name Commit Repro Result
2023/09/11 linux-5.15.y (ToT) aff03380bda4 C [report] BUG: MAX_LOCKDEP_ENTRIES too low!
2023/06/12 upstream (ToT) 858fd168a95c C [report] BUG: MAX_LOCKDEP_ENTRIES too low!
2023/09/11 upstream (ToT) 0bb80ecc33a8 C Didn't crash
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 BUG: MAX_LOCKDEP_ENTRIES too low! origin:upstream C 2 31d 190d 0/3 upstream: reported C repro on 2023/08/21 09:06
upstream BUG: MAX_LOCKDEP_ENTRIES too low! C done 179076 1025d 1716d 20/26 fixed on 2021/11/10 00:50
upstream BUG: MAX_LOCKDEP_ENTRIES too low! (3) no-reminders net C unreliable 459 20h14m 468d 0/26 upstream: reported C repro on 2022/11/16 22:12
upstream BUG: MAX_LOCKDEP_ENTRIES too low! (2) kernel 9 650d 804d 0/26 auto-closed as invalid on 2022/08/16 22:49
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/09/11 13:55 7h11m fix candidate upstream job log (1)
2023/07/25 14:46 3h11m bisect fix linux-5.15.y job log (0) log

Sample crash report:
BUG: MAX_LOCKDEP_ENTRIES too low!
turning off the locking correctness validator.
CPU: 0 PID: 4868 Comm: syz-executor123 Not tainted 5.15.116-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 alloc_list_entry kernel/locking/lockdep.c:1358 [inline]
 add_lock_to_list+0x280/0x2d0 kernel/locking/lockdep.c:1379
 check_prev_add kernel/locking/lockdep.c:3123 [inline]
 check_prevs_add kernel/locking/lockdep.c:3172 [inline]
 validate_chain+0x2c1d/0x58b0 kernel/locking/lockdep.c:3787
 __lock_acquire+0x1295/0x1ff0 kernel/locking/lockdep.c:5011
 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5622
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162
 complete_all+0x14/0x70 kernel/sched/completion.c:63
 device_pm_sleep_init+0x80/0x130 drivers/base/power/main.c:105
 device_pm_init drivers/base/power/power.h:164 [inline]
 device_initialize+0x25c/0x4d0 drivers/base/core.c:2875
 netdev_register_kobject+0x2f/0x310 net/core/net-sysfs.c:1990
 register_netdevice+0x1067/0x1700 net/core/dev.c:10329
 bpq_new_device drivers/net/hamradio/bpqether.c:500 [inline]
 bpq_device_event+0x4d6/0x9d0 drivers/net/hamradio/bpqether.c:543
 notifier_call_chain kernel/notifier.c:83 [inline]
 raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:391
 call_netdevice_notifiers_info net/core/dev.c:1998 [inline]
 call_netdevice_notifiers_extack net/core/dev.c:2010 [inline]
 call_netdevice_notifiers net/core/dev.c:2024 [inline]
 dev_open+0x1c1/0x260 net/core/dev.c:1527
 team_port_add drivers/net/team/team.c:1210 [inline]
 team_add_slave+0x916/0x2760 drivers/net/team/team.c:1980
 do_set_master net/core/rtnetlink.c:2523 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3485 [inline]
 rtnl_newlink+0x1b68/0x2060 net/core/rtnetlink.c:3516
 rtnetlink_rcv_msg+0x993/0xee0 net/core/rtnetlink.c:5593
 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2504
 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
 netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1356
 netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1923
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2412
 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2466
 __sys_sendmsg net/socket.c:2495 [inline]
 __do_sys_sendmsg net/socket.c:2504 [inline]
 __se_sys_sendmsg+0x19a/0x260 net/socket.c:2502
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f74e188cac9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 14 00 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc4524b848 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000006a4ac RCX: 00007f74e188cac9
RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000005
RBP: 0000000000000000 R08: 00007ffc4524b9e8 R09: 00007ffc4524b9e8
R10: 00007ffc4524b9e8 R11: 0000000000000246 R12: 00007ffc4524b85c
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
 </TASK>
8021q: adding VLAN 0 to HW filter on device batadv968
team968: Port device batadv968 added

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/12 10:23 linux-5.15.y 7349e40704a0 49519f06 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: MAX_LOCKDEP_ENTRIES too low!
2023/08/04 08:01 linux-5.15.y 38d4ca22a528 74621247 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: MAX_LOCKDEP_ENTRIES too low!
2024/02/09 02:51 linux-5.15.y 6139f2a02fe0 7f07e9b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: MAX_LOCKDEP_ENTRIES too low!
2024/01/27 10:16 linux-5.15.y 6139f2a02fe0 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: MAX_LOCKDEP_ENTRIES too low!
2023/06/12 04:55 linux-5.15.y 7349e40704a0 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: MAX_LOCKDEP_ENTRIES too low!
2023/06/04 17:50 linux-5.15.y 0ab06468cbd1 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: MAX_LOCKDEP_ENTRIES too low!
2023/05/17 04:24 linux-5.15.y b0ece631f84a 11c89444 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: MAX_LOCKDEP_ENTRIES too low!
* Struck through repros no longer work on HEAD.