[....] Starting enhanced syslogd: rsyslogd[ 13.433900] audit: type=1400 audit(1516823978.084:5): avc: denied { syslog } for pid=3501 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: [ 18.039966] audit: type=1400 audit(1516823982.690:6): avc: denied { map } for pid=3642 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.36' (ECDSA) to the list of known hosts. executing program [ 24.298883] audit: type=1400 audit(1516823988.949:7): avc: denied { map } for pid=3656 comm="syzkaller839208" path="/root/syzkaller839208457" 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.302313] ================================================================== [ 24.302335] BUG: KASAN: slab-out-of-bounds in string+0x1e8/0x200 [ 24.302341] Read of size 1 at addr ffff8801bada1dd0 by task syzkaller839208/3656 [ 24.302343] [ 24.302350] CPU: 1 PID: 3656 Comm: syzkaller839208 Not tainted 4.15.0-rc9+ #188 [ 24.302354] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.302357] Call Trace: [ 24.302368] dump_stack+0x194/0x257 [ 24.302382] ? arch_local_irq_restore+0x53/0x53 [ 24.302394] ? show_regs_print_info+0x18/0x18 [ 24.302411] ? string+0x1e8/0x200 [ 24.302424] print_address_description+0x73/0x250 [ 24.302432] ? string+0x1e8/0x200 [ 24.302442] kasan_report+0x25b/0x340 [ 24.302457] __asan_report_load1_noabort+0x14/0x20 [ 24.302465] string+0x1e8/0x200 [ 24.302485] vsnprintf+0x863/0x1900 [ 24.302505] ? pointer+0x9e0/0x9e0 [ 24.302532] __request_module+0x1bf/0xc20 [ 24.302539] ? lock_downgrade+0x980/0x980 [ 24.302553] ? free_modprobe_argv+0xa0/0xa0 [ 24.302562] ? lock_downgrade+0x980/0x980 [ 24.302582] ? is_bpf_text_address+0x7b/0x120 [ 24.302601] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 24.302616] ? wait_for_completion+0x770/0x770 [ 24.302626] ? lock_downgrade+0x980/0x980 [ 24.302638] ? wait_for_completion+0x770/0x770 [ 24.302644] ? lock_release+0xa40/0xa40 [ 24.302661] ? mark_held_locks+0xaf/0x100 [ 24.302670] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 24.302681] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.302702] ? xt_find_target+0x17b/0x1e0 [ 24.302731] xt_request_find_target+0x8b/0xb0 [ 24.302745] translate_compat_table+0x910/0x1b90 [ 24.302751] ? entry_SYSENTER_compat+0x54/0x63 [ 24.302784] ? ipt_register_table+0x3a0/0x3a0 [ 24.302798] ? __might_fault+0x110/0x1d0 [ 24.302807] ? lock_downgrade+0x980/0x980 [ 24.302813] ? __kmalloc_node+0x33/0x70 [ 24.302825] ? lock_release+0xa40/0xa40 [ 24.302833] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.302842] ? __check_object_size+0x25d/0x4f0 [ 24.302861] ? __might_sleep+0x95/0x190 [ 24.302889] compat_do_replace.isra.15+0x30e/0x720 [ 24.302897] ? compat_do_replace.isra.15+0x30e/0x720 [ 24.302906] ? cred_has_capability+0x1a0/0x3d0 [ 24.302922] ? compat_do_ipt_get_ctl+0xbc0/0xbc0 [ 24.302930] ? find_held_lock+0x35/0x1d0 [ 24.302948] ? module_unload_free+0x5b0/0x5b0 [ 24.302955] ? lock_acquire+0x1d5/0x580 [ 24.302986] ? ns_capable_common+0xcf/0x160 [ 24.303007] compat_do_ipt_set_ctl+0x106/0x150 [ 24.303022] compat_nf_setsockopt+0x88/0x130 [ 24.303029] ? compat_do_replace.isra.15+0x720/0x720 [ 24.303044] compat_ip_setsockopt+0x9d/0xf0 [ 24.303057] inet_csk_compat_setsockopt+0x95/0x120 [ 24.303064] ? ip_setsockopt+0xb0/0xb0 [ 24.303077] compat_tcp_setsockopt+0x3d/0x70 [ 24.303093] compat_sock_common_setsockopt+0xb2/0x140 [ 24.303098] ? tcp_setsockopt+0xd0/0xd0 [ 24.303113] compat_SyS_setsockopt+0x17c/0x410 [ 24.303119] ? sock_common_setsockopt+0xd0/0xd0 [ 24.303133] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 24.303147] ? do_fast_syscall_32+0x156/0xf9d [ 24.303161] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 24.303171] do_fast_syscall_32+0x3ee/0xf9d [ 24.303190] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.303198] ? kasan_check_read+0x11/0x20 [ 24.303209] ? syscall_return_slowpath+0x550/0x550 [ 24.303220] ? SyS_rt_sigaction+0x94/0x1b0 [ 24.303230] ? SyS_sigprocmask+0x4b0/0x4b0 [ 24.303236] ? SyS_read+0x184/0x220 [ 24.303244] ? retint_user+0x18/0x18 [ 24.303261] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.303279] entry_SYSENTER_compat+0x54/0x63 [ 24.303286] RIP: 0023:0xf7fc9c79 [ 24.303289] RSP: 002b:00000000fff29d4c EFLAGS: 00000286 ORIG_RAX: 000000000000016e [ 24.303297] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000 [ 24.303302] RDX: 0000000000000040 RSI: 0000000020178d3e RDI: 00000000000000ec [ 24.303309] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 24.303313] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.303317] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.303345] [ 24.303348] Allocated by task 3656: [ 24.303355] save_stack+0x43/0xd0 [ 24.303360] kasan_kmalloc+0xad/0xe0 [ 24.303365] __kmalloc_node+0x47/0x70 [ 24.303372] kvmalloc_node+0x99/0xd0 [ 24.303377] xt_alloc_table_info+0x64/0xe0 [ 24.303383] compat_do_replace.isra.15+0x17f/0x720 [ 24.303390] compat_do_ipt_set_ctl+0x106/0x150 [ 24.303396] compat_nf_setsockopt+0x88/0x130 [ 24.303402] compat_ip_setsockopt+0x9d/0xf0 [ 24.303407] inet_csk_compat_setsockopt+0x95/0x120 [ 24.303412] compat_tcp_setsockopt+0x3d/0x70 [ 24.303419] compat_sock_common_setsockopt+0xb2/0x140 [ 24.303425] compat_SyS_setsockopt+0x17c/0x410 [ 24.303431] do_fast_syscall_32+0x3ee/0xf9d [ 24.303436] entry_SYSENTER_compat+0x54/0x63 [ 24.303438] [ 24.303441] Freed by task 2033: [ 24.303447] save_stack+0x43/0xd0 [ 24.303452] kasan_slab_free+0x71/0xc0 [ 24.303457] kfree+0xd6/0x260 [ 24.303465] single_release+0x80/0xb0 [ 24.303471] __fput+0x327/0x7e0 [ 24.303476] ____fput+0x15/0x20 [ 24.303483] task_work_run+0x199/0x270 [ 24.303489] exit_to_usermode_loop+0x296/0x310 [ 24.303495] syscall_return_slowpath+0x490/0x550 [ 24.303501] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 24.303502] [ 24.303507] The buggy address belongs to the object at ffff8801bada1d00 [ 24.303507] which belongs to the cache kmalloc-256 of size 256 [ 24.303513] The buggy address is located 208 bytes inside of [ 24.303513] 256-byte region [ffff8801bada1d00, ffff8801bada1e00) [ 24.303515] The buggy address belongs to the page: [ 24.303521] page:ffffea0006eb6840 count:1 mapcount:0 mapping:ffff8801bada1080 index:0x0 [ 24.303527] flags: 0x2fffc0000000100(slab) [ 24.303536] raw: 02fffc0000000100 ffff8801bada1080 0000000000000000 000000010000000c [ 24.303544] raw: ffffea0006ea0160 ffffea0007668960 ffff8801dac007c0 0000000000000000 [ 24.303547] page dumped because: kasan: bad access detected [ 24.303549] [ 24.303551] Memory state around the buggy address: [ 24.303556] ffff8801bada1c80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.303561] ffff8801bada1d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.303567] >ffff8801bada1d80: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc [ 24.303570] ^ [ 24.303575] ffff8801bada1e00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 24.303580] ffff8801bada1e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.303582] ================================================================== [ 24.303585] Disabling lock debugging due to kernel taint [ 24.303605] Kernel panic - not syncing: panic_on_warn set ... [ 24.303605] [ 24.303612] CPU: 1 PID: 3656 Comm: syzkaller839208 Tainted: G B 4.15.0-rc9+ #188 [ 24.303615] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.303617] Call Trace: [ 24.303624] dump_stack+0x194/0x257 [ 24.303633] ? arch_local_irq_restore+0x53/0x53 [ 24.303641] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.303649] ? vsnprintf+0x1ed/0x1900 [ 24.303657] ? string+0x120/0x200 [ 24.303664] panic+0x1e4/0x41c [ 24.303671] ? refcount_error_report+0x214/0x214 [ 24.303680] ? add_taint+0x1c/0x50 [ 24.303687] ? add_taint+0x1c/0x50 [ 24.303696] ? string+0x1e8/0x200 [ 24.303702] kasan_end_report+0x50/0x50 [ 24.303709] kasan_report+0x144/0x340 [ 24.303719] __asan_report_load1_noabort+0x14/0x20 [ 24.303725] string+0x1e8/0x200 [ 24.303738] vsnprintf+0x863/0x1900 [ 24.303750] ? pointer+0x9e0/0x9e0 [ 24.303766] __request_module+0x1bf/0xc20 [ 24.303772] ? lock_downgrade+0x980/0x980 [ 24.303782] ? free_modprobe_argv+0xa0/0xa0 [ 24.303789] ? lock_downgrade+0x980/0x980 [ 24.303801] ? is_bpf_text_address+0x7b/0x120 [ 24.303813] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 24.303823] ? wait_for_completion+0x770/0x770 [ 24.303831] ? lock_downgrade+0x980/0x980 [ 24.303839] ? wait_for_completion+0x770/0x770 [ 24.303845] ? lock_release+0xa40/0xa40 [ 24.303856] ? mark_held_locks+0xaf/0x100 [ 24.303863] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 24.303871] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.303883] ? xt_find_target+0x17b/0x1e0 [ 24.303900] xt_request_find_target+0x8b/0xb0 [ 24.303909] translate_compat_table+0x910/0x1b90 [ 24.303915] ? entry_SYSENTER_compat+0x54/0x63 [ 24.303933] ? ipt_register_table+0x3a0/0x3a0 [ 24.303942] ? __might_fault+0x110/0x1d0 [ 24.303950] ? lock_downgrade+0x980/0x980 [ 24.303955] ? __kmalloc_node+0x33/0x70 [ 24.303963] ? lock_release+0xa40/0xa40 [ 24.303970] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.303976] ? __check_object_size+0x25d/0x4f0 [ 24.303988] ? __might_sleep+0x95/0x190 [ 24.304008] compat_do_replace.isra.15+0x30e/0x720 [ 24.304015] ? compat_do_replace.isra.15+0x30e/0x720 [ 24.304021] ? cred_has_capability+0x1a0/0x3d0 [ 24.304033] ? compat_do_ipt_get_ctl+0xbc0/0xbc0 [ 24.304040] ? find_held_lock+0x35/0x1d0 [ 24.304050] ? module_unload_free+0x5b0/0x5b0 [ 24.304056] ? lock_acquire+0x1d5/0x580 [ 24.304074] ? ns_capable_common+0xcf/0x160 [ 24.304085] compat_do_ipt_set_ctl+0x106/0x150 [ 24.304096] compat_nf_setsockopt+0x88/0x130 [ 24.304102] ? compat_do_replace.isra.15+0x720/0x720 [ 24.304112] compat_ip_setsockopt+0x9d/0xf0 [ 24.304121] inet_csk_compat_setsockopt+0x95/0x120 [ 24.304127] ? ip_setsockopt+0xb0/0xb0 [ 24.304136] compat_tcp_setsockopt+0x3d/0x70 [ 24.304146] compat_sock_common_setsockopt+0xb2/0x140 [ 24.304151] ? tcp_setsockopt+0xd0/0xd0 [ 24.304161] compat_SyS_setsockopt+0x17c/0x410 [ 24.304167] ? sock_common_setsockopt+0xd0/0xd0 [ 24.304176] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 24.304184] ? do_fast_syscall_32+0x156/0xf9d [ 24.304194] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 24.304202] do_fast_syscall_32+0x3ee/0xf9d [ 24.304214] ? do_int80_syscall_32+0x9d0/0x9d0 [ 24.304221] ? kasan_check_read+0x11/0x20 [ 24.304229] ? syscall_return_slowpath+0x550/0x550 [ 24.304237] ? SyS_rt_sigaction+0x94/0x1b0 [ 24.304245] ? SyS_sigprocmask+0x4b0/0x4b0 [ 24.304250] ? SyS_read+0x184/0x220 [ 24.304256] ? retint_user+0x18/0x18 [ 24.304268] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 24.304279] entry_SYSENTER_compat+0x54/0x63 [ 24.304283] RIP: 0023:0xf7fc9c79 [ 24.304286] RSP: 002b:00000000fff29d4c EFLAGS: 00000286 ORIG_RAX: 000000000000016e [ 24.304292] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000 [ 24.304296] RDX: 0000000000000040 RSI: 0000000020178d3e RDI: 00000000000000ec [ 24.304300] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 24.304303] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 24.304310] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 24.325386] Dumping ftrace buffer: [ 24.325390] (ftrace buffer empty) [ 24.325393] Kernel Offset: disabled [ 25.349167] Rebooting in 86400 seconds..