BUG: GPF in non-whitelisted uaccess (non-canonical address?) kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN kobject: 'loop5' (00000000731abd07): kobject_uevent_env CPU: 1 PID: 9419 Comm: syz-executor4 Not tainted 4.20.0-rc2+ #115 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 kobject: 'loop5' (00000000731abd07): fill_kobj_path: path = '/devices/virtual/block/loop5' RIP: 0010:copy_user_enhanced_fast_string+0xe/0x20 arch/x86/lib/copy_user_64.S:180 Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 1f 00 c3 0f 1f 80 00 00 00 00 0f 1f 00 83 fa 40 0f 82 70 ff ff ff 89 d1 a4 31 c0 0f 1f 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 83 RSP: 0018:ffff8881859d7398 EFLAGS: 00010206 RAX: 0000000000000000 RBX: 00000000000004d3 RCX: 00000000000004d3 RDX: 00000000000004d3 RSI: f75a4f0ffd407fe4 RDI: ffff8881bba33e78 kobject: 'loop3' (0000000025815e9f): kobject_uevent_env RBP: ffff8881859d73d0 R08: ffffed103774686a R09: ffffed103774686a kobject: 'loop3' (0000000025815e9f): fill_kobj_path: path = '/devices/virtual/block/loop3' R10: ffffed1037746869 R11: ffff8881bba3434a R12: f75a4f0ffd4084b7 R13: f75a4f0ffd407fe4 R14: ffff8881bba33e78 R15: ffffffffffffffff FS: 00007f020f970700(0000) GS:ffff8881daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000002496978 CR3: 000000017b7fe000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 kobject: 'loop1' (00000000b14b3033): kobject_uevent_env DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: copy_from_user include/linux/uaccess.h:147 [inline] uhid_dev_create+0x20c/0xb40 drivers/hid/uhid.c:542 kobject: 'loop1' (00000000b14b3033): fill_kobj_path: path = '/devices/virtual/block/loop1' uhid_char_write+0xc74/0xef0 drivers/hid/uhid.c:725 __vfs_write+0x119/0x9f0 fs/read_write.c:485 kobject: 'loop2' (0000000038ad200b): kobject_uevent_env __kernel_write+0x10c/0x370 fs/read_write.c:506 write_pipe_buf+0x180/0x240 fs/splice.c:797 kobject: 'loop2' (0000000038ad200b): fill_kobj_path: path = '/devices/virtual/block/loop2' splice_from_pipe_feed fs/splice.c:503 [inline] __splice_from_pipe+0x38b/0x7c0 fs/splice.c:627 splice_from_pipe+0x1ec/0x340 fs/splice.c:662 default_file_splice_write+0x3c/0x90 fs/splice.c:809 do_splice_from fs/splice.c:851 [inline] direct_splice_actor+0x128/0x190 fs/splice.c:1018 splice_direct_to_actor+0x318/0x8f0 fs/splice.c:973 do_splice_direct+0x2d4/0x420 fs/splice.c:1061 do_sendfile+0x62a/0xe20 fs/read_write.c:1439 __do_sys_sendfile64 fs/read_write.c:1494 [inline] __se_sys_sendfile64 fs/read_write.c:1486 [inline] __x64_sys_sendfile64+0x15d/0x250 fs/read_write.c:1486 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457569 Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f020f96fc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000457569 RDX: 0000000020d83ff8 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 00008000fffffffe R11: 0000000000000246 R12: 00007f020f9706d4 R13: 00000000004c37cc R14: 00000000004d5958 R15: 00000000ffffffff Modules linked in: kobject: 'loop2' (0000000038ad200b): kobject_uevent_env kobject: 'loop2' (0000000038ad200b): fill_kobj_path: path = '/devices/virtual/block/loop2' ---[ end trace faa862431fc6fc4d ]--- RIP: 0010:copy_user_enhanced_fast_string+0xe/0x20 arch/x86/lib/copy_user_64.S:180 kobject: 'loop5' (00000000731abd07): kobject_uevent_env Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 1f 00 c3 0f 1f 80 00 00 00 00 0f 1f 00 83 fa 40 0f 82 70 ff ff ff 89 d1 a4 31 c0 0f 1f 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 83 kobject: 'loop5' (00000000731abd07): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop2' (0000000038ad200b): kobject_uevent_env kobject: 'loop2' (0000000038ad200b): fill_kobj_path: path = '/devices/virtual/block/loop2' RSP: 0018:ffff8881859d7398 EFLAGS: 00010206 kobject: 'loop0' (000000000c653d91): kobject_uevent_env RAX: 0000000000000000 RBX: 00000000000004d3 RCX: 00000000000004d3 kobject: 'loop0' (000000000c653d91): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'bpq0' (000000006bcb8f9d): kobject_add_internal: parent: 'net', set: 'devices' RDX: 00000000000004d3 RSI: f75a4f0ffd407fe4 RDI: ffff8881bba33e78 kobject: 'loop5' (00000000731abd07): kobject_uevent_env kobject: 'loop5' (00000000731abd07): fill_kobj_path: path = '/devices/virtual/block/loop5' RBP: ffff8881859d73d0 R08: ffffed103774686a R09: ffffed103774686a R10: ffffed1037746869 R11: ffff8881bba3434a R12: f75a4f0ffd4084b7 kobject: 'loop5' (00000000731abd07): kobject_uevent_env R13: f75a4f0ffd407fe4 R14: ffff8881bba33e78 R15: ffffffffffffffff kobject: 'loop5' (00000000731abd07): fill_kobj_path: path = '/devices/virtual/block/loop5' FS: 00007f020f970700(0000) GS:ffff8881daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kobject: 'bpq0' (000000006bcb8f9d): kobject_uevent_env CR2: 00007f020f8ebdb8 CR3: 000000017b7fe000 CR4: 00000000001426e0 kobject: 'bpq0' (000000006bcb8f9d): fill_kobj_path: path = '/devices/virtual/net/bpq0' DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 kobject: 'queues' (00000000da711b7a): kobject_add_internal: parent: 'bpq0', set: '' kobject: 'loop5' (00000000731abd07): kobject_uevent_env kobject: 'loop5' (00000000731abd07): fill_kobj_path: path = '/devices/virtual/block/loop5' DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400