Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1445884lqh; Mon, 6 May 2024 08:00:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDCHqOEEslmVtZoWfFNcyJLHom98EdY8NL1Owle+dPyHY5SjEeHUaQwaosCPqzwAVguauG+r4icScw5PC4XOllqjmVeC0bKcIocH7odg== X-Google-Smtp-Source: AGHT+IFAK9k30DXPKZoayCcaoiI7NFxtvAP/hlzCk7wljfI3q1FPs48An8fRRvJGelYbsNDJKi97 X-Received: by 2002:aca:2402:0:b0:3c9:70ce:3bc5 with SMTP id n2-20020aca2402000000b003c970ce3bc5mr1596819oic.11.1715007654794; Mon, 06 May 2024 08:00:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715007654; cv=pass; d=google.com; s=arc-20160816; b=LXiNq2XSpNuyyXn6t/fJdMm3xmAEGocUxq0/psHqQvTz8L1zlpda7ZL4GQIcbJluyo F8Bw7hyUc3lucAYiYPOpFCwnLTIs1yVQvwwUzi8dmDXU1Or634zTReNLB9Q5cLyAETfl cnMaOj1ZEhGYgiDR/9KeteyjXtNwbtk3DixL21f4E/8eXVMpxD2/lZaeHarEyigstvv1 9+Fynd7s9IWCHs/cG+dQiRhCup2D1wPNR+O0sp9ZTZ4OMnJhD2vj8vS8ZyVEj8IBORPj 75Qpc1BXyhs6Fyuh0cZA/ZxBNCTdkjbIERb7/y1WueEgbjbG82e1xv3o01z+XydaPUfC nnlw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ouwyK0typuZ1ow/pNC/Gp96v2+HGSiLFxZMM2D2vdpo=; fh=EPB+sdlYj6SuvY755D+86sS6aONdsNTQIYXtR6qrDKA=; b=tk4weTsiXQ4Pd9RRuqlT2x2Q5AcbcmOliJ3diL4dQzNiIIdvyLI+VCDqtqjDtaWQvP o+Xu29pLFcr96bXX/Cl9nFAI+3wUGzwtfebEzO4jPy6tJGIDWs4V/DgG1PLXD46YNZIw zSfcQD/Pdn9EFC1EA2yq1JetnzLOlc1Cl2YMzFnflaHbBtXHeBwCUyt+7Tb+mGfEY/po f+qksqEn2lI7US8mxK0YsqPDImoCo/ZGsJK/8/MsLGKLu3smR0tBU/W6wuMwl1goI6f0 9xGI17PYKxbPpGU1kY3+banVm0XrUf5Oc4Csi0yIeFNJMBPE/eA4DvGP31Q+JkdYkw+E WbGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CNa4ulzo; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-170023-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170023-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bk7-20020a0568081a0700b003c96a85df82si1070889oib.250.2024.05.06.08.00.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 08:00:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170023-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CNa4ulzo; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-170023-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170023-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A70EF28D288 for ; Mon, 6 May 2024 14:50:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0FABC153584; Mon, 6 May 2024 14:49:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="CNa4ulzo" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B95BC1534FD for ; Mon, 6 May 2024 14:49:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715006989; cv=none; b=sNVDuty/m8UJ4w4/LUMVozpOqHdK8oqwp4bDJO86Y4vSWyV215yZnATnB+FUNOT5Pth3qHFaeH79uOpyJWk1Qi1NY1fu97pJzalbtCUX2DFx48a2rnvEVUsKAOm4BDKQ+3fXbJigd3KurKUyD8VEuXGrOoH/lx+HI+R6ZX8lczY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715006989; c=relaxed/simple; bh=wFEAgz9DoEMtNEfhF2whHUgl+SQ1hbYNvw0LVwBJMHI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PV1C27Qt/QA6zp9pRJKh70wIoS2hvgua4WaQvlFyh2dkzPg/Isqp4U4rTcnNQega5m4LnkS/n3lBwK1QIlLdvrNkPVySpdItfxLI+Fv2TWC+gJWMhrtctGPxL4vjjG5mJriPrrnNxuBqmW9qNTlcBq8UeZAmx06QaFi55jQDFUY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=CNa4ulzo; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715006986; 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: in-reply-to:in-reply-to:references:references; bh=ouwyK0typuZ1ow/pNC/Gp96v2+HGSiLFxZMM2D2vdpo=; b=CNa4ulzob4zGYAef+WUviR82ooP2GI3SAAlGLeumVxP8iVsgZo0PnH6qclcQytIG3d2iVL Kk0JBwo7OuBOCxO+8x7dY7WN9FO8Q5ltmz6p0VazMMo9YkbOLp+tUQU3vnFYocoS5SxxZR FBkaZ8j1P8y+4EU0/iLRvzwE1Cjhx98= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-15-3lWoAvybMMqljhzfNhjkuw-1; Mon, 06 May 2024 10:49:45 -0400 X-MC-Unique: 3lWoAvybMMqljhzfNhjkuw-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-417fb8195d7so8225175e9.0 for ; Mon, 06 May 2024 07:49:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715006984; x=1715611784; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ouwyK0typuZ1ow/pNC/Gp96v2+HGSiLFxZMM2D2vdpo=; b=XK/Gf6xiwIIaz/8AFoLSZ/PdL7m2BnP0DgKPrAN5ya2LGIeQr6psLc31eGocRE8CpZ Lu26qZszogdZAiLe9Av32AwPXogLdDlPuzGKTzT3bm3/rgBUhGNh58z9Q9L/sk3qrsLF nJqz3Y8zWrvbRkgChF6BKHIOwklAfOTvtVGOVzRwS0q422z8vPq2CMOaYUonuCknmfEb kaQsudDmS7WgEHdzZdG6RpgC7RPeyt0edyiz+c5ano1nF4X808QND81GaKhbbzBrccrJ pQDqu0Ycf5XV8mR134gwdKYbaXviSSFt9H+G7n08BEM+UVGbxgat3lX8NVSFyo1Wrxpk dI3A== X-Forwarded-Encrypted: i=1; AJvYcCXXboSufeh9SfNyNpc7afFKxnwrqUk5nIQejRdpo+gFoG7xh2V9qcT9AwK9uWkzBN0D48S72/yugAgDagcDFGhCZOKWymUG/RJNVdNG X-Gm-Message-State: AOJu0YxpWefn+bMWuY9lbo/hlVVtiJAhzt+KLij2riygy/8qOD6oVjWU UAhOGkogsEpL6ZGGDxCaWBZM8LIJCv7ED4wO9nQZAxvbevt0rRvaYYRWyUDwOYQcU+KPD31zhHJ axC++6u2/uf45Hvhf0kBe+Ax1/9Mz9LoyI4ysn1y8d0CbTXV+rJxnEYzqPattZA== X-Received: by 2002:a05:600c:4743:b0:41b:ca55:2e2c with SMTP id w3-20020a05600c474300b0041bca552e2cmr8502330wmo.17.1715006983670; Mon, 06 May 2024 07:49:43 -0700 (PDT) X-Received: by 2002:a05:600c:4743:b0:41b:ca55:2e2c with SMTP id w3-20020a05600c474300b0041bca552e2cmr8502298wmo.17.1715006983060; Mon, 06 May 2024 07:49:43 -0700 (PDT) Received: from localhost (net-93-151-202-124.cust.dsl.teletu.it. [93.151.202.124]) by smtp.gmail.com with ESMTPSA id cw1-20020a056000090100b0034dec80428asm10817755wrb.67.2024.05.06.07.49.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 07:49:42 -0700 (PDT) Date: Mon, 6 May 2024 16:49:40 +0200 From: Lorenzo Bianconi To: syzbot Cc: andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, davem@davemloft.net, edumazet@google.com, hawk@kernel.org, john.fastabend@gmail.com, kuba@kernel.org, linux-kernel@vger.kernel.org, lorenzo@kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, syzkaller-bugs@googlegroups.com, toke@redhat.com Subject: Re: [syzbot] [bpf?] [net?] WARNING in __xdp_reg_mem_model Message-ID: References: <0000000000004cc3030616474b1e@google.com> <000000000000ae301f0617a4a52c@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vAieqiNxGUQydHCv" Content-Disposition: inline In-Reply-To: <000000000000ae301f0617a4a52c@google.com> --vAieqiNxGUQydHCv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > syzbot has bisected this issue to: >=20 > commit 2b0cfa6e49566c8fa6759734cf821aa6e8271a9e > Author: Lorenzo Bianconi > Date: Mon Feb 12 09:50:54 2024 +0000 >=20 > net: add generic percpu page_pool allocator >=20 > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=3D151860d498= 0000 > start commit: f99c5f563c17 Merge tag 'nf-24-03-21' of git://git.kernel.= o.. > git tree: net > final oops: https://syzkaller.appspot.com/x/report.txt?x=3D171860d498= 0000 > console output: https://syzkaller.appspot.com/x/log.txt?x=3D131860d4980000 > kernel config: https://syzkaller.appspot.com/x/.config?x=3D6fb1be60a193d= 440 > dashboard link: https://syzkaller.appspot.com/bug?extid=3Df534bd500d914e3= 4b59e > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=3D17ac600b180= 000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=3D1144b797180000 >=20 > Reported-by: syzbot+f534bd500d914e34b59e@syzkaller.appspotmail.com > Fixes: 2b0cfa6e4956 ("net: add generic percpu page_pool allocator") >=20 > For information about bisection process see: https://goo.gl/tpsmEJ#bisect= ion >=20 Looking at the code, the root cause of the issue is the WARN(1) in __xdp_reg_mem_model routine. __mem_id_init_hash_table() can fail just if rht allocation fails. Do we really need this WARN(1)? It has been introduced in= the commit below: commit 8d5d88527587516bd58ff0f3810f07c38e65e2be Author: Jesper Dangaard Brouer Date: Tue Apr 17 16:46:12 2018 +0200 xdp: rhashtable with allocator ID to pointer mapping Regards, Lorenzo --vAieqiNxGUQydHCv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCZjjuBAAKCRA6cBh0uS2t rHE8AP9aiQe9PRxjbu8EA3OAzA4evmD4DeMhokGWsZjanPp69QD/Qr+N4crIXk/4 h4vZ5Fo/cpxn4NjaaMLCYwTl/2NQ5Qw= =QBb4 -----END PGP SIGNATURE----- --vAieqiNxGUQydHCv--