Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 UID: 0 PID: 5334 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:list_empty include/linux/list.h:381 [inline] RIP: 0010:rwsem_try_write_lock kernel/locking/rwsem.c:665 [inline] RIP: 0010:rwsem_down_write_slowpath+0x6de/0x1080 kernel/locking/rwsem.c:1189 Code: 0f 94 c0 48 f7 c3 01 ff ff ff 0f 85 dd 00 00 00 41 0f b6 4d 28 80 f1 01 08 c1 0f 84 cd 00 00 00 48 b8 00 00 00 00 00 fc ff df <41> 80 3c 06 00 74 08 4c 89 ef e8 23 b5 7b f6 81 e3 fa 00 00 00 48 RSP: 0018:ffffc90004a87800 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8bb712a1 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8880550f9a78 RBP: ffffc90004a879f0 R08: ffff8880550f9a7f R09: 1ffff1100aa1f34f R10: dffffc0000000000 R11: ffffed100aa1f350 R12: 0000000000000005 R13: 0000000000000000 R14: 0000000000000000 R15: ffff8880550f9a78 FS: 00007fae68da86c0(0000) GS:ffff88808c83a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fae68da7fe8 CR3: 00000000121b2000 CR4: 0000000000352ef0 Call Trace: __down_write_common kernel/locking/rwsem.c:1347 [inline] __down_write kernel/locking/rwsem.c:1356 [inline] down_write+0x1bc/0x200 kernel/locking/rwsem.c:1626 inode_lock include/linux/fs.h:1029 [inline] vfs_setxattr+0x13e/0x360 fs/xattr.c:338 do_setxattr fs/xattr.c:654 [inline] filename_setxattr+0x296/0x630 fs/xattr.c:682 path_setxattrat+0x3eb/0x440 fs/xattr.c:726 __do_sys_setxattr fs/xattr.c:760 [inline] __se_sys_setxattr fs/xattr.c:756 [inline] __x64_sys_setxattr+0xbc/0xe0 fs/xattr.c:756 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fae67f9c819 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fae68da7fe8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc RAX: ffffffffffffffda RBX: 00007fae68216180 RCX: 00007fae67f9c819 RDX: 0000200000000400 RSI: 0000200000000380 RDI: 0000200000000340 RBP: 00007fae68032c91 R08: 0000000000000002 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fae68216218 R14: 00007fae68216180 R15: 00007ffd34efc988 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:list_empty include/linux/list.h:381 [inline] RIP: 0010:rwsem_try_write_lock kernel/locking/rwsem.c:665 [inline] RIP: 0010:rwsem_down_write_slowpath+0x6de/0x1080 kernel/locking/rwsem.c:1189 Code: 0f 94 c0 48 f7 c3 01 ff ff ff 0f 85 dd 00 00 00 41 0f b6 4d 28 80 f1 01 08 c1 0f 84 cd 00 00 00 48 b8 00 00 00 00 00 fc ff df <41> 80 3c 06 00 74 08 4c 89 ef e8 23 b5 7b f6 81 e3 fa 00 00 00 48 RSP: 0018:ffffc90004a87800 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8bb712a1 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8880550f9a78 RBP: ffffc90004a879f0 R08: ffff8880550f9a7f R09: 1ffff1100aa1f34f R10: dffffc0000000000 R11: ffffed100aa1f350 R12: 0000000000000005 R13: 0000000000000000 R14: 0000000000000000 R15: ffff8880550f9a78 FS: 00007fae68da86c0(0000) GS:ffff88808c83a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fae68da7fe8 CR3: 00000000121b2000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 0f 94 c0 sete %al 3: 48 f7 c3 01 ff ff ff test $0xffffffffffffff01,%rbx a: 0f 85 dd 00 00 00 jne 0xed 10: 41 0f b6 4d 28 movzbl 0x28(%r13),%ecx 15: 80 f1 01 xor $0x1,%cl 18: 08 c1 or %al,%cl 1a: 0f 84 cd 00 00 00 je 0xed 20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 27: fc ff df * 2a: 41 80 3c 06 00 cmpb $0x0,(%r14,%rax,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 ef mov %r13,%rdi 34: e8 23 b5 7b f6 call 0xf67bb55c 39: 81 e3 fa 00 00 00 and $0xfa,%ebx 3f: 48 rex.W