[....] Starting enhanced syslogd: rsyslogd[ 12.224667] audit: type=1400 audit(1514958498.473:5): avc: denied { syslog } for pid=3346 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 periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] 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: [ 18.230954] audit: type=1400 audit(1514958504.479:6): avc: denied { map } for pid=3486 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.234' (ECDSA) to the list of known hosts. [ 30.313509] audit: type=1400 audit(1514958516.562:7): avc: denied { map } for pid=3501 comm="syz-execprog" path="/root/syz-execprog" dev="sda1" ino=16479 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 2018/01/03 05:48:36 parsed 1 programs 2018/01/03 05:48:36 executed programs: 0 [ 30.439844] audit: type=1400 audit(1514958516.688:8): avc: denied { map } for pid=3501 comm="syz-execprog" path="/root/syzkaller-shm875964159" dev="sda1" ino=16482 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:file_t:s0 tclass=file permissive=1 2018/01/03 05:48:41 executed programs: 1342 [ 39.882733] ================================================================== [ 39.890154] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 39.896805] Read of size 8 at addr ffff8801bea751a0 by task syz-executor6/16811 [ 39.904228] [ 39.905829] CPU: 1 PID: 16811 Comm: syz-executor6 Not tainted 4.15.0-rc6+ #245 [ 39.913352] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.922685] Call Trace: [ 39.925259] dump_stack+0x194/0x257 [ 39.928863] ? arch_local_irq_restore+0x53/0x53 [ 39.933501] ? show_regs_print_info+0x18/0x18 [ 39.937972] ? pick_next_entity+0x197/0x400 [ 39.942373] ? __lock_acquire+0x3d4d/0x3e00 [ 39.946683] print_address_description+0x73/0x250 [ 39.951508] ? __lock_acquire+0x3d4d/0x3e00 [ 39.955808] kasan_report+0x25b/0x340 [ 39.959591] __asan_report_load8_noabort+0x14/0x20 [ 39.964499] __lock_acquire+0x3d4d/0x3e00 [ 39.968632] ? trace_hardirqs_off+0xd/0x10 [ 39.972848] ? shmem_fault+0x615/0x960 [ 39.976714] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 39.981885] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 39.986879] ? trace_hardirqs_on+0xd/0x10 [ 39.991003] ? _raw_spin_unlock_irq+0x27/0x70 [ 39.995473] ? finish_task_switch+0x1d3/0x740 [ 39.999935] ? finish_task_switch+0x1aa/0x740 [ 40.004396] ? copy_overflow+0x20/0x20 [ 40.008254] ? __schedule+0x8f3/0x2060 [ 40.012109] ? __sched_text_start+0x8/0x8 [ 40.016223] ? check_noncircular+0x20/0x20 [ 40.020433] ? prepare_to_wait+0x192/0x4d0 [ 40.024636] ? lock_downgrade+0x980/0x980 [ 40.028751] ? find_get_entries_tag+0xeb0/0xeb0 [ 40.033397] ? lock_release+0xa40/0xa40 [ 40.037343] ? mark_held_locks+0xaf/0x100 [ 40.041462] lock_acquire+0x1d5/0x580 [ 40.045237] ? lock_acquire+0x1d5/0x580 [ 40.049180] ? shmem_fault+0x615/0x960 [ 40.053042] ? lock_downgrade+0x980/0x980 [ 40.057156] ? lock_release+0xa40/0xa40 [ 40.061105] ? do_raw_spin_trylock+0x190/0x190 [ 40.065663] _raw_spin_lock+0x2a/0x40 [ 40.069441] ? shmem_fault+0x615/0x960 [ 40.073295] shmem_fault+0x615/0x960 [ 40.077001] ? shmem_read_mapping_page_gfp+0x1d0/0x1d0 [ 40.082253] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 40.087333] ? shmem_fill_super+0xa10/0xa10 [ 40.091622] ? trace_hardirqs_on+0xd/0x10 [ 40.095738] __do_fault+0xeb/0x30f [ 40.099249] ? pte_offset_kernel+0xc7/0xc7 [ 40.103457] ? account_kernel_stack+0x155/0x1f0 [ 40.108100] ? check_noncircular+0x20/0x20 [ 40.112309] __handle_mm_fault+0x1d8f/0x3ce0 [ 40.116696] ? __pmd_alloc+0x4e0/0x4e0 [ 40.120552] ? find_held_lock+0x35/0x1d0 [ 40.124581] ? handle_mm_fault+0x248/0x8d0 [ 40.128781] ? lock_downgrade+0x980/0x980 [ 40.132903] handle_mm_fault+0x334/0x8d0 [ 40.136932] ? down_read_trylock+0xdb/0x170 [ 40.141233] ? __do_page_fault+0x32d/0xc90 [ 40.145523] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 40.150078] ? vmacache_find+0x5f/0x280 [ 40.154030] ? vmacache_update+0xfe/0x130 [ 40.158152] ? find_vma+0x30/0x150 [ 40.161670] __do_page_fault+0x5c9/0xc90 [ 40.165702] ? mm_fault_error+0x2c0/0x2c0 [ 40.169821] ? exit_to_usermode_loop+0x8c/0x310 [ 40.174461] do_page_fault+0xee/0x720 [ 40.178241] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 40.183745] ? __do_page_fault+0xc90/0xc90 [ 40.187959] ? syscall_return_slowpath+0x2ad/0x550 [ 40.192872] ? prepare_exit_to_usermode+0x340/0x340 [ 40.197856] ? ret_from_fork+0x1a/0x30 [ 40.201730] ? page_fault+0x36/0x60 [ 40.205325] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.210136] ? page_fault+0x36/0x60 [ 40.213731] page_fault+0x4c/0x60 [ 40.217152] RIP: 0033:0x452ad5 [ 40.220320] RSP: 002b:000000002098d000 EFLAGS: 00010217 [ 40.225651] RAX: 0000000000000000 RBX: 000000000071bea0 RCX: 0000000000452ac9 [ 40.232898] RDX: 0000000020651000 RSI: 000000002098d000 RDI: 00000000000001fe [ 40.240135] RBP: 0000000000000048 R08: 000000002095c000 R09: 0000000000000000 [ 40.247383] R10: 0000000020c6f000 R11: 0000000000000212 R12: 00000000006ee760 [ 40.254620] R13: 00000000ffffffff R14: 00007f9dc388d6d4 R15: 0000000000000000 [ 40.261954] [ 40.263557] Allocated by task 16797: [ 40.267245] save_stack+0x43/0xd0 [ 40.270682] kasan_kmalloc+0xad/0xe0 [ 40.274361] kasan_slab_alloc+0x12/0x20 [ 40.278302] kmem_cache_alloc+0x12e/0x760 [ 40.282421] shmem_alloc_inode+0x1b/0x40 [ 40.286451] alloc_inode+0x65/0x180 [ 40.290049] new_inode_pseudo+0x69/0x190 [ 40.294087] new_inode+0x1c/0x40 [ 40.297429] shmem_get_inode+0xe1/0x920 [ 40.301379] __shmem_file_setup+0x3f5/0x6a0 [ 40.305676] shmem_zero_setup+0x96/0x3a0 [ 40.309705] mmap_region+0x121b/0x15a0 [ 40.313566] do_mmap+0x6c0/0xe00 [ 40.316906] vm_mmap_pgoff+0x1de/0x280 [ 40.320759] SyS_mmap_pgoff+0x23b/0x5f0 [ 40.324701] SyS_mmap+0x16/0x20 [ 40.327949] entry_SYSCALL_64_fastpath+0x23/0x9a [ 40.332670] [ 40.334265] Freed by task 16824: [ 40.337597] save_stack+0x43/0xd0 [ 40.341023] kasan_slab_free+0x71/0xc0 [ 40.344883] kmem_cache_free+0x83/0x2a0 [ 40.348823] shmem_destroy_callback+0x5a/0xa0 [ 40.353288] rcu_process_callbacks+0xd6c/0x17f0 [ 40.357934] __do_softirq+0x2d7/0xb85 [ 40.361699] [ 40.363302] The buggy address belongs to the object at ffff8801bea75000 [ 40.363302] which belongs to the cache shmem_inode_cache of size 1200 [ 40.376560] The buggy address is located 416 bytes inside of [ 40.376560] 1200-byte region [ffff8801bea75000, ffff8801bea754b0) [ 40.388513] The buggy address belongs to the page: [ 40.393424] page:0000000048f543b2 count:1 mapcount:0 mapping:00000000cec64273 index:0xffff8801bea75ffd [ 40.402852] flags: 0x2fffc0000000100(slab) [ 40.407062] raw: 02fffc0000000100 ffff8801bea75000 ffff8801bea75ffd 0000000100000003 [ 40.414919] raw: ffffea0006f60320 ffffea0006f7f2e0 ffff8801d9ea24c0 0000000000000000 [ 40.422771] page dumped because: kasan: bad access detected [ 40.428443] [ 40.430044] Memory state around the buggy address: [ 40.434956] ffff8801bea75080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.442289] ffff8801bea75100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.449613] >ffff8801bea75180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.456936] ^ [ 40.461312] ffff8801bea75200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.468646] ffff8801bea75280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.475970] ================================================================== [ 40.483293] Disabling lock debugging due to kernel taint [ 40.488715] Kernel panic - not syncing: panic_on_warn set ... [ 40.488715] [ 40.496052] CPU: 1 PID: 16811 Comm: syz-executor6 Tainted: G B 4.15.0-rc6+ #245 [ 40.504679] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.514006] Call Trace: [ 40.516579] dump_stack+0x194/0x257 [ 40.520172] ? arch_local_irq_restore+0x53/0x53 [ 40.525384] ? kasan_end_report+0x32/0x50 [ 40.529508] ? lock_downgrade+0x980/0x980 [ 40.533625] ? vsnprintf+0x1ed/0x1900 [ 40.537390] ? __lock_acquire+0x3c70/0x3e00 [ 40.541678] panic+0x1e4/0x41c [ 40.544837] ? refcount_error_report+0x214/0x214 [ 40.549566] ? add_taint+0x40/0x50 [ 40.553074] ? add_taint+0x1c/0x50 [ 40.556580] ? __lock_acquire+0x3d4d/0x3e00 [ 40.560869] kasan_end_report+0x50/0x50 [ 40.564810] kasan_report+0x144/0x340 [ 40.568579] __asan_report_load8_noabort+0x14/0x20 [ 40.573487] __lock_acquire+0x3d4d/0x3e00 [ 40.577611] ? trace_hardirqs_off+0xd/0x10 [ 40.581814] ? shmem_fault+0x615/0x960 [ 40.585668] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 40.590824] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.595809] ? trace_hardirqs_on+0xd/0x10 [ 40.599941] ? _raw_spin_unlock_irq+0x27/0x70 [ 40.604407] ? finish_task_switch+0x1d3/0x740 [ 40.608883] ? finish_task_switch+0x1aa/0x740 [ 40.613352] ? copy_overflow+0x20/0x20 [ 40.617212] ? __schedule+0x8f3/0x2060 [ 40.621070] ? __sched_text_start+0x8/0x8 [ 40.625204] ? check_noncircular+0x20/0x20 [ 40.629407] ? prepare_to_wait+0x192/0x4d0 [ 40.633609] ? lock_downgrade+0x980/0x980 [ 40.637726] ? find_get_entries_tag+0xeb0/0xeb0 [ 40.642365] ? lock_release+0xa40/0xa40 [ 40.646308] ? mark_held_locks+0xaf/0x100 [ 40.650433] lock_acquire+0x1d5/0x580 [ 40.654209] ? lock_acquire+0x1d5/0x580 [ 40.658151] ? shmem_fault+0x615/0x960 [ 40.662024] ? lock_downgrade+0x980/0x980 [ 40.666146] ? lock_release+0xa40/0xa40 [ 40.670101] ? do_raw_spin_trylock+0x190/0x190 [ 40.674652] _raw_spin_lock+0x2a/0x40 [ 40.678428] ? shmem_fault+0x615/0x960 [ 40.682281] shmem_fault+0x615/0x960 [ 40.685961] ? shmem_read_mapping_page_gfp+0x1d0/0x1d0 [ 40.691206] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 40.696276] ? shmem_fill_super+0xa10/0xa10 [ 40.700564] ? trace_hardirqs_on+0xd/0x10 [ 40.704680] __do_fault+0xeb/0x30f [ 40.708189] ? pte_offset_kernel+0xc7/0xc7 [ 40.712402] ? account_kernel_stack+0x155/0x1f0 [ 40.717047] ? check_noncircular+0x20/0x20 [ 40.721250] __handle_mm_fault+0x1d8f/0x3ce0 [ 40.725627] ? __pmd_alloc+0x4e0/0x4e0 [ 40.729482] ? find_held_lock+0x35/0x1d0 [ 40.733511] ? handle_mm_fault+0x248/0x8d0 [ 40.737715] ? lock_downgrade+0x980/0x980 [ 40.741834] handle_mm_fault+0x334/0x8d0 [ 40.745878] ? down_read_trylock+0xdb/0x170 [ 40.750168] ? __do_page_fault+0x32d/0xc90 [ 40.754378] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 40.758931] ? vmacache_find+0x5f/0x280 [ 40.762872] ? vmacache_update+0xfe/0x130 [ 40.766987] ? find_vma+0x30/0x150 [ 40.770496] __do_page_fault+0x5c9/0xc90 [ 40.774526] ? mm_fault_error+0x2c0/0x2c0 [ 40.778659] ? exit_to_usermode_loop+0x8c/0x310 [ 40.783295] do_page_fault+0xee/0x720 [ 40.787062] ? trace_event_raw_event_sys_exit+0x260/0x260 [ 40.792572] ? __do_page_fault+0xc90/0xc90 [ 40.796774] ? syscall_return_slowpath+0x2ad/0x550 [ 40.801669] ? prepare_exit_to_usermode+0x340/0x340 [ 40.806656] ? ret_from_fork+0x1a/0x30 [ 40.810509] ? page_fault+0x36/0x60 [ 40.814103] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.818913] ? page_fault+0x36/0x60 [ 40.822517] page_fault+0x4c/0x60 [ 40.825937] RIP: 0033:0x452ad5 [ 40.829107] RSP: 002b:000000002098d000 EFLAGS: 00010217 [ 40.834434] RAX: 0000000000000000 RBX: 000000000071bea0 RCX: 0000000000452ac9 [ 40.841677] RDX: 0000000020651000 RSI: 000000002098d000 RDI: 00000000000001fe [ 40.848914] RBP: 0000000000000048 R08: 000000002095c000 R09: 0000000000000000 [ 40.856152] R10: 0000000020c6f000 R11: 0000000000000212 R12: 00000000006ee760 [ 40.863394] R13: 00000000ffffffff R14: 00007f9dc388d6d4 R15: 0000000000000000 [ 40.871084] Dumping ftrace buffer: [ 40.874590] (ftrace buffer empty) [ 40.878268] Kernel Offset: disabled [ 40.881860] Rebooting in 86400 seconds..