Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp772464pxp; Fri, 11 Mar 2022 14:44:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwW3hakeKtJl3KOInXOz7AvcB+4PZRwEErPjWxyFlNiOGSDIwyN2U/hprkXJ6MEb1abzkS/ X-Received: by 2002:a17:90b:3e88:b0:1bf:3bd0:4b5f with SMTP id rj8-20020a17090b3e8800b001bf3bd04b5fmr24221688pjb.106.1647038673679; Fri, 11 Mar 2022 14:44:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647038673; cv=none; d=google.com; s=arc-20160816; b=JCU7pAuSKODEjCCty8DX/Gx1Z2AmiyF90xS7jGHXSZgVVkJkU6MD22gGgIL8ZXnuQi N3NBObmRpBEPjiDF3naaFkZznuMq7zvpCmhhxF9ZjdimY+F9mCDXzUfb3l7y31Djx9z7 5zSgtvzTguaZT0RCBJC+AW2x/VhAhwawES7jCOwpEnEHfgAFINO2Yy7uMXhc332s6peV p/dZqDXmBYuwPW2Osewerw+5pFjK0jYM5czHoRWiE8DTK9KFdt+FENJJpj5cAFXinEFn z8iLCprwt5aeuMIo02eNa+bWo8N535CpFMNCC4Q40n0wA23t5i2fHpvoyDEWJDT/oWQR hH3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=wyYbSMNDIkgLbz7yvi2HvYsU8igcLdYIMzghnDnn36s=; b=FfDFbiXRbbMnE0Gzvn/DrnvBEwml09+/Hm7o08B/gx5/dNkq+2RtfgKQt7lqk7mSlk Y4gq1wOMlgqzy9EW5exYzlPCMPjeEa7rorVuywsnf/9dC0B0InPuje7GUB/fs+uhJo1/ E7Vs0TKZqiuIU3i3sKkgQYqGMqRZtxdSzay+ElWC4nFjoXf026IHFyLgnljqb0uc2MFc W/ht2u1TcMZJjfqtJ4Y+eyjmkU17x8GWbadNf6R91TKRuRyMCEpDpLv3JMJnDRXF3hnj aL7y9qJB25io9jIVWMdFZZmPOfNHvnM0uLLg21HN5aLIBs8DSad6Hw5wK1iLkIV/BOnj V5KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="hTieMZ/4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p4-20020a170902e74400b00151d18da6dbsi9623027plf.567.2022.03.11.14.44.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 14:44:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="hTieMZ/4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 86CA91749E4; Fri, 11 Mar 2022 13:56:24 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344184AbiCJV7H (ORCPT + 99 others); Thu, 10 Mar 2022 16:59:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245647AbiCJV7F (ORCPT ); Thu, 10 Mar 2022 16:59:05 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E84298BF54 for ; Thu, 10 Mar 2022 13:58:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646949481; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wyYbSMNDIkgLbz7yvi2HvYsU8igcLdYIMzghnDnn36s=; b=hTieMZ/4GO8gQCykeEQc1fLkJi9+tlafoaRKVGKtxiBUItkh1RfJEugH72R1qKPnCFn1uQ CoHtqRQAJP8KijFOaw6UjONZWbrrN4Dd2OGrJCuAeic8unqPjnZoOiD7qs980UlKf8Wwm4 pp+9JBbutlcaTBrPjZZ/4cuLYKntWxg= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-38-5A4JodBtNQ6Sgt_tmzQg3w-1; Thu, 10 Mar 2022 16:57:59 -0500 X-MC-Unique: 5A4JodBtNQ6Sgt_tmzQg3w-1 Received: by mail-ed1-f69.google.com with SMTP id da28-20020a056402177c00b00415ce4b20baso3821362edb.17 for ; Thu, 10 Mar 2022 13:57:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=wyYbSMNDIkgLbz7yvi2HvYsU8igcLdYIMzghnDnn36s=; b=y9thXa5Sgm/3yvNyFqqKLfeu7DAYeDBNZH0wLyNp8E3+vN3bxXGy1oIJk8XdWkdE6K x2pUU8GEpsfWMHSgeAaMeTs9tLdv7D6LfLk7ymFMSlVvn+uEPq9AH0I0aP8fPo891o7H fxNwlhnY2FO35L63G8J9BtBk6dgeN8r2jiro1lX/OFep8PI4jCAdXQpF6vvr7/ms9oXv BmlnfHBdq/8vx2Ks37tCrUbLMx2T6g2SNnjKS7fhCc9j+trmNNR3ruebv3ZAK2XLvxJY wTmbDdLyCoCXUZMbpU1H6jPYdqsA4OvysH90sb9ijVdwuANKO8YF6i6rmfXsLhjHVBmW Y/QA== X-Gm-Message-State: AOAM532g3GkETiZjJ4jNtLsDyXCWT3lEq4b895nrXM/q26IEDRXG1Y9g +UtZ1QMClbva5WSvDADuuYrucI65Ga1V/d2wilzA9YjiIIlu/M2wBHVehIpswxoyFwk2zvrWP59 svPJb0BJ9Ts2+y+LkF/IGKZ1Q X-Received: by 2002:a05:6402:34cb:b0:415:b974:ec5c with SMTP id w11-20020a05640234cb00b00415b974ec5cmr6424363edc.329.1646949474992; Thu, 10 Mar 2022 13:57:54 -0800 (PST) X-Received: by 2002:a05:6402:34cb:b0:415:b974:ec5c with SMTP id w11-20020a05640234cb00b00415b974ec5cmr6424283edc.329.1646949473831; Thu, 10 Mar 2022 13:57:53 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id g16-20020a170906521000b006d58773e992sm2222909ejm.188.2022.03.10.13.57.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Mar 2022 13:57:53 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 74D661A8990; Thu, 10 Mar 2022 22:57:52 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Martin KaFai Lau Cc: andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, davem@davemloft.net, hawk@kernel.org, john.fastabend@gmail.com, kpsingh@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, songliubraving@fb.com, syzkaller-bugs@googlegroups.com, yhs@fb.com, syzbot Subject: Re: [syzbot] BUG: missing reserved tailroom In-Reply-To: <20220310210626.25o2mll3jmp62swy@kafai-mbp.dhcp.thefacebook.com> References: <00000000000019c51e05d9e18158@google.com> <20220310210626.25o2mll3jmp62swy@kafai-mbp.dhcp.thefacebook.com> X-Clacks-Overhead: GNU Terry Pratchett Date: Thu, 10 Mar 2022 22:57:52 +0100 Message-ID: <87ee39xyfz.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Martin KaFai Lau writes: > On Thu, Mar 10, 2022 at 10:37:20AM -0800, syzbot wrote: >> Hello, >>=20 >> syzbot found the following issue on: >>=20 >> HEAD commit: de55c9a1967c Merge branch 'Add support for transmitting = pa.. >> git tree: bpf-next >> console output: https://syzkaller.appspot.com/x/log.txt?x=3D14ce88ad7000= 00 >> kernel config: https://syzkaller.appspot.com/x/.config?x=3D2fa13781bcea= 50fc >> dashboard link: https://syzkaller.appspot.com/bug?extid=3D0e91362d99386d= c5de99 >> compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binut= ils for Debian) 2.35.2 >> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=3D11f3634570= 0000 >> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=3D14c8ca657000= 00 >>=20 >> The issue was bisected to: >>=20 >> commit b530e9e1063ed2b817eae7eec6ed2daa8be11608 >> Author: Toke H=C3=B8iland-J=C3=B8rgensen >> Date: Wed Mar 9 10:53:42 2022 +0000 >>=20 >> bpf: Add "live packet" mode for XDP in BPF_PROG_RUN >>=20 >> bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=3D17696e557= 00000 >> final oops: https://syzkaller.appspot.com/x/report.txt?x=3D14e96e557= 00000 >> console output: https://syzkaller.appspot.com/x/log.txt?x=3D10e96e557000= 00 >>=20 >> IMPORTANT: if you fix the issue, please add the following tag to the com= mit: >> Reported-by: syzbot+0e91362d99386dc5de99@syzkaller.appspotmail.com >> Fixes: b530e9e1063e ("bpf: Add "live packet" mode for XDP in BPF_PROG_RU= N") >>=20 >> ------------[ cut here ]------------ >> XDP_WARN: xdp_update_frame_from_buff(line:274): Driver BUG: missing rese= rved tailroom >> WARNING: CPU: 0 PID: 3590 at net/core/xdp.c:599 xdp_warn+0x28/0x30 net/c= ore/xdp.c:599 > Toke, please take a look. Right, I see the problem; will send a fix! -Toke