Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3851534imm; Mon, 11 Jun 2018 02:54:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK+kfLNWKPNQR89zWaNfAEOeuaRBNzPr+eGpD8qgFVR4SXQANHHkMoRSbrY/EBWcQyzYLPM X-Received: by 2002:a17:902:4c88:: with SMTP id b8-v6mr17298306ple.285.1528710884448; Mon, 11 Jun 2018 02:54:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528710884; cv=none; d=google.com; s=arc-20160816; b=FsZYv9+raEnlJgsMdre96XLBoqyZTht1XhCUfUvl2zQY+I+k0bG+NWlW6c8MU+xOZs 8nVfDxdVSl35PWkgClRdzvBKGwqrZ7h0TixybuKqwyh7BeF9IyhQd9ZOhfTEQtU+Toy0 8Q6bolpGfGNY6OIy3z12wbyCT0ZXOUk7CWSG/u9aHqV/7J25hQiSYkuB9eSzNsshhcnl ianCMeIySXRfaELU36nY12+kHX2Wh7Xqx8ko7ujBK2npJ9ZewhkxHw1mRh9N+HSzI3W+ Ci0Gvx315q4S4Aa1BK014K+7UIlfW7D/jNFrLDRpdzrpnhAfF6fRgUIxShWNhxgxfQCl moug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=shh1amOMZ+ZPO/xKPliKw0fJj/CpG1+1elyZQ2+CVM8=; b=1A0guP1GZWnWu8tBQ81V6PCZviDKj8amdQpTvU5d9suLiQ3yx3kl76Rmeprwhnv04v h6Ko55fXefG2RokqlTE32dCwLsOQ1oy9/YukIi1hBmO3PZUKi/45cnoPGBIMFLlvlSZ9 QCPvghEqP5dOAvPDUn9/Pc9HpXb9Jjdz//90GcLozf4McuEuh28AYKaOM/oXKMU8fzMC JBGOhuI6m7TNPoei4fZ3DOeK+UdKdm1NmNY730ws0j+raORhLNAHNT9qYpq6byagKivL pb15doj/WaNsxhhKxY3kzTsmhhoeygxyrv93VyHVSZvTN/b4aF0kpgxCM3RMek0hrJk5 wSuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pZrURjMR; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n59-v6si62123004plb.198.2018.06.11.02.54.30; Mon, 11 Jun 2018 02:54:44 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=pZrURjMR; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932868AbeFKJwZ (ORCPT + 99 others); Mon, 11 Jun 2018 05:52:25 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:42574 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932755AbeFKJwW (ORCPT ); Mon, 11 Jun 2018 05:52:22 -0400 Received: by mail-pg0-f66.google.com with SMTP id c10-v6so3874447pgu.9 for ; Mon, 11 Jun 2018 02:52:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=shh1amOMZ+ZPO/xKPliKw0fJj/CpG1+1elyZQ2+CVM8=; b=pZrURjMRdSarGqTa4d7Ur+ydF2s9RMhq/vsXpCSI4N+MYr2EIGKQcS6Pv4RbYnp6kG dcXnvGymeCIlXD0zR650/z1t4tynNWrCue2ESDY6P4I2SgSExE4+f2oQXr4CoVp2hHnX ePfEfzy/vU/Rl2Q/5HIxoa89/n8B2KZUjcANejxTis95noGFULcPfccb8as/NCuhIsuP wRcKVMPmqipORTgiidtEaR5JwE3dwMBgZttqe/MRUn8UmBFSTQVD2jQ2OFCYCah5DNUB YD0DEwoApp8StsXjn0vthkXq114DVKBInD0KXQKtw9Kgc4zDJg/xFv5S3tEkbRsRsUTE JZJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=shh1amOMZ+ZPO/xKPliKw0fJj/CpG1+1elyZQ2+CVM8=; b=E4pQoeNcfyZbpYEvGUPWOkwFoWEyBrViN6wqoq7duzfy50T1Gq6WeElJ6WGeClPeiP EtllK4ZylI80F/wM5wvkh7NRVk9RFdIPV9kY3FfmTRDyhKKSy6afm2dqVJct2VzVGuJp rqRTJ73i7oW/fMyfJJ2SdCI3IPfUe0XBf0yQh9QkoamVZ63GvD/o0vWQZMy1uxzK52+F iX7/bWfGdZDO0ndutGcz/vLOay0UsWqwpIVD6oiQzEAXxyWEpzzvdgo1dWv9vyIpNYup iVVNh0ZVt9xa1k1PQgDwwnOYIFX8HlNTUc9NEoUcUHRbWctRRFCZpsYU8TfzFsBHSP1q cOnw== X-Gm-Message-State: APt69E0UzSj96jYI8jj7g+a9djLjZUGVuD3MaYqLtB69GUrD/HCT61o1 inZNV2mRc6UYxuSH2cDi5lDwpLOQDbxmWAoXWONG/Q== X-Received: by 2002:a65:490d:: with SMTP id p13-v6mr13727352pgs.84.1528710741445; Mon, 11 Jun 2018 02:52:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:de2:0:0:0:0 with HTTP; Mon, 11 Jun 2018 02:52:00 -0700 (PDT) In-Reply-To: <76483220-226b-bf3c-d529-ea839d6624c6@iogearbox.net> References: <000000000000c64842056e4b4326@google.com> <76483220-226b-bf3c-d529-ea839d6624c6@iogearbox.net> From: Dmitry Vyukov Date: Mon, 11 Jun 2018 11:52:00 +0200 Message-ID: Subject: Re: KASAN: slab-out-of-bounds Read in bpf_skb_change_proto To: Daniel Borkmann Cc: syzbot , Alexei Starovoitov , David Miller , LKML , netdev , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 11, 2018 at 11:42 AM, Daniel Borkmann wrote: > On 06/10/2018 05:27 PM, syzbot wrote: >> Hello, >> >> syzbot found the following crash on: >> >> HEAD commit: a16afaf7928b Merge tag 'for-v4.18' of git://git.kernel.org.. >> git tree: upstream >> console output: https://syzkaller.appspot.com/x/log.txt?x=1338f6bf800000 >> kernel config: https://syzkaller.appspot.com/x/.config?x=314f2150f36c16ca >> dashboard link: https://syzkaller.appspot.com/bug?extid=d2d729bdde65dee3eae6 >> compiler: gcc (GCC) 8.0.1 20180413 (experimental) >> syzkaller repro:https://syzkaller.appspot.com/x/repro.syz?x=1173381f800000 >> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=171f90cf800000 >> >> IMPORTANT: if you fix the bug, please add the following tag to the commit: >> Reported-by: syzbot+d2d729bdde65dee3eae6@syzkaller.appspotmail.com > > #syz fix: bpf: reject passing modified ctx to helper functions On a related note, it seems that it still can unwind past bpf_skb_change_proto. I think the "net.core.bpf_jit_kallsyms = 1" sysctl should have been reached syzbot by the time of crash. Are you sure that's the only thing requires? We are using frame pointer unwinder just in case.