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: 21924 Comm: syz-executor.2 Not tainted 5.14.0-rc7-next-20210824-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:ffffc9000aacfb98 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffc9000aacfc70 RCX: ffffc9000db53000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc9000aacfc70 RBP: 0000000000000000 R08: 0000000000000000 R09: ffffc9000aacfcb7 R10: ffffffff817c66f5 R11: 0000000000000000 R12: dffffc0000000000 R13: ffffc9000aacfc90 R14: ffffc9000aacfc70 R15: ffffc9000aacfc94 FS: 00007fc8eacb9700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc8eac98718 CR3: 00000000789b1000 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:00007fc8eacb9188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000056c038 RCX: 00000000004665e9 RDX: 00000000200003c0 RSI: 00000000c0481273 RDI: 0000000000000003 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c038 R13: 00007ffd96999bff R14: 00007fc8eacb9300 R15: 0000000000022000 Modules linked in: ---[ end trace c4bae37bb5d91698 ]--- 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:ffffc9000aacfb98 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffc9000aacfc70 RCX: ffffc9000db53000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc9000aacfc70 RBP: 0000000000000000 R08: 0000000000000000 R09: ffffc9000aacfcb7 R10: ffffffff817c66f5 R11: 0000000000000000 R12: dffffc0000000000 R13: ffffc9000aacfc90 R14: ffffc9000aacfc70 R15: ffffc9000aacfc94 FS: 00007fc8eacb9700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000001ae5848 CR3: 00000000789b1000 CR4: 00000000001506e0 ---------------- 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