INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-mmots-kasan-gce-2,10.128.0.16' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 26.898063] ================================================================== [ 26.899190] BUG: KASAN: slab-out-of-bounds in strcmp+0x96/0xb0 [ 26.900006] Read of size 1 at addr ffff8801d95d0601 by task syzkaller038181/3082 [ 26.900990] [ 26.901223] CPU: 0 PID: 3082 Comm: syzkaller038181 Not tainted 4.15.0-rc1-mm1+ #29 [ 26.902236] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.903455] Call Trace: [ 26.903810] dump_stack+0x194/0x257 [ 26.904350] ? arch_local_irq_restore+0x53/0x53 [ 26.904973] ? show_regs_print_info+0x65/0x65 [ 26.905575] ? save_stack+0xa3/0xd0 [ 26.906064] ? strcmp+0x96/0xb0 [ 26.906556] print_address_description+0x73/0x250 [ 26.907200] ? strcmp+0x96/0xb0 [ 26.907662] kasan_report+0x25b/0x340 [ 26.908194] __asan_report_load1_noabort+0x14/0x20 [ 26.908865] strcmp+0x96/0xb0 [ 26.909303] ? avc_has_perm_noaudit+0x520/0x520 [ 26.909942] security_context_to_sid_core+0x437/0x620 [ 26.910637] ? security_compute_validatetrans.part.6+0x7d0/0x7d0 [ 26.911459] ? check_stack_object+0x68/0x140 [ 26.912049] security_context_to_sid+0x32/0x40 [ 26.912662] selinux_setprocattr+0x51c/0xb50 [ 26.913310] ? ptrace_parent_sid+0x540/0x540 [ 26.913900] ? __kmalloc_track_caller+0x46d/0x760 [ 26.914556] security_setprocattr+0x85/0xc0 [ 26.915139] proc_pid_attr_write+0x1e6/0x280 [ 26.915731] ? proc_task_getattr+0x180/0x180 [ 26.916318] __vfs_write+0xef/0x970 [ 26.916832] ? trace_hardirqs_on+0xd/0x10 [ 26.917406] ? kernel_read+0x120/0x120 [ 26.917931] ? __lock_is_held+0xbc/0x140 [ 26.920480] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.926333] ? save_stack+0xa3/0xd0 [ 26.929928] ? rcu_note_context_switch+0x710/0x710 [ 26.934826] __kernel_write+0xfe/0x350 [ 26.938686] write_pipe_buf+0x175/0x220 [ 26.942627] ? default_file_splice_read+0xae0/0xae0 [ 26.947607] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.953457] ? splice_from_pipe_next.part.9+0x22e/0x2f0 [ 26.958793] __splice_from_pipe+0x328/0x730 [ 26.963080] ? default_file_splice_read+0xae0/0xae0 [ 26.968070] splice_from_pipe+0x1e9/0x330 [ 26.972187] ? default_file_splice_read+0xae0/0xae0 [ 26.977169] ? splice_shrink_spd+0xb0/0xb0 [ 26.981379] ? security_file_permission+0x89/0x1f0 [ 26.986281] default_file_splice_write+0x40/0x90 [ 26.991002] ? generic_splice_sendpage+0x50/0x50 [ 26.995726] direct_splice_actor+0x125/0x180 [ 27.000104] splice_direct_to_actor+0x2c1/0x820 [ 27.004737] ? _cond_resched+0x14/0x30 [ 27.008591] ? generic_pipe_buf_nosteal+0x10/0x10 [ 27.013404] ? do_splice_to+0x170/0x170 [ 27.017345] ? security_file_permission+0x89/0x1f0 [ 27.022244] ? rw_verify_area+0xe5/0x2b0 [ 27.026275] do_splice_direct+0x2a7/0x3d0 [ 27.030392] ? splice_direct_to_actor+0x820/0x820 [ 27.035205] ? rcu_sync_lockdep_assert+0x6d/0xb0 [ 27.039929] ? __sb_start_write+0x203/0x290 [ 27.044220] do_sendfile+0x5d5/0xe90 [ 27.047912] ? do_compat_pwritev64+0x100/0x100 [ 27.052459] ? __might_sleep+0x95/0x190 [ 27.056404] ? kasan_check_write+0x14/0x20 [ 27.060604] ? _copy_from_user+0x99/0x110 [ 27.064720] SyS_sendfile64+0xbd/0x160 [ 27.068575] ? SyS_sendfile+0x1a0/0x1a0 [ 27.072512] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.077495] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.082225] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 27.086946] RIP: 0033:0x440189 [ 27.090102] RSP: 002b:00007fff9c736f98 EFLAGS: 00000207 ORIG_RAX: 0000000000000028 [ 27.097776] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440189 [ 27.105011] RDX: 0000000020004ff8 RSI: 0000000000000003 RDI: 0000000000000003 [ 27.112247] RBP: 00000000006ca018 R08: 68742f636f72702f R09: 68742f636f72702f [ 27.119482] R10: 0000000000000001 R11: 0000000000000207 R12: 0000000000401a50 [ 27.126717] R13: 0000000000401ae0 R14: 0000000000000000 R15: 0000000000000000 [ 27.133974] [ 27.135574] Allocated by task 3082: [ 27.139169] save_stack+0x43/0xd0 [ 27.142591] kasan_kmalloc+0xad/0xe0 [ 27.146274] __kmalloc_track_caller+0x15e/0x760 [ 27.150910] memdup_user+0x2c/0x90 [ 27.154423] proc_pid_attr_write+0x115/0x280 [ 27.158795] __vfs_write+0xef/0x970 [ 27.162385] __kernel_write+0xfe/0x350 [ 27.166238] write_pipe_buf+0x175/0x220 [ 27.170176] __splice_from_pipe+0x328/0x730 [ 27.174462] splice_from_pipe+0x1e9/0x330 [ 27.178577] default_file_splice_write+0x40/0x90 [ 27.183304] direct_splice_actor+0x125/0x180 [ 27.187675] splice_direct_to_actor+0x2c1/0x820 [ 27.192308] do_splice_direct+0x2a7/0x3d0 [ 27.196420] do_sendfile+0x5d5/0xe90 [ 27.200107] SyS_sendfile64+0xbd/0x160 [ 27.203963] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 27.208680] [ 27.210277] Freed by task 16: [ 27.213355] save_stack+0x43/0xd0 [ 27.216773] kasan_slab_free+0x71/0xc0 [ 27.220629] kfree+0xca/0x250 [ 27.223699] selinux_cred_free+0x48/0x70 [ 27.227724] security_cred_free+0x48/0x80 [ 27.231836] put_cred_rcu+0x106/0x400 [ 27.235602] rcu_process_callbacks+0xd74/0x17d0 [ 27.240237] __do_softirq+0x29d/0xbb2 [ 27.244005] [ 27.245600] The buggy address belongs to the object at ffff8801d95d0600 [ 27.245600] which belongs to the cache kmalloc-32 of size 32 [ 27.258047] The buggy address is located 1 bytes inside of [ 27.258047] 32-byte region [ffff8801d95d0600, ffff8801d95d0620) [ 27.269625] The buggy address belongs to the page: [ 27.274522] page:0000000017268b3b count:1 mapcount:0 mapping:00000000826dcaa2 index:0xffff8801d95d0fc1 [ 27.283931] flags: 0x2fffc0000000100(slab) [ 27.288132] raw: 02fffc0000000100 ffff8801d95d0000 ffff8801d95d0fc1 000000010000003f [ 27.295978] raw: ffffea0007643d20 ffffea0007652160 ffff8801db0001c0 0000000000000000 [ 27.303819] page dumped because: kasan: bad access detected [ 27.309491] [ 27.311082] Memory state around the buggy address: [ 27.315973] ffff8801d95d0500: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 27.323296] ffff8801d95d0580: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 27.330618] >ffff8801d95d0600: 01 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc [ 27.337939] ^ [ 27.341272] ffff8801d95d0680: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 27.348606] ffff8801d95d0700: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 27.355929] ================================================================== [ 27.363251] Disabling lock debugging due to kernel taint [ 27.368720] Kernel panic - not syncing: panic_on_warn set ... [ 27.368720] [ 27.376050] CPU: 0 PID: 3082 Comm: syzkaller038181 Tainted: G B 4.15.0-rc1-mm1+ #29 [ 27.385032] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.394350] Call Trace: [ 27.396905] dump_stack+0x194/0x257 [ 27.400497] ? arch_local_irq_restore+0x53/0x53 [ 27.405141] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.409863] ? vsnprintf+0x1ed/0x1900 [ 27.413628] ? strscpy+0x620/0x680 [ 27.417132] panic+0x1e4/0x41c [ 27.420291] ? refcount_error_report+0x214/0x214 [ 27.425012] ? add_taint+0x1c/0x50 [ 27.428517] ? add_taint+0x1c/0x50 [ 27.432021] ? strcmp+0x96/0xb0 [ 27.435266] kasan_end_report+0x50/0x50 [ 27.439216] kasan_report+0x144/0x340 [ 27.442983] __asan_report_load1_noabort+0x14/0x20 [ 27.447876] strcmp+0x96/0xb0 [ 27.450949] ? avc_has_perm_noaudit+0x520/0x520 [ 27.455585] security_context_to_sid_core+0x437/0x620 [ 27.460740] ? security_compute_validatetrans.part.6+0x7d0/0x7d0 [ 27.466857] ? check_stack_object+0x68/0x140 [ 27.471231] security_context_to_sid+0x32/0x40 [ 27.475780] selinux_setprocattr+0x51c/0xb50 [ 27.480157] ? ptrace_parent_sid+0x540/0x540 [ 27.484530] ? __kmalloc_track_caller+0x46d/0x760 [ 27.489348] security_setprocattr+0x85/0xc0 [ 27.493636] proc_pid_attr_write+0x1e6/0x280 [ 27.498011] ? proc_task_getattr+0x180/0x180 [ 27.502384] __vfs_write+0xef/0x970 [ 27.505979] ? trace_hardirqs_on+0xd/0x10 [ 27.510094] ? kernel_read+0x120/0x120 [ 27.513948] ? __lock_is_held+0xbc/0x140 [ 27.517982] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.523830] ? save_stack+0xa3/0xd0 [ 27.527420] ? rcu_note_context_switch+0x710/0x710 [ 27.532314] __kernel_write+0xfe/0x350 [ 27.536168] write_pipe_buf+0x175/0x220 [ 27.540107] ? default_file_splice_read+0xae0/0xae0 [ 27.545087] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.550933] ? splice_from_pipe_next.part.9+0x22e/0x2f0 [ 27.556264] __splice_from_pipe+0x328/0x730 [ 27.560548] ? default_file_splice_read+0xae0/0xae0 [ 27.565529] splice_from_pipe+0x1e9/0x330 [ 27.569642] ? default_file_splice_read+0xae0/0xae0 [ 27.574620] ? splice_shrink_spd+0xb0/0xb0 [ 27.578822] ? security_file_permission+0x89/0x1f0 [ 27.583716] default_file_splice_write+0x40/0x90 [ 27.588434] ? generic_splice_sendpage+0x50/0x50 [ 27.593152] direct_splice_actor+0x125/0x180 [ 27.597526] splice_direct_to_actor+0x2c1/0x820 [ 27.602159] ? _cond_resched+0x14/0x30 [ 27.606010] ? generic_pipe_buf_nosteal+0x10/0x10 [ 27.610818] ? do_splice_to+0x170/0x170 [ 27.614760] ? security_file_permission+0x89/0x1f0 [ 27.619656] ? rw_verify_area+0xe5/0x2b0 [ 27.623686] do_splice_direct+0x2a7/0x3d0 [ 27.627802] ? splice_direct_to_actor+0x820/0x820 [ 27.632611] ? rcu_sync_lockdep_assert+0x6d/0xb0 [ 27.637331] ? __sb_start_write+0x203/0x290 [ 27.641617] do_sendfile+0x5d5/0xe90 [ 27.645301] ? do_compat_pwritev64+0x100/0x100 [ 27.649849] ? __might_sleep+0x95/0x190 [ 27.653788] ? kasan_check_write+0x14/0x20 [ 27.657985] ? _copy_from_user+0x99/0x110 [ 27.662097] SyS_sendfile64+0xbd/0x160 [ 27.665949] ? SyS_sendfile+0x1a0/0x1a0 [ 27.669886] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.674865] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.679587] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 27.684308] RIP: 0033:0x440189 [ 27.687463] RSP: 002b:00007fff9c736f98 EFLAGS: 00000207 ORIG_RAX: 0000000000000028 [ 27.695133] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440189 [ 27.702366] RDX: 0000000020004ff8 RSI: 0000000000000003 RDI: 0000000000000003 [ 27.709600] RBP: 00000000006ca018 R08: 68742f636f72702f R09: 68742f636f72702f [ 27.716833] R10: 0000000000000001 R11: 0000000000000207 R12: 0000000000401a50 [ 27.724067] R13: 0000000000401ae0 R14: 0000000000000000 R15: 0000000000000000 [ 27.731340] Dumping ftrace buffer: [ 27.734845] (ftrace buffer empty) [ 27.738520] Kernel Offset: disabled [ 27.742111] Rebooting in 86400 seconds..