Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3888198imm; Mon, 11 Jun 2018 03:32:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK0qt+zfiXhETNq/h80wKxCHBjPzHiwG0LdLy5eMxZ4IPgUywW3VbnzCxliq2S4EEd4wA8v X-Received: by 2002:a17:902:1002:: with SMTP id b2-v6mr17824533pla.344.1528713143020; Mon, 11 Jun 2018 03:32:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528713142; cv=none; d=google.com; s=arc-20160816; b=y6EngOJ8kOx5sSFWiHMfLj0cKtKKsRqUB45cNLBffK5vrPWZnQ7/AQynhdVjJyf/+L 0/izkZltkIRzmJVsYg1JprKdIaTFQesH7b+bv60ROk5RLvuJf3VVW+tsJeMP1M+M4ln7 7d8f03kKPLw30D0m5KuI6WORjcBaQI/0o0NKchyXuYK0ldyvNuBq1as9kRUaAA8+rEEO OSYGN4SwLMnc9kk8LTDM1EbMYUW3JQcJS7FZAOqvemcq0kkFYKzaOQgxEWGfzR5/edMJ ujXv/fEvUyAsTolgiDNOjgV6d4I4hDyH1Yu5zeGUNxwTUkc1IvYekZexJkkSYLhuUL+v i1mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=hvgM7T2OWCL92GfAtS9FQauM7lmd4GFTbacPdWtuqfs=; b=K646YLXT9EAB59sA5QxX48mYWwyaRET46eXw1SSxKkRIGzByHccjZFUNT/stT6y0at MMv0XKUgOG5d3jjYrumJRtq58jIl8Fh9G7rGYFi5kD04D3pYSM2CYxqWvlLsKMdW5khs q/d/7TQJXsnKCWqNNtg2xICkvATeqpwbVEuwvpBHIkUgsPzIvIp7w4dzgdff/Z9lbaP4 eT4pWnXXqoizxS+bn0JRzDpAJZ1XYma4EEY5WL7pZv3xZhZrprR2tt+dlQ/LgjI9ZFzP 1mbnhAJzaByzJiwmktHVHHfgKFghiFLcxEGIFFaoMMaADTAwWNfBqvpu9LHy6QDY1Vg6 pd5A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3-v6si43335163plz.93.2018.06.11.03.32.08; Mon, 11 Jun 2018 03:32:22 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932792AbeFKKbm (ORCPT + 99 others); Mon, 11 Jun 2018 06:31:42 -0400 Received: from www62.your-server.de ([213.133.104.62]:55252 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932526AbeFKKbl (ORCPT ); Mon, 11 Jun 2018 06:31:41 -0400 Received: from [188.63.75.139] (helo=linux.home) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.85_2) (envelope-from ) id 1fSK6r-0005j8-Gx; Mon, 11 Jun 2018 12:31:37 +0200 Subject: Re: KASAN: slab-out-of-bounds Read in bpf_skb_change_proto To: Dmitry Vyukov Cc: syzbot , Alexei Starovoitov , David Miller , LKML , netdev , syzkaller-bugs References: <000000000000c64842056e4b4326@google.com> <76483220-226b-bf3c-d529-ea839d6624c6@iogearbox.net> From: Daniel Borkmann Message-ID: <170ef50b-6895-d7fa-a9ae-80915741971b@iogearbox.net> Date: Mon, 11 Jun 2018 12:31:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.99.3/24652/Mon Jun 11 06:34:15 2018) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/11/2018 11:52 AM, Dmitry Vyukov wrote: > 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. Nah, I know what happened; just sent a PR fix for syzkaller. Thanks, Daniel