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 CPU: 0 PID: 13370 Comm: blkid Not tainted 5.0.0-rc4-next-20190131 #23 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:debugfs_create_files+0x2e/0x140 block/blk-mq-debugfs.c:842 Code: 41 56 49 89 fe 41 55 41 54 49 89 f4 53 48 89 d3 e8 67 30 4a fe 49 8d 7e 58 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 e3 00 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b RSP: 0018:ffff8880a01b7398 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: ffffffff87a1de20 RCX: ffffffff828ea025 RDX: 0000000000000008 RSI: ffffffff8325c6e9 RDI: 0000000000000047 RBP: ffff8880a01b73b8 R08: ffff88806241c180 R09: fffffbfff11024e6 R10: fffffbfff11024e5 R11: ffffffff8881272b R12: ffff88805da60f50 R13: ffff88805da60f50 R14: ffffffffffffffef R15: ffff88805da61018 FS: 00007ff4d97f5740(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffeedb316d8 CR3: 000000001950e000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: blk_mq_debugfs_register+0xec/0x4e0 block/blk-mq-debugfs.c:865 blk_register_queue+0x1bc/0x370 block/blk-sysfs.c:944 __device_add_disk+0xccc/0x1160 block/genhd.c:723 device_add_disk+0x2b/0x40 block/genhd.c:739 add_disk include/linux/genhd.h:422 [inline] loop_add+0x635/0x8d0 drivers/block/loop.c:1999 loop_probe+0x161/0x1a0 drivers/block/loop.c:2071 kobj_lookup+0x265/0x460 drivers/base/map.c:124 get_gendisk+0x4d/0x380 block/genhd.c:847 bdev_get_gendisk fs/block_dev.c:1103 [inline] __blkdev_get+0x45a/0x1660 fs/block_dev.c:1489 blkdev_get+0xc4/0x990 fs/block_dev.c:1648 blkdev_open+0x205/0x290 fs/block_dev.c:1806 do_dentry_open+0x488/0x1160 fs/open.c:771 vfs_open+0xa0/0xd0 fs/open.c:880 do_last fs/namei.c:3418 [inline] path_openat+0x10e9/0x46e0 fs/namei.c:3535 do_filp_open+0x1a1/0x280 fs/namei.c:3565 do_sys_open+0x3fe/0x5d0 fs/open.c:1063 __do_sys_open fs/open.c:1081 [inline] __se_sys_open fs/open.c:1076 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1076 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7ff4d90fd120 Code: 48 8b 15 1b 4d 2b 00 f7 d8 64 89 02 83 c8 ff c3 90 90 90 90 90 90 90 90 90 90 83 3d d5 a4 2b 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 5e 8c 01 00 48 89 04 24 RSP: 002b:00007fff2dd61588 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ff4d90fd120 RDX: 00007fff2dd61f32 RSI: 0000000000000000 RDI: 00007fff2dd61f32 RBP: 0000000000000000 R08: 0000000000000078 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000b61030 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000005 Modules linked in: ---[ end trace 4186cf5cd2493ede ]--- RIP: 0010:debugfs_create_files+0x2e/0x140 block/blk-mq-debugfs.c:842 Code: 41 56 49 89 fe 41 55 41 54 49 89 f4 53 48 89 d3 e8 67 30 4a fe 49 8d 7e 58 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 e3 00 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b RSP: 0018:ffff8880a01b7398 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: ffffffff87a1de20 RCX: ffffffff828ea025 RDX: 0000000000000008 RSI: ffffffff8325c6e9 RDI: 0000000000000047 RBP: ffff8880a01b73b8 R08: ffff88806241c180 R09: fffffbfff11024e6 R10: fffffbfff11024e5 R11: ffffffff8881272b R12: ffff88805da60f50 R13: ffff88805da60f50 R14: ffffffffffffffef R15: ffff88805da61018 FS: 00007ff4d97f5740(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd247053db8 CR3: 000000001950e000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400