BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 1 PID: 4355 Comm: kworker/1:7 Not tainted 6.1.118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: events free_ioctx Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 lookup_chain_cache_add kernel/locking/lockdep.c:3772 [inline] validate_chain kernel/locking/lockdep.c:3793 [inline] __lock_acquire+0x1b88/0x7680 kernel/locking/lockdep.c:5049 lock_acquire+0x26c/0x7cc kernel/locking/lockdep.c:5662 _raw_spin_lock_nested+0x5c/0x78 kernel/locking/spinlock.c:378 raw_spin_rq_lock_nested kernel/sched/core.c:537 [inline] raw_spin_rq_lock kernel/sched/sched.h:1355 [inline] rq_lock kernel/sched/sched.h:1645 [inline] __schedule+0x2c4/0x1d44 kernel/sched/core.c:6474 preempt_schedule_irq+0x8c/0x1b8 kernel/sched/core.c:6870 arm64_preempt_schedule_irq arch/arm64/kernel/entry-common.c:265 [inline] __el1_irq arch/arm64/kernel/entry-common.c:474 [inline] el1_interrupt+0x4c/0x68 arch/arm64/kernel/entry-common.c:486 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:581 arch_atomic_sub_return arch/arm64/include/asm/atomic.h:53 [inline] arch_atomic_dec_return include/linux/atomic/atomic-arch-fallback.h:611 [inline] arch_atomic_dec_and_test include/linux/atomic/atomic-arch-fallback.h:1189 [inline] atomic_dec_and_test include/linux/atomic/atomic-instrumented.h:576 [inline] page_ref_dec_and_test include/linux/page_ref.h:210 [inline] put_page_testzero include/linux/mm.h:770 [inline] folio_put_testzero include/linux/mm.h:775 [inline] folio_put include/linux/mm.h:1170 [inline] folio_contains+0x0/0x268 mm/filemap.c:1955 truncate_inode_pages_range+0x178/0xf10 mm/truncate.c:363 truncate_inode_pages mm/truncate.c:451 [inline] truncate_pagecache mm/truncate.c:751 [inline] truncate_setsize+0xd8/0x104 mm/truncate.c:776 put_aio_ring_file fs/aio.c:315 [inline] aio_free_ring+0x7c/0x4e8 fs/aio.c:335 free_ioctx+0x2c/0xac fs/aio.c:630 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292 worker_thread+0x8e4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864