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: 370d, last: 37d
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 9d23h 274d 0/3 upstream: reported C repro on 2023/08/21 09:06
upstream BUG: MAX_LOCKDEP_ENTRIES too low! C done 179076 1109d 1800d 20/26 fixed on 2021/11/10 00:50
upstream BUG: MAX_LOCKDEP_ENTRIES too low! (3) no-reminders net C unreliable 469 8d22h 552d 0/26 upstream: reported C repro on 2022/11/16 22:12
upstream BUG: MAX_LOCKDEP_ENTRIES too low! (2) kernel 9 734d 888d 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: 1 PID: 8481 Comm: syz-executor184 Not tainted 5.15.155-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2d0 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+0x2c26/0x5930 kernel/locking/lockdep.c:3788
 __lock_acquire+0x1295/0x1ff0 kernel/locking/lockdep.c:5012
 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
 __mutex_lock_common+0x1da/0x25a0 kernel/locking/mutex.c:596
 __mutex_lock kernel/locking/mutex.c:729 [inline]
 mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743
 team_nl_team_get drivers/net/team/team.c:2337 [inline]
 team_nl_cmd_options_set+0x252/0x1240 drivers/net/team/team.c:2560
 genl_family_rcv_msg_doit net/netlink/genetlink.c:731 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:775 [inline]
 genl_rcv_msg+0xfbd/0x14a0 net/netlink/genetlink.c:792
 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:803
 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:1924
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2431
 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2485
 __sys_sendmsg net/socket.c:2514 [inline]
 __do_sys_sendmsg net/socket.c:2523 [inline]
 __se_sys_sendmsg+0x19a/0x260 net/socket.c:2521
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fa32c8d6cd9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff9710cb88 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa32c8d6cd9
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000006
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
team3697: Mode changed to "loadbalance"

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/14 11:36 linux-5.15.y fa3df276cd36 c8349e48 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: MAX_LOCKDEP_ENTRIES too low!
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.