[....] Starting enhanced syslogd: rsyslogd[ 13.300353] audit: type=1400 audit(1512798178.586: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 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: [ 34.873424] audit: type=1400 audit(1512798200.159:6): avc: denied { map } for pid=3139 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-1,10.128.15.228' (ECDSA) to the list of known hosts. executing program [ 53.001239] audit: type=1400 audit(1512798218.287:7): avc: denied { map } for pid=3151 comm="syzkaller459536" path="/root/syzkaller459536944" 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 [ 53.029968] ================================================================== [ 53.037381] BUG: KASAN: slab-out-of-bounds in sctp_send_reset_streams+0xadf/0xc10 [ 53.044996] Read of size 2 at addr ffff8801c48af5c8 by task syzkaller459536/3151 [ 53.052511] [ 53.054122] CPU: 0 PID: 3151 Comm: syzkaller459536 Not tainted 4.15.0-rc2-next-20171208+ #63 [ 53.062676] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.072008] Call Trace: [ 53.074579] dump_stack+0x194/0x257 [ 53.078184] ? arch_local_irq_restore+0x53/0x53 [ 53.082828] ? show_regs_print_info+0x18/0x18 [ 53.087299] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 53.093158] ? sctp_send_reset_streams+0xadf/0xc10 [ 53.098063] print_address_description+0x73/0x250 [ 53.102876] ? sctp_send_reset_streams+0xadf/0xc10 [ 53.107779] kasan_report+0x25b/0x340 [ 53.111560] __asan_report_load2_noabort+0x14/0x20 [ 53.116461] sctp_send_reset_streams+0xadf/0xc10 [ 53.121190] ? _copy_from_user+0x99/0x110 [ 53.125319] sctp_setsockopt+0x70d/0x5d50 [ 53.129446] ? sctp_setsockopt_paddr_thresholds+0x540/0x540 [ 53.135130] ? __thp_get_unmapped_area+0x130/0x130 [ 53.140045] ? __lock_acquire+0x6e9/0x47f0 [ 53.144255] ? __lock_acquire+0x6e9/0x47f0 [ 53.148463] ? __local_bh_enable_ip+0x121/0x230 [ 53.153109] ? release_sock+0x1d4/0x2a0 [ 53.157055] ? trace_hardirqs_on+0xd/0x10 [ 53.161175] ? __local_bh_enable_ip+0x121/0x230 [ 53.165828] ? check_noncircular+0x20/0x20 [ 53.170039] ? sctp_primitive_SEND+0xa0/0xd0 [ 53.174424] ? sctp_sendmsg+0x5a9/0x3300 [ 53.178468] ? find_held_lock+0x39/0x1d0 [ 53.182512] ? lock_downgrade+0x980/0x980 [ 53.186636] ? avc_has_perm+0xd0/0x680 [ 53.190498] ? check_noncircular+0x20/0x20 [ 53.194708] ? lock_release+0xda0/0xda0 [ 53.198658] ? __pmd_alloc+0x4e0/0x4e0 [ 53.202520] ? find_held_lock+0x39/0x1d0 [ 53.206572] ? avc_has_perm+0x43e/0x680 [ 53.210524] ? avc_has_perm_noaudit+0x520/0x520 [ 53.215184] ? lock_downgrade+0x980/0x980 [ 53.219319] ? handle_mm_fault+0x476/0x930 [ 53.223524] ? down_read_trylock+0xdb/0x170 [ 53.227821] ? __handle_mm_fault+0x3dd0/0x3dd0 [ 53.232387] ? vmacache_find+0x5f/0x280 [ 53.236339] ? sock_has_perm+0x29c/0x400 [ 53.240376] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 53.245713] ? __do_page_fault+0x3d6/0xc90 [ 53.249923] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 53.255609] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 53.260869] ? do_fcntl+0x10d/0x1160 [ 53.264571] sock_common_setsockopt+0x95/0xd0 [ 53.269044] SyS_setsockopt+0x189/0x360 [ 53.273001] ? SyS_recv+0x40/0x40 [ 53.276436] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 53.281254] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 53.286249] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.290990] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 53.295725] RIP: 0033:0x43ff59 [ 53.298887] RSP: 002b:00007ffc31cf0148 EFLAGS: 00000217 ORIG_RAX: 0000000000000036 [ 53.306575] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff59 [ 53.313819] RDX: 0000000000000077 RSI: 0000000000000084 RDI: 0000000000000005 [ 53.321061] RBP: 00000000006ca018 R08: 0000000000000008 R09: 000000000000001c [ 53.328304] R10: 000000002018b000 R11: 0000000000000217 R12: 00000000004018c0 [ 53.335554] R13: 0000000000401950 R14: 0000000000000000 R15: 0000000000000000 [ 53.342825] [ 53.344425] Allocated by task 3151: [ 53.348026] save_stack+0x43/0xd0 [ 53.351451] kasan_kmalloc+0xad/0xe0 [ 53.355136] __kmalloc_track_caller+0x15e/0x760 [ 53.359780] memdup_user+0x2c/0x90 [ 53.363292] sctp_setsockopt+0x6a6/0x5d50 [ 53.367419] sock_common_setsockopt+0x95/0xd0 [ 53.371887] SyS_setsockopt+0x189/0x360 [ 53.375833] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 53.380559] [ 53.382160] Freed by task 1635: [ 53.385411] save_stack+0x43/0xd0 [ 53.388834] kasan_slab_free+0x71/0xc0 [ 53.392706] kfree+0xca/0x250 [ 53.395795] selinux_cred_free+0x48/0x70 [ 53.399841] security_cred_free+0x48/0x80 [ 53.403965] put_cred_rcu+0x106/0x400 [ 53.407738] rcu_process_callbacks+0xd74/0x17d0 [ 53.412381] __do_softirq+0x29d/0xbb2 [ 53.416162] [ 53.417762] The buggy address belongs to the object at ffff8801c48af5c0 [ 53.417762] which belongs to the cache kmalloc-32 of size 32 [ 53.430216] The buggy address is located 8 bytes inside of [ 53.430216] 32-byte region [ffff8801c48af5c0, ffff8801c48af5e0) [ 53.441798] The buggy address belongs to the page: [ 53.446700] page:0000000033b4455d count:1 mapcount:0 mapping:000000009cbb8b0b index:0xffff8801c48affc1 [ 53.456467] flags: 0x2fffc0000000100(slab) [ 53.460686] raw: 02fffc0000000100 ffff8801c48af000 ffff8801c48affc1 000000010000003f [ 53.468538] raw: ffffea0007142fa0 ffffea000713a3a0 ffff8801dac001c0 0000000000000000 [ 53.476392] page dumped because: kasan: bad access detected [ 53.482071] [ 53.483671] Memory state around the buggy address: [ 53.488573] ffff8801c48af480: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 53.495906] ffff8801c48af500: 00 01 fc fc fc fc fc fc 00 00 01 fc fc fc fc fc [ 53.503240] >ffff8801c48af580: fb fb fb fb fc fc fc fc 00 fc fc fc fc fc fc fc [ 53.510572] ^ [ 53.516259] ffff8801c48af600: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 53.523592] ffff8801c48af680: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 53.530923] ================================================================== [ 53.538252] Disabling lock debugging due to kernel taint [ 53.543909] Kernel panic - not syncing: panic_on_warn set ... [ 53.543909] [ 53.551256] CPU: 0 PID: 3151 Comm: syzkaller459536 Tainted: G B 4.15.0-rc2-next-20171208+ #63 [ 53.561099] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.570421] Call Trace: [ 53.572985] dump_stack+0x194/0x257 [ 53.576582] ? arch_local_irq_restore+0x53/0x53 [ 53.581220] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.585945] ? vsnprintf+0x1ed/0x1900 [ 53.589723] ? sctp_send_reset_streams+0xa90/0xc10 [ 53.594619] panic+0x1e4/0x41c [ 53.597779] ? refcount_error_report+0x214/0x214 [ 53.602503] ? add_taint+0x1c/0x50 [ 53.606009] ? add_taint+0x1c/0x50 [ 53.609515] ? sctp_send_reset_streams+0xadf/0xc10 [ 53.614412] kasan_end_report+0x50/0x50 [ 53.618350] kasan_report+0x144/0x340 [ 53.622117] __asan_report_load2_noabort+0x14/0x20 [ 53.627012] sctp_send_reset_streams+0xadf/0xc10 [ 53.631732] ? _copy_from_user+0x99/0x110 [ 53.635848] sctp_setsockopt+0x70d/0x5d50 [ 53.639962] ? sctp_setsockopt_paddr_thresholds+0x540/0x540 [ 53.645637] ? __thp_get_unmapped_area+0x130/0x130 [ 53.650533] ? __lock_acquire+0x6e9/0x47f0 [ 53.654733] ? __lock_acquire+0x6e9/0x47f0 [ 53.658931] ? __local_bh_enable_ip+0x121/0x230 [ 53.663566] ? release_sock+0x1d4/0x2a0 [ 53.667504] ? trace_hardirqs_on+0xd/0x10 [ 53.671615] ? __local_bh_enable_ip+0x121/0x230 [ 53.676255] ? check_noncircular+0x20/0x20 [ 53.680456] ? sctp_primitive_SEND+0xa0/0xd0 [ 53.684830] ? sctp_sendmsg+0x5a9/0x3300 [ 53.688861] ? find_held_lock+0x39/0x1d0 [ 53.692891] ? lock_downgrade+0x980/0x980 [ 53.697180] ? avc_has_perm+0xd0/0x680 [ 53.701033] ? check_noncircular+0x20/0x20 [ 53.705235] ? lock_release+0xda0/0xda0 [ 53.709173] ? __pmd_alloc+0x4e0/0x4e0 [ 53.713026] ? find_held_lock+0x39/0x1d0 [ 53.717059] ? avc_has_perm+0x43e/0x680 [ 53.721000] ? avc_has_perm_noaudit+0x520/0x520 [ 53.725894] ? lock_downgrade+0x980/0x980 [ 53.730013] ? handle_mm_fault+0x476/0x930 [ 53.734226] ? down_read_trylock+0xdb/0x170 [ 53.738779] ? __handle_mm_fault+0x3dd0/0x3dd0 [ 53.743330] ? vmacache_find+0x5f/0x280 [ 53.747270] ? sock_has_perm+0x29c/0x400 [ 53.751299] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 53.756630] ? __do_page_fault+0x3d6/0xc90 [ 53.760839] ? selinux_netlbl_socket_setsockopt+0x10c/0x460 [ 53.766538] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 53.771798] ? do_fcntl+0x10d/0x1160 [ 53.775484] sock_common_setsockopt+0x95/0xd0 [ 53.779945] SyS_setsockopt+0x189/0x360 [ 53.783889] ? SyS_recv+0x40/0x40 [ 53.787324] ? entry_SYSCALL_64_fastpath+0x5/0x96 [ 53.792135] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 53.797118] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 53.801840] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 53.806562] RIP: 0033:0x43ff59 [ 53.809718] RSP: 002b:00007ffc31cf0148 EFLAGS: 00000217 ORIG_RAX: 0000000000000036 [ 53.817997] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff59 [ 53.825241] RDX: 0000000000000077 RSI: 0000000000000084 RDI: 0000000000000005 [ 53.832479] RBP: 00000000006ca018 R08: 0000000000000008 R09: 000000000000001c [ 53.839715] R10: 000000002018b000 R11: 0000000000000217 R12: 00000000004018c0 [ 53.846956] R13: 0000000000401950 R14: 0000000000000000 R15: 0000000000000000 [ 53.854241] Dumping ftrace buffer: [ 53.857775] (ftrace buffer empty) [ 53.861973] Kernel Offset: disabled [ 53.865570] Rebooting in 86400 seconds..