RDX: 0000000020000540 RSI: 0000000000000026 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ================================================================== BUG: KASAN: null-ptr-deref in memcpy include/linux/string.h:345 [inline] BUG: KASAN: null-ptr-deref in xattr_getsecurity+0x11d/0x1f0 fs/xattr.c:251 Read of size 20 at addr 0000000000000000 by task syz-executor2/15595 CPU: 1 PID: 15595 Comm: syz-executor2 Not tainted 4.16.0+ #288 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1a7/0x27d lib/dump_stack.c:53 kasan_report_error mm/kasan/report.c:352 [inline] kasan_report+0x140/0x360 mm/kasan/report.c:412 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x137/0x190 mm/kasan/kasan.c:267 memcpy+0x23/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:345 [inline] xattr_getsecurity+0x11d/0x1f0 fs/xattr.c:251 vfs_getxattr+0xc8/0x110 fs/xattr.c:333 getxattr+0x116/0x2a0 fs/xattr.c:540 SYSC_fgetxattr fs/xattr.c:598 [inline] SyS_fgetxattr+0xe2/0x150 fs/xattr.c:589 do_syscall_32_irqs_on arch/x86/entry/common.c:330 [inline] do_fast_syscall_32+0x3ec/0xf9f arch/x86/entry/common.c:392 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f7dc99 RSP: 002b:00000000f5f790ac EFLAGS: 00000282 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000013 RCX: 0000000020000500 RDX: 0000000020000540 RSI: 0000000000000026 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ================================================================== Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 15595 Comm: syz-executor2 Tainted: G B 4.16.0+ #288 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1a7/0x27d lib/dump_stack.c:53 panic+0x1f8/0x42c kernel/panic.c:183 kasan_end_report+0x50/0x50 mm/kasan/report.c:180 kasan_report_error mm/kasan/report.c:359 [inline] kasan_report+0x149/0x360 mm/kasan/report.c:412 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x137/0x190 mm/kasan/kasan.c:267 memcpy+0x23/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:345 [inline] xattr_getsecurity+0x11d/0x1f0 fs/xattr.c:251 vfs_getxattr+0xc8/0x110 fs/xattr.c:333 getxattr+0x116/0x2a0 fs/xattr.c:540 SYSC_fgetxattr fs/xattr.c:598 [inline] SyS_fgetxattr+0xe2/0x150 fs/xattr.c:589 do_syscall_32_irqs_on arch/x86/entry/common.c:330 [inline] do_fast_syscall_32+0x3ec/0xf9f arch/x86/entry/common.c:392 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f7dc99 RSP: 002b:00000000f5f790ac EFLAGS: 00000282 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000013 RCX: 0000000020000500 RDX: 0000000020000540 RSI: 0000000000000026 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..