[....] Starting enhanced syslogd: rsyslogd[ 12.145939] audit: type=1400 audit(1515647799.509:5): avc: denied { syslog } for pid=3344 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: [ 17.273340] audit: type=1400 audit(1515647804.637:6): avc: denied { map } for pid=3482 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.32' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 [ 23.540791] audit: type=1400 audit(1515647810.904:7): avc: denied { map } for pid=3496 comm="syzkaller006245" path="/root/syzkaller006245105" 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.612253] audit: type=1400 audit(1515647810.974:8): avc: denied { sys_admin } for pid=3496 comm="syzkaller006245" capability=21 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 executing program [ 23.796427] audit: type=1400 audit(1515647811.160:9): avc: denied { sys_chroot } for pid=3518 comm="syzkaller006245" capability=18 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=cap_userns permissive=1 [ 23.874498] [ 23.876150] ========================= [ 23.879925] WARNING: held lock freed! [ 23.883701] 4.15.0-rc7+ #257 Not tainted [ 23.887735] ------------------------- [ 23.891505] syzkaller006245/3523 is freeing memory 000000007545b006-00000000d028cec0, with a lock still held there! [ 23.902046] (sk_lock-AF_INET6){+.+.}, at: [<00000000479e5370>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 23.910949] 1 lock held by syzkaller006245/3523: [ 23.915684] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000479e5370>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 23.925010] [ 23.925010] stack backtrace: [ 23.929481] CPU: 0 PID: 3523 Comm: syzkaller006245 Not tainted 4.15.0-rc7+ #257 [ 23.936890] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.946209] Call Trace: [ 23.948765] dump_stack+0x194/0x257 [ 23.952360] ? arch_local_irq_restore+0x53/0x53 [ 23.957010] debug_check_no_locks_freed+0x32f/0x3c0 [ 23.961996] kmem_cache_free+0x68/0x2a0 [ 23.965940] __sk_destruct+0x622/0x910 [ 23.969794] ? kasan_slab_free+0x71/0xc0 [ 23.973830] ? sock_rfree+0x160/0x160 [ 23.977599] ? inet_sendmsg+0x11f/0x5e0 [ 23.981542] ? SYSC_sendto+0x361/0x5c0 [ 23.985392] ? SyS_sendto+0x40/0x50 [ 23.988987] ? entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.993884] ? check_noncircular+0x20/0x20 [ 23.998087] ? print_irqtrace_events+0x270/0x270 [ 24.002811] ? free_obj_work+0x690/0x690 [ 24.006850] ? sctp_put_port+0x495/0x640 [ 24.010878] ? sctp_poll+0xc00/0xc00 [ 24.014562] ? refcount_sub_and_test+0x115/0x1b0 [ 24.019284] ? refcount_inc+0x50/0x50 [ 24.023053] ? refcount_inc+0x50/0x50 [ 24.026833] sk_destruct+0x47/0x80 [ 24.030339] __sk_free+0x57/0x230 [ 24.033768] sk_free+0x2a/0x40 [ 24.036928] sctp_association_put+0x14c/0x2f0 [ 24.041401] ? sctp_association_hold+0x20/0x20 [ 24.045957] ? lock_sock_nested+0x91/0x110 [ 24.050167] ? trace_hardirqs_on+0xd/0x10 [ 24.054373] ? __local_bh_enable_ip+0x121/0x230 [ 24.059016] sctp_wait_for_sndbuf+0x673/0x8d0 [ 24.063483] ? sctp_init_sock+0x13b0/0x13b0 [ 24.067780] ? do_raw_spin_trylock+0x190/0x190 [ 24.072328] ? __local_bh_enable_ip+0x121/0x230 [ 24.076963] ? sctp_prsctp_prune+0x97/0x6f0 [ 24.081262] ? prepare_to_wait+0x4d0/0x4d0 [ 24.085463] ? trace_hardirqs_on+0xd/0x10 [ 24.089584] sctp_sendmsg+0x277d/0x3360 [ 24.093527] ? put_pi_state+0x3c0/0x560 [ 24.097486] ? sctp_id2assoc+0x390/0x390 [ 24.101513] ? avc_has_perm+0x43e/0x680 [ 24.105464] ? avc_has_perm_noaudit+0x520/0x520 [ 24.110100] ? __fget+0x35c/0x570 [ 24.113529] ? iterate_fd+0x3f0/0x3f0 [ 24.117312] ? find_held_lock+0x35/0x1d0 [ 24.121353] ? sock_has_perm+0x2a4/0x420 [ 24.125382] ? lock_release+0x962/0xa40 [ 24.129322] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.135175] ? __check_object_size+0x25d/0x4f0 [ 24.139733] inet_sendmsg+0x11f/0x5e0 [ 24.143505] ? inet_sendmsg+0x11f/0x5e0 [ 24.147457] ? __might_sleep+0x95/0x190 [ 24.151398] ? inet_recvmsg+0x5f0/0x5f0 [ 24.155347] ? selinux_socket_sendmsg+0x36/0x40 [ 24.159991] ? security_socket_sendmsg+0x89/0xb0 [ 24.164713] ? inet_recvmsg+0x5f0/0x5f0 [ 24.168655] sock_sendmsg+0xca/0x110 [ 24.172345] SYSC_sendto+0x361/0x5c0 [ 24.176026] ? SYSC_connect+0x4a0/0x4a0 [ 24.179967] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 24.185306] ? __do_page_fault+0x3d6/0xc90 [ 24.189517] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 24.194783] ? SyS_futex+0x269/0x390 [ 24.198464] ? SyS_setsockopt+0x215/0x360 [ 24.202580] ? do_futex+0x22a0/0x22a0 [ 24.206371] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 24.211194] SyS_sendto+0x40/0x50 [ 24.214623] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.219355] RIP: 0033:0x44b8b9 [ 24.222509] RSP: 002b:00007fb061fc4cd8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 24.230277] RAX: ffffffffffffffda RBX: 00000000006f0054 RCX: 000000000044b8b9 [ 24.237514] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 24.244751] RBP: 00000000006f0050 R08: 00000000204d9000 R09: 000000000000001c [ 24.251986] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 24.259226] R13: 00000000007ffe7f R14: 00007fb061fc59c0 R15: 0000000000002710 [ 24.266567] ================================================================== [ 24.273918] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 24.280550] Read of size 4 at addr ffff8801c04dd88c by task syzkaller006245/3523 [ 24.288045] [ 24.289645] CPU: 0 PID: 3523 Comm: syzkaller006245 Not tainted 4.15.0-rc7+ #257 [ 24.297064] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.306386] Call Trace: [ 24.308945] dump_stack+0x194/0x257 [ 24.312540] ? arch_local_irq_restore+0x53/0x53 [ 24.317192] ? show_regs_print_info+0x18/0x18 [ 24.321662] ? lock_acquire+0x1d5/0x580 [ 24.325603] ? trace_hardirqs_on+0xd/0x10 [ 24.329856] ? do_raw_spin_lock+0x1e0/0x220 [ 24.334144] print_address_description+0x73/0x250 [ 24.338954] ? do_raw_spin_lock+0x1e0/0x220 [ 24.343242] kasan_report+0x25b/0x340 [ 24.347020] __asan_report_load4_noabort+0x14/0x20 [ 24.351917] do_raw_spin_lock+0x1e0/0x220 [ 24.356033] _raw_spin_lock_bh+0x39/0x40 [ 24.360059] ? release_sock+0x74/0x2a0 [ 24.363923] release_sock+0x74/0x2a0 [ 24.367604] ? sctp_prsctp_prune+0x97/0x6f0 [ 24.371903] ? __release_sock+0x360/0x360 [ 24.376015] ? trace_hardirqs_on+0xd/0x10 [ 24.380142] sctp_sendmsg+0x2c61/0x3360 [ 24.384090] ? put_pi_state+0x3c0/0x560 [ 24.388045] ? sctp_id2assoc+0x390/0x390 [ 24.392081] ? avc_has_perm+0x43e/0x680 [ 24.396024] ? avc_has_perm_noaudit+0x520/0x520 [ 24.400661] ? __fget+0x35c/0x570 [ 24.404084] ? iterate_fd+0x3f0/0x3f0 [ 24.407856] ? find_held_lock+0x35/0x1d0 [ 24.411897] ? sock_has_perm+0x2a4/0x420 [ 24.415925] ? lock_release+0x962/0xa40 [ 24.419875] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.425726] ? __check_object_size+0x25d/0x4f0 [ 24.430287] inet_sendmsg+0x11f/0x5e0 [ 24.434062] ? inet_sendmsg+0x11f/0x5e0 [ 24.438002] ? __might_sleep+0x95/0x190 [ 24.441942] ? inet_recvmsg+0x5f0/0x5f0 [ 24.445892] ? selinux_socket_sendmsg+0x36/0x40 [ 24.450529] ? security_socket_sendmsg+0x89/0xb0 [ 24.455251] ? inet_recvmsg+0x5f0/0x5f0 [ 24.459191] sock_sendmsg+0xca/0x110 [ 24.462872] SYSC_sendto+0x361/0x5c0 [ 24.466568] ? SYSC_connect+0x4a0/0x4a0 [ 24.470511] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 24.475886] ? __do_page_fault+0x3d6/0xc90 [ 24.480096] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 24.485349] ? SyS_futex+0x269/0x390 [ 24.489037] ? SyS_setsockopt+0x215/0x360 [ 24.493165] ? do_futex+0x22a0/0x22a0 [ 24.496934] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 24.501755] SyS_sendto+0x40/0x50 [ 24.505176] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.509905] RIP: 0033:0x44b8b9 [ 24.513070] RSP: 002b:00007fb061fc4cd8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 24.520747] RAX: ffffffffffffffda RBX: 00000000006f0054 RCX: 000000000044b8b9 [ 24.527985] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 24.535222] RBP: 00000000006f0050 R08: 00000000204d9000 R09: 000000000000001c [ 24.542472] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 24.549708] R13: 00000000007ffe7f R14: 00007fb061fc59c0 R15: 0000000000002710 [ 24.556953] [ 24.558565] Allocated by task 3524: [ 24.562159] save_stack+0x43/0xd0 [ 24.565586] kasan_kmalloc+0xad/0xe0 [ 24.569272] kasan_slab_alloc+0x12/0x20 [ 24.573211] kmem_cache_alloc+0x12e/0x760 [ 24.577327] sk_prot_alloc+0x65/0x2a0 [ 24.581099] sk_alloc+0x105/0x1410 [ 24.584606] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 24.589422] sctp_accept+0x5c4/0x970 [ 24.593109] inet_accept+0x12c/0x930 [ 24.596789] SYSC_accept4+0x38d/0x870 [ 24.600561] SyS_accept+0x26/0x30 [ 24.603989] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.608710] [ 24.610307] Freed by task 3523: [ 24.613562] save_stack+0x43/0xd0 [ 24.616989] kasan_slab_free+0x71/0xc0 [ 24.620851] kmem_cache_free+0x83/0x2a0 [ 24.624798] __sk_destruct+0x622/0x910 [ 24.628735] sk_destruct+0x47/0x80 [ 24.632238] __sk_free+0x57/0x230 [ 24.635654] sk_free+0x2a/0x40 [ 24.638812] sctp_association_put+0x14c/0x2f0 [ 24.643281] sctp_wait_for_sndbuf+0x673/0x8d0 [ 24.647742] sctp_sendmsg+0x277d/0x3360 [ 24.651690] inet_sendmsg+0x11f/0x5e0 [ 24.655463] sock_sendmsg+0xca/0x110 [ 24.659141] SYSC_sendto+0x361/0x5c0 [ 24.662820] SyS_sendto+0x40/0x50 [ 24.666240] entry_SYSCALL_64_fastpath+0x23/0x9a [ 24.670958] [ 24.672556] The buggy address belongs to the object at ffff8801c04dd800 [ 24.672556] which belongs to the cache SCTPv6 of size 1888 [ 24.684842] The buggy address is located 140 bytes inside of [ 24.684842] 1888-byte region [ffff8801c04dd800, ffff8801c04ddf60) [ 24.696767] The buggy address belongs to the page: [ 24.701663] page:ffffea0007013740 count:1 mapcount:0 mapping:ffff8801c04dd000 index:0x0 [ 24.709780] flags: 0x2fffc0000000100(slab) [ 24.713981] raw: 02fffc0000000100 ffff8801c04dd000 0000000000000000 0000000100000002 [ 24.721828] raw: ffffea000700d360 ffff8801d3288c48 ffff8801d3287980 0000000000000000 [ 24.729672] page dumped because: kasan: bad access detected [ 24.735354] [ 24.736946] Memory state around the buggy address: [ 24.741851] ffff8801c04dd780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.749176] ffff8801c04dd800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.756502] >ffff8801c04dd880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.763836] ^ [ 24.767426] ffff8801c04dd900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.774751] ffff8801c04dd980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.782074] ================================================================== [ 24.789452] Kernel panic - not syncing: panic_on_warn set ... [ 24.789452] [ 24.796794] CPU: 0 PID: 3523 Comm: syzkaller006245 Tainted: G B 4.15.0-rc7+ #257 [ 24.805602] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 24.814925] Call Trace: [ 24.817484] dump_stack+0x194/0x257 [ 24.821088] ? arch_local_irq_restore+0x53/0x53 [ 24.825769] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 24.830491] ? vsnprintf+0x1ed/0x1900 [ 24.834274] ? do_raw_spin_lock+0x100/0x220 [ 24.838573] panic+0x1e4/0x41c [ 24.841733] ? refcount_error_report+0x214/0x214 [ 24.846463] ? add_taint+0x1c/0x50 [ 24.849983] ? add_taint+0x1c/0x50 [ 24.853492] ? do_raw_spin_lock+0x1e0/0x220 [ 24.857782] kasan_end_report+0x50/0x50 [ 24.861722] kasan_report+0x144/0x340 [ 24.865498] __asan_report_load4_noabort+0x14/0x20 [ 24.870393] do_raw_spin_lock+0x1e0/0x220 [ 24.874517] _raw_spin_lock_bh+0x39/0x40 [ 24.878548] ? release_sock+0x74/0x2a0 [ 24.882401] release_sock+0x74/0x2a0 [ 24.886089] ? sctp_prsctp_prune+0x97/0x6f0 [ 24.890378] ? __release_sock+0x360/0x360 [ 24.894499] ? trace_hardirqs_on+0xd/0x10 [ 24.898624] sctp_sendmsg+0x2c61/0x3360 [ 24.902575] ? put_pi_state+0x3c0/0x560 [ 24.906536] ? sctp_id2assoc+0x390/0x390 [ 24.910565] ? avc_has_perm+0x43e/0x680 [ 24.914510] ? avc_has_perm_noaudit+0x520/0x520 [ 24.919151] ? __fget+0x35c/0x570 [ 24.922582] ? iterate_fd+0x3f0/0x3f0 [ 24.926361] ? find_held_lock+0x35/0x1d0 [ 24.930394] ? sock_has_perm+0x2a4/0x420 [ 24.934423] ? lock_release+0x962/0xa40 [ 24.938364] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 24.944224] ? __check_object_size+0x25d/0x4f0 [ 24.948779] inet_sendmsg+0x11f/0x5e0 [ 24.952554] ? inet_sendmsg+0x11f/0x5e0 [ 24.956505] ? __might_sleep+0x95/0x190 [ 24.960459] ? inet_recvmsg+0x5f0/0x5f0 [ 24.964400] ? selinux_socket_sendmsg+0x36/0x40 [ 24.969034] ? security_socket_sendmsg+0x89/0xb0 [ 24.973766] ? inet_recvmsg+0x5f0/0x5f0 [ 24.977707] sock_sendmsg+0xca/0x110 [ 24.981387] SYSC_sendto+0x361/0x5c0 [ 24.985079] ? SYSC_connect+0x4a0/0x4a0 [ 24.989021] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 24.994352] ? __do_page_fault+0x3d6/0xc90 [ 24.998564] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 25.003819] ? SyS_futex+0x269/0x390 [ 25.007500] ? SyS_setsockopt+0x215/0x360 [ 25.011617] ? do_futex+0x22a0/0x22a0 [ 25.015396] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 25.020220] SyS_sendto+0x40/0x50 [ 25.023644] entry_SYSCALL_64_fastpath+0x23/0x9a [ 25.028366] RIP: 0033:0x44b8b9 [ 25.031525] RSP: 002b:00007fb061fc4cd8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.039198] RAX: ffffffffffffffda RBX: 00000000006f0054 RCX: 000000000044b8b9 [ 25.046434] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 25.053670] RBP: 00000000006f0050 R08: 00000000204d9000 R09: 000000000000001c [ 25.060905] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 25.068150] R13: 00000000007ffe7f R14: 00007fb061fc59c0 R15: 0000000000002710 [ 25.075778] Dumping ftrace buffer: [ 25.079286] (ftrace buffer empty) [ 25.082963] Kernel Offset: disabled [ 25.086566] Rebooting in 86400 seconds..