[....] Starting enhanced syslogd: rsyslogd[ 12.437336] audit: type=1400 audit(1512962246.804:5): avc: denied { syslog } for pid=2996 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: [ 19.638876] audit: type=1400 audit(1512962254.005:6): avc: denied { map } for pid=3137 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-mmots-kasan-gce-0,10.128.0.17' (ECDSA) to the list of known hosts. executing program [ 25.973780] audit: type=1400 audit(1512962260.340:7): avc: denied { map } for pid=3151 comm="syzkaller171653" path="/root/syzkaller171653822" 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 [ 26.021198] ================================================================== [ 26.028601] BUG: KASAN: slab-out-of-bounds in sctp_send_reset_streams+0xb03/0xc10 [ 26.036196] Read of size 2 at addr ffff8801c4c20a88 by task syzkaller171653/3159 [ 26.043697] [ 26.045303] CPU: 1 PID: 3159 Comm: syzkaller171653 Not tainted 4.15.0-rc2-mm1+ #39 [ 26.052986] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.063448] Call Trace: [ 26.066018] dump_stack+0x194/0x257 [ 26.069626] ? arch_local_irq_restore+0x53/0x53 [ 26.074271] ? show_regs_print_info+0x18/0x18 [ 26.078747] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.084630] ? sctp_send_reset_streams+0xb03/0xc10 [ 26.089538] print_address_description+0x73/0x250 [ 26.094356] ? sctp_send_reset_streams+0xb03/0xc10 [ 26.099261] kasan_report+0x25b/0x340 [ 26.103652] __asan_report_load2_noabort+0x14/0x20 [ 26.108554] sctp_send_reset_streams+0xb03/0xc10 [ 26.113287] ? _copy_from_user+0x99/0x110 [ 26.117421] sctp_setsockopt+0x70d/0x5d50 [ 26.121549] ? sctp_setsockopt_paddr_thresholds+0x540/0x540 [ 26.127238] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 26.132410] ? lock_downgrade+0x980/0x980 [ 26.136530] ? lock_downgrade+0x980/0x980 [ 26.141004] ? ttwu_do_wakeup+0x4d0/0x710 [ 26.146525] ? check_preempt_curr+0x350/0x350 [ 26.150994] ? __lock_is_held+0xbc/0x140 [ 26.155035] ? check_noncircular+0x20/0x20 [ 26.159250] ? check_noncircular+0x20/0x20 [ 26.163463] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 26.168541] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.173530] ? trace_hardirqs_on+0xd/0x10 [ 26.177659] ? find_held_lock+0x39/0x1d0 [ 26.181707] ? lock_downgrade+0x980/0x980 [ 26.185832] ? avc_has_perm+0xd0/0x680 [ 26.189694] ? lock_downgrade+0x980/0x980 [ 26.193822] ? lock_release+0xda0/0xda0 [ 26.197776] ? lock_release+0xda0/0xda0 [ 26.201726] ? __lock_is_held+0xbc/0x140 [ 26.205770] ? avc_has_perm+0x43e/0x680 [ 26.209723] ? avc_has_perm_noaudit+0x520/0x520 [ 26.214377] ? iterate_fd+0x3f0/0x3f0 [ 26.218425] ? handle_mm_fault+0x476/0x930 [ 26.222633] ? down_read_trylock+0xdb/0x170 [ 26.226939] ? sock_has_perm+0x29c/0x400 [ 26.230981] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 26.236317] ? __do_page_fault+0x3d6/0xc90 [ 26.240526] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 26.246211] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 26.251470] ? lock_release+0xda0/0xda0 [ 26.255430] sock_common_setsockopt+0x95/0xd0 [ 26.259905] SyS_setsockopt+0x189/0x360 [ 26.263860] ? SyS_recv+0x40/0x40 [ 26.267289] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 26.272108] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.277102] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.281840] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.286572] RIP: 0033:0x445629 [ 26.289737] RSP: 002b:00007f273622bdc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000036 [ 26.297422] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445629 [ 26.304663] RDX: 0000000000000077 RSI: 0000000000000084 RDI: 0000000000000004 [ 26.311908] RBP: 0000000000000000 R08: 0000000000000008 R09: 00007f273622c700 [ 26.319153] R10: 0000000020b24000 R11: 0000000000000202 R12: 0000000000000000 [ 26.326395] R13: 00007ffc995416bf R14: 00007f273622c9c0 R15: 0000000000000000 [ 26.333658] [ 26.335258] Allocated by task 3159: [ 26.338858] save_stack+0x43/0xd0 [ 26.342283] kasan_kmalloc+0xad/0xe0 [ 26.345969] __kmalloc_track_caller+0x15e/0x760 [ 26.350610] memdup_user+0x2c/0x90 [ 26.354125] sctp_setsockopt+0x6a6/0x5d50 [ 26.358244] sock_common_setsockopt+0x95/0xd0 [ 26.362710] SyS_setsockopt+0x189/0x360 [ 26.366658] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.371380] [ 26.372980] Freed by task 1748: [ 26.376232] save_stack+0x43/0xd0 [ 26.379655] kasan_slab_free+0x71/0xc0 [ 26.383517] kfree+0xca/0x250 [ 26.386594] selinux_cred_free+0x48/0x70 [ 26.390627] security_cred_free+0x48/0x80 [ 26.394749] put_cred_rcu+0x106/0x400 [ 26.398522] rcu_process_callbacks+0xd74/0x17d0 [ 26.403167] __do_softirq+0x29d/0xbb2 [ 26.406938] [ 26.408542] The buggy address belongs to the object at ffff8801c4c20a80 [ 26.408542] which belongs to the cache kmalloc-32 of size 32 [ 26.420996] The buggy address is located 8 bytes inside of [ 26.420996] 32-byte region [ffff8801c4c20a80, ffff8801c4c20aa0) [ 26.433558] The buggy address belongs to the page: [ 26.438459] page:0000000063c9e2e4 count:1 mapcount:0 mapping:00000000aa7555b6 index:0xffff8801c4c20fc1 [ 26.447880] flags: 0x2fffc0000000100(slab) [ 26.452091] raw: 02fffc0000000100 ffff8801c4c20000 ffff8801c4c20fc1 0000000100000017 [ 26.459945] raw: ffffea00071312a0 ffffea00071a4460 ffff8801dac001c0 0000000000000000 [ 26.467795] page dumped because: kasan: bad access detected [ 26.473475] [ 26.475076] Memory state around the buggy address: [ 26.479978] ffff8801c4c20980: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 26.487308] ffff8801c4c20a00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 26.494646] >ffff8801c4c20a80: 00 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc [ 26.501975] ^ [ 26.505574] ffff8801c4c20b00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 26.513080] ffff8801c4c20b80: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 26.520408] ================================================================== [ 26.527739] Disabling lock debugging due to kernel taint [ 26.533229] Kernel panic - not syncing: panic_on_warn set ... [ 26.533229] [ 26.540570] CPU: 1 PID: 3159 Comm: syzkaller171653 Tainted: G B 4.15.0-rc2-mm1+ #39 [ 26.550327] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.559658] Call Trace: [ 26.562217] dump_stack+0x194/0x257 [ 26.565814] ? arch_local_irq_restore+0x53/0x53 [ 26.570451] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.575176] ? vsnprintf+0x1ed/0x1900 [ 26.578945] ? sctp_send_reset_streams+0xaa0/0xc10 [ 26.583840] panic+0x1e4/0x41c [ 26.586999] ? refcount_error_report+0x214/0x214 [ 26.592938] ? add_taint+0x1c/0x50 [ 26.596444] ? add_taint+0x1c/0x50 [ 26.599953] ? sctp_send_reset_streams+0xb03/0xc10 [ 26.604849] kasan_end_report+0x50/0x50 [ 26.608791] kasan_report+0x144/0x340 [ 26.612562] __asan_report_load2_noabort+0x14/0x20 [ 26.617456] sctp_send_reset_streams+0xb03/0xc10 [ 26.622180] ? _copy_from_user+0x99/0x110 [ 26.626300] sctp_setsockopt+0x70d/0x5d50 [ 26.630419] ? sctp_setsockopt_paddr_thresholds+0x540/0x540 [ 26.636098] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 26.641258] ? lock_downgrade+0x980/0x980 [ 26.645373] ? lock_downgrade+0x980/0x980 [ 26.649488] ? ttwu_do_wakeup+0x4d0/0x710 [ 26.653604] ? check_preempt_curr+0x350/0x350 [ 26.658151] ? __lock_is_held+0xbc/0x140 [ 26.663132] ? check_noncircular+0x20/0x20 [ 26.667333] ? check_noncircular+0x20/0x20 [ 26.671536] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 26.676607] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.681587] ? trace_hardirqs_on+0xd/0x10 [ 26.685711] ? find_held_lock+0x39/0x1d0 [ 26.689745] ? lock_downgrade+0x980/0x980 [ 26.693863] ? avc_has_perm+0xd0/0x680 [ 26.697717] ? lock_downgrade+0x980/0x980 [ 26.701834] ? lock_release+0xda0/0xda0 [ 26.705776] ? lock_release+0xda0/0xda0 [ 26.709717] ? __lock_is_held+0xbc/0x140 [ 26.713747] ? avc_has_perm+0x43e/0x680 [ 26.717689] ? avc_has_perm_noaudit+0x520/0x520 [ 26.722334] ? iterate_fd+0x3f0/0x3f0 [ 26.726111] ? handle_mm_fault+0x476/0x930 [ 26.730309] ? down_read_trylock+0xdb/0x170 [ 26.734601] ? sock_has_perm+0x29c/0x400 [ 26.738631] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 26.743963] ? __do_page_fault+0x3d6/0xc90 [ 26.748166] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 26.753843] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 26.759092] ? lock_release+0xda0/0xda0 [ 26.763037] sock_common_setsockopt+0x95/0xd0 [ 26.767500] SyS_setsockopt+0x189/0x360 [ 26.771442] ? SyS_recv+0x40/0x40 [ 26.774866] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 26.779674] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.784663] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.789388] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.794109] RIP: 0033:0x445629 [ 26.797267] RSP: 002b:00007f273622bdc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000036 [ 26.804939] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445629 [ 26.812177] RDX: 0000000000000077 RSI: 0000000000000084 RDI: 0000000000000004 [ 26.819849] RBP: 0000000000000000 R08: 0000000000000008 R09: 00007f273622c700 [ 26.827083] R10: 0000000020b24000 R11: 0000000000000202 R12: 0000000000000000 [ 26.834318] R13: 00007ffc995416bf R14: 00007f273622c9c0 R15: 0000000000000000 [ 26.844093] Dumping ftrace buffer: [ 26.848032] (ftrace buffer empty) [ 26.851706] Kernel Offset: disabled [ 26.855298] Rebooting in 86400 seconds..