Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2983027imm; Sun, 3 Jun 2018 16:40:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJoX0MJNzFDIbhc/KjaW1ic2HWdVOk9PNW8MZt1dtmc4J/LMvbffVC+RGG+LEdHHZFdqb5q X-Received: by 2002:a17:902:59ce:: with SMTP id d14-v6mr19986448plj.253.1528069236474; Sun, 03 Jun 2018 16:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528069236; cv=none; d=google.com; s=arc-20160816; b=QshtcK8X+3Edvvindy0XDBNrv7ua3A2fNvY3qAOa+BfLyLISMTZL4kVuqRhBrJog71 LdfIguUZIKckqZbqprFM83li2STDm33zpPJmV9RyNQD0Nhcics4QL3QEMkL+F0ZUDcST /BjqbGWKzTmzRAu/gHVv1jRCswnyNt9dU9k53PACz/K4PCTZtfrqQW7mGczlSKItK08X A/tMA5OhaOx7y+VC7ifWvOYDxVjkVnnCKwCeyesIiI/m4hX8bg/figOfZJ4w1mcxMVOl uv43jgaeF5paeQzbbajaoZmXyh1a03QC4j1WmujQNyIeRxrinITt0YMMZP6yA1jz50af LQIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version:arc-authentication-results; bh=1fLaJqPRsmpIF0cQ+9DpWBDrvGEGjOxgBTpLGA13mZI=; b=D6HF6JJAAeI/EV4Z8qcZoJSe7bGf1vygxCefsm62V6KMO0NUPsmj5c/ykdbBoT/7N6 3YCmM//2t+m9kr8n9EeYQpZYKQ/ZYVDcXN+RmakCkZUSFqqefN7ch7BY8Kssp5qu0GW6 KTI4zhhLrdQLIV8eJ4NKtjOBNAP73q+4RPcz4xpjaRHLMmCJmo8bGI365Lo10plYeK7o UcARmdAPRUXSqGZ3AL3iZJ4QyjYyC/Uzli1kO0exKhDjtpCPH2v7RujElvQVYSqChl8o GuqXmVBoS/MH50+kaJsBiTucKf1yFbC0UnUd9MbPMe+ttI1KKNdnWLw0eKM1n0zwE4Kl HFIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12-v6si5828128pll.461.2018.06.03.16.40.22; Sun, 03 Jun 2018 16:40:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751780AbeFCXgi (ORCPT + 99 others); Sun, 3 Jun 2018 19:36:38 -0400 Received: from mail-it0-f70.google.com ([209.85.214.70]:41029 "EHLO mail-it0-f70.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751439AbeFCXgD (ORCPT ); Sun, 3 Jun 2018 19:36:03 -0400 Received: by mail-it0-f70.google.com with SMTP id m12-v6so6336310ita.6 for ; Sun, 03 Jun 2018 16:36:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=1fLaJqPRsmpIF0cQ+9DpWBDrvGEGjOxgBTpLGA13mZI=; b=hVKWk+dXVusZUwY0ArWReU5rtvm4pYldg8Zh9W+T82LPFGQHB9Dc5GP1SSxsngy55R tMKzuobVKRQ6JzgJcYPj5MQ6LIexLf7BsYY+l0GTwgvFYxzg1xwzeeoy/BOqJoqq66p+ zJhVVcC7ixZAChIAgu0LjXyRsJqnkY2wpeV8Y2xlIYO/nhWTXLlLVnRARQnaWgikjqij BdHurCrVIp1XU2fyaXiGHoI/qMqnzu8rI2C8MZDRPYZRcowIpRaxXQ5puq12j6D1Ehkj qidyTTHBarkddEKqmOp3TtrqyxHxwB/2hTa/fqw02ZN6UEqDLTKAhU70PN5Y3cM/W6Rh 3dTQ== X-Gm-Message-State: APt69E2DSUz6tCf1WatL+EZs7kVlUDetcCsEXubs9IQQJxPq44XnI69z +syV5BCbi5OBDma07kZIbG20DPIcGDh0lGNb2/wDjwVCU4YX MIME-Version: 1.0 X-Received: by 2002:a24:4913:: with SMTP id z19-v6mr9094292ita.35.1528068963220; Sun, 03 Jun 2018 16:36:03 -0700 (PDT) Date: Sun, 03 Jun 2018 16:36:03 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000bec587056dc547ba@google.com> Subject: KASAN: use-after-free Read in bpf_csum_update From: syzbot To: ast@kernel.org, daniel@iogearbox.net, davem@davemloft.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: bcece5dc40b9 bpf: Change bpf_fib_lookup to return -EAFNOSU.. git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=161e2c6f800000 kernel config: https://syzkaller.appspot.com/x/.config?x=e4078980b886800c dashboard link: https://syzkaller.appspot.com/bug?extid=3d0b2441dbb71751615e compiler: gcc (GCC) 8.0.1 20180413 (experimental) syzkaller repro:https://syzkaller.appspot.com/x/repro.syz?x=17cb5adf800000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17ebf19f800000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+3d0b2441dbb71751615e@syzkaller.appspotmail.com random: sshd: uninitialized urandom read (32 bytes read) random: sshd: uninitialized urandom read (32 bytes read) random: sshd: uninitialized urandom read (32 bytes read) random: sshd: uninitialized urandom read (32 bytes read) ================================================================== BUG: KASAN: use-after-free in ____bpf_csum_update net/core/filter.c:1907 [inline] BUG: KASAN: use-after-free in bpf_csum_update+0xb4/0xc0 net/core/filter.c:1901 Read of size 1 at addr ffff8801ad062f10 by task syz-executor354/4488 CPU: 1 PID: 4488 Comm: syz-executor354 Not tainted 4.17.0-rc6+ #29 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1b9/0x294 lib/dump_stack.c:113 print_address_description+0x6c/0x20b mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:412 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report.c:430 ____bpf_csum_update net/core/filter.c:1907 [inline] bpf_csum_update+0xb4/0xc0 net/core/filter.c:1901 The buggy address belongs to the page: page:ffffea0006b41880 count:0 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0x2fffc0000000000() raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff raw: ffffea0006b41820 ffffea0006b671a0 0000000000000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801ad062e00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8801ad062e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff > ffff8801ad062f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8801ad062f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8801ad063000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== --- This bug is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this bug report. See: https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with syzbot. syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches