BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 1 PID: 8980 Comm: syz-executor.3 Not tainted 5.8.0-rc5-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 add_chain_cache kernel/locking/lockdep.c:3063 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3162 [inline] validate_chain kernel/locking/lockdep.c:3183 [inline] __lock_acquire.cold+0x11/0x3f8 kernel/locking/lockdep.c:4380 lock_acquire+0x1f1/0xad0 kernel/locking/lockdep.c:4959 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x8c/0xc0 kernel/locking/spinlock.c:159 swake_up_one+0x16/0x1b0 kernel/sched/swait.c:52 rcu_report_exp_cpu_mult+0x17a/0x2e0 kernel/rcu/tree_exp.h:250 rcu_report_exp_rdp kernel/rcu/tree_exp.h:259 [inline] rcu_preempt_deferred_qs_irqrestore+0x59e/0xb00 kernel/rcu/tree_plugin.h:468 rcu_note_context_switch+0x1eb/0x1600 kernel/rcu/tree_plugin.h:319 __schedule+0x225/0x1eb0 kernel/sched/core.c:4114 preempt_schedule_common+0x45/0xc0 kernel/sched/core.c:4334 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:40 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] _raw_spin_unlock_irqrestore+0xb2/0xe0 kernel/locking/spinlock.c:191 spin_unlock_irqrestore include/linux/spinlock.h:408 [inline] klist_next+0x288/0x510 lib/klist.c:401 class_dev_iter_next drivers/base/class.c:311 [inline] class_find_device+0x174/0x2a0 drivers/base/class.c:415 class_find_device_by_devt include/linux/device/class.h:167 [inline] tty_get_device drivers/tty/tty_io.c:2964 [inline] alloc_tty_struct+0x6d9/0x920 drivers/tty/tty_io.c:3011 tty_init_dev.part.0+0x20/0x610 drivers/tty/tty_io.c:1334 tty_init_dev+0x5b/0x80 drivers/tty/tty_io.c:1331 ptmx_open drivers/tty/pty.c:845 [inline] ptmx_open+0x112/0x360 drivers/tty/pty.c:811 chrdev_open+0x266/0x770 fs/char_dev.c:414 do_dentry_open+0x501/0x1290 fs/open.c:828 do_open fs/namei.c:3243 [inline] path_openat+0x1bb9/0x2750 fs/namei.c:3360 do_filp_open+0x17e/0x3c0 fs/namei.c:3387 do_sys_openat2+0x16f/0x3b0 fs/open.c:1179 do_sys_open fs/open.c:1195 [inline] __do_sys_openat fs/open.c:1209 [inline] __se_sys_openat fs/open.c:1204 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1204 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45c1d9 Code: Bad RIP value. RSP: 002b:00007f1e2707bc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000021140 RCX: 000000000045c1d9 RDX: 0000000000000000 RSI: 0000000020000140 RDI: ffffffffffffff9c RBP: 000000000078bf48 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078bf0c R13: 00007fff2a24383f R14: 00007f1e2707c9c0 R15: 000000000078bf0c