[....] Starting enhanced syslogd: rsyslogd[ 12.333293] audit: type=1400 audit(1514838316.192:5): avc: denied { syslog } for pid=3344 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: [ 17.001492] audit: type=1400 audit(1514838320.860:6): avc: denied { map } for pid=3485 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.0.30' (ECDSA) to the list of known hosts. executing program [ 25.655685] audit: type=1400 audit(1514838329.514:7): avc: denied { map } for pid=3500 comm="syzkaller249106" path="/root/syzkaller249106026" 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 [ 25.658999] ================================================================== [ 25.659014] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 25.659017] Read of size 8 at addr ffff8801c8f05d70 by task syzkaller249106/3500 [ 25.659018] [ 25.659023] CPU: 0 PID: 3500 Comm: syzkaller249106 Not tainted 4.15.0-rc6+ #245 [ 25.659026] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.659027] Call Trace: [ 25.659035] dump_stack+0x194/0x257 [ 25.659040] ? arch_local_irq_restore+0x53/0x53 [ 25.659045] ? show_regs_print_info+0x18/0x18 [ 25.659049] ? print_irqtrace_events+0x270/0x270 [ 25.659053] ? __lock_acquire+0x664/0x3e00 [ 25.659057] ? __lock_acquire+0x3d4d/0x3e00 [ 25.659063] print_address_description+0x73/0x250 [ 25.659067] ? __lock_acquire+0x3d4d/0x3e00 [ 25.659071] kasan_report+0x25b/0x340 [ 25.659076] __asan_report_load8_noabort+0x14/0x20 [ 25.659080] __lock_acquire+0x3d4d/0x3e00 [ 25.659084] ? __lock_acquire+0x664/0x3e00 [ 25.659087] ? lock_downgrade+0x980/0x980 [ 25.659090] ? lock_downgrade+0x980/0x980 [ 25.659096] ? remove_wait_queue+0x81/0x350 [ 25.659102] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.659106] ? __lock_acquire+0x664/0x3e00 [ 25.659109] ? check_noncircular+0x20/0x20 [ 25.659117] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.659121] ? lock_acquire+0x1d5/0x580 [ 25.659124] ? lock_acquire+0x1d5/0x580 [ 25.659129] ? ep_free+0xf4/0x320 [ 25.659134] ? lock_release+0xa40/0xa40 [ 25.659139] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.659143] ? print_irqtrace_events+0x270/0x270 [ 25.659149] ? rcu_note_context_switch+0x710/0x710 [ 25.659154] ? __might_sleep+0x95/0x190 [ 25.659157] ? ep_free+0xf4/0x320 [ 25.659162] ? __mutex_lock+0x16f/0x1a80 [ 25.659165] ? ep_free+0xf4/0x320 [ 25.659169] ? print_irqtrace_events+0x270/0x270 [ 25.659172] ? ep_free+0xf4/0x320 [ 25.659177] lock_acquire+0x1d5/0x580 [ 25.659181] ? lock_acquire+0x1d5/0x580 [ 25.659184] ? remove_wait_queue+0x81/0x350 [ 25.659188] ? __lock_acquire+0x664/0x3e00 [ 25.659192] ? lock_release+0xa40/0xa40 [ 25.659198] ? lock_acquire+0x1d5/0x580 [ 25.659201] ? lock_acquire+0x1d5/0x580 [ 25.659205] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.659210] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.659214] ? remove_wait_queue+0x81/0x350 [ 25.659218] remove_wait_queue+0x81/0x350 [ 25.659223] ? add_wait_queue+0x290/0x290 [ 25.659226] ? rcutorture_record_progress+0x10/0x10 [ 25.659233] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.659238] ? __kernel_text_address+0xd/0x40 [ 25.659243] ? clear_tfile_check_list+0x370/0x370 [ 25.659247] ? check_noncircular+0x20/0x20 [ 25.659253] ? locks_remove_file+0x3fa/0x5a0 [ 25.659259] ep_free+0x13f/0x320 [ 25.659263] ? ep_remove+0x800/0x800 [ 25.659266] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.659271] ? ep_free+0x320/0x320 [ 25.659275] ep_eventpoll_release+0x44/0x60 [ 25.659280] __fput+0x327/0x7e0 [ 25.659286] ? fput+0x140/0x140 [ 25.659290] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.659295] ____fput+0x15/0x20 [ 25.659299] task_work_run+0x199/0x270 [ 25.659305] ? task_work_cancel+0x210/0x210 [ 25.659309] ? _raw_spin_unlock+0x22/0x30 [ 25.659312] ? switch_task_namespaces+0x87/0xc0 [ 25.659318] do_exit+0x9bb/0x1ad0 [ 25.659324] ? binder_ioctl+0x551/0x1417 [ 25.659328] ? mm_update_next_owner+0x930/0x930 [ 25.659332] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.659339] ? avc_ss_reset+0x110/0x110 [ 25.659342] ? mutex_unlock+0xd/0x10 [ 25.659346] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.659358] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.659361] ? up_read+0x1a/0x40 [ 25.659365] ? rcu_note_context_switch+0x710/0x710 [ 25.659368] ? __fd_install+0x288/0x740 [ 25.659374] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.659377] ? do_vfs_ioctl+0x486/0x1520 [ 25.659380] ? _cond_resched+0x14/0x30 [ 25.659385] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.659390] ? selinux_capable+0x40/0x40 [ 25.659394] ? __alloc_fd+0x750/0x750 [ 25.659399] do_group_exit+0x149/0x400 [ 25.659403] ? SyS_exit+0x30/0x30 [ 25.659407] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.659412] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.659417] SyS_exit_group+0x1d/0x20 [ 25.659421] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.659424] RIP: 0033:0x4429f8 [ 25.659426] RSP: 002b:00007ffc773b3578 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.659430] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.659432] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.659435] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.659436] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.659438] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.659444] [ 25.659445] Allocated by task 3500: [ 25.659449] save_stack+0x43/0xd0 [ 25.659452] kasan_kmalloc+0xad/0xe0 [ 25.659455] kmem_cache_alloc_trace+0x136/0x750 [ 25.659457] binder_get_thread+0x1cf/0x870 [ 25.659460] binder_poll+0x8c/0x390 [ 25.659463] ep_item_poll.isra.10+0xec/0x320 [ 25.659466] ep_insert+0x6a3/0x1b10 [ 25.659469] SyS_epoll_ctl+0x12e4/0x1ab0 [ 25.659472] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.659473] [ 25.659474] Freed by task 3500: [ 25.659477] save_stack+0x43/0xd0 [ 25.659480] kasan_slab_free+0x71/0xc0 [ 25.659482] kfree+0xd6/0x260 [ 25.659485] binder_thread_dec_tmpref+0x27f/0x310 [ 25.659487] binder_thread_release+0x27d/0x540 [ 25.659490] binder_ioctl+0xc02/0x1417 [ 25.659493] do_vfs_ioctl+0x1b1/0x1520 [ 25.659495] SyS_ioctl+0x8f/0xc0 [ 25.659498] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.659499] [ 25.659501] The buggy address belongs to the object at ffff8801c8f05cc0 [ 25.659501] which belongs to the cache kmalloc-512 of size 512 [ 25.659505] The buggy address is located 176 bytes inside of [ 25.659505] 512-byte region [ffff8801c8f05cc0, ffff8801c8f05ec0) [ 25.659505] The buggy address belongs to the page: [ 25.659509] page:00000000cd4a0032 count:1 mapcount:0 mapping:000000001461aba8 index:0x0 [ 25.659513] flags: 0x2fffc0000000100(slab) [ 25.659519] raw: 02fffc0000000100 ffff8801c8f05040 0000000000000000 0000000100000006 [ 25.659523] raw: ffffea000726ef60 ffffea000723d920 ffff8801dac00940 0000000000000000 [ 25.659524] page dumped because: kasan: bad access detected [ 25.659525] [ 25.659526] Memory state around the buggy address: [ 25.659529] ffff8801c8f05c00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.659531] ffff8801c8f05c80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 25.659534] >ffff8801c8f05d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.659535] ^ [ 25.659538] ffff8801c8f05d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.659540] ffff8801c8f05e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.659541] ================================================================== [ 25.659543] Disabling lock debugging due to kernel taint [ 25.659545] Kernel panic - not syncing: panic_on_warn set ... [ 25.659545] [ 25.659549] CPU: 0 PID: 3500 Comm: syzkaller249106 Tainted: G B 4.15.0-rc6+ #245 [ 25.659550] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.659551] Call Trace: [ 25.659555] dump_stack+0x194/0x257 [ 25.659564] ? arch_local_irq_restore+0x53/0x53 [ 25.659567] ? kasan_end_report+0x32/0x50 [ 25.659571] ? lock_downgrade+0x980/0x980 [ 25.659576] ? vsnprintf+0x1ed/0x1900 [ 25.659579] ? __lock_acquire+0x3c70/0x3e00 [ 25.659583] panic+0x1e4/0x41c [ 25.659587] ? refcount_error_report+0x214/0x214 [ 25.659591] ? add_taint+0x40/0x50 [ 25.659594] ? add_taint+0x1c/0x50 [ 25.659598] ? __lock_acquire+0x3d4d/0x3e00 [ 25.659601] kasan_end_report+0x50/0x50 [ 25.659604] kasan_report+0x144/0x340 [ 25.659609] __asan_report_load8_noabort+0x14/0x20 [ 25.659613] __lock_acquire+0x3d4d/0x3e00 [ 25.659616] ? __lock_acquire+0x664/0x3e00 [ 25.659619] ? lock_downgrade+0x980/0x980 [ 25.659622] ? lock_downgrade+0x980/0x980 [ 25.659627] ? remove_wait_queue+0x81/0x350 [ 25.659632] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.659635] ? __lock_acquire+0x664/0x3e00 [ 25.659638] ? check_noncircular+0x20/0x20 [ 25.659645] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.659649] ? lock_acquire+0x1d5/0x580 [ 25.659652] ? lock_acquire+0x1d5/0x580 [ 25.659655] ? ep_free+0xf4/0x320 [ 25.659660] ? lock_release+0xa40/0xa40 [ 25.659664] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.659667] ? print_irqtrace_events+0x270/0x270 [ 25.659671] ? rcu_note_context_switch+0x710/0x710 [ 25.659675] ? __might_sleep+0x95/0x190 [ 25.659678] ? ep_free+0xf4/0x320 [ 25.659682] ? __mutex_lock+0x16f/0x1a80 [ 25.659685] ? ep_free+0xf4/0x320 [ 25.659689] ? print_irqtrace_events+0x270/0x270 [ 25.659692] ? ep_free+0xf4/0x320 [ 25.659696] lock_acquire+0x1d5/0x580 [ 25.659699] ? lock_acquire+0x1d5/0x580 [ 25.659703] ? remove_wait_queue+0x81/0x350 [ 25.659706] ? __lock_acquire+0x664/0x3e00 [ 25.659710] ? lock_release+0xa40/0xa40 [ 25.659716] ? lock_acquire+0x1d5/0x580 [ 25.659719] ? lock_acquire+0x1d5/0x580 [ 25.659722] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 25.659727] _raw_spin_lock_irqsave+0x96/0xc0 [ 25.659730] ? remove_wait_queue+0x81/0x350 [ 25.659734] remove_wait_queue+0x81/0x350 [ 25.659738] ? add_wait_queue+0x290/0x290 [ 25.659742] ? rcutorture_record_progress+0x10/0x10 [ 25.659747] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 25.659751] ? __kernel_text_address+0xd/0x40 [ 25.659756] ? clear_tfile_check_list+0x370/0x370 [ 25.659760] ? check_noncircular+0x20/0x20 [ 25.659765] ? locks_remove_file+0x3fa/0x5a0 [ 25.659770] ep_free+0x13f/0x320 [ 25.659773] ? ep_remove+0x800/0x800 [ 25.659777] ? fsnotify_first_mark+0x2b0/0x2b0 [ 25.659781] ? ep_free+0x320/0x320 [ 25.659785] ep_eventpoll_release+0x44/0x60 [ 25.659788] __fput+0x327/0x7e0 [ 25.659793] ? fput+0x140/0x140 [ 25.659797] ? _raw_spin_unlock_irq+0x27/0x70 [ 25.659802] ____fput+0x15/0x20 [ 25.659805] task_work_run+0x199/0x270 [ 25.659810] ? task_work_cancel+0x210/0x210 [ 25.659813] ? _raw_spin_unlock+0x22/0x30 [ 25.659817] ? switch_task_namespaces+0x87/0xc0 [ 25.659821] do_exit+0x9bb/0x1ad0 [ 25.659825] ? binder_ioctl+0x551/0x1417 [ 25.659829] ? mm_update_next_owner+0x930/0x930 [ 25.659833] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.659838] ? avc_ss_reset+0x110/0x110 [ 25.659841] ? mutex_unlock+0xd/0x10 [ 25.659845] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 25.659854] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.659857] ? up_read+0x1a/0x40 [ 25.659861] ? rcu_note_context_switch+0x710/0x710 [ 25.659864] ? __fd_install+0x288/0x740 [ 25.659869] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 25.659872] ? do_vfs_ioctl+0x486/0x1520 [ 25.659875] ? _cond_resched+0x14/0x30 [ 25.659879] ? ioctl_preallocate+0x2b0/0x2b0 [ 25.659883] ? selinux_capable+0x40/0x40 [ 25.659887] ? __alloc_fd+0x750/0x750 [ 25.659891] do_group_exit+0x149/0x400 [ 25.659895] ? SyS_exit+0x30/0x30 [ 25.659899] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.659903] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.659907] SyS_exit_group+0x1d/0x20 [ 25.659911] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.659913] RIP: 0033:0x4429f8 [ 25.659915] RSP: 002b:00007ffc773b3578 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 25.659919] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 25.659921] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 25.659923] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 25.659925] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 25.659926] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 25.681981] Dumping ftrace buffer: [ 25.681984] (ftrace buffer empty) [ 25.681986] Kernel Offset: disabled [ 26.806170] Rebooting in 86400 seconds..