[....] Starting enhanced syslogd: rsyslogd[ 11.727841] audit: type=1400 audit(1515098813.387: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: [ 16.483147] audit: type=1400 audit(1515098818.142:6): avc: denied { map } for pid=3483 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.224' (ECDSA) to the list of known hosts. executing program [ 35.452827] audit: type=1400 audit(1515098837.112:7): avc: denied { map } for pid=3501 comm="syzkaller419207" path="/root/syzkaller419207183" 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 [ 35.457684] ================================================================== [ 35.457699] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 35.457703] Read of size 8 at addr ffff8801cde62af0 by task syzkaller419207/3501 [ 35.457704] [ 35.457711] CPU: 1 PID: 3501 Comm: syzkaller419207 Not tainted 4.15.0-rc6+ #247 [ 35.457713] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.457715] Call Trace: [ 35.457725] dump_stack+0x194/0x257 [ 35.457730] ? arch_local_irq_restore+0x53/0x53 [ 35.457736] ? show_regs_print_info+0x18/0x18 [ 35.457740] ? print_irqtrace_events+0x270/0x270 [ 35.457744] ? __lock_acquire+0x664/0x3e00 [ 35.457748] ? __lock_acquire+0x3d4d/0x3e00 [ 35.457756] print_address_description+0x73/0x250 [ 35.457759] ? __lock_acquire+0x3d4d/0x3e00 [ 35.457763] kasan_report+0x25b/0x340 [ 35.457769] __asan_report_load8_noabort+0x14/0x20 [ 35.457773] __lock_acquire+0x3d4d/0x3e00 [ 35.457776] ? __lock_acquire+0x664/0x3e00 [ 35.457780] ? lock_downgrade+0x980/0x980 [ 35.457783] ? lock_downgrade+0x980/0x980 [ 35.457790] ? remove_wait_queue+0x81/0x350 [ 35.457795] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.457799] ? __lock_acquire+0x664/0x3e00 [ 35.457803] ? check_noncircular+0x20/0x20 [ 35.457810] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.457815] ? lock_acquire+0x1d5/0x580 [ 35.457818] ? lock_acquire+0x1d5/0x580 [ 35.457825] ? ep_free+0xf4/0x320 [ 35.457830] ? lock_release+0xa40/0xa40 [ 35.457835] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.457839] ? print_irqtrace_events+0x270/0x270 [ 35.457846] ? rcu_note_context_switch+0x710/0x710 [ 35.457851] ? __might_sleep+0x95/0x190 [ 35.457855] ? ep_free+0xf4/0x320 [ 35.457860] ? __mutex_lock+0x16f/0x1a80 [ 35.457863] ? ep_free+0xf4/0x320 [ 35.457867] ? print_irqtrace_events+0x270/0x270 [ 35.457870] ? ep_free+0xf4/0x320 [ 35.457875] lock_acquire+0x1d5/0x580 [ 35.457878] ? lock_acquire+0x1d5/0x580 [ 35.457882] ? remove_wait_queue+0x81/0x350 [ 35.457885] ? __lock_acquire+0x664/0x3e00 [ 35.457890] ? lock_release+0xa40/0xa40 [ 35.457895] ? lock_acquire+0x1d5/0x580 [ 35.457898] ? lock_acquire+0x1d5/0x580 [ 35.457902] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 35.457908] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.457911] ? remove_wait_queue+0x81/0x350 [ 35.457915] remove_wait_queue+0x81/0x350 [ 35.457920] ? add_wait_queue+0x290/0x290 [ 35.457924] ? rcutorture_record_progress+0x10/0x10 [ 35.457930] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 35.457936] ? __kernel_text_address+0xd/0x40 [ 35.457941] ? clear_tfile_check_list+0x370/0x370 [ 35.457945] ? check_noncircular+0x20/0x20 [ 35.457952] ? locks_remove_file+0x3fa/0x5a0 [ 35.457958] ep_free+0x13f/0x320 [ 35.457962] ? ep_remove+0x800/0x800 [ 35.457965] ? fsnotify_first_mark+0x2b0/0x2b0 [ 35.457970] ? ep_free+0x320/0x320 [ 35.457974] ep_eventpoll_release+0x44/0x60 [ 35.457980] __fput+0x327/0x7e0 [ 35.457985] ? fput+0x140/0x140 [ 35.457989] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.457995] ____fput+0x15/0x20 [ 35.457999] task_work_run+0x199/0x270 [ 35.458007] ? task_work_cancel+0x210/0x210 [ 35.458012] ? _raw_spin_unlock+0x22/0x30 [ 35.458016] ? switch_task_namespaces+0x87/0xc0 [ 35.458022] do_exit+0x9bb/0x1ad0 [ 35.458029] ? binder_ioctl+0x551/0x1417 [ 35.458033] ? mm_update_next_owner+0x930/0x930 [ 35.458038] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.458046] ? avc_ss_reset+0x110/0x110 [ 35.458049] ? mutex_unlock+0xd/0x10 [ 35.458053] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 35.458065] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.458068] ? up_read+0x1a/0x40 [ 35.458072] ? rcu_note_context_switch+0x710/0x710 [ 35.458077] ? __fd_install+0x288/0x740 [ 35.458082] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.458086] ? do_vfs_ioctl+0x486/0x1520 [ 35.458089] ? _cond_resched+0x14/0x30 [ 35.458094] ? ioctl_preallocate+0x2b0/0x2b0 [ 35.458099] ? selinux_capable+0x40/0x40 [ 35.458103] ? __alloc_fd+0x750/0x750 [ 35.458108] do_group_exit+0x149/0x400 [ 35.458112] ? SyS_exit+0x30/0x30 [ 35.458116] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.458124] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.458128] SyS_exit_group+0x1d/0x20 [ 35.458132] entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.458136] RIP: 0033:0x4429f8 [ 35.458138] RSP: 002b:00007fff72d80798 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.458143] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 35.458145] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.458147] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.458149] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 35.458151] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 35.458157] [ 35.458159] Allocated by task 3501: [ 35.458162] save_stack+0x43/0xd0 [ 35.458165] kasan_kmalloc+0xad/0xe0 [ 35.458172] kmem_cache_alloc_trace+0x136/0x750 [ 35.458175] binder_get_thread+0x1cf/0x870 [ 35.458177] binder_poll+0x8c/0x390 [ 35.458180] ep_item_poll.isra.10+0xec/0x320 [ 35.458183] ep_insert+0x6a3/0x1b10 [ 35.458186] SyS_epoll_ctl+0x12e4/0x1ab0 [ 35.458190] entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.458191] [ 35.458192] Freed by task 3501: [ 35.458195] save_stack+0x43/0xd0 [ 35.458198] kasan_slab_free+0x71/0xc0 [ 35.458200] kfree+0xd6/0x260 [ 35.458203] binder_thread_dec_tmpref+0x27f/0x310 [ 35.458205] binder_thread_release+0x27d/0x540 [ 35.458208] binder_ioctl+0xc02/0x1417 [ 35.458211] do_vfs_ioctl+0x1b1/0x1520 [ 35.458213] SyS_ioctl+0x8f/0xc0 [ 35.458216] entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.458217] [ 35.458220] The buggy address belongs to the object at ffff8801cde62a40 [ 35.458220] which belongs to the cache kmalloc-512 of size 512 [ 35.458223] The buggy address is located 176 bytes inside of [ 35.458223] 512-byte region [ffff8801cde62a40, ffff8801cde62c40) [ 35.458224] The buggy address belongs to the page: [ 35.458227] page:000000005ff3d68e count:1 mapcount:0 mapping:0000000031ca6664 index:0x0 [ 35.458232] flags: 0x2fffc0000000100(slab) [ 35.458238] raw: 02fffc0000000100 ffff8801cde62040 0000000000000000 0000000100000006 [ 35.458242] raw: ffffea00071c4f60 ffffea00071896a0 ffff8801dac00940 0000000000000000 [ 35.458243] page dumped because: kasan: bad access detected [ 35.458244] [ 35.458245] Memory state around the buggy address: [ 35.458248] ffff8801cde62980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 35.458251] ffff8801cde62a00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 35.458253] >ffff8801cde62a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.458255] ^ [ 35.458257] ffff8801cde62b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.458260] ffff8801cde62b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.458261] ================================================================== [ 35.458263] Disabling lock debugging due to kernel taint [ 35.458265] Kernel panic - not syncing: panic_on_warn set ... [ 35.458265] [ 35.458269] CPU: 1 PID: 3501 Comm: syzkaller419207 Tainted: G B 4.15.0-rc6+ #247 [ 35.458271] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.458272] Call Trace: [ 35.458276] dump_stack+0x194/0x257 [ 35.458281] ? arch_local_irq_restore+0x53/0x53 [ 35.458284] ? kasan_end_report+0x32/0x50 [ 35.458288] ? lock_downgrade+0x980/0x980 [ 35.458293] ? vsnprintf+0x1ed/0x1900 [ 35.458296] ? __lock_acquire+0x3cb0/0x3e00 [ 35.458299] panic+0x1e4/0x41c [ 35.458303] ? refcount_error_report+0x214/0x214 [ 35.458307] ? add_taint+0x40/0x50 [ 35.458310] ? add_taint+0x1c/0x50 [ 35.458314] ? __lock_acquire+0x3d4d/0x3e00 [ 35.458318] kasan_end_report+0x50/0x50 [ 35.458321] kasan_report+0x144/0x340 [ 35.458326] __asan_report_load8_noabort+0x14/0x20 [ 35.458329] __lock_acquire+0x3d4d/0x3e00 [ 35.458332] ? __lock_acquire+0x664/0x3e00 [ 35.458336] ? lock_downgrade+0x980/0x980 [ 35.458339] ? lock_downgrade+0x980/0x980 [ 35.458343] ? remove_wait_queue+0x81/0x350 [ 35.458348] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.458352] ? __lock_acquire+0x664/0x3e00 [ 35.458355] ? check_noncircular+0x20/0x20 [ 35.458362] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 35.458366] ? lock_acquire+0x1d5/0x580 [ 35.458369] ? lock_acquire+0x1d5/0x580 [ 35.458372] ? ep_free+0xf4/0x320 [ 35.458377] ? lock_release+0xa40/0xa40 [ 35.458380] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.458384] ? print_irqtrace_events+0x270/0x270 [ 35.458388] ? rcu_note_context_switch+0x710/0x710 [ 35.458392] ? __might_sleep+0x95/0x190 [ 35.458395] ? ep_free+0xf4/0x320 [ 35.458398] ? __mutex_lock+0x16f/0x1a80 [ 35.458401] ? ep_free+0xf4/0x320 [ 35.458405] ? print_irqtrace_events+0x270/0x270 [ 35.458408] ? ep_free+0xf4/0x320 [ 35.458413] lock_acquire+0x1d5/0x580 [ 35.458416] ? lock_acquire+0x1d5/0x580 [ 35.458419] ? remove_wait_queue+0x81/0x350 [ 35.458423] ? __lock_acquire+0x664/0x3e00 [ 35.458427] ? lock_release+0xa40/0xa40 [ 35.458432] ? lock_acquire+0x1d5/0x580 [ 35.458435] ? lock_acquire+0x1d5/0x580 [ 35.458439] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 35.458443] _raw_spin_lock_irqsave+0x96/0xc0 [ 35.458447] ? remove_wait_queue+0x81/0x350 [ 35.458450] remove_wait_queue+0x81/0x350 [ 35.458455] ? add_wait_queue+0x290/0x290 [ 35.458458] ? rcutorture_record_progress+0x10/0x10 [ 35.458464] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 35.458468] ? __kernel_text_address+0xd/0x40 [ 35.458472] ? clear_tfile_check_list+0x370/0x370 [ 35.458477] ? check_noncircular+0x20/0x20 [ 35.458481] ? locks_remove_file+0x3fa/0x5a0 [ 35.458486] ep_free+0x13f/0x320 [ 35.458490] ? ep_remove+0x800/0x800 [ 35.458493] ? fsnotify_first_mark+0x2b0/0x2b0 [ 35.458498] ? ep_free+0x320/0x320 [ 35.458501] ep_eventpoll_release+0x44/0x60 [ 35.458505] __fput+0x327/0x7e0 [ 35.458509] ? fput+0x140/0x140 [ 35.458513] ? _raw_spin_unlock_irq+0x27/0x70 [ 35.458518] ____fput+0x15/0x20 [ 35.458522] task_work_run+0x199/0x270 [ 35.458526] ? task_work_cancel+0x210/0x210 [ 35.458530] ? _raw_spin_unlock+0x22/0x30 [ 35.458534] ? switch_task_namespaces+0x87/0xc0 [ 35.458538] do_exit+0x9bb/0x1ad0 [ 35.458542] ? binder_ioctl+0x551/0x1417 [ 35.458545] ? mm_update_next_owner+0x930/0x930 [ 35.458550] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.458554] ? avc_ss_reset+0x110/0x110 [ 35.458557] ? mutex_unlock+0xd/0x10 [ 35.458561] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 35.458571] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.458574] ? up_read+0x1a/0x40 [ 35.458578] ? rcu_note_context_switch+0x710/0x710 [ 35.458580] ? __fd_install+0x288/0x740 [ 35.458585] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 35.458588] ? do_vfs_ioctl+0x486/0x1520 [ 35.458591] ? _cond_resched+0x14/0x30 [ 35.458595] ? ioctl_preallocate+0x2b0/0x2b0 [ 35.458600] ? selinux_capable+0x40/0x40 [ 35.458603] ? __alloc_fd+0x750/0x750 [ 35.458608] do_group_exit+0x149/0x400 [ 35.458612] ? SyS_exit+0x30/0x30 [ 35.458616] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.458620] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.458624] SyS_exit_group+0x1d/0x20 [ 35.458628] entry_SYSCALL_64_fastpath+0x23/0x9a [ 35.458630] RIP: 0033:0x4429f8 [ 35.458632] RSP: 002b:00007fff72d80798 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 35.458635] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 35.458637] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 35.458639] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 35.458641] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 35.458643] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 35.479074] Dumping ftrace buffer: [ 35.479078] (ftrace buffer empty) [ 35.479081] Kernel Offset: disabled [ 36.606721] Rebooting in 86400 seconds..