[....] Starting enhanced syslogd: rsyslogd[ 10.870625] audit: type=1400 audit(1513918260.749:5): avc: denied { syslog } for pid=2989 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.579135] audit: type=1400 audit(1513918266.457:6): avc: denied { map } for pid=3130 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-kasan-gce-386-1,10.128.0.21' (ECDSA) to the list of known hosts. executing program [ 22.816785] audit: type=1400 audit(1513918272.695:7): avc: denied { map } for pid=3144 comm="syzkaller708567" path="/root/syzkaller708567405" 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 [ 22.842313] ================================================================== [ 22.842334] BUG: KASAN: slab-out-of-bounds in sha3_update+0xdf/0x2e0 [ 22.842340] Write of size 192 at addr ffff8801cf288dbc by task syzkaller708567/3144 [ 22.842342] [ 22.842350] CPU: 1 PID: 3144 Comm: syzkaller708567 Not tainted 4.15.0-rc4+ #142 [ 22.842353] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.842356] Call Trace: [ 22.842366] dump_stack+0x194/0x257 [ 22.842379] ? arch_local_irq_restore+0x53/0x53 [ 22.842389] ? show_regs_print_info+0x18/0x18 [ 22.842398] ? compat_keyctl_dh_compute+0x2bb/0x3e0 [ 22.842413] ? sha3_update+0xdf/0x2e0 [ 22.842425] print_address_description+0x73/0x250 [ 22.842433] ? sha3_update+0xdf/0x2e0 [ 22.842442] kasan_report+0x25b/0x340 [ 22.842456] check_memory_region+0x137/0x190 [ 22.842465] memcpy+0x37/0x50 [ 22.842476] sha3_update+0xdf/0x2e0 [ 22.842494] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.842510] crypto_shash_update+0xda/0x240 [ 22.842530] hmac_update+0x7e/0xa0 [ 22.842543] crypto_shash_update+0xda/0x240 [ 22.842549] ? hmac_import+0x1bd/0x230 [ 22.842568] __keyctl_dh_compute+0x160f/0x1990 [ 22.842583] ? __kernel_text_address+0xd/0x40 [ 22.842609] ? dh_data_from_key+0x340/0x340 [ 22.842625] ? find_held_lock+0x35/0x1d0 [ 22.842644] ? __might_fault+0x110/0x1d0 [ 22.842653] ? lock_downgrade+0x980/0x980 [ 22.842667] ? lock_release+0xa40/0xa40 [ 22.842675] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.842713] ? kasan_check_write+0x14/0x20 [ 22.842729] compat_keyctl_dh_compute+0x2bb/0x3e0 [ 22.842743] ? compat_SyS_keyctl+0x2c0/0x2c0 [ 22.842749] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 22.842791] compat_SyS_keyctl+0x72/0x2c0 [ 22.842800] ? compat_keyctl_instantiate_key_iov+0x1c0/0x1c0 [ 22.842811] do_fast_syscall_32+0x3ee/0xf9d [ 22.842830] ? do_int80_syscall_32+0x9d0/0x9d0 [ 22.842837] ? kasan_check_read+0x11/0x20 [ 22.842849] ? syscall_return_slowpath+0x550/0x550 [ 22.842859] ? SyS_rt_sigaction+0x94/0x1b0 [ 22.842869] ? SyS_sigprocmask+0x4b0/0x4b0 [ 22.842875] ? SyS_read+0x184/0x220 [ 22.842884] ? retint_user+0x18/0x18 [ 22.842900] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 22.842919] entry_SYSENTER_compat+0x54/0x63 [ 22.842924] RIP: 0023:0xf7fd5c79 [ 22.842928] RSP: 002b:00000000ffa3914c EFLAGS: 00000286 ORIG_RAX: 0000000000000120 [ 22.842935] RAX: ffffffffffffffda RBX: 0000000000000017 RCX: 00000000204c8ff4 [ 22.842940] RDX: 0000000020c2cfff RSI: 0000000000000001 RDI: 00000000208e6fd4 [ 22.842943] RBP: 00000000080bb088 R08: 0000000000000000 R09: 0000000000000000 [ 22.842947] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 22.842951] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 22.842978] [ 22.842981] Allocated by task 3144: [ 22.842987] save_stack+0x43/0xd0 [ 22.842992] kasan_kmalloc+0xad/0xe0 [ 22.842999] __kmalloc+0x162/0x760 [ 22.843009] __keyctl_dh_compute+0x2b0/0x1990 [ 22.843015] compat_keyctl_dh_compute+0x2bb/0x3e0 [ 22.843020] compat_SyS_keyctl+0x72/0x2c0 [ 22.843026] do_fast_syscall_32+0x3ee/0xf9d [ 22.843032] entry_SYSENTER_compat+0x54/0x63 [ 22.843033] [ 22.843036] Freed by task 1635: [ 22.843041] save_stack+0x43/0xd0 [ 22.843046] kasan_slab_free+0x71/0xc0 [ 22.843052] kfree+0xd6/0x260 [ 22.843058] skb_free_head+0x74/0xb0 [ 22.843063] skb_release_data+0x58c/0x790 [ 22.843069] skb_release_all+0x4a/0x60 [ 22.843075] kfree_skb+0x15d/0x4c0 [ 22.843082] netlink_unicast+0x5b2/0x6f0 [ 22.843087] netlink_sendmsg+0xa4a/0xe60 [ 22.843094] sock_sendmsg+0xca/0x110 [ 22.843098] ___sys_sendmsg+0x767/0x8b0 [ 22.843107] __sys_sendmsg+0xe5/0x210 [ 22.843112] SyS_sendmsg+0x2d/0x50 [ 22.843118] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 22.843119] [ 22.843124] The buggy address belongs to the object at ffff8801cf288cc0 [ 22.843124] which belongs to the cache kmalloc-512 of size 512 [ 22.843129] The buggy address is located 252 bytes inside of [ 22.843129] 512-byte region [ffff8801cf288cc0, ffff8801cf288ec0) [ 22.843132] The buggy address belongs to the page: [ 22.843137] page:00000000da11f5e4 count:1 mapcount:0 mapping:00000000eb410f04 index:0x0 [ 22.843143] flags: 0x2fffc0000000100(slab) [ 22.843152] raw: 02fffc0000000100 ffff8801cf288040 0000000000000000 0000000100000006 [ 22.843160] raw: ffffea00073cb7e0 ffffea00073cb820 ffff8801db000940 0000000000000000 [ 22.843163] page dumped because: kasan: bad access detected [ 22.843164] [ 22.843167] Memory state around the buggy address: [ 22.843172] ffff8801cf288d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.843177] ffff8801cf288d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.843182] >ffff8801cf288e00: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 22.843184] ^ [ 22.843189] ffff8801cf288e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.843194] ffff8801cf288f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.843196] ================================================================== [ 22.843198] Disabling lock debugging due to kernel taint [ 22.843216] Kernel panic - not syncing: panic_on_warn set ... [ 22.843216] [ 22.843222] CPU: 1 PID: 3144 Comm: syzkaller708567 Tainted: G B 4.15.0-rc4+ #142 [ 22.843225] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 22.843227] Call Trace: [ 22.843233] dump_stack+0x194/0x257 [ 22.843242] ? arch_local_irq_restore+0x53/0x53 [ 22.843249] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 22.843258] ? vsnprintf+0x1ed/0x1900 [ 22.843265] ? sha3_update+0xd0/0x2e0 [ 22.843273] panic+0x1e4/0x41c [ 22.843279] ? refcount_error_report+0x214/0x214 [ 22.843288] ? add_taint+0x1c/0x50 [ 22.843295] ? add_taint+0x1c/0x50 [ 22.843303] ? sha3_update+0xdf/0x2e0 [ 22.843310] kasan_end_report+0x50/0x50 [ 22.843316] kasan_report+0x144/0x340 [ 22.843325] check_memory_region+0x137/0x190 [ 22.843331] memcpy+0x37/0x50 [ 22.843339] sha3_update+0xdf/0x2e0 [ 22.843350] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.843360] crypto_shash_update+0xda/0x240 [ 22.843373] hmac_update+0x7e/0xa0 [ 22.843382] crypto_shash_update+0xda/0x240 [ 22.843387] ? hmac_import+0x1bd/0x230 [ 22.843400] __keyctl_dh_compute+0x160f/0x1990 [ 22.843409] ? __kernel_text_address+0xd/0x40 [ 22.843425] ? dh_data_from_key+0x340/0x340 [ 22.843434] ? find_held_lock+0x35/0x1d0 [ 22.843445] ? __might_fault+0x110/0x1d0 [ 22.843452] ? lock_downgrade+0x980/0x980 [ 22.843461] ? lock_release+0xa40/0xa40 [ 22.843467] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 22.843487] ? kasan_check_write+0x14/0x20 [ 22.843498] compat_keyctl_dh_compute+0x2bb/0x3e0 [ 22.843507] ? compat_SyS_keyctl+0x2c0/0x2c0 [ 22.843513] ? __handle_mm_fault+0x3ce0/0x3ce0 [ 22.843536] compat_SyS_keyctl+0x72/0x2c0 [ 22.843543] ? compat_keyctl_instantiate_key_iov+0x1c0/0x1c0 [ 22.843551] do_fast_syscall_32+0x3ee/0xf9d [ 22.843562] ? do_int80_syscall_32+0x9d0/0x9d0 [ 22.843568] ? kasan_check_read+0x11/0x20 [ 22.843576] ? syscall_return_slowpath+0x550/0x550 [ 22.843584] ? SyS_rt_sigaction+0x94/0x1b0 [ 22.843591] ? SyS_sigprocmask+0x4b0/0x4b0 [ 22.843596] ? SyS_read+0x184/0x220 [ 22.843602] ? retint_user+0x18/0x18 [ 22.843613] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 22.843624] entry_SYSENTER_compat+0x54/0x63 [ 22.843628] RIP: 0023:0xf7fd5c79 [ 22.843631] RSP: 002b:00000000ffa3914c EFLAGS: 00000286 ORIG_RAX: 0000000000000120 [ 22.843637] RAX: ffffffffffffffda RBX: 0000000000000017 RCX: 00000000204c8ff4 [ 22.843641] RDX: 0000000020c2cfff RSI: 0000000000000001 RDI: 00000000208e6fd4 [ 22.843644] RBP: 00000000080bb088 R08: 0000000000000000 R09: 0000000000000000 [ 22.843647] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 22.843651] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 22.850491] Dumping ftrace buffer: [ 22.850495] (ftrace buffer empty) [ 22.850498] Kernel Offset: disabled [ 23.597708] Rebooting in 86400 seconds..