All of lore.kernel.org
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: Jiayuan Chen <jiayuan.chen@linux.dev>
Cc: bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net,
	andrii@kernel.org, eddyz87@gmail.com, memxor@gmail.com,
	martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev,
	jolsa@kernel.org, emil@etsalapatis.com, ihor.solodrai@linux.dev,
	shuah@kernel.org, linux-kernel@vger.kernel.org,
	linux-kselftest@vger.kernel.org
Subject: Re: [PATCH bpf-next v9 0/3] bpf: arena: handle memory.max on fault-in with reclaim
Date: Wed, 23 Sep 2026 02:10:07 +0000	[thread overview]
Message-ID: <179012940739.177114.1298290865811499101.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20260922101831.192102-1-jiayuan.chen@linux.dev>

Hello:

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

On Tue, 22 Sep 2026 18:17:32 +0800 you wrote:
> Since commit e66fe1bc6d25 ("bpf: arena: Reintroduce memcg accounting"),
> arena pages are charged to the memcg of the process that created the arena.
> That exposes a problem in the arena user page fault path: the fault-in
> allocation runs under arena->spinlock, so it can only use the non-blocking
> allocator, which never reclaims. Once memory.current is at memory.max the
> allocation simply fails, even when the memcg is full of page cache that
> could be dropped right away. Reaching memory.max is completely normal for a
> healthy application - e.g. reading a large file fills memory.current with
> page cache - and the process then gets SIGSEGV on a perfectly valid arena
> address.
> 
> [...]

Here is the summary with links:
  - [bpf-next,v9,1/3] bpf: arena: allocate the fault-in page outside the lock
    https://git.kernel.org/bpf/bpf-next/c/c7cd8be3d72f
  - [bpf-next,v9,2/3] selftests/bpf: Add read_cgroup_file() to cgroup_helpers
    https://git.kernel.org/bpf/bpf-next/c/a781db31b484
  - [bpf-next,v9,3/3] selftests/bpf: Add a test for arena fault-in under memory.max
    https://git.kernel.org/bpf/bpf-next/c/1fe5a5cd01e4

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-09-23  2:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-22 10:17 [PATCH bpf-next v9 0/3] bpf: arena: handle memory.max on fault-in with reclaim Jiayuan Chen
2026-09-22 10:17 ` [PATCH bpf-next v9 1/3] bpf: arena: allocate the fault-in page outside the lock Jiayuan Chen
2026-09-22 10:17 ` [PATCH bpf-next v9 2/3] selftests/bpf: Add read_cgroup_file() to cgroup_helpers Jiayuan Chen
2026-09-22 10:17 ` [PATCH bpf-next v9 3/3] selftests/bpf: Add a test for arena fault-in under memory.max Jiayuan Chen
2026-09-22 11:28   ` bot+bpf-ci
2026-09-23  2:10 ` 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=179012940739.177114.1298290865811499101.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=eddyz87@gmail.com \
    --cc=emil@etsalapatis.com \
    --cc=ihor.solodrai@linux.dev \
    --cc=jiayuan.chen@linux.dev \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=martin.lau@linux.dev \
    --cc=memxor@gmail.com \
    --cc=shuah@kernel.org \
    --cc=song@kernel.org \
    --cc=yonghong.song@linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.