list_add corruption. next->prev should be prev (ffffffff8e7d0fa0), but was dead000000000122. (next=ffff88807d266000). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:29! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 29469 Comm: syz-executor.4 Not tainted 6.5.0-rc7-syzkaller-00163-g6f0edbb833ec #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:__list_add_valid+0xce/0xf0 lib/list_debug.c:27 Code: b0 58 8b e8 24 c8 7e 06 0f 0b 48 c7 c7 c0 b0 58 8b e8 16 c8 7e 06 0f 0b 48 c7 c7 20 b1 58 8b 4c 89 e6 4c 89 f1 e8 02 c8 7e 06 <0f> 0b 48 c7 c7 a0 b1 58 8b 4c 89 f6 4c 89 e1 e8 ee c7 7e 06 0f 0b RSP: 0018:ffffc9000433f580 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff88807d266008 RCX: 6ee51d08fd916a00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: 1ffff11003358200 R08: ffffffff816f0d3c R09: 1ffff92000867e64 R10: dffffc0000000000 R11: fffff52000867e65 R12: ffffffff8e7d0fa0 R13: dffffc0000000000 R14: ffff88807d266000 R15: ffff888019ac1000 FS: 00007f82f00376c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f51bef98000 CR3: 000000001438e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_add include/linux/list.h:69 [inline] list_add include/linux/list.h:88 [inline] nfc_llcp_register_device+0x6cf/0x800 net/nfc/llcp_core.c:1639 nfc_register_device+0x71/0x320 net/nfc/core.c:1124 nci_register_device+0x7c2/0x900 net/nfc/nci/core.c:1257 virtual_ncidev_open+0x13c/0x1b0 drivers/nfc/virtual_ncidev.c:148 misc_open+0x30b/0x380 drivers/char/misc.c:165 chrdev_open+0x551/0x630 fs/char_dev.c:414 do_dentry_open+0x829/0x1470 fs/open.c:914 do_open fs/namei.c:3636 [inline] path_openat+0x27bb/0x3180 fs/namei.c:3793 do_filp_open+0x234/0x490 fs/namei.c:3820 do_sys_openat2+0x13e/0x1d0 fs/open.c:1407 do_sys_open fs/open.c:1422 [inline] __do_sys_openat fs/open.c:1438 [inline] __se_sys_openat fs/open.c:1433 [inline] __x64_sys_openat+0x247/0x290 fs/open.c:1433 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f82ef27c959 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f82f00370c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f82ef39bf80 RCX: 00007f82ef27c959 RDX: 0000000000000002 RSI: 0000000020000080 RDI: ffffffffffffff9c RBP: 00007f82ef2d8c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f82ef39bf80 R15: 00007ffdf9a2ab68 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_add_valid+0xce/0xf0 lib/list_debug.c:27 Code: b0 58 8b e8 24 c8 7e 06 0f 0b 48 c7 c7 c0 b0 58 8b e8 16 c8 7e 06 0f 0b 48 c7 c7 20 b1 58 8b 4c 89 e6 4c 89 f1 e8 02 c8 7e 06 <0f> 0b 48 c7 c7 a0 b1 58 8b 4c 89 f6 4c 89 e1 e8 ee c7 7e 06 0f 0b RSP: 0018:ffffc9000433f580 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff88807d266008 RCX: 6ee51d08fd916a00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: 1ffff11003358200 R08: ffffffff816f0d3c R09: 1ffff92000867e64 R10: dffffc0000000000 R11: fffff52000867e65 R12: ffffffff8e7d0fa0 R13: dffffc0000000000 R14: ffff88807d266000 R15: ffff888019ac1000 FS: 00007f82f00376c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f94bb798000 CR3: 000000001438e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400