------------[ cut here ]------------ WARNING: CPU: 0 PID: 5997 at fs/crypto/keyring.c:237 fscrypt_destroy_keyring+0x164/0x240 fs/crypto/keyring.c:237 Modules linked in: CPU: 0 PID: 5997 Comm: syz-executor.3 Not tainted 6.3.0-rc1-syzkaller-gfe15c26ee26e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : fscrypt_destroy_keyring+0x164/0x240 fs/crypto/keyring.c:237 lr : fscrypt_destroy_keyring+0x164/0x240 fs/crypto/keyring.c:237 sp : ffff80001e747820 x29: ffff80001e747820 x28: 1fffe0001aa32c3a x27: 0000000000000000 x26: 0000000000000026 x25: 1fffe00019b69425 x24: dfff800000000000 x23: 0000000000000002 x22: ffff0000dec64800 x21: ffff0000ce7e5000 x20: ffff0000cdb4a000 x19: ffff0000cdb4a128 x18: ffff80001e747378 x17: ffff800015cdd000 x16: ffff800008313a3c x15: 0000000000000000 x14: 1ffff00002b9c0b2 x13: dfff800000000000 x12: 0000000000000001 x11: ff80800008bcd61c x10: 0000000000000000 x9 : ffff800008bcd61c x8 : ffff0000d34ed1c0 x7 : ffff800008b76ab4 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800008bcd558 x2 : 0000000000000000 x1 : 0000000000000002 x0 : 0000000000000001 Call trace: fscrypt_destroy_keyring+0x164/0x240 fs/crypto/keyring.c:237 generic_shutdown_super+0xac/0x328 fs/super.c:482 kill_block_super+0x70/0xdc fs/super.c:1398 deactivate_locked_super+0xac/0x124 fs/super.c:331 deactivate_super+0xf0/0x110 fs/super.c:362 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1177 __cleanup_mnt+0x20/0x30 fs/namespace.c:1184 task_work_run+0x240/0x2f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2180/0x3c90 arch/arm64/kernel/signal.c:1302 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 irq event stamp: 4920444 hardirqs last enabled at (4920443): [] __call_rcu_common kernel/rcu/tree.c:2658 [inline] hardirqs last enabled at (4920443): [] call_rcu+0x65c/0xb38 kernel/rcu/tree.c:2736 hardirqs last disabled at (4920444): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (4919860): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (4919858): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- Unable to handle kernel paging request at virtual address dfff800000000003 KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] Mem abort info: ESR = 0x0000000096000006 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x06: level 2 translation fault Data abort info: ISV = 0, ISS = 0x00000006 CM = 0, WnR = 0 [dfff800000000003] address between user and kernel address ranges Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 5997 Comm: syz-executor.3 Tainted: G W 6.3.0-rc1-syzkaller-gfe15c26ee26e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __lock_acquire+0x104/0x764c kernel/locking/lockdep.c:4926 lr : lock_acquire+0x2f0/0x8c8 kernel/locking/lockdep.c:5669 sp : ffff80001e746f00 x29: ffff80001e7471a0 x28: 1ffff00002b9c0b1 x27: ffff800008bcd13c x26: 0000000000000001 x25: ffff700003ce8e04 x24: 0000000000000000 x23: 0000000000000000 x22: 0000000000000000 x21: 0000000000000000 x20: 0000000000000000 x19: 0000000000000018 x18: ffff80001e747258 x17: ffff800015cdd000 x16: ffff80001246263c x15: ffff800008af201c x14: 1ffff00002b9c0b2 x13: ffff80001e747020 x12: dfff800000000000 x11: ffff800008318d80 x10: ffff800015ce058c x9 : 00000000000000f3 x8 : 0000000000000003 x7 : ffff800008bcd13c x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000018 Call trace: __lock_acquire+0x104/0x764c kernel/locking/lockdep.c:4926 lock_acquire+0x2f0/0x8c8 kernel/locking/lockdep.c:5669 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x54/0x6c kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:350 [inline] fscrypt_put_master_key_activeref+0x8c/0x408 fs/crypto/keyring.c:95 put_crypt_info+0x218/0x2d0 fs/crypto/keysetup.c:546 fscrypt_put_encryption_info+0x44/0x6c fs/crypto/keysetup.c:743 ext4_clear_inode+0x154/0x1a0 fs/ext4/super.c:1445 ext4_evict_inode+0x6ec/0x148c fs/ext4/inode.c:346 evict+0x260/0x68c fs/inode.c:665 iput_final fs/inode.c:1748 [inline] iput+0x988/0xa6c fs/inode.c:1774 hook_sb_delete+0x688/0xa10 security/landlock/fs.c:1025 security_sb_delete+0x50/0x94 security/security.c:950 generic_shutdown_super+0xb4/0x328 fs/super.c:483 kill_block_super+0x70/0xdc fs/super.c:1398 deactivate_locked_super+0xac/0x124 fs/super.c:331 deactivate_super+0xf0/0x110 fs/super.c:362 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1177 __cleanup_mnt+0x20/0x30 fs/namespace.c:1184 task_work_run+0x240/0x2f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2180/0x3c90 arch/arm64/kernel/signal.c:1302 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Code: d006d368 b9482108 34000208 d343fe68 (386c6908) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: d006d368 adrp x8, 0xda6e000 4: b9482108 ldr w8, [x8, #2080] 8: 34000208 cbz w8, 0x48 c: d343fe68 lsr x8, x19, #3 * 10: 386c6908 ldrb w8, [x8, x12] <-- trapping instruction