[....] Starting enhanced syslogd: rsyslogd[ 11.485946] audit: type=1400 audit(1515573544.697:5): avc: denied { syslog } for pid=3347 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.651810] audit: type=1400 audit(1515573549.863:6): avc: denied { map } for pid=3487 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.211' (ECDSA) to the list of known hosts. executing program [ 24.895605] audit: type=1400 audit(1515573558.107:7): avc: denied { map } for pid=3502 comm="syzkaller950952" path="/root/syzkaller950952441" 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 [ 24.899643] ================================================================== [ 24.899656] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 24.899660] Read of size 8 at addr ffff8801c81ea638 by task syzkaller950952/3502 [ 24.899661] [ 24.899666] CPU: 0 PID: 3502 Comm: syzkaller950952 Not tainted 4.15.0-rc6-mm1+ #52 [ 24.899669] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.899670] Call Trace: [ 24.899678] dump_stack+0x194/0x257 [ 24.899684] ? arch_local_irq_restore+0x53/0x53 [ 24.899690] ? show_regs_print_info+0x18/0x18 [ 24.899694] ? __lock_acquire+0x664/0x3e00 [ 24.899698] ? __lock_acquire+0x3d4d/0x3e00 [ 24.899705] print_address_description+0x73/0x250 [ 24.899709] ? __lock_acquire+0x3d4d/0x3e00 [ 24.899714] kasan_report+0x23b/0x360 [ 24.899719] __asan_report_load8_noabort+0x14/0x20 [ 24.899722] __lock_acquire+0x3d4d/0x3e00 [ 24.899726] ? lock_downgrade+0x980/0x980 [ 24.899734] ? remove_wait_queue+0x81/0x350 [ 24.899740] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.899744] ? __lock_acquire+0x664/0x3e00 [ 24.899748] ? check_noncircular+0x20/0x20 [ 24.899755] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.899760] ? lock_acquire+0x1d5/0x580 [ 24.899763] ? lock_acquire+0x1d5/0x580 [ 24.899768] ? ep_free+0xf4/0x320 [ 24.899772] ? check_noncircular+0x20/0x20 [ 24.899777] ? lock_release+0xa40/0xa40 [ 24.899781] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.899785] ? print_irqtrace_events+0x270/0x270 [ 24.899791] ? rcu_note_context_switch+0x710/0x710 [ 24.899796] ? __might_sleep+0x95/0x190 [ 24.899799] ? ep_free+0xf4/0x320 [ 24.899805] ? __mutex_lock+0x16f/0x1a80 [ 24.899807] ? ep_free+0xf4/0x320 [ 24.899812] ? print_irqtrace_events+0x270/0x270 [ 24.899815] ? ep_free+0xf4/0x320 [ 24.899820] lock_acquire+0x1d5/0x580 [ 24.899823] ? lock_acquire+0x1d5/0x580 [ 24.899827] ? remove_wait_queue+0x81/0x350 [ 24.899831] ? __lock_acquire+0x664/0x3e00 [ 24.899835] ? lock_release+0xa40/0xa40 [ 24.899841] ? lock_acquire+0x1d5/0x580 [ 24.899844] ? lock_acquire+0x1d5/0x580 [ 24.899848] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.899852] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.899856] ? remove_wait_queue+0x81/0x350 [ 24.899860] remove_wait_queue+0x81/0x350 [ 24.899864] ? rcutorture_record_progress+0x10/0x10 [ 24.899868] ? add_wait_queue+0x290/0x290 [ 24.899872] ? rcutorture_record_progress+0x10/0x10 [ 24.899878] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.899883] ? unwind_get_return_address+0x61/0xa0 [ 24.899888] ? clear_tfile_check_list+0x370/0x370 [ 24.899893] ? check_noncircular+0x20/0x20 [ 24.899898] ? locks_remove_file+0x3fa/0x5a0 [ 24.899903] ep_free+0x13f/0x320 [ 24.899907] ? ep_remove+0x800/0x800 [ 24.899912] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.899916] ? ep_free+0x320/0x320 [ 24.899919] ep_eventpoll_release+0x44/0x60 [ 24.899924] __fput+0x327/0x7e0 [ 24.899929] ? fput+0x140/0x140 [ 24.899932] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.899937] ____fput+0x15/0x20 [ 24.899941] task_work_run+0x199/0x270 [ 24.899945] ? task_work_cancel+0x210/0x210 [ 24.899950] ? _raw_spin_unlock+0x22/0x30 [ 24.899954] ? switch_task_namespaces+0x87/0xc0 [ 24.899960] do_exit+0x9bb/0x1ad0 [ 24.899966] ? binder_ioctl+0x481/0x1417 [ 24.899969] ? mm_update_next_owner+0x930/0x930 [ 24.899974] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.899981] ? avc_ss_reset+0x110/0x110 [ 24.899985] ? mutex_unlock+0xd/0x10 [ 24.899988] ? SyS_epoll_ctl+0x30a/0x1a80 [ 24.900004] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.900007] ? up_read+0x1a/0x40 [ 24.900012] ? rcu_note_context_switch+0x710/0x710 [ 24.900016] ? __fd_install+0x288/0x740 [ 24.900022] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.900026] ? do_vfs_ioctl+0x486/0x1520 [ 24.900030] ? _cond_resched+0x14/0x30 [ 24.900035] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.900040] ? selinux_capable+0x40/0x40 [ 24.900044] ? __alloc_fd+0x750/0x750 [ 24.900049] do_group_exit+0x149/0x400 [ 24.900053] ? SyS_exit+0x30/0x30 [ 24.900058] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.900063] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.900068] SyS_exit_group+0x1d/0x20 [ 24.900072] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.900075] RIP: 0033:0x4429f8 [ 24.900077] RSP: 002b:00007ffc44d73a48 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.900081] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.900084] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.900086] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.900088] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.900090] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.900095] [ 24.900097] Allocated by task 3502: [ 24.900101] save_stack+0x43/0xd0 [ 24.900104] kasan_kmalloc+0xad/0xe0 [ 24.900107] kmem_cache_alloc_trace+0x136/0x750 [ 24.900110] binder_get_thread+0x1cf/0x870 [ 24.900113] binder_poll+0x8c/0x390 [ 24.900116] ep_item_poll.isra.10+0xf2/0x320 [ 24.900118] ep_insert+0x6a2/0x1ac0 [ 24.900121] SyS_epoll_ctl+0x12bf/0x1a80 [ 24.900124] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.900124] [ 24.900126] Freed by task 3502: [ 24.900129] save_stack+0x43/0xd0 [ 24.900132] __kasan_slab_free+0x11a/0x170 [ 24.900136] kasan_slab_free+0xe/0x10 [ 24.900138] kfree+0xd9/0x260 [ 24.900141] binder_thread_dec_tmpref+0x27f/0x310 [ 24.900144] binder_thread_release+0x27d/0x540 [ 24.900147] binder_ioctl+0xc02/0x1417 [ 24.900150] do_vfs_ioctl+0x1b1/0x1520 [ 24.900153] SyS_ioctl+0x8f/0xc0 [ 24.900155] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.900156] [ 24.900159] The buggy address belongs to the object at ffff8801c81ea580 [ 24.900159] which belongs to the cache kmalloc-512 of size 512 [ 24.900163] The buggy address is located 184 bytes inside of [ 24.900163] 512-byte region [ffff8801c81ea580, ffff8801c81ea780) [ 24.900164] The buggy address belongs to the page: [ 24.900167] page:ffffea0007207a80 count:1 mapcount:0 mapping:ffff8801c81ea080 index:0x0 [ 24.900170] flags: 0x2fffc0000000100(slab) [ 24.900176] raw: 02fffc0000000100 ffff8801c81ea080 0000000000000000 0000000100000006 [ 24.900180] raw: ffffea0007394620 ffffea0007394560 ffff8801dac00940 0000000000000000 [ 24.900181] page dumped because: kasan: bad access detected [ 24.900182] [ 24.900183] Memory state around the buggy address: [ 24.900186] ffff8801c81ea500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.900189] ffff8801c81ea580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.900191] >ffff8801c81ea600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.900193] ^ [ 24.900196] ffff8801c81ea680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.900198] ffff8801c81ea700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.900200] ================================================================== [ 24.900202] Disabling lock debugging due to kernel taint [ 24.900204] Kernel panic - not syncing: panic_on_warn set ... [ 24.900204] [ 24.900208] CPU: 0 PID: 3502 Comm: syzkaller950952 Tainted: G B 4.15.0-rc6-mm1+ #52 [ 24.900210] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.900211] Call Trace: [ 24.900215] dump_stack+0x194/0x257 [ 24.900220] ? arch_local_irq_restore+0x53/0x53 [ 24.900223] ? kasan_end_report+0x32/0x50 [ 24.900227] ? lock_downgrade+0x980/0x980 [ 24.900231] ? vsnprintf+0x1ed/0x1900 [ 24.900234] ? __lock_acquire+0x3c50/0x3e00 [ 24.900238] panic+0x1e4/0x41c [ 24.900241] ? refcount_error_report+0x214/0x214 [ 24.900246] ? add_taint+0x40/0x50 [ 24.900249] ? add_taint+0x1c/0x50 [ 24.900253] ? __lock_acquire+0x3d4d/0x3e00 [ 24.900257] kasan_end_report+0x50/0x50 [ 24.900261] kasan_report+0x148/0x360 [ 24.900265] __asan_report_load8_noabort+0x14/0x20 [ 24.900269] __lock_acquire+0x3d4d/0x3e00 [ 24.900273] ? lock_downgrade+0x980/0x980 [ 24.900278] ? remove_wait_queue+0x81/0x350 [ 24.900283] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.900287] ? __lock_acquire+0x664/0x3e00 [ 24.900290] ? check_noncircular+0x20/0x20 [ 24.900297] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 24.900301] ? lock_acquire+0x1d5/0x580 [ 24.900305] ? lock_acquire+0x1d5/0x580 [ 24.900307] ? ep_free+0xf4/0x320 [ 24.900311] ? check_noncircular+0x20/0x20 [ 24.900315] ? lock_release+0xa40/0xa40 [ 24.900319] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.900323] ? print_irqtrace_events+0x270/0x270 [ 24.900327] ? rcu_note_context_switch+0x710/0x710 [ 24.900332] ? __might_sleep+0x95/0x190 [ 24.900335] ? ep_free+0xf4/0x320 [ 24.900338] ? __mutex_lock+0x16f/0x1a80 [ 24.900341] ? ep_free+0xf4/0x320 [ 24.900345] ? print_irqtrace_events+0x270/0x270 [ 24.900348] ? ep_free+0xf4/0x320 [ 24.900352] lock_acquire+0x1d5/0x580 [ 24.900356] ? lock_acquire+0x1d5/0x580 [ 24.900359] ? remove_wait_queue+0x81/0x350 [ 24.900363] ? __lock_acquire+0x664/0x3e00 [ 24.900367] ? lock_release+0xa40/0xa40 [ 24.900373] ? lock_acquire+0x1d5/0x580 [ 24.900376] ? lock_acquire+0x1d5/0x580 [ 24.900379] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 24.900383] _raw_spin_lock_irqsave+0x96/0xc0 [ 24.900387] ? remove_wait_queue+0x81/0x350 [ 24.900391] remove_wait_queue+0x81/0x350 [ 24.900395] ? rcutorture_record_progress+0x10/0x10 [ 24.900399] ? add_wait_queue+0x290/0x290 [ 24.900402] ? rcutorture_record_progress+0x10/0x10 [ 24.900408] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 24.900412] ? unwind_get_return_address+0x61/0xa0 [ 24.900416] ? clear_tfile_check_list+0x370/0x370 [ 24.900421] ? check_noncircular+0x20/0x20 [ 24.900425] ? locks_remove_file+0x3fa/0x5a0 [ 24.900430] ep_free+0x13f/0x320 [ 24.900433] ? ep_remove+0x800/0x800 [ 24.900437] ? fsnotify_first_mark+0x2b0/0x2b0 [ 24.900444] ? ep_free+0x320/0x320 [ 24.900448] ep_eventpoll_release+0x44/0x60 [ 24.900451] __fput+0x327/0x7e0 [ 24.900455] ? fput+0x140/0x140 [ 24.900459] ? _raw_spin_unlock_irq+0x27/0x70 [ 24.900463] ____fput+0x15/0x20 [ 24.900466] task_work_run+0x199/0x270 [ 24.900470] ? task_work_cancel+0x210/0x210 [ 24.900474] ? _raw_spin_unlock+0x22/0x30 [ 24.900478] ? switch_task_namespaces+0x87/0xc0 [ 24.900483] do_exit+0x9bb/0x1ad0 [ 24.900487] ? binder_ioctl+0x481/0x1417 [ 24.900491] ? mm_update_next_owner+0x930/0x930 [ 24.900495] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.900500] ? avc_ss_reset+0x110/0x110 [ 24.900504] ? mutex_unlock+0xd/0x10 [ 24.900507] ? SyS_epoll_ctl+0x30a/0x1a80 [ 24.900517] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.900521] ? up_read+0x1a/0x40 [ 24.900525] ? rcu_note_context_switch+0x710/0x710 [ 24.900528] ? __fd_install+0x288/0x740 [ 24.900534] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 24.900537] ? do_vfs_ioctl+0x486/0x1520 [ 24.900540] ? _cond_resched+0x14/0x30 [ 24.900545] ? ioctl_preallocate+0x2b0/0x2b0 [ 24.900549] ? selinux_capable+0x40/0x40 [ 24.900553] ? __alloc_fd+0x750/0x750 [ 24.900558] do_group_exit+0x149/0x400 [ 24.900562] ? SyS_exit+0x30/0x30 [ 24.900566] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.900570] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.900575] SyS_exit_group+0x1d/0x20 [ 24.900578] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.900580] RIP: 0033:0x4429f8 [ 24.900582] RSP: 002b:00007ffc44d73a48 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 24.900585] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 24.900587] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 24.900589] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 24.900591] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 24.900593] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 24.921489] Dumping ftrace buffer: [ 24.921493] (ftrace buffer empty) [ 24.921495] Kernel Offset: disabled [ 26.061040] Rebooting in 86400 seconds..