From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pz2-f38.google.com (mail-pz2-f38.google.com [74.125.228.38]) (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 2E7933A5E97 for ; Mon, 28 Sep 2026 07:48:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.228.38 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790581718; cv=none; b=bKeQdKUTWB4wLHOueioCuPdQzbZ6sWetUDFNcXAj/PH+bt0UWQAiBNlMwEqXWpSv+wHg3H3UL0DYM0aFOurxCqVtgXCU3TMhhB5MNHnEwSS1tgiP5XqvoeXVJPEMFaX5DMZ1+yQ4oMZ01i9XAjyAL5EhhIP5jyVQfd+y56FlE3A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790581718; c=relaxed/simple; bh=FVEHpdiwvMC7UliGeRBKqzyenyVO/eVH9K2CHQ9L4oE=; h=Content-Type:Date:Message-Id:Cc:Subject:From:To:In-Reply-To: References:MIME-Version; b=o+7xt1Wkpt+cK85kIg8qhSR3RWHsZEO5DxIicsgdpveI5GLeIvaGkUHss10VBQK8rC/c/u+uP1vYMEEPD2ewLHaM3x9/TZrugFCBU5JGSw0gZEaUsSjMU06wtI5/FWKYj1TRefDHbBuTWRbqaEQPaGPrUAFVLuDfNwxjiXwyCI4= 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=jlKPW3L2; arc=none smtp.client-ip=74.125.228.38 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="jlKPW3L2" Received: by mail-pz2-f38.google.com with SMTP id 41be03b00d2f7-cc7a15ba46fso387632a12.2 for ; Mon, 28 Sep 2026 00:48:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790581716; x=1791186516; darn=vger.kernel.org; h=mime-version:content-transfer-encoding:references:in-reply-to:to :from:subject:cc:message-id:date:content-type:from:to:cc:subject :date:message-id:reply-to:content-type; bh=FVEHpdiwvMC7UliGeRBKqzyenyVO/eVH9K2CHQ9L4oE=; b=jlKPW3L2QgrRw4jPjrqapp68cGBIPKa1YRlKyf+l2M58o5tM9rMhL2tpdRNWbTaFex mX746blM8pHhmstb+lY5P+R3wUUG9UOyMYNCEzo0VYhFflt5wedAHmtbitkuLpdKOW8O gNCPLE9uTxpzOIU29yCvj/GC+bD35OP4s3UP7mkYcx5CCRi9VRlLsFYwsaI/w3RKzSwc /pzeFsB/5HHoHs1jp8dudaazi6ZBppqjfUDtB0fKyE6Ftqsayx6+Z45qkGHX7oDLac/O jWJZXoethJhBuBVPw1IKqWgSFRwfZvb6KDw540PmPUDxJU6kg9ZBHzr91Shg7yWiJZFH vvQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790581716; x=1791186516; h=mime-version:content-transfer-encoding:references:in-reply-to:to :from:subject:cc:message-id:date:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=FVEHpdiwvMC7UliGeRBKqzyenyVO/eVH9K2CHQ9L4oE=; b=EWOuBpUAeSPU6iw5RXg10xjfiJ4fN51fXamUBeS1/niq/A/YNWlQgoYmvUDV9G3+0W uK8yFHzoZeoo1r2OcR9QjAHKrsLKttEyspDgY2BzfadcqxXIjFgirhdZ8kWbIqiqeBdO CX8lGZ0tdZJLy6Ifkl+4JCRCiWyMLLXuUs1wbxCu+11D5GbWwoKDR4nCMrDlri4IKyAe UZoFT5qHUSfOclRDSYWxuK2HCgfb21g4dYZKqsR1CR0aXrJ1CdKCVMvMKD36YV7nYIqu 451qqw7EtKHaqb/nLUkgk38aMiDmTtOlhs4E1KvJE9WtO+MmRZ8g80UZbbNnuy3qlbsz StCg== X-Forwarded-Encrypted: i=1; AKwUvByPnTJYdgDbO8XZ/n8OglryqNpNw38CpNe2LgcsFSHJRIjKakGFpH7zEQmvbkFRWFStazdkljSx91wcdP0=@vger.kernel.org X-Gm-Message-State: AFuF++nh7J4Y/+5uBEEX5MSxgkgVUmWP8zMtkLyY9AimbLKNNthuorom JYN5U4JeWJprma1dIsp0SrRnGKbaI0yorWhzVGh4Odu3oUzDvRMTcUNQ X-Gm-Gg: AYBFou2G916vuMeJvAuUaX3RScJpxQbkDUEXtzsoSqFY2oRC++u9wsZHb9qAmUShwk6 V+dBKSyXz0nnQE5okoeMYQ6zno6b55/NO3hkMJxFc4a5j/AoTtqOV8Z4bqR8b6vih4xU8Zj/gSQ SGZc1BT9K6lhfu/WPHu1DElIclNSbOuuEKTdU0XTVyq0HqcuZVLgJ7o5xBuRrFlaQhR8XPtoj4+ bbdbfUEnKag79oNPl4yhwqsE7ODhMO+FLIwsive5fDohSnKdD0DTAAoUlbu/PqSZKOPppPqiYH6 DtYISOosj2VR2winWCzPB+tMMTsD+IHmh2NUyIRHF6jRUBDCDyQ3gdaort9l61A7SAf0TuwvKzg HGauVDHYEH6oPsKyFrV+9WmHgXL5aXCC1iIOaAmnOkyjwaF2/TANPqVfwhQ1HVpHeL5SX3zNuLV iHqjshDW54oeT0Ziee9Zpd8iFfxuI2gro9xePaeAU5CkGUdl01+DbRBvKn5eRL+7qp6j1CTSxGe rCGTZCx7nVShh6SBj6VGewGUfqeJ5kQRBlTGkQAH22bq5E0q0bKGBciL/kiXP9r/jruUBykbFyW 7wC+ X-Received: by 2002:a05:6300:210e:b0:3d1:39e9:b267 with SMTP id adf61e73a8af0-3de0e67622cmr10607469637.3.1790581716294; Mon, 28 Sep 2026 00:48:36 -0700 (PDT) Received: from localhost ([153.61.198.244]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cc7ae09698csm1383579a12.31.2026.09.28.00.48.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Sep 2026 00:48:35 -0700 (PDT) Content-Type: text/plain; charset=UTF-8 Date: Mon, 28 Sep 2026 07:48:35 +0000 Message-Id: Cc: , , , , , , , , , , , Subject: Re: [PATCH bpf-next v2] bpf: Fix bpf_loop() depth check to use 32-bit max for nr_loops From: "Alexei Starovoitov" To: =?utf-8?q?=C3=96mer_Mete_Kaya?= , In-Reply-To: <20260928001609.429840-1-omermetekaya0@gmail.com> References: <20260928001609.429840-1-omermetekaya0@gmail.com> X-Mailer: mkdraft (claude review draft; edit before sending) Content-Transfer-Encoding: 8bit Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Mon, Sep 28, 2026 at 03:15 AM Ă–mer Mete Kaya wrote: > The verifier compares callback_depth (u32) against reg_umax(), which > returns the 64-bit upper bound of R1. If the upper 32 bits of R1 are > set, reg_umax() can be U64_MAX, causing the depth check to be > ineffective and triggering excessive push_callback_call() invocations > until the complexity limit is hit. > > Use reg_u32_max() instead. The change is sound for both runtime paths: It's not a fix. Nothing is broken. pls stop the spam. pw-bot: cr