[....] Starting enhanced syslogd: rsyslogd[ 13.798443] audit: type=1400 audit(1516823314.991:5): avc: denied { syslog } for pid=3520 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.726251] audit: type=1400 audit(1516823318.919:6): avc: denied { map } for pid=3659 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.43' (ECDSA) to the list of known hosts. executing program [ 24.055146] audit: type=1400 audit(1516823325.247:7): avc: denied { map } for pid=3673 comm="syzkaller881713" path="/root/syzkaller881713434" 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.059019] ================================================================== [ 24.059045] BUG: KASAN: slab-out-of-bounds in string+0x1e8/0x200 [ 24.059053] Read of size 1 at addr ffff8801bb840210 by task syzkaller881713/3673 [ 24.059055] [ 24.059063] CPU: 0 PID: 3673 Comm: syzkaller881713 Not tainted 4.15.0-rc9+ #188 [ 24.059067] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.059071] Call Trace: [ 24.059084] dump_stack+0x194/0x257 [ 24.059099] ? arch_local_irq_restore+0x53/0x53 [ 24.059111] ? show_regs_print_info+0x18/0x18 [ 24.059129] ? string+0x1e8/0x200 [ 24.059143] print_address_description+0x73/0x250 [ 24.059152] ? string+0x1e8/0x200 [ 24.059162] kasan_report+0x25b/0x340 [ 24.059178] __asan_report_load1_noabort+0x14/0x20 [ 24.059185] string+0x1e8/0x200 [ 24.059206] vsnprintf+0x863/0x1900 [ 24.059226] ? pointer+0x9e0/0x9e0 [ 24.059255] __request_module+0x1bf/0xc20 [ 24.059263] ? lock_downgrade+0x980/0x980 [ 24.059277] ? free_modprobe_argv+0xa0/0xa0 [ 24.059286] ? lock_downgrade+0x980/0x980 [ 24.059306] ? is_bpf_text_address+0x7b/0x120 [ 24.059326] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 24.059341] ? wait_for_completion+0x770/0x770 [ 24.059355] ? lock_downgrade+0x980/0x980 [ 24.059368] ? wait_for_completion+0x770/0x770 [ 24.059374] ? lock_release+0xa40/0xa40 [ 24.059391] ? mark_held_locks+0xaf/0x100 [ 24.059401] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 24.059412] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.059433] ? xt_find_target+0x17b/0x1e0 [ 24.059463] xt_request_find_target+0x8b/0xb0 [ 24.059478] translate_compat_table+0x910/0x1b90 [ 24.059484] ? entry_SYSENTER_compat+0x54/0x63 [ 24.059517] ? ipt_register_table+0x3a0/0x3a0 [ 24.059532] ? __might_fault+0x110/0x1d0 [ 24.059542] ? lock_downgrade+0x980/0x980 [ 24.059548] ? __kmalloc_node+0x33/0x70 [ 24.059561] ? lock_release+0xa40/0xa40 [ 24.059569] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.059580] ? __check_object_size+0x25d/0x4f0 [ 24.059599] ? __might_sleep+0x95/0x190 [ 24.059628] compat_do_replace.isra.15+0x30e/0x720 [ 24.059636] ? compat_do_replace.isra.15+0x30e/0x720 [ 24.059645] ? cred_has_capability+0x1a0/0x3d0 [ 24.059661] ? compat_do_ipt_get_ctl+0xbc0/0xbc0 [ 24.059670] ? find_held_lock+0x35/0x1d0 [ 24.059687] ? module_unload_free+0x5b0/0x5b0 [ 24.059695] ? lock_acquire+0x1d5/0x580 [ 24.059726] ? ns_capable_common+0xcf/0x160 [ 24.059743] compat_do_ipt_set_ctl+0x106/0x150 [ 24.059759] compat_nf_setsockopt+0x88/0x130 [ 24.059766] ? compat_do_replace.isra.15+0x720/0x720 [ 24.059782] compat_ip_setsockopt+0x9d/0xf0 [ 24.059796] inet_csk_compat_setsockopt+0x95/0x120 [ 24.059802] ? ip_setsockopt+0xb0/0xb0 [ 24.059815] compat_tcp_setsockopt+0x3d/0x70 [ 24.059833] compat_sock_common_setsockopt+0xb2/0x140 [ 24.059839] ? tcp_setsockopt+0xd0/0xd0 [ 24.059854] compat_SyS_setsockopt+0x17c/0x410 [ 24.059861] ? sock_common_setsockopt+0xd0/0xd0 [ 24.059875] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 24.059889] ? do_fast_syscall_32+0x156/0xf9d [ 24.059902] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 24.059913] do_fast_syscall_32+0x3ee/0xf9d [ 24.059931] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.059940] ? kasan_check_read+0x11/0x20 [ 24.059952] ? syscall_return_slowpath+0x550/0x550 [ 24.059963] ? SyS_rt_sigaction+0x94/0x1b0 [ 24.059974] ? SyS_sigprocmask+0x4b0/0x4b0 [ 24.059980] ? SyS_read+0x184/0x220 [ 24.059988] ? retint_user+0x18/0x18 [ 24.060004] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.060023] entry_SYSENTER_compat+0x54/0x63 [ 24.060030] RIP: 0023:0xf7f60c79 [ 24.060034] RSP: 002b:00000000ffd0ea3c EFLAGS: 00000286 ORIG_RAX: 000000000000016e [ 24.060041] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000 [ 24.060046] RDX: 0000000000000040 RSI: 00000000203b4326 RDI: 00000000000000f0 [ 24.060050] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 24.060053] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.060058] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.060086] [ 24.060089] Allocated by task 3673: [ 24.060096] save_stack+0x43/0xd0 [ 24.060102] kasan_kmalloc+0xad/0xe0 [ 24.060107] __kmalloc_node+0x47/0x70 [ 24.060114] kvmalloc_node+0x99/0xd0 [ 24.060119] xt_alloc_table_info+0x64/0xe0 [ 24.060126] compat_do_replace.isra.15+0x17f/0x720 [ 24.060132] compat_do_ipt_set_ctl+0x106/0x150 [ 24.060138] compat_nf_setsockopt+0x88/0x130 [ 24.060144] compat_ip_setsockopt+0x9d/0xf0 [ 24.060149] inet_csk_compat_setsockopt+0x95/0x120 [ 24.060155] compat_tcp_setsockopt+0x3d/0x70 [ 24.060161] compat_sock_common_setsockopt+0xb2/0x140 [ 24.060167] compat_SyS_setsockopt+0x17c/0x410 [ 24.060173] do_fast_syscall_32+0x3ee/0xf9d [ 24.060178] entry_SYSENTER_compat+0x54/0x63 [ 24.060180] [ 24.060183] Freed by task 2030: [ 24.060188] save_stack+0x43/0xd0 [ 24.060194] kasan_slab_free+0x71/0xc0 [ 24.060199] kfree+0xd6/0x260 [ 24.060206] single_release+0x80/0xb0 [ 24.060212] __fput+0x327/0x7e0 [ 24.060218] ____fput+0x15/0x20 [ 24.060225] task_work_run+0x199/0x270 [ 24.060231] exit_to_usermode_loop+0x296/0x310 [ 24.060237] syscall_return_slowpath+0x490/0x550 [ 24.060242] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 24.060244] [ 24.060249] The buggy address belongs to the object at ffff8801bb840140 [ 24.060249] which belongs to the cache kmalloc-256 of size 256 [ 24.060254] The buggy address is located 208 bytes inside of [ 24.060254] 256-byte region [ffff8801bb840140, ffff8801bb840240) [ 24.060257] The buggy address belongs to the page: [ 24.060263] page:ffffea0006ee1000 count:1 mapcount:0 mapping:ffff8801bb840000 index:0x0 [ 24.060270] flags: 0x2fffc0000000100(slab) [ 24.060279] raw: 02fffc0000000100 ffff8801bb840000 0000000000000000 000000010000000c [ 24.060287] raw: ffffea0006ee0fe0 ffffea0006ee1220 ffff8801dac007c0 0000000000000000 [ 24.060290] page dumped because: kasan: bad access detected [ 24.060291] [ 24.060294] Memory state around the buggy address: [ 24.060300] ffff8801bb840100: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 24.060305] ffff8801bb840180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.060310] >ffff8801bb840200: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.060313] ^ [ 24.060317] ffff8801bb840280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.060323] ffff8801bb840300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.060325] ================================================================== [ 24.060327] Disabling lock debugging due to kernel taint [ 24.060358] Kernel panic - not syncing: panic_on_warn set ... [ 24.060358] [ 24.060364] CPU: 0 PID: 3673 Comm: syzkaller881713 Tainted: G B 4.15.0-rc9+ #188 [ 24.060368] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.060370] Call Trace: [ 24.060377] dump_stack+0x194/0x257 [ 24.060387] ? arch_local_irq_restore+0x53/0x53 [ 24.060394] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.060402] ? vsnprintf+0x1ed/0x1900 [ 24.060410] ? string+0x120/0x200 [ 24.060418] panic+0x1e4/0x41c [ 24.060425] ? refcount_error_report+0x214/0x214 [ 24.060434] ? add_taint+0x1c/0x50 [ 24.060441] ? add_taint+0x1c/0x50 [ 24.060450] ? string+0x1e8/0x200 [ 24.060456] kasan_end_report+0x50/0x50 [ 24.060463] kasan_report+0x144/0x340 [ 24.060473] __asan_report_load1_noabort+0x14/0x20 [ 24.060480] string+0x1e8/0x200 [ 24.060492] vsnprintf+0x863/0x1900 [ 24.060505] ? pointer+0x9e0/0x9e0 [ 24.060520] __request_module+0x1bf/0xc20 [ 24.060526] ? lock_downgrade+0x980/0x980 [ 24.060536] ? free_modprobe_argv+0xa0/0xa0 [ 24.060543] ? lock_downgrade+0x980/0x980 [ 24.060555] ? is_bpf_text_address+0x7b/0x120 [ 24.060567] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 24.060577] ? wait_for_completion+0x770/0x770 [ 24.060584] ? lock_downgrade+0x980/0x980 [ 24.060593] ? wait_for_completion+0x770/0x770 [ 24.060599] ? lock_release+0xa40/0xa40 [ 24.060609] ? mark_held_locks+0xaf/0x100 [ 24.060616] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 24.060625] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.060637] ? xt_find_target+0x17b/0x1e0 [ 24.060654] xt_request_find_target+0x8b/0xb0 [ 24.060663] translate_compat_table+0x910/0x1b90 [ 24.060669] ? entry_SYSENTER_compat+0x54/0x63 [ 24.060688] ? ipt_register_table+0x3a0/0x3a0 [ 24.060697] ? __might_fault+0x110/0x1d0 [ 24.060705] ? lock_downgrade+0x980/0x980 [ 24.060709] ? __kmalloc_node+0x33/0x70 [ 24.060718] ? lock_release+0xa40/0xa40 [ 24.060725] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.060732] ? __check_object_size+0x25d/0x4f0 [ 24.060744] ? __might_sleep+0x95/0x190 [ 24.060760] compat_do_replace.isra.15+0x30e/0x720 [ 24.060767] ? compat_do_replace.isra.15+0x30e/0x720 [ 24.060774] ? cred_has_capability+0x1a0/0x3d0 [ 24.060785] ? compat_do_ipt_get_ctl+0xbc0/0xbc0 [ 24.060792] ? find_held_lock+0x35/0x1d0 [ 24.060802] ? module_unload_free+0x5b0/0x5b0 [ 24.060809] ? lock_acquire+0x1d5/0x580 [ 24.060827] ? ns_capable_common+0xcf/0x160 [ 24.060838] compat_do_ipt_set_ctl+0x106/0x150 [ 24.060848] compat_nf_setsockopt+0x88/0x130 [ 24.060855] ? compat_do_replace.isra.15+0x720/0x720 [ 24.060865] compat_ip_setsockopt+0x9d/0xf0 [ 24.060874] inet_csk_compat_setsockopt+0x95/0x120 [ 24.060880] ? ip_setsockopt+0xb0/0xb0 [ 24.060889] compat_tcp_setsockopt+0x3d/0x70 [ 24.060899] compat_sock_common_setsockopt+0xb2/0x140 [ 24.060904] ? tcp_setsockopt+0xd0/0xd0 [ 24.060914] compat_SyS_setsockopt+0x17c/0x410 [ 24.060919] ? sock_common_setsockopt+0xd0/0xd0 [ 24.060929] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 24.060937] ? do_fast_syscall_32+0x156/0xf9d [ 24.060947] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 24.060955] do_fast_syscall_32+0x3ee/0xf9d [ 24.060966] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.060973] ? kasan_check_read+0x11/0x20 [ 24.060982] ? syscall_return_slowpath+0x550/0x550 [ 24.060990] ? SyS_rt_sigaction+0x94/0x1b0 [ 24.060997] ? SyS_sigprocmask+0x4b0/0x4b0 [ 24.061007] ? SyS_read+0x184/0x220 [ 24.061013] ? retint_user+0x18/0x18 [ 24.061024] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.061035] entry_SYSENTER_compat+0x54/0x63 [ 24.061040] RIP: 0023:0xf7f60c79 [ 24.061043] RSP: 002b:00000000ffd0ea3c EFLAGS: 00000286 ORIG_RAX: 000000000000016e [ 24.061049] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000 [ 24.061053] RDX: 0000000000000040 RSI: 00000000203b4326 RDI: 00000000000000f0 [ 24.061056] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 24.061059] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.061063] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.081513] Dumping ftrace buffer: [ 24.081518] (ftrace buffer empty) [ 24.081521] Kernel Offset: disabled [ 25.103131] Rebooting in 86400 seconds..