From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 095B88634C for ; Sat, 6 Jun 2026 03:31:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780716689; cv=none; b=q2CLx0IgtTOL/DTvb/JupqdE9iapoHc8tcxf/0G9MvgMXgsUBU7viVBmmLHYQryELOcQYyCE8TOMItUu5rInCfw2E6d+cyazqQVVM7OIN808UCt4QXZVu7M2YAwTyRyOLOMrVJO/7TR716E++5lJXhdKuYC22OoLV60smZY3f3o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780716689; c=relaxed/simple; bh=utsLNBdN59I7tdcd2q47V5f6UZAu0dHB4Y7+26Vze2o=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=jsG1ZeKVrj/DBxBwPiukfi+UTZrS6J4+uHGA7GSBK3hgHyrfgIv6UwWwaaGn3J96BiJb+nJqLYWPVwiJeR/MvbAv9Cblr2BVDcapG2zz1W5a2GbcEVwFyZ3i3X+UpIC0ONkb6leJUUEQXU4HunVnIeqKWdoJmL5qzJ3/IG4oq9w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=tKGFM/Ij; arc=none smtp.client-ip=209.85.128.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tKGFM/Ij" Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-7dfceeaf168so25088357b3.0 for ; Fri, 05 Jun 2026 20:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780716687; x=1781321487; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=W0jsNwkrkbumwt2Rg15XnekTt8Tzr7ZCncQ3gCE1aBE=; b=tKGFM/IjGXvDfv3opOwX/uz6gSCvvXSDsJvDDKnOZ/QBtOqwVNdbj1jlp63Cm+iFpQ fdY+6XnIbTlg4dfmNcf6ZM/3cQQ2rfcr2WOT8ToZ83K32pA76vg/jzbKgSeR6bf13MOt 6EVSFC5BbYAAnqWQLQy57N0GNfqSWSISLVY3G5TcTievBnJKi4JKctQscoeTjjEBcLPG Odi/KTEwIy7VJH/hHFNFPxab6QSmMh1uETlhlvSQvtRRUHAbEg4ivPDnA/yrB5usE9gm g3DWf0IFmAJSJJpLi/WY7xjQNw2iQlemdRADExS4AxtqnVW18dYW8IrGcSA1BZPxDGa7 TbdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780716687; x=1781321487; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=W0jsNwkrkbumwt2Rg15XnekTt8Tzr7ZCncQ3gCE1aBE=; b=iQ+ahf2yQVMz5uafLq9ynoM6m4mnlIx9m6aHJH7kVFSvToJ9dMLNDgQWVq+FtPGhqA CSvTqfr2g+Z5qxyrIvvqJcjZ98/mCIS2+NtYfuPqAHBxv2jfRNc19FuAu25RE53/tg6H y4kc67aRDA8St8Zf+wzPd1Xtxs5MRaHkvkmEIKiZJbxh0G/fyoUQZH1ddpq+hLMoYRjp Qx82AAPX/QG5F/9+vVNyFo882SMUSH9PrV8tRiUQRLFFb5xrcRr91mhjtKA9jrMqIWx1 OrwR+DwdjMvgl/w4TUY8vx1Q+AQSUTKXL8CVe68dVK0Ka01CoPaaVFbXHTrOcyM1xy5t gyKQ== X-Forwarded-Encrypted: i=1; AFNElJ+Q+m9PXM+sCPV9D467D2aCCdjGUqixdc0B4DXEQbr/slH1mDHEsJXqY4AV8A2RCDsa0dG+qo8RboT5Ny8=@vger.kernel.org X-Gm-Message-State: AOJu0YxnAGy9X5/yvKoJclEJ6+ojFMTynRfAcI1VBDTm6pfKIFXfVn5k uCTmbaXFckeX2hqaZTd9ArxjFoz/aOvRDNRKV0TBxIfSN85od+HO6au9bkThu1Bv X-Gm-Gg: Acq92OGgDr21Ovw7Nikxn2SNo/kKS7iOstSMVO5UjZw1yoczLFLbY3epW2elluXApSS dg9cDYEkOdP31dL7F9xZTWp+y0ijiujkQY25V61SlWOX1fL/U3xkNXwh3AtuLBv1r2AnhP3e89y xid6J9+X1qH4Z/VjJf1TyupV6XQFWI4Ixx8xfZotsadOsfKRIB/VAZVVL+mrOUECyVG+BVQV+z0 taXTh36/C+uYbJji7duT5vgsMwEM1hG+CI92v8uU42XcNZgmHU11btXWPPmMcfizgsztXYmwWTL 0UJ22odX+qZdhbrBkDcify7ZJDBIUwUW1kcNVv5N0o6NFeJzYMH2d4QMsieNwT93s2oUOBYrSqU uJoJ21F+jRD9XCNaA3pDK1LtSx/yE38GLRrwbLndPdh1IOmZYueAlTa6TY+Pv9bVJVuQUyd1VeL bBP2L7eeR150UyeUUnS1ZN1cER2KNXsgSqyNYKEPXREcBZ9Ob7hz72jFXRzKaS1Hf3ooF19r0pH pab/qv88cFHer51Ya38xsYL5VTeujpWghJ9kuXeCrlm9qYU+hRFg1hm6ECy1Q== X-Received: by 2002:a05:690c:4d04:b0:7dc:c477:9e98 with SMTP id 00721157ae682-7ed108cae03mr64742647b3.31.1780716687092; Fri, 05 Jun 2026 20:31:27 -0700 (PDT) Received: from localhost ([2601:7c0:c37e:2360:d412:6d5d:4bc3:48b2]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7ea20ea819esm58962707b3.10.2026.06.05.20.31.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Jun 2026 20:31:26 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 05 Jun 2026 22:31:15 -0500 Message-Id: Cc: , , , , , , , Subject: Re: [PATCH] bpf: Fix signedness bug From: "Ethan Tidmore" To: , , , , , , , , , X-Mailer: aerc 0.21.0-0-g5549850facc2 References: <20260606024540.47362-1-ethantidmore06@gmail.com> <86b976f32a179141dbeb3eed5fa106f18f2e46b5c6849ca2c800484847d1deb7@mail.kernel.org> In-Reply-To: <86b976f32a179141dbeb3eed5fa106f18f2e46b5c6849ca2c800484847d1deb7@mail.kernel.org> On Fri Jun 5, 2026 at 10:25 PM CDT, bot+bpf-ci wrote: >> commit cc27f12c12ff54b8eace339c3e130317bf205277 >> Author: Ethan Tidmore >> >> bpf: Fix signedness bug >> >> The function acquire_reference() returns negative error codes and 'i= d' >> is an unsigned integer, so the check (id < 0) is always impossible. > > Is this commit message accurate? Looking at check_kfunc_call() in > kernel/bpf/verifier.c, the variable 'id' is declared as a signed int: > > const struct btf_param *args; > u32 i, nargs, ptr_type_id; > struct btf *desc_btf; > int id; No, 'id' is assigned as a u32: u32 i, nargs, ptr_type_id, id; -- Thanks, ET https://github.com/sponsors/ethantidmore