[....] Starting enhanced syslogd: rsyslogd[ 11.873150] audit: type=1400 audit(1512764950.358:5): avc: denied { syslog } for pid=2994 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.994150] audit: type=1400 audit(1512764955.479:6): avc: denied { map } for pid=3132 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 'ci-upstream-next-kasan-gce-0,10.128.15.232' (ECDSA) to the list of known hosts. executing program [ 23.357656] audit: type=1400 audit(1512764961.843:7): avc: denied { map } for pid=3146 comm="syzkaller678996" path="/root/syzkaller678996703" 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 [ 23.403877] ================================================================== [ 23.411262] BUG: KASAN: slab-out-of-bounds in sctp_send_reset_streams+0xb03/0xc10 [ 23.418852] Read of size 2 at addr ffff8801c520fd48 by task syzkaller678996/3154 [ 23.426358] [ 23.427959] CPU: 1 PID: 3154 Comm: syzkaller678996 Not tainted 4.15.0-rc2-next-20171208+ #63 [ 23.436503] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.445826] Call Trace: [ 23.448389] dump_stack+0x194/0x257 [ 23.451989] ? arch_local_irq_restore+0x53/0x53 [ 23.456631] ? show_regs_print_info+0x18/0x18 [ 23.461101] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.466960] ? sctp_send_reset_streams+0xb03/0xc10 [ 23.471866] print_address_description+0x73/0x250 [ 23.476685] ? sctp_send_reset_streams+0xb03/0xc10 [ 23.481590] kasan_report+0x25b/0x340 [ 23.485369] __asan_report_load2_noabort+0x14/0x20 [ 23.490270] sctp_send_reset_streams+0xb03/0xc10 [ 23.495000] ? _copy_from_user+0x99/0x110 [ 23.499126] sctp_setsockopt+0x70d/0x5d50 [ 23.503254] ? sctp_setsockopt_paddr_thresholds+0x540/0x540 [ 23.508941] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 23.514107] ? lock_downgrade+0x980/0x980 [ 23.518226] ? lock_downgrade+0x980/0x980 [ 23.522348] ? ttwu_do_wakeup+0x4d0/0x710 [ 23.526469] ? check_preempt_curr+0x350/0x350 [ 23.530933] ? __lock_is_held+0xbc/0x140 [ 23.534966] ? check_noncircular+0x20/0x20 [ 23.539177] ? check_noncircular+0x20/0x20 [ 23.543385] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 23.548462] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.553453] ? trace_hardirqs_on+0xd/0x10 [ 23.557579] ? find_held_lock+0x39/0x1d0 [ 23.561624] ? lock_downgrade+0x980/0x980 [ 23.565753] ? avc_has_perm+0xd0/0x680 [ 23.569613] ? lock_downgrade+0x980/0x980 [ 23.573734] ? lock_release+0xda0/0xda0 [ 23.577684] ? lock_release+0xda0/0xda0 [ 23.581633] ? __lock_is_held+0xbc/0x140 [ 23.586807] ? avc_has_perm+0x43e/0x680 [ 23.592148] ? avc_has_perm_noaudit+0x520/0x520 [ 23.598108] ? iterate_fd+0x3f0/0x3f0 [ 23.601915] ? handle_mm_fault+0x476/0x930 [ 23.606132] ? down_read_trylock+0xdb/0x170 [ 23.610459] ? sock_has_perm+0x29c/0x400 [ 23.615483] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 23.620827] ? __do_page_fault+0x3d6/0xc90 [ 23.625035] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 23.630717] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 23.635972] ? lock_release+0xda0/0xda0 [ 23.639926] sock_common_setsockopt+0x95/0xd0 [ 23.644400] SyS_setsockopt+0x189/0x360 [ 23.648348] ? SyS_recv+0x40/0x40 [ 23.651777] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 23.656595] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.661585] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.666318] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.671045] RIP: 0033:0x445629 [ 23.674208] RSP: 002b:00007f022a676dc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000036 [ 23.681891] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445629 [ 23.689131] RDX: 0000000000000077 RSI: 0000000000000084 RDI: 0000000000000004 [ 23.696373] RBP: 0000000000000000 R08: 0000000000000008 R09: 00007f022a677700 [ 23.703614] R10: 0000000020b24000 R11: 0000000000000202 R12: 0000000000000000 [ 23.710854] R13: 00007ffc97534bdf R14: 00007f022a6779c0 R15: 0000000000000000 [ 23.718113] [ 23.719711] Allocated by task 3154: [ 23.723311] save_stack+0x43/0xd0 [ 23.726733] kasan_kmalloc+0xad/0xe0 [ 23.731288] __kmalloc_track_caller+0x15e/0x760 [ 23.735925] memdup_user+0x2c/0x90 [ 23.740217] sctp_setsockopt+0x6a6/0x5d50 [ 23.744942] sock_common_setsockopt+0x95/0xd0 [ 23.749405] SyS_setsockopt+0x189/0x360 [ 23.753347] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.758070] [ 23.759668] Freed by task 1637: [ 23.762916] save_stack+0x43/0xd0 [ 23.766341] kasan_slab_free+0x71/0xc0 [ 23.770199] kfree+0xca/0x250 [ 23.773275] selinux_sk_free_security+0x4f/0x60 [ 23.777914] security_sk_free+0x48/0x80 [ 23.781861] __sk_destruct+0x609/0x910 [ 23.785726] sk_destruct+0x47/0x80 [ 23.789235] __sk_free+0x57/0x230 [ 23.792665] sk_free+0x2a/0x40 [ 23.795830] unix_release_sock+0x644/0xc10 [ 23.800036] unix_release+0x44/0x90 [ 23.803630] sock_release+0x8d/0x1e0 [ 23.807315] sock_close+0x16/0x20 [ 23.810741] __fput+0x333/0x7f0 [ 23.813990] ____fput+0x15/0x20 [ 23.817240] task_work_run+0x199/0x270 [ 23.821097] exit_to_usermode_loop+0x275/0x2f0 [ 23.825649] syscall_return_slowpath+0x490/0x550 [ 23.830381] entry_SYSCALL_64_fastpath+0x94/0x96 [ 23.835104] [ 23.836710] The buggy address belongs to the object at ffff8801c520fd40 [ 23.836710] which belongs to the cache kmalloc-32 of size 32 [ 23.849944] The buggy address is located 8 bytes inside of [ 23.849944] 32-byte region [ffff8801c520fd40, ffff8801c520fd60) [ 23.861530] The buggy address belongs to the page: [ 23.866432] page:00000000c753f0c9 count:1 mapcount:0 mapping:000000000af62544 index:0xffff8801c520ffc1 [ 23.875850] flags: 0x2fffc0000000100(slab) [ 23.880055] raw: 02fffc0000000100 ffff8801c520f000 ffff8801c520ffc1 000000010000003f [ 23.887908] raw: ffffea0007153ce0 ffffea00071488a0 ffff8801dac001c0 0000000000000000 [ 23.895757] page dumped because: kasan: bad access detected [ 23.901436] [ 23.903035] Memory state around the buggy address: [ 23.907935] ffff8801c520fc00: fb fb fb fb fc fc fc fc 00 00 01 fc fc fc fc fc [ 23.915266] ffff8801c520fc80: fb fb fb fb fc fc fc fc 00 00 04 fc fc fc fc fc [ 23.922596] >ffff8801c520fd00: fb fb fb fb fc fc fc fc 00 fc fc fc fc fc fc fc [ 23.929923] ^ [ 23.935603] ffff8801c520fd80: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 23.942931] ffff8801c520fe00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 23.950259] ================================================================== [ 23.957584] Disabling lock debugging due to kernel taint [ 23.963074] Kernel panic - not syncing: panic_on_warn set ... [ 23.963074] [ 23.970403] CPU: 1 PID: 3154 Comm: syzkaller678996 Tainted: G B 4.15.0-rc2-next-20171208+ #63 [ 23.980243] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.989560] Call Trace: [ 23.992115] dump_stack+0x194/0x257 [ 23.995712] ? arch_local_irq_restore+0x53/0x53 [ 24.000352] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.005073] ? vsnprintf+0x1ed/0x1900 [ 24.008842] ? sctp_send_reset_streams+0xa90/0xc10 [ 24.013738] panic+0x1e4/0x41c [ 24.016897] ? refcount_error_report+0x214/0x214 [ 24.021620] ? add_taint+0x1c/0x50 [ 24.025123] ? add_taint+0x1c/0x50 [ 24.028630] ? sctp_send_reset_streams+0xb03/0xc10 [ 24.033525] kasan_end_report+0x50/0x50 [ 24.037461] kasan_report+0x144/0x340 [ 24.041230] __asan_report_load2_noabort+0x14/0x20 [ 24.046131] sctp_send_reset_streams+0xb03/0xc10 [ 24.050855] ? _copy_from_user+0x99/0x110 [ 24.054972] sctp_setsockopt+0x70d/0x5d50 [ 24.059087] ? sctp_setsockopt_paddr_thresholds+0x540/0x540 [ 24.064762] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 24.069919] ? lock_downgrade+0x980/0x980 [ 24.074028] ? lock_downgrade+0x980/0x980 [ 24.078143] ? ttwu_do_wakeup+0x4d0/0x710 [ 24.082260] ? check_preempt_curr+0x350/0x350 [ 24.086718] ? __lock_is_held+0xbc/0x140 [ 24.090741] ? check_noncircular+0x20/0x20 [ 24.094942] ? check_noncircular+0x20/0x20 [ 24.099143] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 24.104212] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.109197] ? trace_hardirqs_on+0xd/0x10 [ 24.113310] ? find_held_lock+0x39/0x1d0 [ 24.117339] ? lock_downgrade+0x980/0x980 [ 24.121451] ? avc_has_perm+0xd0/0x680 [ 24.125302] ? lock_downgrade+0x980/0x980 [ 24.129416] ? lock_release+0xda0/0xda0 [ 24.133355] ? lock_release+0xda0/0xda0 [ 24.137294] ? __lock_is_held+0xbc/0x140 [ 24.141321] ? avc_has_perm+0x43e/0x680 [ 24.145259] ? avc_has_perm_noaudit+0x520/0x520 [ 24.149895] ? iterate_fd+0x3f0/0x3f0 [ 24.153665] ? handle_mm_fault+0x476/0x930 [ 24.157862] ? down_read_trylock+0xdb/0x170 [ 24.162153] ? sock_has_perm+0x29c/0x400 [ 24.166179] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 24.171505] ? __do_page_fault+0x3d6/0xc90 [ 24.175702] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 24.181377] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 24.186621] ? lock_release+0xda0/0xda0 [ 24.190565] sock_common_setsockopt+0x95/0xd0 [ 24.195025] SyS_setsockopt+0x189/0x360 [ 24.198964] ? SyS_recv+0x40/0x40 [ 24.202381] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 24.207190] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 24.212169] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.216894] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 24.221619] RIP: 0033:0x445629 [ 24.224779] RSP: 002b:00007f022a676dc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000036 [ 24.232448] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445629 [ 24.239681] RDX: 0000000000000077 RSI: 0000000000000084 RDI: 0000000000000004 [ 24.246918] RBP: 0000000000000000 R08: 0000000000000008 R09: 00007f022a677700 [ 24.254167] R10: 0000000020b24000 R11: 0000000000000202 R12: 0000000000000000 [ 24.261402] R13: 00007ffc97534bdf R14: 00007f022a6779c0 R15: 0000000000000000 [ 24.268675] Dumping ftrace buffer: [ 24.272178] (ftrace buffer empty) [ 24.275854] Kernel Offset: disabled [ 24.279446] Rebooting in 86400 seconds..