[....] Starting enhanced syslogd: rsyslogd[ 12.309906] audit: type=1400 audit(1514958343.154:5): avc: denied { syslog } for pid=3338 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: [ 16.985041] audit: type=1400 audit(1514958347.829:6): avc: denied { map } for pid=3477 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.237' (ECDSA) to the list of known hosts. [ 39.737585] audit: type=1400 audit(1514958370.582:7): avc: denied { map } for pid=3495 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:46:10 parsed 1 programs 2018/01/03 05:46:10 executed programs: 0 [ 39.861281] audit: type=1400 audit(1514958370.704:8): avc: denied { map } for pid=3495 comm="syz-execprog" path="/root/syzkaller-shm680903179" 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 [ 39.887254] audit: type=1400 audit(1514958370.729:9): avc: denied { sys_admin } for pid=3500 comm="syz-executor5" capability=21 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 [ 40.076409] audit: type=1400 audit(1514958370.921:10): avc: denied { sys_chroot } for pid=3502 comm="syz-executor5" capability=18 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 2018/01/03 05:46:15 executed programs: 1470 2018/01/03 05:46:20 executed programs: 3124 [ 52.156288] ================================================================== [ 52.163706] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 52.170348] Read of size 8 at addr ffff8801cdee8c00 by task syz-executor4/22866 [ 52.177760] [ 52.179357] CPU: 0 PID: 22866 Comm: syz-executor4 Not tainted 4.15.0-rc6+ #155 [ 52.186680] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.195998] Call Trace: [ 52.198556] dump_stack+0x194/0x257 [ 52.202151] ? arch_local_irq_restore+0x53/0x53 [ 52.206787] ? show_regs_print_info+0x18/0x18 [ 52.211250] ? lock_downgrade+0x980/0x980 [ 52.215364] ? __lock_acquire+0x3d4d/0x3e00 [ 52.219654] print_address_description+0x73/0x250 [ 52.224471] ? __lock_acquire+0x3d4d/0x3e00 [ 52.228759] kasan_report+0x25b/0x340 [ 52.232527] __asan_report_load8_noabort+0x14/0x20 [ 52.237423] __lock_acquire+0x3d4d/0x3e00 [ 52.241538] ? clear_asid_other+0x50/0x50 [ 52.245656] ? shmem_fault+0x615/0x960 [ 52.249511] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 52.254669] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.259650] ? trace_hardirqs_on+0xd/0x10 [ 52.263765] ? _raw_spin_unlock_irq+0x27/0x70 [ 52.268226] ? finish_task_switch+0x1d3/0x740 [ 52.272685] ? finish_task_switch+0x1aa/0x740 [ 52.277146] ? copy_overflow+0x20/0x20 [ 52.281002] ? __schedule+0x8f3/0x2060 [ 52.284860] ? __sched_text_start+0x8/0x8 [ 52.288975] ? check_noncircular+0x20/0x20 [ 52.293178] ? prepare_to_wait+0x192/0x4d0 [ 52.297379] ? lock_downgrade+0x980/0x980 [ 52.301493] ? find_get_entries_tag+0xeb0/0xeb0 [ 52.306131] ? lock_release+0xa40/0xa40 [ 52.310071] ? mark_held_locks+0xaf/0x100 [ 52.314190] lock_acquire+0x1d5/0x580 [ 52.317955] ? lock_acquire+0x1d5/0x580 [ 52.321895] ? shmem_fault+0x615/0x960 [ 52.325750] ? lock_downgrade+0x980/0x980 [ 52.329864] ? lock_release+0xa40/0xa40 [ 52.333805] ? __do_page_fault+0x5c9/0xc90 [ 52.338007] ? do_page_fault+0xee/0x720 [ 52.341949] ? page_fault+0x4c/0x60 [ 52.345551] ? do_raw_spin_trylock+0x190/0x190 [ 52.350103] _raw_spin_lock+0x2a/0x40 [ 52.353868] ? shmem_fault+0x615/0x960 [ 52.357720] shmem_fault+0x615/0x960 [ 52.361399] ? shmem_read_mapping_page_gfp+0x1d0/0x1d0 [ 52.366647] ? shmem_fill_super+0xa10/0xa10 [ 52.370942] __do_fault+0xeb/0x30f [ 52.374448] ? pte_offset_kernel+0xc7/0xc7 [ 52.378646] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.383635] ? lockdep_init_map+0x9/0x10 [ 52.387661] ? __raw_spin_lock_init+0x2d/0x100 [ 52.392209] __handle_mm_fault+0x1d8f/0x3ce0 [ 52.396588] ? __pmd_alloc+0x4e0/0x4e0 [ 52.400444] ? find_held_lock+0x35/0x1d0 [ 52.404474] ? handle_mm_fault+0x248/0x8d0 [ 52.408673] ? lock_downgrade+0x980/0x980 [ 52.412793] handle_mm_fault+0x334/0x8d0 [ 52.416818] ? down_read_trylock+0xdb/0x170 [ 52.421106] ? __do_page_fault+0x32d/0xc90 [ 52.425307] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 52.429854] ? vmacache_find+0x5f/0x280 [ 52.433792] ? vmacache_update+0xfe/0x130 [ 52.437906] ? find_vma+0x30/0x150 [ 52.441418] __do_page_fault+0x5c9/0xc90 [ 52.445461] ? mm_fault_error+0x2c0/0x2c0 [ 52.449574] ? lock_release+0xa40/0xa40 [ 52.453514] do_page_fault+0xee/0x720 [ 52.457292] ? _raw_spin_unlock_irq+0x27/0x70 [ 52.461751] ? __do_page_fault+0xc90/0xc90 [ 52.465953] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.470937] ? syscall_return_slowpath+0x2ad/0x550 [ 52.475833] ? prepare_exit_to_usermode+0x340/0x340 [ 52.480813] ? ret_from_fork+0x1a/0x30 [ 52.484666] ? page_fault+0x36/0x60 [ 52.488256] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 52.493068] ? page_fault+0x36/0x60 [ 52.496660] page_fault+0x4c/0x60 [ 52.500081] RIP: 0023:0xf7faec79 [ 52.503409] RSP: 002b:000000002098d000 EFLAGS: 00010296 [ 52.508735] RAX: 0000000000000000 RBX: 00000000000001fe RCX: 000000002098d000 [ 52.515971] RDX: 0000000020651000 RSI: 0000000020c6f000 RDI: 000000002095c000 [ 52.523205] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 52.530441] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 52.537682] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 52.544923] [ 52.546515] Allocated by task 22864: [ 52.550197] save_stack+0x43/0xd0 [ 52.553621] kasan_kmalloc+0xad/0xe0 [ 52.557300] kasan_slab_alloc+0x12/0x20 [ 52.561237] kmem_cache_alloc+0x12e/0x760 [ 52.565349] shmem_alloc_inode+0x1b/0x40 [ 52.569380] alloc_inode+0x65/0x180 [ 52.572974] new_inode_pseudo+0x69/0x190 [ 52.576999] new_inode+0x1c/0x40 [ 52.580343] shmem_get_inode+0xe1/0x920 [ 52.584286] __shmem_file_setup+0x3f5/0x6a0 [ 52.588573] shmem_zero_setup+0x96/0x3a0 [ 52.592598] mmap_region+0x121b/0x15a0 [ 52.596449] do_mmap+0x6c0/0xe00 [ 52.599780] vm_mmap_pgoff+0x1de/0x280 [ 52.603630] SyS_mmap_pgoff+0x23b/0x5f0 [ 52.607571] do_fast_syscall_32+0x3ee/0xf9d [ 52.611857] entry_SYSENTER_compat+0x54/0x63 [ 52.616227] [ 52.617821] Freed by task 22871: [ 52.621161] save_stack+0x43/0xd0 [ 52.624581] kasan_slab_free+0x71/0xc0 [ 52.628432] kmem_cache_free+0x83/0x2a0 [ 52.632369] shmem_destroy_callback+0x5a/0xa0 [ 52.636828] rcu_process_callbacks+0xd6c/0x17f0 [ 52.641460] __do_softirq+0x2d7/0xb85 [ 52.645222] [ 52.646818] The buggy address belongs to the object at ffff8801cdee8a60 [ 52.646818] which belongs to the cache shmem_inode_cache of size 1200 [ 52.660047] The buggy address is located 416 bytes inside of [ 52.660047] 1200-byte region [ffff8801cdee8a60, ffff8801cdee8f10) [ 52.671970] The buggy address belongs to the page: [ 52.676866] page:0000000076aceb0e count:1 mapcount:0 mapping:000000004dd37f74 index:0xffff8801cdee8ffd [ 52.686274] flags: 0x2fffc0000000100(slab) [ 52.690483] raw: 02fffc0000000100 ffff8801cdee8000 ffff8801cdee8ffd 0000000100000003 [ 52.698679] raw: ffffea00073fc460 ffffea000762bce0 ffff8801d9ea24c0 0000000000000000 [ 52.706527] page dumped because: kasan: bad access detected [ 52.712200] [ 52.713790] Memory state around the buggy address: [ 52.718683] ffff8801cdee8b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.726008] ffff8801cdee8b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.733334] >ffff8801cdee8c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.740655] ^ [ 52.743985] ffff8801cdee8c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.751313] ffff8801cdee8d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.758636] ================================================================== [ 52.765957] Disabling lock debugging due to kernel taint [ 52.771369] Kernel panic - not syncing: panic_on_warn set ... [ 52.771369] [ 52.778696] CPU: 0 PID: 22866 Comm: syz-executor4 Tainted: G B 4.15.0-rc6+ #155 [ 52.787322] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.796642] Call Trace: [ 52.799200] dump_stack+0x194/0x257 [ 52.802793] ? arch_local_irq_restore+0x53/0x53 [ 52.807427] ? kasan_end_report+0x32/0x50 [ 52.811541] ? lock_downgrade+0x980/0x980 [ 52.815654] ? vsnprintf+0x1ed/0x1900 [ 52.819420] ? __lock_acquire+0x3c70/0x3e00 [ 52.823705] panic+0x1e4/0x41c [ 52.826862] ? refcount_error_report+0x214/0x214 [ 52.831583] ? add_taint+0x40/0x50 [ 52.835090] ? add_taint+0x1c/0x50 [ 52.838595] ? __lock_acquire+0x3d4d/0x3e00 [ 52.842882] kasan_end_report+0x50/0x50 [ 52.846822] kasan_report+0x144/0x340 [ 52.850588] __asan_report_load8_noabort+0x14/0x20 [ 52.855481] __lock_acquire+0x3d4d/0x3e00 [ 52.859596] ? clear_asid_other+0x50/0x50 [ 52.863711] ? shmem_fault+0x615/0x960 [ 52.867566] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 52.872722] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.877706] ? trace_hardirqs_on+0xd/0x10 [ 52.881821] ? _raw_spin_unlock_irq+0x27/0x70 [ 52.886282] ? finish_task_switch+0x1d3/0x740 [ 52.890743] ? finish_task_switch+0x1aa/0x740 [ 52.895211] ? copy_overflow+0x20/0x20 [ 52.899065] ? __schedule+0x8f3/0x2060 [ 52.902920] ? __sched_text_start+0x8/0x8 [ 52.907033] ? check_noncircular+0x20/0x20 [ 52.911239] ? prepare_to_wait+0x192/0x4d0 [ 52.915437] ? lock_downgrade+0x980/0x980 [ 52.919551] ? find_get_entries_tag+0xeb0/0xeb0 [ 52.924185] ? lock_release+0xa40/0xa40 [ 52.928128] ? mark_held_locks+0xaf/0x100 [ 52.932247] lock_acquire+0x1d5/0x580 [ 52.936013] ? lock_acquire+0x1d5/0x580 [ 52.939953] ? shmem_fault+0x615/0x960 [ 52.943806] ? lock_downgrade+0x980/0x980 [ 52.947921] ? lock_release+0xa40/0xa40 [ 52.951859] ? __do_page_fault+0x5c9/0xc90 [ 52.956060] ? do_page_fault+0xee/0x720 [ 52.960000] ? page_fault+0x4c/0x60 [ 52.963596] ? do_raw_spin_trylock+0x190/0x190 [ 52.968145] _raw_spin_lock+0x2a/0x40 [ 52.971910] ? shmem_fault+0x615/0x960 [ 52.975761] shmem_fault+0x615/0x960 [ 52.979460] ? shmem_read_mapping_page_gfp+0x1d0/0x1d0 [ 52.984703] ? shmem_fill_super+0xa10/0xa10 [ 52.988993] __do_fault+0xeb/0x30f [ 52.992503] ? pte_offset_kernel+0xc7/0xc7 [ 52.996712] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 53.001696] ? lockdep_init_map+0x9/0x10 [ 53.005723] ? __raw_spin_lock_init+0x2d/0x100 [ 53.010273] __handle_mm_fault+0x1d8f/0x3ce0 [ 53.014648] ? __pmd_alloc+0x4e0/0x4e0 [ 53.018504] ? find_held_lock+0x35/0x1d0 [ 53.022534] ? handle_mm_fault+0x248/0x8d0 [ 53.026733] ? lock_downgrade+0x980/0x980 [ 53.030852] handle_mm_fault+0x334/0x8d0 [ 53.034876] ? down_read_trylock+0xdb/0x170 [ 53.039163] ? __do_page_fault+0x32d/0xc90 [ 53.043362] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 53.047909] ? vmacache_find+0x5f/0x280 [ 53.051855] ? vmacache_update+0xfe/0x130 [ 53.055969] ? find_vma+0x30/0x150 [ 53.059482] __do_page_fault+0x5c9/0xc90 [ 53.063510] ? mm_fault_error+0x2c0/0x2c0 [ 53.067623] ? lock_release+0xa40/0xa40 [ 53.071563] do_page_fault+0xee/0x720 [ 53.075330] ? _raw_spin_unlock_irq+0x27/0x70 [ 53.079790] ? __do_page_fault+0xc90/0xc90 [ 53.083990] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 53.088978] ? syscall_return_slowpath+0x2ad/0x550 [ 53.093872] ? prepare_exit_to_usermode+0x340/0x340 [ 53.098853] ? ret_from_fork+0x1a/0x30 [ 53.102705] ? page_fault+0x36/0x60 [ 53.106298] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 53.111107] ? page_fault+0x36/0x60 [ 53.114701] page_fault+0x4c/0x60 [ 53.118122] RIP: 0023:0xf7faec79 [ 53.121449] RSP: 002b:000000002098d000 EFLAGS: 00010296 [ 53.126777] RAX: 0000000000000000 RBX: 00000000000001fe RCX: 000000002098d000 [ 53.134017] RDX: 0000000020651000 RSI: 0000000020c6f000 RDI: 000000002095c000 [ 53.141253] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 53.148487] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 53.155723] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 53.163363] Dumping ftrace buffer: [ 53.166867] (ftrace buffer empty) [ 53.170540] Kernel Offset: disabled [ 53.174133] Rebooting in 86400 seconds..