INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 0 PID: 11005 Comm: syz-executor.2 Not tainted 4.14.307-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 register_lock_class+0x389/0x1180 kernel/locking/lockdep.c:768 __lock_acquire+0x167/0x3f20 kernel/locking/lockdep.c:3378 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 flush_work+0xad/0x770 kernel/workqueue.c:2890 __cancel_work_timer+0x321/0x460 kernel/workqueue.c:2965 smc_close_active+0x7e2/0xbb0 net/smc/smc_close.c:207 smc_release+0x3e1/0x5d0 net/smc/af_smc.c:131 __sock_release+0xcd/0x2b0 net/socket.c:602 sock_close+0x15/0x20 net/socket.c:1139 __fput+0x25f/0x7a0 fs/file_table.c:210 task_work_run+0x11f/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f3b9589bfab RSP: 002b:00007ffe717e27b0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f3b9589bfab RDX: 00007f3b9545e0c0 RSI: ffffffffffffffff RDI: 0000000000000003 RBP: 00007f3b95a0b980 R08: 0000000000000000 R09: 00007f3b9545e000 R10: 00007f3b9545e0c8 R11: 0000000000000293 R12: 00000000000496fe R13: 00007ffe717e28b0 R14: 00007f3b95a09f80 R15: 0000000000000032 syz-executor.4 uses obsolete (PF_INET,SOCK_PACKET) kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 11513 Comm: syz-executor.0 Not tainted 4.14.307-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 task: ffff88804a3b0680 task.stack: ffff8880462c0000 RIP: 0010:__rb_erase_augmented include/linux/rbtree_augmented.h:167 [inline] RIP: 0010:rb_erase+0x29/0x1290 lib/rbtree.c:459 RSP: 0018:ffff8880462c7a68 EFLAGS: 00010292 RAX: dffffc0000000000 RBX: ffff88804993d630 RCX: ffffc90005bb2000 RDX: 0000000000000001 RSI: ffffffff8bfaffe0 RDI: 0000000000000008 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: ffff88804a3b0680 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff88804997b538 R15: ffffffff8bfaffe0 FS: 00007fa61e983700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055a6c7f70258 CR3: 000000009a782000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: integrity_inode_free+0x119/0x300 security/integrity/iint.c:146 security_inode_free+0x14/0x80 security/security.c:443 __destroy_inode+0x1e8/0x4d0 fs/inode.c:237 destroy_inode+0x49/0x110 fs/inode.c:264 iput_final fs/inode.c:1523 [inline] iput+0x458/0x7e0 fs/inode.c:1550 swap_inode_boot_loader fs/ext4/ioctl.c:197 [inline] ext4_ioctl+0x12f8/0x3820 fs/ext4/ioctl.c:924 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7fa6204110f9 RSP: 002b:00007fa61e983168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fa620530f80 RCX: 00007fa6204110f9 RDX: 0000000000000000 RSI: 0000000000006611 RDI: 0000000000000004 RBP: 00007fa62046cae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffe457260f R14: 00007fa61e983300 R15: 0000000000022000 Code: ff ff 48 b8 00 00 00 00 00 fc ff df 41 57 49 89 f7 41 56 41 55 41 54 49 89 fc 48 83 c7 08 48 89 fa 55 48 c1 ea 03 53 48 83 ec 18 <80> 3c 02 00 0f 85 f2 0c 00 00 49 8d 7c 24 10 4d 8b 74 24 08 48 RIP: __rb_erase_augmented include/linux/rbtree_augmented.h:167 [inline] RSP: ffff8880462c7a68 RIP: rb_erase+0x29/0x1290 lib/rbtree.c:459 RSP: ffff8880462c7a68 ---[ end trace 839096819250b55a ]--- ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 7: fc ff df a: 41 57 push %r15 c: 49 89 f7 mov %rsi,%r15 f: 41 56 push %r14 11: 41 55 push %r13 13: 41 54 push %r12 15: 49 89 fc mov %rdi,%r12 18: 48 83 c7 08 add $0x8,%rdi 1c: 48 89 fa mov %rdi,%rdx 1f: 55 push %rbp 20: 48 c1 ea 03 shr $0x3,%rdx 24: 53 push %rbx 25: 48 83 ec 18 sub $0x18,%rsp * 29: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2d: 0f 85 f2 0c 00 00 jne 0xd25 33: 49 8d 7c 24 10 lea 0x10(%r12),%rdi 38: 4d 8b 74 24 08 mov 0x8(%r12),%r14 3d: 48 rex.W