[....] Starting enhanced syslogd: rsyslogd[ 11.620511] audit: type=1400 audit(1515664784.068: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 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: [ 17.521442] audit: type=1400 audit(1515664789.969:6): avc: denied { map } for pid=3484 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.32' (ECDSA) to the list of known hosts. executing program [ 34.774465] audit: type=1400 audit(1515664807.222:7): avc: denied { map } for pid=3502 comm="syzkaller551445" path="/root/syzkaller551445602" 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 [ 34.779065] ================================================================== [ 34.779076] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 34.779080] Read of size 8 at addr ffff8801c7a250f0 by task syzkaller551445/3502 [ 34.779081] [ 34.779086] CPU: 1 PID: 3502 Comm: syzkaller551445 Not tainted 4.15.0-rc7+ #257 [ 34.779088] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.779090] Call Trace: [ 34.779097] dump_stack+0x194/0x257 [ 34.779102] ? arch_local_irq_restore+0x53/0x53 [ 34.779107] ? show_regs_print_info+0x18/0x18 [ 34.779111] ? print_irqtrace_events+0x270/0x270 [ 34.779114] ? __lock_acquire+0x664/0x3e00 [ 34.779118] ? __lock_acquire+0x3d4d/0x3e00 [ 34.779125] print_address_description+0x73/0x250 [ 34.779128] ? __lock_acquire+0x3d4d/0x3e00 [ 34.779136] kasan_report+0x25b/0x340 [ 34.779143] __asan_report_load8_noabort+0x14/0x20 [ 34.779146] __lock_acquire+0x3d4d/0x3e00 [ 34.779149] ? __lock_acquire+0x664/0x3e00 [ 34.779153] ? lock_downgrade+0x980/0x980 [ 34.779156] ? lock_downgrade+0x980/0x980 [ 34.779163] ? remove_wait_queue+0x81/0x350 [ 34.779168] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 34.779172] ? __lock_acquire+0x664/0x3e00 [ 34.779175] ? check_noncircular+0x20/0x20 [ 34.779183] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 34.779188] ? lock_acquire+0x1d5/0x580 [ 34.779191] ? lock_acquire+0x1d5/0x580 [ 34.779196] ? ep_free+0xf4/0x320 [ 34.779201] ? lock_release+0xa40/0xa40 [ 34.779206] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 34.779210] ? print_irqtrace_events+0x270/0x270 [ 34.779216] ? rcu_note_context_switch+0x710/0x710 [ 34.779220] ? __might_sleep+0x95/0x190 [ 34.779224] ? ep_free+0xf4/0x320 [ 34.779229] ? __mutex_lock+0x16f/0x1a80 [ 34.779232] ? ep_free+0xf4/0x320 [ 34.779236] ? print_irqtrace_events+0x270/0x270 [ 34.779239] ? ep_free+0xf4/0x320 [ 34.779244] lock_acquire+0x1d5/0x580 [ 34.779247] ? lock_acquire+0x1d5/0x580 [ 34.779251] ? remove_wait_queue+0x81/0x350 [ 34.779255] ? __lock_acquire+0x664/0x3e00 [ 34.779259] ? lock_release+0xa40/0xa40 [ 34.779265] ? lock_acquire+0x1d5/0x580 [ 34.779268] ? lock_acquire+0x1d5/0x580 [ 34.779272] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 34.779278] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.779281] ? remove_wait_queue+0x81/0x350 [ 34.779285] remove_wait_queue+0x81/0x350 [ 34.779290] ? add_wait_queue+0x290/0x290 [ 34.779293] ? rcutorture_record_progress+0x10/0x10 [ 34.779300] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 34.779306] ? __kernel_text_address+0xd/0x40 [ 34.779311] ? clear_tfile_check_list+0x370/0x370 [ 34.779316] ? check_noncircular+0x20/0x20 [ 34.779322] ? locks_remove_file+0x3fa/0x5a0 [ 34.779328] ep_free+0x13f/0x320 [ 34.779332] ? ep_remove+0x800/0x800 [ 34.779335] ? fsnotify_first_mark+0x2b0/0x2b0 [ 34.779340] ? ep_free+0x320/0x320 [ 34.779344] ep_eventpoll_release+0x44/0x60 [ 34.779349] __fput+0x327/0x7e0 [ 34.779354] ? fput+0x140/0x140 [ 34.779358] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.779364] ____fput+0x15/0x20 [ 34.779368] task_work_run+0x199/0x270 [ 34.779372] ? task_work_cancel+0x210/0x210 [ 34.779376] ? _raw_spin_unlock+0x22/0x30 [ 34.779380] ? switch_task_namespaces+0x87/0xc0 [ 34.779387] do_exit+0x9bb/0x1ad0 [ 34.779393] ? binder_ioctl+0x481/0x1417 [ 34.779396] ? mm_update_next_owner+0x930/0x930 [ 34.779401] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 34.779408] ? avc_ss_reset+0x110/0x110 [ 34.779411] ? mutex_unlock+0xd/0x10 [ 34.779415] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 34.779427] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 34.779430] ? up_read+0x1a/0x40 [ 34.779434] ? rcu_note_context_switch+0x710/0x710 [ 34.779438] ? __fd_install+0x288/0x740 [ 34.779443] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 34.779447] ? do_vfs_ioctl+0x486/0x1520 [ 34.779450] ? _cond_resched+0x14/0x30 [ 34.779455] ? ioctl_preallocate+0x2b0/0x2b0 [ 34.779460] ? selinux_capable+0x40/0x40 [ 34.779464] ? __alloc_fd+0x750/0x750 [ 34.779469] do_group_exit+0x149/0x400 [ 34.779473] ? SyS_exit+0x30/0x30 [ 34.779477] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.779482] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.779487] SyS_exit_group+0x1d/0x20 [ 34.779491] entry_SYSCALL_64_fastpath+0x23/0x9a [ 34.779494] RIP: 0033:0x4429f8 [ 34.779496] RSP: 002b:00007fff15f1a098 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.779500] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 34.779502] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.779504] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.779506] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 34.779508] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 34.779513] [ 34.779516] Allocated by task 3502: [ 34.779520] save_stack+0x43/0xd0 [ 34.779523] kasan_kmalloc+0xad/0xe0 [ 34.779525] kmem_cache_alloc_trace+0x136/0x750 [ 34.779528] binder_get_thread+0x1cf/0x870 [ 34.779531] binder_poll+0x8c/0x390 [ 34.779534] ep_item_poll.isra.10+0xec/0x320 [ 34.779537] ep_insert+0x6a3/0x1b10 [ 34.779540] SyS_epoll_ctl+0x12e4/0x1ab0 [ 34.779543] entry_SYSCALL_64_fastpath+0x23/0x9a [ 34.779544] [ 34.779545] Freed by task 3502: [ 34.779548] save_stack+0x43/0xd0 [ 34.779551] kasan_slab_free+0x71/0xc0 [ 34.779553] kfree+0xd6/0x260 [ 34.779556] binder_thread_dec_tmpref+0x27f/0x310 [ 34.779558] binder_thread_release+0x27d/0x540 [ 34.779561] binder_ioctl+0xc02/0x1417 [ 34.779564] do_vfs_ioctl+0x1b1/0x1520 [ 34.779566] SyS_ioctl+0x8f/0xc0 [ 34.779569] entry_SYSCALL_64_fastpath+0x23/0x9a [ 34.779570] [ 34.779573] The buggy address belongs to the object at ffff8801c7a25040 [ 34.779573] which belongs to the cache kmalloc-512 of size 512 [ 34.779576] The buggy address is located 176 bytes inside of [ 34.779576] 512-byte region [ffff8801c7a25040, ffff8801c7a25240) [ 34.779577] The buggy address belongs to the page: [ 34.779580] page:ffffea00071e8940 count:1 mapcount:0 mapping:ffff8801c7a25040 index:0x0 [ 34.779583] flags: 0x2fffc0000000100(slab) [ 34.779589] raw: 02fffc0000000100 ffff8801c7a25040 0000000000000000 0000000100000006 [ 34.779593] raw: ffffea00071af360 ffff8801dac01748 ffff8801dac00940 0000000000000000 [ 34.779595] page dumped because: kasan: bad access detected [ 34.779595] [ 34.779596] Memory state around the buggy address: [ 34.779599] ffff8801c7a24f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.779602] ffff8801c7a25000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 34.779604] >ffff8801c7a25080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.779606] ^ [ 34.779608] ffff8801c7a25100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.779611] ffff8801c7a25180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.779612] ================================================================== [ 34.779613] Disabling lock debugging due to kernel taint [ 34.779615] Kernel panic - not syncing: panic_on_warn set ... [ 34.779615] [ 34.779619] CPU: 1 PID: 3502 Comm: syzkaller551445 Tainted: G B 4.15.0-rc7+ #257 [ 34.779621] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.779622] Call Trace: [ 34.779626] dump_stack+0x194/0x257 [ 34.779630] ? arch_local_irq_restore+0x53/0x53 [ 34.779633] ? kasan_end_report+0x32/0x50 [ 34.779637] ? lock_downgrade+0x980/0x980 [ 34.779642] ? vsnprintf+0x1ed/0x1900 [ 34.779646] ? __lock_acquire+0x3cb0/0x3e00 [ 34.779649] panic+0x1e4/0x41c [ 34.779652] ? refcount_error_report+0x214/0x214 [ 34.779657] ? add_taint+0x40/0x50 [ 34.779659] ? add_taint+0x1c/0x50 [ 34.779664] ? __lock_acquire+0x3d4d/0x3e00 [ 34.779667] kasan_end_report+0x50/0x50 [ 34.779671] kasan_report+0x144/0x340 [ 34.779675] __asan_report_load8_noabort+0x14/0x20 [ 34.779679] __lock_acquire+0x3d4d/0x3e00 [ 34.779682] ? __lock_acquire+0x664/0x3e00 [ 34.779685] ? lock_downgrade+0x980/0x980 [ 34.779688] ? lock_downgrade+0x980/0x980 [ 34.779693] ? remove_wait_queue+0x81/0x350 [ 34.779698] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 34.779702] ? __lock_acquire+0x664/0x3e00 [ 34.779705] ? check_noncircular+0x20/0x20 [ 34.779712] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 34.779716] ? lock_acquire+0x1d5/0x580 [ 34.779719] ? lock_acquire+0x1d5/0x580 [ 34.779722] ? ep_free+0xf4/0x320 [ 34.779727] ? lock_release+0xa40/0xa40 [ 34.779730] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 34.779734] ? print_irqtrace_events+0x270/0x270 [ 34.779738] ? rcu_note_context_switch+0x710/0x710 [ 34.779742] ? __might_sleep+0x95/0x190 [ 34.779745] ? ep_free+0xf4/0x320 [ 34.779749] ? __mutex_lock+0x16f/0x1a80 [ 34.779752] ? ep_free+0xf4/0x320 [ 34.779756] ? print_irqtrace_events+0x270/0x270 [ 34.779759] ? ep_free+0xf4/0x320 [ 34.779763] lock_acquire+0x1d5/0x580 [ 34.779766] ? lock_acquire+0x1d5/0x580 [ 34.779770] ? remove_wait_queue+0x81/0x350 [ 34.779773] ? __lock_acquire+0x664/0x3e00 [ 34.779778] ? lock_release+0xa40/0xa40 [ 34.779783] ? lock_acquire+0x1d5/0x580 [ 34.779786] ? lock_acquire+0x1d5/0x580 [ 34.779790] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 34.779794] _raw_spin_lock_irqsave+0x96/0xc0 [ 34.779797] ? remove_wait_queue+0x81/0x350 [ 34.779801] remove_wait_queue+0x81/0x350 [ 34.779806] ? add_wait_queue+0x290/0x290 [ 34.779809] ? rcutorture_record_progress+0x10/0x10 [ 34.779815] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 34.779819] ? __kernel_text_address+0xd/0x40 [ 34.779824] ? clear_tfile_check_list+0x370/0x370 [ 34.779828] ? check_noncircular+0x20/0x20 [ 34.779832] ? locks_remove_file+0x3fa/0x5a0 [ 34.779838] ep_free+0x13f/0x320 [ 34.779841] ? ep_remove+0x800/0x800 [ 34.779845] ? fsnotify_first_mark+0x2b0/0x2b0 [ 34.779849] ? ep_free+0x320/0x320 [ 34.779853] ep_eventpoll_release+0x44/0x60 [ 34.779856] __fput+0x327/0x7e0 [ 34.779861] ? fput+0x140/0x140 [ 34.779865] ? _raw_spin_unlock_irq+0x27/0x70 [ 34.779870] ____fput+0x15/0x20 [ 34.779874] task_work_run+0x199/0x270 [ 34.779879] ? task_work_cancel+0x210/0x210 [ 34.779882] ? _raw_spin_unlock+0x22/0x30 [ 34.779886] ? switch_task_namespaces+0x87/0xc0 [ 34.779890] do_exit+0x9bb/0x1ad0 [ 34.779894] ? binder_ioctl+0x481/0x1417 [ 34.779898] ? mm_update_next_owner+0x930/0x930 [ 34.779902] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 34.779907] ? avc_ss_reset+0x110/0x110 [ 34.779910] ? mutex_unlock+0xd/0x10 [ 34.779914] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 34.779926] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 34.779930] ? up_read+0x1a/0x40 [ 34.779936] ? rcu_note_context_switch+0x710/0x710 [ 34.779939] ? __fd_install+0x288/0x740 [ 34.779944] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 34.779948] ? do_vfs_ioctl+0x486/0x1520 [ 34.779950] ? _cond_resched+0x14/0x30 [ 34.779955] ? ioctl_preallocate+0x2b0/0x2b0 [ 34.779959] ? selinux_capable+0x40/0x40 [ 34.779963] ? __alloc_fd+0x750/0x750 [ 34.779967] do_group_exit+0x149/0x400 [ 34.779971] ? SyS_exit+0x30/0x30 [ 34.779975] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 34.779979] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.779983] SyS_exit_group+0x1d/0x20 [ 34.779987] entry_SYSCALL_64_fastpath+0x23/0x9a [ 34.779990] RIP: 0033:0x4429f8 [ 34.779991] RSP: 002b:00007fff15f1a098 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 34.779995] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 34.779997] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 34.779999] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 34.780004] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 34.780006] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 34.800344] Dumping ftrace buffer: [ 34.800347] (ftrace buffer empty) [ 34.800349] Kernel Offset: disabled [ 35.926057] Rebooting in 86400 seconds..