general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 12458 Comm: syz-executor.4 Not tainted 5.14.0-rc7-next-20210825-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:strncpy+0x32/0xb0 lib/string.c:130 Code: 54 55 53 48 83 ec 08 48 85 d2 74 5c 4c 8d 2c 17 48 89 fb 49 bc 00 00 00 00 00 fc ff df 48 89 f0 48 89 f2 48 c1 e8 03 83 e2 07 <42> 0f b6 04 20 38 d0 7f 04 84 c0 75 41 48 89 d8 48 89 da 0f b6 2e RSP: 0018:ffffc900058b7b98 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffc900058b7c70 RCX: ffffc90011fa2000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc900058b7c70 RBP: 0000000000000000 R08: 0000000000000000 R09: ffffc900058b7cb7 R10: ffffffff817c6815 R11: 0000000000000000 R12: dffffc0000000000 R13: ffffc900058b7c90 R14: ffffc900058b7c70 R15: ffffc900058b7c94 FS: 00007f5546d6c700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30122000 CR3: 0000000070370000 CR4: 00000000001506f0 Call Trace: strncpy include/linux/fortify-string.h:59 [inline] do_blk_trace_setup+0x113/0xcd0 kernel/trace/blktrace.c:485 __blk_trace_setup+0xca/0x180 kernel/trace/blktrace.c:589 blk_trace_setup+0x43/0x60 kernel/trace/blktrace.c:607 sg_ioctl_common drivers/scsi/sg.c:1122 [inline] sg_ioctl+0x252/0x2760 drivers/scsi/sg.c:1164 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5546d6c188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000056c0f0 RCX: 00000000004665e9 RDX: 0000000020000040 RSI: 00000000c0481273 RDI: 0000000000000006 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0f0 R13: 00007ffccbc8b34f R14: 00007f5546d6c300 R15: 0000000000022000 Modules linked in: ---[ end trace 7f2d696eb8040187 ]--- RIP: 0010:strncpy+0x32/0xb0 lib/string.c:130 Code: 54 55 53 48 83 ec 08 48 85 d2 74 5c 4c 8d 2c 17 48 89 fb 49 bc 00 00 00 00 00 fc ff df 48 89 f0 48 89 f2 48 c1 e8 03 83 e2 07 <42> 0f b6 04 20 38 d0 7f 04 84 c0 75 41 48 89 d8 48 89 da 0f b6 2e RSP: 0018:ffffc900058b7b98 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffc900058b7c70 RCX: ffffc90011fa2000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc900058b7c70 RBP: 0000000000000000 R08: 0000000000000000 R09: ffffc900058b7cb7 R10: ffffffff817c6815 R11: 0000000000000000 R12: dffffc0000000000 R13: ffffc900058b7c90 R14: ffffc900058b7c70 R15: ffffc900058b7c94 FS: 00007f5546d6c700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000568000 CR3: 0000000070370000 CR4: 00000000001506f0 ---------------- Code disassembly (best guess): 0: 54 push %rsp 1: 55 push %rbp 2: 53 push %rbx 3: 48 83 ec 08 sub $0x8,%rsp 7: 48 85 d2 test %rdx,%rdx a: 74 5c je 0x68 c: 4c 8d 2c 17 lea (%rdi,%rdx,1),%r13 10: 48 89 fb mov %rdi,%rbx 13: 49 bc 00 00 00 00 00 movabs $0xdffffc0000000000,%r12 1a: fc ff df 1d: 48 89 f0 mov %rsi,%rax 20: 48 89 f2 mov %rsi,%rdx 23: 48 c1 e8 03 shr $0x3,%rax 27: 83 e2 07 and $0x7,%edx * 2a: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax <-- trapping instruction 2f: 38 d0 cmp %dl,%al 31: 7f 04 jg 0x37 33: 84 c0 test %al,%al 35: 75 41 jne 0x78 37: 48 89 d8 mov %rbx,%rax 3a: 48 89 da mov %rbx,%rdx 3d: 0f b6 2e movzbl (%rsi),%ebp