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-kasan-gce-0,10.128.15.216' (ECDSA) to the list of known hosts. 2017/10/20 11:52:19 parsed 1 programs 2017/10/20 11:52:19 executed programs: 0 2017/10/20 11:52:24 executed programs: 58 syzkaller login: [ 48.344250] ================================================================== [ 48.345319] BUG: KASAN: use-after-free in packet_getsockopt+0xc72/0xe00 [ 48.346248] Read of size 8 at addr ffff8801d8f91858 by task syz-executor0/3203 [ 48.347225] [ 48.347459] CPU: 1 PID: 3203 Comm: syz-executor0 Not tainted 4.14.0-rc5+ #140 [ 48.348424] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.349647] Call Trace: [ 48.350011] dump_stack+0x194/0x257 [ 48.350502] ? arch_local_irq_restore+0x53/0x53 [ 48.351141] ? show_regs_print_info+0x65/0x65 [ 48.351742] ? lock_release+0xa40/0xa40 [ 48.352281] ? packet_getsockopt+0xc72/0xe00 [ 48.352872] print_address_description+0x73/0x250 [ 48.353517] ? packet_getsockopt+0xc72/0xe00 [ 48.354109] kasan_report+0x25b/0x340 [ 48.354623] __asan_report_load8_noabort+0x14/0x20 [ 48.355300] packet_getsockopt+0xc72/0xe00 [ 48.355872] ? packet_notifier+0x950/0x950 [ 48.356440] ? SYSC_perf_event_open+0x4c3/0x2e00 [ 48.357081] ? __fget_light+0x297/0x380 [ 48.357617] ? sock_has_perm+0x29c/0x400 [ 48.358165] ? selinux_tun_dev_create+0xc0/0xc0 [ 48.358794] ? perf_event_set_output+0x5a0/0x5a0 [ 48.359440] ? putname+0xee/0x130 [ 48.359945] ? selinux_socket_getsockopt+0x36/0x40 [ 48.360605] ? security_socket_getsockopt+0x89/0xb0 [ 48.361339] SyS_getsockopt+0x178/0x340 [ 48.361881] ? SyS_setsockopt+0x360/0x360 [ 48.362440] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 48.363100] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 48.363776] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 48.364599] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 48.369320] RIP: 0033:0x452719 [ 48.372486] RSP: 002b:00007f5b98c02be8 EFLAGS: 00000212 ORIG_RAX: 0000000000000037 [ 48.380170] RAX: ffffffffffffffda RBX: 00000000007580d8 RCX: 0000000000452719 [ 48.387415] RDX: 0000000000000015 RSI: 0000000000000107 RDI: 0000000000000010 [ 48.394656] RBP: 0000000000000082 R08: 00000000208a5000 R09: 0000000000000000 [ 48.401898] R10: 0000000020ec8000 R11: 0000000000000212 R12: 0000000000000000 [ 48.409135] R13: 00007ffcd6754f6f R14: 00007f5b98c039c0 R15: 0000000000000004 [ 48.416394] [ 48.417990] Allocated by task 3202: [ 48.421591] save_stack_trace+0x16/0x20 [ 48.425533] save_stack+0x43/0xd0 [ 48.428953] kasan_kmalloc+0xad/0xe0 [ 48.432634] kmem_cache_alloc_trace+0x136/0x750 [ 48.437269] fanout_add+0x27e/0x1480 [ 48.440947] packet_setsockopt+0xfdc/0x1e80 [ 48.445235] SyS_setsockopt+0x189/0x360 [ 48.449175] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 48.453892] [ 48.455485] Freed by task 3202: [ 48.458729] save_stack_trace+0x16/0x20 [ 48.462669] save_stack+0x43/0xd0 [ 48.466091] kasan_slab_free+0x71/0xc0 [ 48.469945] kfree+0xca/0x250 [ 48.473016] fanout_add+0x432/0x1480 [ 48.476696] packet_setsockopt+0xfdc/0x1e80 [ 48.480997] SyS_setsockopt+0x189/0x360 [ 48.484944] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 48.489669] [ 48.491271] The buggy address belongs to the object at ffff8801d8f91840 [ 48.491271] which belongs to the cache kmalloc-128 of size 128 [ 48.503900] The buggy address is located 24 bytes inside of [ 48.503900] 128-byte region [ffff8801d8f91840, ffff8801d8f918c0) [ 48.515655] The buggy address belongs to the page: [ 48.520551] page:ffffea000763e440 count:1 mapcount:0 mapping:ffff8801d8f91000 index:0x0 [ 48.528662] flags: 0x200000000000100(slab) [ 48.532864] raw: 0200000000000100 ffff8801d8f91000 0000000000000000 0000000100000015 [ 48.540709] raw: ffffea000763fbe0 ffffea000763e5a0 ffff8801dac00640 0000000000000000 [ 48.548551] page dumped because: kasan: bad access detected [ 48.554229] [ 48.555822] Memory state around the buggy address: [ 48.560714] ffff8801d8f91700: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 48.568037] ffff8801d8f91780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 48.575360] >ffff8801d8f91800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 48.582684] ^ [ 48.588877] ffff8801d8f91880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 48.596200] ffff8801d8f91900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 48.603522] ================================================================== [ 48.610842] Disabling lock debugging due to kernel taint [ 48.616351] Kernel panic - not syncing: panic_on_warn set ... [ 48.616351] [ 48.623681] CPU: 1 PID: 3203 Comm: syz-executor0 Tainted: G B 4.14.0-rc5+ #140 [ 48.632130] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.641451] Call Trace: [ 48.644010] dump_stack+0x194/0x257 [ 48.647605] ? arch_local_irq_restore+0x53/0x53 [ 48.652242] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 48.656969] ? packet_getsockopt+0xbf0/0xe00 [ 48.661342] panic+0x1e4/0x417 [ 48.664501] ? __warn+0x1d9/0x1d9 [ 48.667929] ? packet_getsockopt+0xc72/0xe00 [ 48.672310] kasan_end_report+0x50/0x50 [ 48.676247] kasan_report+0x144/0x340 [ 48.680013] __asan_report_load8_noabort+0x14/0x20 [ 48.684904] packet_getsockopt+0xc72/0xe00 [ 48.689107] ? packet_notifier+0x950/0x950 [ 48.693309] ? SYSC_perf_event_open+0x4c3/0x2e00 [ 48.698034] ? __fget_light+0x297/0x380 [ 48.701977] ? sock_has_perm+0x29c/0x400 [ 48.706004] ? selinux_tun_dev_create+0xc0/0xc0 [ 48.710636] ? perf_event_set_output+0x5a0/0x5a0 [ 48.715361] ? putname+0xee/0x130 [ 48.718786] ? selinux_socket_getsockopt+0x36/0x40 [ 48.723680] ? security_socket_getsockopt+0x89/0xb0 [ 48.728667] SyS_getsockopt+0x178/0x340 [ 48.732611] ? SyS_setsockopt+0x360/0x360 [ 48.736728] ? entry_SYSCALL_64_fastpath+0x5/0xbe [ 48.741536] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 48.746519] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 48.751243] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 48.755970] RIP: 0033:0x452719 [ 48.759126] RSP: 002b:00007f5b98c02be8 EFLAGS: 00000212 ORIG_RAX: 0000000000000037 [ 48.766797] RAX: ffffffffffffffda RBX: 00000000007580d8 RCX: 0000000000452719 [ 48.774030] RDX: 0000000000000015 RSI: 0000000000000107 RDI: 0000000000000010 [ 48.781262] RBP: 0000000000000082 R08: 00000000208a5000 R09: 0000000000000000 [ 48.788496] R10: 0000000020ec8000 R11: 0000000000000212 R12: 0000000000000000 [ 48.795730] R13: 00007ffcd6754f6f R14: 00007f5b98c039c0 R15: 0000000000000004 [ 48.803334] Dumping ftrace buffer: [ 48.806840] (ftrace buffer empty) [ 48.810516] Kernel Offset: disabled [ 48.814111] Rebooting in 86400 seconds..