[....] Starting enhanced syslogd: rsyslogd[ 12.638497] audit: type=1400 audit(1515650933.565:5): avc: denied { syslog } for pid=3350 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] 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.932868] audit: type=1400 audit(1515650939.859:6): avc: denied { map } for pid=3490 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.15.208' (ECDSA) to the list of known hosts. executing program [ 25.109637] audit: type=1400 audit(1515650946.036:7): avc: denied { map } for pid=3504 comm="syzkaller749876" path="/root/syzkaller749876958" 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 executing program executing program [ 25.290276] [ 25.291920] ========================= [ 25.295685] WARNING: held lock freed! [ 25.299459] 4.15.0-rc7-mm1+ #53 Not tainted [ 25.303743] ------------------------- [ 25.307509] syzkaller749876/3508 is freeing memory 000000004fefe5a0-00000000b6222fdb, with a lock still held there! [ 25.318052] (sk_lock-AF_INET6){+.+.}, at: [<00000000e245f011>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 25.326959] 1 lock held by syzkaller749876/3508: [ 25.331684] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000e245f011>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 25.341011] [ 25.341011] stack backtrace: [ 25.345472] CPU: 0 PID: 3508 Comm: syzkaller749876 Not tainted 4.15.0-rc7-mm1+ #53 [ 25.353143] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.362462] Call Trace: [ 25.365017] dump_stack+0x194/0x257 [ 25.368625] ? arch_local_irq_restore+0x53/0x53 [ 25.373267] debug_check_no_locks_freed+0x32f/0x3c0 [ 25.378256] kmem_cache_free+0x68/0x2b0 [ 25.382199] __sk_destruct+0x622/0x910 [ 25.386051] ? kfree+0xd9/0x260 [ 25.389296] ? sock_rfree+0x160/0x160 [ 25.393062] ? sock_sendmsg+0xca/0x110 [ 25.396915] ? SyS_sendto+0x40/0x50 [ 25.400507] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.405413] ? debug_check_no_obj_freed+0x611/0xf1f [ 25.410397] ? check_noncircular+0x20/0x20 [ 25.414606] ? print_irqtrace_events+0x270/0x270 [ 25.419331] ? __local_bh_enable_ip+0x121/0x230 [ 25.423968] ? sctp_put_port+0x495/0x640 [ 25.427998] ? sctp_poll+0xc00/0xc00 [ 25.431683] ? refcount_sub_and_test+0x115/0x1b0 [ 25.436413] ? refcount_inc+0x50/0x50 [ 25.440180] ? refcount_inc+0x50/0x50 [ 25.443949] sk_destruct+0x47/0x80 [ 25.447455] __sk_free+0xf1/0x2b0 [ 25.450877] sk_free+0x2a/0x40 [ 25.454038] sctp_association_put+0x14c/0x2f0 [ 25.458498] ? sctp_association_hold+0x20/0x20 [ 25.463044] ? lock_sock_nested+0x91/0x110 [ 25.467243] ? trace_hardirqs_on+0xd/0x10 [ 25.471357] ? __local_bh_enable_ip+0x121/0x230 [ 25.475995] sctp_wait_for_sndbuf+0x673/0x8d0 [ 25.480463] ? sctp_init_sock+0x13b0/0x13b0 [ 25.484750] ? do_raw_spin_trylock+0x190/0x190 [ 25.489298] ? __local_bh_enable_ip+0x121/0x230 [ 25.493930] ? sctp_prsctp_prune+0x97/0x790 [ 25.498228] ? prepare_to_wait+0x4d0/0x4d0 [ 25.502429] ? trace_hardirqs_on+0xd/0x10 [ 25.506546] sctp_sendmsg+0x28f7/0x33f0 [ 25.510494] ? sctp_id2assoc+0x390/0x390 [ 25.515052] ? avc_has_perm+0x43e/0x680 [ 25.519000] ? avc_has_perm_noaudit+0x520/0x520 [ 25.523638] ? __fget+0x35c/0x570 [ 25.527060] ? iterate_fd+0x3f0/0x3f0 [ 25.530832] ? find_held_lock+0x35/0x1d0 [ 25.534870] ? sock_has_perm+0x2a4/0x420 [ 25.538899] ? lock_release+0x9e2/0xa40 [ 25.542841] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.548691] ? __check_object_size+0x8b/0x530 [ 25.553157] inet_sendmsg+0x11f/0x5e0 [ 25.556921] ? inet_sendmsg+0x11f/0x5e0 [ 25.560866] ? __might_sleep+0x95/0x190 [ 25.564833] ? inet_create+0xf50/0xf50 [ 25.568688] ? selinux_socket_sendmsg+0x36/0x40 [ 25.573324] ? security_socket_sendmsg+0x89/0xb0 [ 25.578043] ? inet_create+0xf50/0xf50 [ 25.581899] sock_sendmsg+0xca/0x110 [ 25.585587] SYSC_sendto+0x361/0x5c0 [ 25.589275] ? SYSC_connect+0x4a0/0x4a0 [ 25.593216] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 25.598545] ? __do_page_fault+0x3d6/0xc90 [ 25.602747] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 25.608011] ? SyS_futex+0x269/0x390 [ 25.611691] ? SyS_setsockopt+0x215/0x360 [ 25.615810] ? do_futex+0x22a0/0x22a0 [ 25.619589] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 25.624399] SyS_sendto+0x40/0x50 [ 25.627821] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.632549] RIP: 0033:0x4457e9 [ 25.635705] RSP: 002b:00007f120e5c0da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.643376] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 25.650618] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 25.657855] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 25.665090] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 25.672325] R13: 00007ffd1a3c859f R14: 00007f120e5c19c0 R15: 0000000000000001 [ 25.679661] ================================================================== [ 25.686996] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 25.693628] Read of size 4 at addr ffff8801c1a0d08c by task syzkaller749876/3508 [ 25.701128] [ 25.702742] CPU: 0 PID: 3508 Comm: syzkaller749876 Not tainted 4.15.0-rc7-mm1+ #53 [ 25.710413] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.719732] Call Trace: [ 25.722286] dump_stack+0x194/0x257 [ 25.725883] ? arch_local_irq_restore+0x53/0x53 [ 25.730516] ? show_regs_print_info+0x18/0x18 [ 25.734988] ? lock_acquire+0x1d5/0x580 [ 25.738928] ? trace_hardirqs_on+0xd/0x10 [ 25.743042] ? do_raw_spin_lock+0x1e0/0x220 [ 25.747332] print_address_description+0x73/0x250 [ 25.752144] ? do_raw_spin_lock+0x1e0/0x220 [ 25.756433] kasan_report+0x23b/0x360 [ 25.760208] __asan_report_load4_noabort+0x14/0x20 [ 25.765103] do_raw_spin_lock+0x1e0/0x220 [ 25.769217] _raw_spin_lock_bh+0x39/0x40 [ 25.773243] ? release_sock+0x74/0x2a0 [ 25.777094] release_sock+0x74/0x2a0 [ 25.780775] ? sctp_prsctp_prune+0x97/0x790 [ 25.785061] ? __release_sock+0x360/0x360 [ 25.789174] ? trace_hardirqs_on+0xd/0x10 [ 25.793292] sctp_sendmsg+0x2993/0x33f0 [ 25.797238] ? sctp_id2assoc+0x390/0x390 [ 25.801268] ? avc_has_perm+0x43e/0x680 [ 25.805211] ? avc_has_perm_noaudit+0x520/0x520 [ 25.809851] ? __fget+0x35c/0x570 [ 25.813279] ? iterate_fd+0x3f0/0x3f0 [ 25.817049] ? find_held_lock+0x35/0x1d0 [ 25.821080] ? sock_has_perm+0x2a4/0x420 [ 25.825109] ? lock_release+0x9e2/0xa40 [ 25.829048] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.834901] ? __check_object_size+0x8b/0x530 [ 25.839368] inet_sendmsg+0x11f/0x5e0 [ 25.843133] ? inet_sendmsg+0x11f/0x5e0 [ 25.847071] ? __might_sleep+0x95/0x190 [ 25.851019] ? inet_create+0xf50/0xf50 [ 25.854878] ? selinux_socket_sendmsg+0x36/0x40 [ 25.859515] ? security_socket_sendmsg+0x89/0xb0 [ 25.864251] ? inet_create+0xf50/0xf50 [ 25.868115] sock_sendmsg+0xca/0x110 [ 25.871809] SYSC_sendto+0x361/0x5c0 [ 25.875490] ? SYSC_connect+0x4a0/0x4a0 [ 25.879448] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 25.884779] ? __do_page_fault+0x3d6/0xc90 [ 25.888988] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 25.894252] ? SyS_futex+0x269/0x390 [ 25.897931] ? SyS_setsockopt+0x215/0x360 [ 25.902054] ? do_futex+0x22a0/0x22a0 [ 25.905838] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 25.910659] SyS_sendto+0x40/0x50 [ 25.914081] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 25.918804] RIP: 0033:0x4457e9 [ 25.921959] RSP: 002b:00007f120e5c0da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 25.929632] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 25.936871] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 25.944105] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 25.951349] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 25.958584] R13: 00007ffd1a3c859f R14: 00007f120e5c19c0 R15: 0000000000000001 [ 25.965827] [ 25.967421] Allocated by task 3513: [ 25.971015] save_stack+0x43/0xd0 [ 25.974442] kasan_kmalloc+0xad/0xe0 [ 25.978119] kasan_slab_alloc+0x12/0x20 [ 25.982066] kmem_cache_alloc+0x12e/0x760 [ 25.986186] sk_prot_alloc+0x65/0x2a0 [ 25.989954] sk_alloc+0x105/0x1440 [ 25.993459] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 25.998275] sctp_accept+0x5c4/0x970 [ 26.001952] inet_accept+0x12c/0x930 [ 26.005630] SYSC_accept4+0x38d/0x870 [ 26.009395] SyS_accept+0x26/0x30 [ 26.012814] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.017531] [ 26.019121] Freed by task 3508: [ 26.022366] save_stack+0x43/0xd0 [ 26.025782] __kasan_slab_free+0x11a/0x170 [ 26.029984] kasan_slab_free+0xe/0x10 [ 26.033749] kmem_cache_free+0x86/0x2b0 [ 26.037688] __sk_destruct+0x622/0x910 [ 26.041540] sk_destruct+0x47/0x80 [ 26.045043] __sk_free+0xf1/0x2b0 [ 26.048461] sk_free+0x2a/0x40 [ 26.051622] sctp_association_put+0x14c/0x2f0 [ 26.056082] sctp_wait_for_sndbuf+0x673/0x8d0 [ 26.060544] sctp_sendmsg+0x28f7/0x33f0 [ 26.064481] inet_sendmsg+0x11f/0x5e0 [ 26.068252] sock_sendmsg+0xca/0x110 [ 26.071931] SYSC_sendto+0x361/0x5c0 [ 26.075611] SyS_sendto+0x40/0x50 [ 26.079030] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.083746] [ 26.085339] The buggy address belongs to the object at ffff8801c1a0d000 [ 26.085339] which belongs to the cache SCTPv6 of size 1888 [ 26.097612] The buggy address is located 140 bytes inside of [ 26.097612] 1888-byte region [ffff8801c1a0d000, ffff8801c1a0d760) [ 26.109546] The buggy address belongs to the page: [ 26.114443] page:ffffea0007068340 count:1 mapcount:0 mapping:ffff8801c1a0d000 index:0x0 [ 26.122550] flags: 0x2fffc0000000100(slab) [ 26.126752] raw: 02fffc0000000100 ffff8801c1a0d000 0000000000000000 0000000100000002 [ 26.134599] raw: ffffea00074b65e0 ffffea0007005b20 ffff8801d2d94680 0000000000000000 [ 26.142441] page dumped because: kasan: bad access detected [ 26.148115] [ 26.149708] Memory state around the buggy address: [ 26.154614] ffff8801c1a0cf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.161938] ffff8801c1a0d000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.169268] >ffff8801c1a0d080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.176591] ^ [ 26.180182] ffff8801c1a0d100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.187513] ffff8801c1a0d180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.194838] ================================================================== [ 26.202208] Kernel panic - not syncing: panic_on_warn set ... [ 26.202208] [ 26.209543] CPU: 0 PID: 3508 Comm: syzkaller749876 Tainted: G B 4.15.0-rc7-mm1+ #53 [ 26.218527] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.227850] Call Trace: [ 26.230417] dump_stack+0x194/0x257 [ 26.234013] ? arch_local_irq_restore+0x53/0x53 [ 26.238659] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.243384] ? vsnprintf+0x1ed/0x1900 [ 26.247149] ? do_raw_spin_lock+0x180/0x220 [ 26.251447] panic+0x1e4/0x41c [ 26.254606] ? refcount_error_report+0x214/0x214 [ 26.259336] ? add_taint+0x1c/0x50 [ 26.262844] ? add_taint+0x1c/0x50 [ 26.266349] ? do_raw_spin_lock+0x1e0/0x220 [ 26.270637] kasan_end_report+0x50/0x50 [ 26.274581] kasan_report+0x148/0x360 [ 26.278351] __asan_report_load4_noabort+0x14/0x20 [ 26.283256] do_raw_spin_lock+0x1e0/0x220 [ 26.287374] _raw_spin_lock_bh+0x39/0x40 [ 26.291399] ? release_sock+0x74/0x2a0 [ 26.295253] release_sock+0x74/0x2a0 [ 26.298929] ? sctp_prsctp_prune+0x97/0x790 [ 26.303216] ? __release_sock+0x360/0x360 [ 26.307331] ? trace_hardirqs_on+0xd/0x10 [ 26.311462] sctp_sendmsg+0x2993/0x33f0 [ 26.315409] ? sctp_id2assoc+0x390/0x390 [ 26.319438] ? avc_has_perm+0x43e/0x680 [ 26.323388] ? avc_has_perm_noaudit+0x520/0x520 [ 26.328029] ? __fget+0x35c/0x570 [ 26.331451] ? iterate_fd+0x3f0/0x3f0 [ 26.335229] ? find_held_lock+0x35/0x1d0 [ 26.339261] ? sock_has_perm+0x2a4/0x420 [ 26.343300] ? lock_release+0x9e2/0xa40 [ 26.347247] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 26.353099] ? __check_object_size+0x8b/0x530 [ 26.357562] inet_sendmsg+0x11f/0x5e0 [ 26.361327] ? inet_sendmsg+0x11f/0x5e0 [ 26.365265] ? __might_sleep+0x95/0x190 [ 26.369203] ? inet_create+0xf50/0xf50 [ 26.373057] ? selinux_socket_sendmsg+0x36/0x40 [ 26.377690] ? security_socket_sendmsg+0x89/0xb0 [ 26.382410] ? inet_create+0xf50/0xf50 [ 26.386264] sock_sendmsg+0xca/0x110 [ 26.389950] SYSC_sendto+0x361/0x5c0 [ 26.393641] ? SYSC_connect+0x4a0/0x4a0 [ 26.397582] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 26.402911] ? __do_page_fault+0x3d6/0xc90 [ 26.407113] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 26.412369] ? SyS_futex+0x269/0x390 [ 26.416046] ? SyS_setsockopt+0x215/0x360 [ 26.420169] ? do_futex+0x22a0/0x22a0 [ 26.423937] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 26.428757] SyS_sendto+0x40/0x50 [ 26.432191] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 26.436914] RIP: 0033:0x4457e9 [ 26.440070] RSP: 002b:00007f120e5c0da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 26.447748] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 26.454987] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 26.462225] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 26.469461] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 26.476699] R13: 00007ffd1a3c859f R14: 00007f120e5c19c0 R15: 0000000000000001 [ 26.483973] Dumping ftrace buffer: [ 26.487482] (ftrace buffer empty) [ 26.491159] Kernel Offset: disabled [ 26.494752] Rebooting in 86400 seconds..