From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 306ED48BD40 for ; Wed, 22 Jul 2026 11:38:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784720311; cv=none; b=Bi5TfzSl2Ttnmiq0ni5yM9DHvN22dnYJQP3miWTcWR89mg3B3QXagV0UY+/c1xbwI21jVYWDAzQAUHMz3+J1DOp4y0Kp8PmGJYVRKndIGmdwAsBAKHCP9M7RargUJH9LSYayox8kBbqLFeuV9lBKgkPO1EjMsa6w3o1de2CgERE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784720311; c=relaxed/simple; bh=4SUTil00fqpgPAucthU6HTl2XlqWFfYKnVVCbAIsH5c=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=VEiCCSymL+r5owU5gb/nSNZ3mJAEBAo5G5MrrGOzXBzgS93sfPw97i+d2L26bX/oVcMgMDvQa1rS1I2vpnw1ed+vkkKeL3balzfwIGN777qlLkdpIbyhMaoBt13F3au+Ug+0EBxYTPDhhkdFH6NN+a3D1jA63gzSMnNP1YxjE8I= 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=tJeV4egu; arc=none smtp.client-ip=209.85.214.182 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="tJeV4egu" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2ceae1ed204so104255105ad.0 for ; Wed, 22 Jul 2026 04:38:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784720307; x=1785325107; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=Lz8wSJ72VvS/5HxQLoKKzBsvogEF0aAdv/0SLjzmBu8=; b=tJeV4eguW8FAaVkaKySpnAOrvCIjeRyybgvPdJmZscFO/Yk097+TE1rGHmf1gRu8v3 V6CetvUQmLlRegbznt3g3WqraoaKpx9yVbf9r98EBx++RA0X0mWsxhjhDToVnho+PcaN rPw91ci6f7Kwm1V5VZQO13FPSAxEH6etsR5vVQ1KiWYhflb9AHWqOgztS5I2+ZQtBsBo mQ0v/6b/UsldAr4h7dAVW6HNIz1dhpxno8KJqXJz9DahTdReSA0WQWtZtl76d0o8p72h Y+NA8NeElGpRIF9aX+YbpvL8VaC/wZ5Rv7Fhc/zdK5YfyfEN717ObgOipH6bxY9YgI9v u6mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784720307; x=1785325107; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Lz8wSJ72VvS/5HxQLoKKzBsvogEF0aAdv/0SLjzmBu8=; b=jN4qnZRmeAt7b14kZMxHSbjWQwoqsbLqoQdb0qk+7DFCJixS4xZsoxNxUrIv8yMOq0 /1nY7zpX9PQJzSsJP+i7fpFXng6izfacJkmDtXNKSv9RIhvdG0gPjYKS7z/UBNBgANQu qV4S0YlzELl2HcqgHAxXJQG4CpX8po29VzE2+XUeD9RdzdcQGQrC56Zej2JSFTMmrbEQ jUeHst0ER8SFwQHN1Zuoxw2LfILtfg9kCR275haw1HUABkO7PVOEbgxWGh2j2V4og3L/ j1w2rTK2OqMx9QZItLfb++IEghW1TH6F45gZI4cUT3QSuSVM2dAIliugZRHzrHtYNoKX eVbg== X-Forwarded-Encrypted: i=1; AHgh+RotZ4cjAD/7mSiP54dh4ILDu95O5iBXUomjJihdqBFgh5B/sUNSZ7jrENvKi7SId3ltBMlDKArP0svsDL8=@vger.kernel.org X-Gm-Message-State: AOJu0Yyybbi5AuMnW6xe+0HbOJpsN+A3VSwDYSlkrmEg5A/jsO3ylsc2 FAjsNxFRapmqLqMpPciuymP4udq0YcdKT+vEQOsNLnvimlxlCLmOKAGk X-Gm-Gg: AR+sD118MEgmbBXZ1cDs9rT0gw9nAyXEvnqFUo+KPwR6Slb1+z9Snt88QkFWzaPuJlV nldzgoEDa3BLBP2lmhJUHvfLLp21wv4ZW8TnW8tmCNZ0mCEZ1Q3Aw9L72A48bW/rT/z/vupfOV2 +HMsjS4qlvcj88+G15Npc0+CzfvmlFB4WoSihc4YnqYizNWJAEY6WD6ZRAdpJYRXuZGvwc0Psa0 RykL4OZf1w6aiyYPMr7fJAn9f4+OlqBc9sjwidkNsbgwBcHBbylpWil4Mm65coYKjyoLupMMIOU k8ingKU23rFPE7sweN+rLRrk0UId7VrTe5Mn8cjCOJbv3mF5ZsuUSL5NjgEiQ9w7uxlHNBYHYjk SxKIcQwd7rLh50NaUZLn8L6jIcArP0BOqZDc8sTICFHQvP2nnQjWJ5Yvtr09kC6yDKFUbTnntLP V54xaVivEFr6gx5fO35RO5oW73jO02F1U/f3nhJs4Oo60h9G8OdttPecjR/VSmBl6qmNK3HS2yN hwtZiCNpG8= X-Received: by 2002:a17:903:1b2e:b0:2ca:281:27f9 with SMTP id d9443c01a7336-2cf349978f5mr237336055ad.27.1784720307137; Wed, 22 Jul 2026 04:38:27 -0700 (PDT) Received: from kali ([115.131.60.160]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cf8f31383bsm13110205ad.59.2026.07.22.04.38.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2026 04:38:26 -0700 (PDT) Date: Wed, 22 Jul 2026 21:08:09 +0930 From: Daniel Wade To: Yiyang Chen Cc: Andrii Nakryiko , Alexei Starovoitov , bpf@vger.kernel.org, Daniel Borkmann , Eduard Zingerman , Emil Tsalapatis , Ihor Solodrai , John Fastabend , Jiri Olsa , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Martin KaFai Lau , Kumar Kartikeya Dwivedi , Shuah Khan , Song Liu , Yonghong Song Subject: Re: [PATCH bpf-next v3 0/3] bpf: Preserve pointer state for commuted arithmetic Message-ID: <20260722210809.382642@kali> In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Eduard, Yiyang, Thanks for the pointer. I independently tested Yiyang's v3 series on the source-matched f105f3631d51 base with the same kernel config used for my original report. Before the series, my impact witness reached chosen-address kernel read/write and changed UID/GID 65534 with CAP_BPF and CAP_PERFMON to UID/GID 0 in 3/3 runs. With all three v3 patches applied, the intended untrusted-pointer positive control still passed, while the impact program was rejected at "R0 pointer += pointer prohibited" before any address leak or privilege transition in 3/3 runs. I also ran the three focused cases added by the v3 series. All passed: mem_rdonly_untrusted/ldx_is_ok_commuted_addr dynptr/dynptr_slice_commuted_invalidate verifier_basic_stack/stack pointer arithmetic preserves frame number Given that the affected code has shipped and the issue reaches kernel read/write from a CAP_BPF and CAP_PERFMON context, should this be routed through bpf and marked for stable rather than bpf-next? For the v3 series: Tested-by: Daniel Wade Regards, Daniel