INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-mmots-kasan-gce-6,10.128.15.210' (ECDSA) to the list of known hosts. 2017/10/18 20:39:01 parsed 1 programs 2017/10/18 20:39:01 executed programs: 0 syzkaller login: [ 115.697777] ================================================================== [ 115.698908] BUG: KASAN: use-after-free in packet_getsockopt+0xc72/0xe00 [ 115.699795] Read of size 8 at addr ffff8801d0126558 by task syz-executor5/3261 [ 115.700775] [ 115.701006] CPU: 0 PID: 3261 Comm: syz-executor5 Not tainted 4.14.0-rc5-mm1+ #18 [ 115.702010] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 115.703228] Call Trace: [ 115.703587] dump_stack+0x194/0x257 [ 115.704078] ? arch_local_irq_restore+0x53/0x53 [ 115.704702] ? show_regs_print_info+0x65/0x65 [ 115.705299] ? lock_release+0xa40/0xa40 [ 115.705838] ? packet_getsockopt+0xc72/0xe00 [ 115.706429] print_address_description+0x73/0x250 [ 115.707074] ? packet_getsockopt+0xc72/0xe00 [ 115.707663] kasan_report+0x25b/0x340 [ 115.708197] __asan_report_load8_noabort+0x14/0x20 [ 115.708853] packet_getsockopt+0xc72/0xe00 [ 115.709995] ? packet_notifier+0x950/0x950 [ 115.710561] ? iput+0x540/0xaf0 [ 115.711012] ? __fget_light+0x297/0x380 [ 115.711545] ? sock_has_perm+0x29c/0x400 [ 115.712095] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 115.712807] ? free_modinfo_version+0x70/0x70 [ 115.713411] ? __sk_free+0x5c/0x230 [ 115.713904] ? sk_free+0x2f/0x40 [ 115.714373] ? selinux_socket_getsockopt+0x36/0x40 [ 115.715033] ? security_socket_getsockopt+0x89/0xb0 [ 115.715709] SyS_getsockopt+0x178/0x340 [ 115.716290] ? SyS_setsockopt+0x360/0x360 [ 115.716850] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 115.717495] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 115.719706] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 115.724437] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 115.729157] RIP: 0033:0x452719 [ 115.732314] RSP: 002b:00007f2a45499be8 EFLAGS: 00000212 ORIG_RAX: 0000000000000037 [ 115.739989] RAX: ffffffffffffffda RBX: 00000000007580d8 RCX: 0000000000452719 [ 115.747225] RDX: 0000000000000015 RSI: 0000000000000107 RDI: 0000000000000011 [ 115.754460] RBP: 0000000000000082 R08: 00000000208a5000 R09: 0000000000000000 [ 115.761698] R10: 0000000020ec8000 R11: 0000000000000212 R12: 00000000006f6560 [ 115.768936] R13: 00000000ffffffff R14: 00007f2a4549a6d4 R15: 0000000000000002 [ 115.776190] [ 115.777785] Allocated by task 3257: [ 115.781380] save_stack+0x43/0xd0 [ 115.784800] kasan_kmalloc+0xad/0xe0 [ 115.788479] kmem_cache_alloc_trace+0x136/0x750 [ 115.793113] fanout_add+0x27e/0x1480 [ 115.796791] packet_setsockopt+0xfdc/0x1e80 [ 115.801076] SyS_setsockopt+0x189/0x360 [ 115.805019] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 115.809735] [ 115.811330] Freed by task 3257: [ 115.814577] save_stack+0x43/0xd0 [ 115.817995] kasan_slab_free+0x71/0xc0 [ 115.821845] kfree+0xca/0x250 [ 115.824916] fanout_add+0x432/0x1480 [ 115.828594] packet_setsockopt+0xfdc/0x1e80 [ 115.832880] SyS_setsockopt+0x189/0x360 [ 115.836821] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 115.841537] [ 115.843130] The buggy address belongs to the object at ffff8801d0126540 [ 115.843130] which belongs to the cache kmalloc-128 of size 128 [ 115.855749] The buggy address is located 24 bytes inside of [ 115.855749] 128-byte region [ffff8801d0126540, ffff8801d01265c0) [ 115.867499] The buggy address belongs to the page: [ 115.872392] page:ffffea0007404980 count:1 mapcount:0 mapping:ffff8801d0126000 index:0x0 [ 115.880500] flags: 0x200000000000100(slab) [ 115.884702] raw: 0200000000000100 ffff8801d0126000 0000000000000000 0000000100000015 [ 115.892548] raw: ffffea000743b0a0 ffffea00074043a0 ffff8801dac00640 0000000000000000 [ 115.900390] page dumped because: kasan: bad access detected [ 115.906060] [ 115.907652] Memory state around the buggy address: [ 115.912543] ffff8801d0126400: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 115.919867] ffff8801d0126480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 115.927191] >ffff8801d0126500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 115.934511] ^ [ 115.940706] ffff8801d0126580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 115.948027] ffff8801d0126600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 115.955348] ================================================================== [ 115.962667] Disabling lock debugging due to kernel taint [ 115.968166] Kernel panic - not syncing: panic_on_warn set ... [ 115.968166] [ 115.975495] CPU: 0 PID: 3261 Comm: syz-executor5 Tainted: G B 4.14.0-rc5-mm1+ #18 [ 115.984291] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 115.993607] Call Trace: [ 115.996164] dump_stack+0x194/0x257 [ 115.999758] ? arch_local_irq_restore+0x53/0x53 [ 116.004395] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 116.009115] ? vsnprintf+0x1ed/0x1900 [ 116.012882] ? packet_getsockopt+0xbf0/0xe00 [ 116.017254] panic+0x1e4/0x41c [ 116.020413] ? refcount_error_report+0x214/0x214 [ 116.025137] ? add_taint+0x1c/0x50 [ 116.028642] ? add_taint+0x1c/0x50 [ 116.032148] ? packet_getsockopt+0xc72/0xe00 [ 116.036520] kasan_end_report+0x50/0x50 [ 116.040461] kasan_report+0x144/0x340 [ 116.044227] __asan_report_load8_noabort+0x14/0x20 [ 116.049117] packet_getsockopt+0xc72/0xe00 [ 116.053318] ? packet_notifier+0x950/0x950 [ 116.057519] ? iput+0x540/0xaf0 [ 116.060764] ? __fget_light+0x297/0x380 [ 116.064703] ? sock_has_perm+0x29c/0x400 [ 116.068731] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 116.074059] ? free_modinfo_version+0x70/0x70 [ 116.078520] ? __sk_free+0x5c/0x230 [ 116.082113] ? sk_free+0x2f/0x40 [ 116.085448] ? selinux_socket_getsockopt+0x36/0x40 [ 116.090342] ? security_socket_getsockopt+0x89/0xb0 [ 116.095327] SyS_getsockopt+0x178/0x340 [ 116.099267] ? SyS_setsockopt+0x360/0x360 [ 116.103380] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 116.108188] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 116.113169] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 116.117890] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 116.122607] RIP: 0033:0x452719 [ 116.125761] RSP: 002b:00007f2a45499be8 EFLAGS: 00000212 ORIG_RAX: 0000000000000037 [ 116.133431] RAX: ffffffffffffffda RBX: 00000000007580d8 RCX: 0000000000452719 [ 116.140665] RDX: 0000000000000015 RSI: 0000000000000107 RDI: 0000000000000011 [ 116.147901] RBP: 0000000000000082 R08: 00000000208a5000 R09: 0000000000000000 [ 116.155136] R10: 0000000020ec8000 R11: 0000000000000212 R12: 00000000006f6560 [ 116.162371] R13: 00000000ffffffff R14: 00007f2a4549a6d4 R15: 0000000000000002 [ 116.169641] Dumping ftrace buffer: [ 116.173147] (ftrace buffer empty) [ 116.176823] Kernel Offset: disabled [ 116.180415] Rebooting in 86400 seconds..