[....] Starting enhanced syslogd: rsyslogd[ 13.667758] audit: type=1400 audit(1516826017.529:5): avc: denied { syslog } for pid=3507 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 OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 18.712286] audit: type=1400 audit(1516826022.574:6): avc: denied { map } for pid=3647 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.53' (ECDSA) to the list of known hosts. executing program [ 24.972324] audit: type=1400 audit(1516826028.834:7): avc: denied { map } for pid=3662 comm="syzkaller922216" path="/root/syzkaller922216162" 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.974411] ================================================================== [ 24.974429] BUG: KASAN: slab-out-of-bounds in string+0x1e8/0x200 [ 24.974434] Read of size 1 at addr ffff8801d9a90ed0 by task syzkaller922216/3662 [ 24.974435] [ 24.974441] CPU: 1 PID: 3662 Comm: syzkaller922216 Not tainted 4.15.0-rc9+ #188 [ 24.974444] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.974446] Call Trace: [ 24.974455] dump_stack+0x194/0x257 [ 24.974465] ? arch_local_irq_restore+0x53/0x53 [ 24.974473] ? show_regs_print_info+0x18/0x18 [ 24.974483] ? string+0x1e8/0x200 [ 24.974494] print_address_description+0x73/0x250 [ 24.974499] ? string+0x1e8/0x200 [ 24.974505] kasan_report+0x25b/0x340 [ 24.974514] __asan_report_load1_noabort+0x14/0x20 [ 24.974518] string+0x1e8/0x200 [ 24.974531] vsnprintf+0x863/0x1900 [ 24.974543] ? pointer+0x9e0/0x9e0 [ 24.974563] __request_module+0x1bf/0xc20 [ 24.974568] ? lock_downgrade+0x980/0x980 [ 24.974576] ? free_modprobe_argv+0xa0/0xa0 [ 24.974581] ? lock_downgrade+0x980/0x980 [ 24.974596] ? is_bpf_text_address+0x7b/0x120 [ 24.974609] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 24.974618] ? wait_for_completion+0x770/0x770 [ 24.974624] ? lock_downgrade+0x980/0x980 [ 24.974631] ? wait_for_completion+0x770/0x770 [ 24.974635] ? lock_release+0xa40/0xa40 [ 24.974645] ? mark_held_locks+0xaf/0x100 [ 24.974651] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 24.974658] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.974672] ? xt_find_target+0x17b/0x1e0 [ 24.974690] xt_request_find_target+0x8b/0xb0 [ 24.974699] translate_compat_table+0x910/0x1b90 [ 24.974719] ? ipt_register_table+0x3a0/0x3a0 [ 24.974728] ? __might_fault+0x110/0x1d0 [ 24.974734] ? lock_downgrade+0x980/0x980 [ 24.974738] ? __kmalloc_node+0x33/0x70 [ 24.974745] ? lock_release+0xa40/0xa40 [ 24.974750] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.974756] ? __check_object_size+0x25d/0x4f0 [ 24.974770] ? __might_sleep+0x95/0x190 [ 24.974800] compat_do_replace.isra.15+0x30e/0x720 [ 24.974809] ? compat_do_replace.isra.15+0x30e/0x720 [ 24.974818] ? cred_has_capability+0x1a0/0x3d0 [ 24.974828] ? compat_do_ipt_get_ctl+0xbc0/0xbc0 [ 24.974833] ? find_held_lock+0x35/0x1d0 [ 24.974845] ? module_unload_free+0x5b0/0x5b0 [ 24.974850] ? lock_acquire+0x1d5/0x580 [ 24.974870] ? ns_capable_common+0xcf/0x160 [ 24.974880] compat_do_ipt_set_ctl+0x106/0x150 [ 24.974891] compat_nf_setsockopt+0x88/0x130 [ 24.974895] ? compat_do_replace.isra.15+0x720/0x720 [ 24.974906] compat_ip_setsockopt+0x9d/0xf0 [ 24.974918] compat_udp_setsockopt+0x45/0x80 [ 24.974931] compat_sock_common_setsockopt+0xb2/0x140 [ 24.974935] ? udp_lib_unhash+0xa10/0xa10 [ 24.974946] compat_SyS_setsockopt+0x17c/0x410 [ 24.974950] ? sock_common_setsockopt+0xd0/0xd0 [ 24.974959] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 24.974969] ? do_fast_syscall_32+0x156/0xf9d [ 24.974978] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 24.974984] do_fast_syscall_32+0x3ee/0xf9d [ 24.974995] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.975000] ? kasan_check_read+0x11/0x20 [ 24.975010] ? syscall_return_slowpath+0x550/0x550 [ 24.975018] ? SyS_rt_sigaction+0x94/0x1b0 [ 24.975024] ? SyS_sigprocmask+0x4b0/0x4b0 [ 24.975029] ? SyS_read+0x184/0x220 [ 24.975034] ? retint_user+0x18/0x18 [ 24.975045] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.975056] entry_SYSENTER_compat+0x54/0x63 [ 24.975060] RIP: 0023:0xf7fd8c79 [ 24.975063] RSP: 002b:00000000ffd0661c EFLAGS: 00000282 ORIG_RAX: 000000000000016e [ 24.975068] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000 [ 24.975071] RDX: 0000000000000040 RSI: 0000000020f20000 RDI: 00000000000000f0 [ 24.975073] RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000 [ 24.975075] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.975078] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.975095] [ 24.975097] Allocated by task 3662: [ 24.975101] save_stack+0x43/0xd0 [ 24.975105] kasan_kmalloc+0xad/0xe0 [ 24.975108] __kmalloc_node+0x47/0x70 [ 24.975112] kvmalloc_node+0x99/0xd0 [ 24.975116] xt_alloc_table_info+0x64/0xe0 [ 24.975120] compat_do_replace.isra.15+0x17f/0x720 [ 24.975124] compat_do_ipt_set_ctl+0x106/0x150 [ 24.975127] compat_nf_setsockopt+0x88/0x130 [ 24.975131] compat_ip_setsockopt+0x9d/0xf0 [ 24.975134] compat_udp_setsockopt+0x45/0x80 [ 24.975138] compat_sock_common_setsockopt+0xb2/0x140 [ 24.975142] compat_SyS_setsockopt+0x17c/0x410 [ 24.975145] do_fast_syscall_32+0x3ee/0xf9d [ 24.975149] entry_SYSENTER_compat+0x54/0x63 [ 24.975150] [ 24.975152] Freed by task 2015: [ 24.975156] save_stack+0x43/0xd0 [ 24.975159] kasan_slab_free+0x71/0xc0 [ 24.975162] kfree+0xd6/0x260 [ 24.975168] single_release+0x80/0xb0 [ 24.975172] __fput+0x327/0x7e0 [ 24.975176] ____fput+0x15/0x20 [ 24.975181] task_work_run+0x199/0x270 [ 24.975185] exit_to_usermode_loop+0x296/0x310 [ 24.975189] syscall_return_slowpath+0x490/0x550 [ 24.975192] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 24.975193] [ 24.975196] The buggy address belongs to the object at ffff8801d9a90e00 [ 24.975196] which belongs to the cache kmalloc-256 of size 256 [ 24.975200] The buggy address is located 208 bytes inside of [ 24.975200] 256-byte region [ffff8801d9a90e00, ffff8801d9a90f00) [ 24.975201] The buggy address belongs to the page: [ 24.975204] page:ffffea000766a400 count:1 mapcount:0 mapping:ffff8801d9a90040 index:0x0 [ 24.975209] flags: 0x2fffc0000000100(slab) [ 24.975215] raw: 02fffc0000000100 ffff8801d9a90040 0000000000000000 000000010000000c [ 24.975220] raw: ffffea000766cca0 ffffea0007654120 ffff8801dac007c0 0000000000000000 [ 24.975222] page dumped because: kasan: bad access detected [ 24.975223] [ 24.975224] Memory state around the buggy address: [ 24.975228] ffff8801d9a90d80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.975231] ffff8801d9a90e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.975234] >ffff8801d9a90e80: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc [ 24.975236] ^ [ 24.975239] ffff8801d9a90f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.975242] ffff8801d9a90f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.975244] ================================================================== [ 24.975246] Disabling lock debugging due to kernel taint [ 24.975269] Kernel panic - not syncing: panic_on_warn set ... [ 24.975269] [ 24.975273] CPU: 1 PID: 3662 Comm: syzkaller922216 Tainted: G B 4.15.0-rc9+ #188 [ 24.975276] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.975277] Call Trace: [ 24.975282] dump_stack+0x194/0x257 [ 24.975288] ? arch_local_irq_restore+0x53/0x53 [ 24.975293] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.975298] ? vsnprintf+0x1ed/0x1900 [ 24.975303] ? string+0x120/0x200 [ 24.975309] panic+0x1e4/0x41c [ 24.975313] ? refcount_error_report+0x214/0x214 [ 24.975319] ? add_taint+0x1c/0x50 [ 24.975323] ? add_taint+0x1c/0x50 [ 24.975329] ? string+0x1e8/0x200 [ 24.975333] kasan_end_report+0x50/0x50 [ 24.975337] kasan_report+0x144/0x340 [ 24.975343] __asan_report_load1_noabort+0x14/0x20 [ 24.975347] string+0x1e8/0x200 [ 24.975355] vsnprintf+0x863/0x1900 [ 24.975363] ? pointer+0x9e0/0x9e0 [ 24.975373] __request_module+0x1bf/0xc20 [ 24.975377] ? lock_downgrade+0x980/0x980 [ 24.975383] ? free_modprobe_argv+0xa0/0xa0 [ 24.975387] ? lock_downgrade+0x980/0x980 [ 24.975395] ? is_bpf_text_address+0x7b/0x120 [ 24.975403] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 24.975409] ? wait_for_completion+0x770/0x770 [ 24.975414] ? lock_downgrade+0x980/0x980 [ 24.975419] ? wait_for_completion+0x770/0x770 [ 24.975422] ? lock_release+0xa40/0xa40 [ 24.975429] ? mark_held_locks+0xaf/0x100 [ 24.975434] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 24.975439] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.975447] ? xt_find_target+0x17b/0x1e0 [ 24.975458] xt_request_find_target+0x8b/0xb0 [ 24.975464] translate_compat_table+0x910/0x1b90 [ 24.975476] ? ipt_register_table+0x3a0/0x3a0 [ 24.975482] ? __might_fault+0x110/0x1d0 [ 24.975487] ? lock_downgrade+0x980/0x980 [ 24.975490] ? __kmalloc_node+0x33/0x70 [ 24.975496] ? lock_release+0xa40/0xa40 [ 24.975500] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.975504] ? __check_object_size+0x25d/0x4f0 [ 24.975511] ? __might_sleep+0x95/0x190 [ 24.975522] compat_do_replace.isra.15+0x30e/0x720 [ 24.975526] ? compat_do_replace.isra.15+0x30e/0x720 [ 24.975530] ? cred_has_capability+0x1a0/0x3d0 [ 24.975537] ? compat_do_ipt_get_ctl+0xbc0/0xbc0 [ 24.975541] ? find_held_lock+0x35/0x1d0 [ 24.975548] ? module_unload_free+0x5b0/0x5b0 [ 24.975552] ? lock_acquire+0x1d5/0x580 [ 24.975563] ? ns_capable_common+0xcf/0x160 [ 24.975570] compat_do_ipt_set_ctl+0x106/0x150 [ 24.975576] compat_nf_setsockopt+0x88/0x130 [ 24.975580] ? compat_do_replace.isra.15+0x720/0x720 [ 24.975586] compat_ip_setsockopt+0x9d/0xf0 [ 24.975592] compat_udp_setsockopt+0x45/0x80 [ 24.975598] compat_sock_common_setsockopt+0xb2/0x140 [ 24.975602] ? udp_lib_unhash+0xa10/0xa10 [ 24.975608] compat_SyS_setsockopt+0x17c/0x410 [ 24.975611] ? sock_common_setsockopt+0xd0/0xd0 [ 24.975617] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 24.975622] ? do_fast_syscall_32+0x156/0xf9d [ 24.975628] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 24.975633] do_fast_syscall_32+0x3ee/0xf9d [ 24.975640] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.975644] ? kasan_check_read+0x11/0x20 [ 24.975650] ? syscall_return_slowpath+0x550/0x550 [ 24.975654] ? SyS_rt_sigaction+0x94/0x1b0 [ 24.975659] ? SyS_sigprocmask+0x4b0/0x4b0 [ 24.975663] ? SyS_read+0x184/0x220 [ 24.975666] ? retint_user+0x18/0x18 [ 24.975673] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.975681] entry_SYSENTER_compat+0x54/0x63 [ 24.975683] RIP: 0023:0xf7fd8c79 [ 24.975685] RSP: 002b:00000000ffd0661c EFLAGS: 00000282 ORIG_RAX: 000000000000016e [ 24.975689] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000 [ 24.975692] RDX: 0000000000000040 RSI: 0000000020f20000 RDI: 00000000000000f0 [ 24.975694] RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000 [ 24.975696] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.975698] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.998582] Dumping ftrace buffer: [ 24.998587] (ftrace buffer empty) [ 24.998589] Kernel Offset: disabled [ 25.990847] Rebooting in 86400 seconds..