[....] Starting enhanced syslogd: rsyslogd[ 10.203089] audit: type=1400 audit(1515022218.569:5): avc: denied { syslog } for pid=3312 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 15.192324] audit: type=1400 audit(1515022223.558:6): avc: denied { map } for pid=3451 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Warning: Permanently added '10.128.15.208' (ECDSA) to the list of known hosts. [ 21.346256] audit: type=1400 audit(1515022229.713:7): avc: denied { map } for pid=3465 comm="syzkaller315281" path="/root/syzkaller315281824" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 net.ipv6.conf.syz3.accept_dad = 0 net.ipv6.conf.syz5.accept_dad = 0 net.ipv6.conf.syz1.accept_dad = 0 net.ipv6.conf.syz7.accept_dad = 0 net.ipv6.conf.syz6.accept_dad = 0 net.ipv6.conf.syz2.accept_dad = 0 net.ipv6.conf.syz4.accept_dad = 0 net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz7.router_solicitations = 0 net.ipv6.conf.syz5.router_solicitations = 0 net.ipv6.conf.syz1.router_solicitations = 0 net.ipv6.conf.syz3.router_solicitations = 0 net.ipv6.conf.syz2.router_solicitations = 0 net.ipv6.conf.syz6.router_solicitations = 0 net.ipv6.conf.syz0.router_solicitations = 0 net.ipv6.conf.syz4.router_solicitations = 0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 23.346257] ================================================================== [ 23.353676] BUG: KASAN: use-after-free in disk_unblock_events+0x51/0x60 [ 23.360417] Read of size 8 at addr ffff8801bb8737c0 by task blkid/4248 [ 23.367078] [ 23.368678] CPU: 1 PID: 4248 Comm: blkid Not tainted 4.15.0-rc6-next-20180103+ #87 [ 23.376357] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.385696] Call Trace: [ 23.388257] dump_stack+0x137/0x198 [ 23.391853] ? disk_unblock_events+0x51/0x60 [ 23.396231] print_address_description+0x73/0x250 [ 23.401045] ? disk_unblock_events+0x51/0x60 [ 23.405424] kasan_report+0x23b/0x360 [ 23.409207] __asan_report_load8_noabort+0x14/0x20 [ 23.414103] disk_unblock_events+0x51/0x60 [ 23.418307] __blkdev_get+0x6e9/0x1140 [ 23.422162] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.427324] ? __blkdev_put+0x7c0/0x7c0 [ 23.431267] ? avc_has_perm_noaudit+0x420/0x420 [ 23.435908] blkdev_get+0x32d/0x920 [ 23.439513] ? bdev_evict_inode+0x4f0/0x4f0 [ 23.443802] ? lock_downgrade+0x860/0x860 [ 23.447914] ? bd_acquire+0x27/0x2c0 [ 23.451597] ? fsnotify+0xd20/0xd20 [ 23.455196] ? _raw_spin_unlock+0x22/0x30 [ 23.459314] blkdev_open+0x1c9/0x250 [ 23.462993] ? security_file_open+0x89/0x190 [ 23.467374] do_dentry_open+0x667/0xd40 [ 23.471323] ? bd_acquire+0x2c0/0x2c0 [ 23.475096] vfs_open+0x107/0x220 [ 23.478525] path_openat+0x5a5/0x26e0 [ 23.482295] ? getname_flags+0xcb/0x580 [ 23.486234] ? getname+0x19/0x20 [ 23.489574] ? path_lookupat+0x8b0/0x8b0 [ 23.493602] ? check_noncircular+0x20/0x20 [ 23.497804] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.502964] ? check_noncircular+0x20/0x20 [ 23.507171] ? __lock_is_held+0xb6/0x140 [ 23.511227] ? find_held_lock+0x35/0x1e0 [ 23.515264] do_filp_open+0x19d/0x290 [ 23.519037] ? may_open_dev+0xe0/0xe0 [ 23.522818] ? _raw_spin_unlock+0x22/0x30 [ 23.526935] ? __alloc_fd+0x1d7/0x510 [ 23.530714] do_sys_open+0x336/0x4b0 [ 23.534396] ? do_sys_open+0x336/0x4b0 [ 23.538254] ? filp_open+0x70/0x70 [ 23.541759] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 23.546572] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.551562] SyS_open+0x2d/0x40 [ 23.554810] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.559545] RIP: 0033:0x7f80b33f9120 [ 23.563222] RSP: 002b:00007ffcc51c9d58 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 23.570896] RAX: ffffffffffffffda RBX: 00007f80b38da87c RCX: 00007f80b33f9120 [ 23.578135] RDX: 00007ffcc51cbf35 RSI: 0000000000000000 RDI: 00007ffcc51cbf35 [ 23.585376] RBP: 00007ffcc51cbf2d R08: 0000000000000078 R09: 0000000000000000 [ 23.592613] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000403738 [ 23.599856] R13: 0000000000000001 R14: 0000000000000000 R15: 00007f80b36cfa20 [ 23.607111] [ 23.608714] Allocated by task 4225: [ 23.612312] save_stack+0x43/0xd0 [ 23.615736] kasan_kmalloc+0xad/0xe0 [ 23.619433] kmem_cache_alloc_node_trace+0x150/0x750 [ 23.624516] __alloc_disk_node+0x69/0x3e0 [ 23.628634] loop_add+0x3e3/0x990 [ 23.632053] loop_probe+0x146/0x170 [ 23.635648] kobj_lookup+0x2ac/0x410 [ 23.640056] get_gendisk+0x37/0x2c0 [ 23.643653] __blkdev_get+0x3ce/0x1140 [ 23.647505] blkdev_get+0x32d/0x920 [ 23.651101] blkdev_open+0x1c9/0x250 [ 23.654789] do_dentry_open+0x667/0xd40 [ 23.658730] vfs_open+0x107/0x220 [ 23.662150] path_openat+0x5a5/0x26e0 [ 23.665916] do_filp_open+0x19d/0x290 [ 23.669684] do_sys_open+0x336/0x4b0 [ 23.673362] SyS_open+0x2d/0x40 [ 23.676611] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.681338] [ 23.682933] Freed by task 4248: [ 23.686181] save_stack+0x43/0xd0 [ 23.689599] kasan_slab_free+0x71/0xc0 [ 23.693453] kfree+0xd6/0x260 [ 23.696530] disk_release+0x251/0x2d0 [ 23.700297] device_release+0x7c/0x210 [ 23.704152] kobject_put+0x14c/0x250 [ 23.707833] put_disk+0x23/0x30 [ 23.711079] __blkdev_get+0x649/0x1140 [ 23.714932] blkdev_get+0x32d/0x920 [ 23.718527] blkdev_open+0x1c9/0x250 [ 23.722208] do_dentry_open+0x667/0xd40 [ 23.726151] vfs_open+0x107/0x220 [ 23.729572] path_openat+0x5a5/0x26e0 [ 23.733343] do_filp_open+0x19d/0x290 [ 23.737116] do_sys_open+0x336/0x4b0 [ 23.740801] SyS_open+0x2d/0x40 [ 23.744054] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.748773] [ 23.750370] The buggy address belongs to the object at ffff8801bb873240 [ 23.750370] which belongs to the cache kmalloc-2048 of size 2048 [ 23.763166] The buggy address is located 1408 bytes inside of [ 23.763166] 2048-byte region [ffff8801bb873240, ffff8801bb873a40) [ 23.775177] The buggy address belongs to the page: [ 23.780072] page:ffffea0006ee1c80 count:1 mapcount:0 mapping:ffff8801bb872140 index:0x0 compound_mapcount: 0 [ 23.790021] flags: 0x2fffc0000008100(slab|head) [ 23.794662] raw: 02fffc0000008100 ffff8801bb872140 0000000000000000 0000000100000003 [ 23.802523] raw: ffffea0006ee1aa0 ffffea00074fd320 ffff8801db000c40 0000000000000000 [ 23.810380] page dumped because: kasan: bad access detected [ 23.816058] [ 23.817652] Memory state around the buggy address: [ 23.822548] ffff8801bb873680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.829873] ffff8801bb873700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.837197] >ffff8801bb873780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.844526] ^ [ 23.849941] ffff8801bb873800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.857266] ffff8801bb873880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.864588] ================================================================== [ 23.871910] Disabling lock debugging due to kernel taint [ 23.877460] Kernel panic - not syncing: panic_on_warn set ... [ 23.877460] [ 23.884810] CPU: 1 PID: 4248 Comm: blkid Tainted: G B 4.15.0-rc6-next-20180103+ #87 [ 23.893798] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.903134] Call Trace: [ 23.905711] dump_stack+0x137/0x198 [ 23.909313] ? del_gendisk+0x8b0/0x910 [ 23.913175] panic+0x1e4/0x41c [ 23.916346] ? refcount_error_report+0x214/0x214 [ 23.921075] ? add_taint+0x1c/0x50 [ 23.924588] ? add_taint+0x1c/0x50 [ 23.928104] ? disk_unblock_events+0x51/0x60 [ 23.932488] kasan_end_report+0x50/0x50 [ 23.936438] kasan_report+0x148/0x360 [ 23.940206] __asan_report_load8_noabort+0x14/0x20 [ 23.945102] disk_unblock_events+0x51/0x60 [ 23.949304] __blkdev_get+0x6e9/0x1140 [ 23.953164] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.958326] ? __blkdev_put+0x7c0/0x7c0 [ 23.962273] ? avc_has_perm_noaudit+0x420/0x420 [ 23.966909] blkdev_get+0x32d/0x920 [ 23.970503] ? bdev_evict_inode+0x4f0/0x4f0 [ 23.974793] ? lock_downgrade+0x860/0x860 [ 23.978915] ? bd_acquire+0x27/0x2c0 [ 23.982607] ? fsnotify+0xd20/0xd20 [ 23.986206] ? _raw_spin_unlock+0x22/0x30 [ 23.990320] blkdev_open+0x1c9/0x250 [ 23.994012] ? security_file_open+0x89/0x190 [ 23.998402] do_dentry_open+0x667/0xd40 [ 24.002343] ? bd_acquire+0x2c0/0x2c0 [ 24.006112] vfs_open+0x107/0x220 [ 24.009535] path_openat+0x5a5/0x26e0 [ 24.013302] ? getname_flags+0xcb/0x580 [ 24.017239] ? getname+0x19/0x20 [ 24.020575] ? path_lookupat+0x8b0/0x8b0 [ 24.024606] ? check_noncircular+0x20/0x20 [ 24.028813] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.033974] ? check_noncircular+0x20/0x20 [ 24.038181] ? __lock_is_held+0xb6/0x140 [ 24.042214] ? find_held_lock+0x35/0x1e0 [ 24.046250] do_filp_open+0x19d/0x290 [ 24.050022] ? may_open_dev+0xe0/0xe0 [ 24.053799] ? _raw_spin_unlock+0x22/0x30 [ 24.057922] ? __alloc_fd+0x1d7/0x510 [ 24.061705] do_sys_open+0x336/0x4b0 [ 24.065398] ? do_sys_open+0x336/0x4b0 [ 24.069267] ? filp_open+0x70/0x70 [ 24.072785] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 24.077603] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.082589] SyS_open+0x2d/0x40 [ 24.085836] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.090558] RIP: 0033:0x7f80b33f9120 [ 24.094237] RSP: 002b:00007ffcc51c9d58 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 24.101910] RAX: ffffffffffffffda RBX: 00007f80b38da87c RCX: 00007f80b33f9120 [ 24.109156] RDX: 00007ffcc51cbf35 RSI: 0000000000000000 RDI: 00007ffcc51cbf35 [ 24.116399] RBP: 00007ffcc51cbf2d R08: 0000000000000078 R09: 0000000000000000 [ 24.123636] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000403738 [ 24.130879] R13: 0000000000000001 R14: 0000000000000000 R15: 00007f80b36cfa20 [ 24.138544] Dumping ftrace buffer: [ 24.142061] (ftrace buffer empty) [ 24.145736] Kernel Offset: disabled [ 24.149327] Rebooting in 86400 seconds..