The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Cc: bpf@vger.kernel.org, ast@kernel.org, andrii@kernel.org,
	daniel@iogearbox.net, eddyz87@gmail.com, emil@etsalapatis.com,
	ihor.solodrai@linux.dev, kkd@meta.com, kernel-team@meta.com,
	dave.hansen@linux.intel.com, luto@kernel.org,
	peterz@infradead.org, tglx@kernel.org, mingo@redhat.com,
	bp@alien8.de, puranjay@kernel.org, x86@kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH bpf-next v1 0/3] bpf: Do not follow __iomem pointers
Date: Tue, 01 Dec 2026 05:20:06 +0000	[thread overview]
Message-ID: <179610240699.16890.15608683447285641057.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <cover.1795834380.git.memxor@gmail.com>

Hello:

This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Sat, 28 Nov 2026 03:53:14 +0100 you wrote:
> A BPF tracing program can read a device register with a plain field walk,
> for example mdev->common->device_status through a
> struct virtio_pci_common_cfg __iomem *. The load is a PROBE_MEM load of a
> mapped address, so it does not fault and reads the register. Such a read
> can have side effects. This came up in the discussion of [1].
> 
> Patch 1 gives __iomem a BTF type tag, as __user, __percpu and __rcu have.
> Patch 2 makes the verifier hand out a scalar for a struct member, function
> argument or return value with that tag, so a program cannot load through
> it. Patch 3 adds selftests.
> 
> [...]

Here is the summary with links:
  - [bpf-next,v1,1/3] compiler_types: Emit a BTF type tag for __iomem
    https://git.kernel.org/bpf/bpf-next/c/b07c1898b0e9
  - [bpf-next,v1,2/3] bpf: Treat __iomem pointers as scalars
    https://git.kernel.org/bpf/bpf-next/c/c6fec1b3c1ed
  - [bpf-next,v1,3/3] selftests/bpf: Test loads through __iomem pointers
    https://git.kernel.org/bpf/bpf-next/c/8d958e9e763f

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



      parent reply	other threads:[~2026-12-01  5:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28  2:53 [PATCH bpf-next v1 0/3] bpf: Do not follow __iomem pointers Kumar Kartikeya Dwivedi
2026-11-28  2:53 ` [PATCH bpf-next v1 1/3] compiler_types: Emit a BTF type tag for __iomem Kumar Kartikeya Dwivedi
2026-11-28  2:53 ` [PATCH bpf-next v1 2/3] bpf: Treat __iomem pointers as scalars Kumar Kartikeya Dwivedi
2026-12-01  1:51   ` Andy Lutomirski
2026-11-28  2:53 ` [PATCH bpf-next v1 3/3] selftests/bpf: Test loads through __iomem pointers Kumar Kartikeya Dwivedi
2026-12-01  5:20 ` patchwork-bot+netdevbpf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179610240699.16890.15608683447285641057.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bp@alien8.de \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=dave.hansen@linux.intel.com \
    --cc=eddyz87@gmail.com \
    --cc=emil@etsalapatis.com \
    --cc=ihor.solodrai@linux.dev \
    --cc=kernel-team@meta.com \
    --cc=kkd@meta.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@kernel.org \
    --cc=memxor@gmail.com \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=puranjay@kernel.org \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox