From: Chengming Zhou <chengming.zhou@linux.dev>
To: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>,
Sergey Senozhatsky <senozhatsky@chromium.org>,
Yosry Ahmed <yosryahmed@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>,
Nhat Pham <nphamcs@gmail.com>, Minchan Kim <minchan@kernel.org>,
linux-mm <linux-mm@kvack.org>
Subject: Re: [mm/page_alloc or mm/vmscan or mm/zswap] use-after-free in obj_malloc()
Date: Fri, 23 Feb 2024 13:23:11 +0800 [thread overview]
Message-ID: <bc699b2a-f460-4884-8db7-2dcc3a007ecc@linux.dev> (raw)
In-Reply-To: <20240223044808.GK11472@google.com>
On 2024/2/23 12:48, Sergey Senozhatsky wrote:
> On (24/02/22 18:27), Yosry Ahmed wrote:
>> I also don't see any recent changes in mm/zsmalloc.c that modify this
>> code, so maybe it wasn't introduce in 6.7. I will defer to Minchan and
>> Sergey, I don't think zswap is an active actor in this bug report.
>
> Yeah. [1] are the only recent zsmalloc patches I can recall, and those
> patches touch zsmalloc locking (zspages migration/compaction).
>
> https://lore.kernel.org/lkml/20240219-b4-szmalloc-migrate-v1-0-34cd49c6545b@bytedance.com/
>
I think these patches can't go into 6.8.0-rc5, right? So it maybe a bug
with the current code of zsmalloc (maybe zswap? I don't know).
Tetsuo, could you please check if the config has CONFIG_COMPACTION enabled?
Since the first patch of that series did fix a locking bug of migration:
(mm/zsmalloc: fix migrate_write_lock() when !CONFIG_COMPACTION)
Thanks.
next prev parent reply other threads:[~2024-02-23 5:23 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-23 2:10 [mm/page_alloc or mm/vmscan or mm/zswap] use-after-free in obj_malloc() Tetsuo Handa
2024-02-23 2:27 ` Yosry Ahmed
2024-02-23 4:48 ` Sergey Senozhatsky
2024-02-23 4:50 ` Yosry Ahmed
2024-02-23 4:56 ` Sergey Senozhatsky
2024-02-23 4:58 ` Sergey Senozhatsky
2024-02-23 5:05 ` Yosry Ahmed
2024-02-23 5:19 ` Sergey Senozhatsky
2024-02-23 5:23 ` Chengming Zhou [this message]
2024-02-23 5:29 ` Sergey Senozhatsky
2024-02-23 9:26 ` Tetsuo Handa
2024-02-23 10:10 ` Chengming Zhou
2024-02-23 4:43 ` Sergey Senozhatsky
2024-02-23 15:22 ` Tetsuo Handa
2024-02-23 23:54 ` [PATCH] x86: disable non-instrumented version of copy_page when KMSAN is enabled Tetsuo Handa
2024-02-24 6:27 ` [PATCH v2] " Tetsuo Handa
2024-02-24 14:23 ` [mm/page_alloc or mm/vmscan or mm/zswap] use-after-free in obj_malloc() Sergey Senozhatsky
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=bc699b2a-f460-4884-8db7-2dcc3a007ecc@linux.dev \
--to=chengming.zhou@linux.dev \
--cc=hannes@cmpxchg.org \
--cc=linux-mm@kvack.org \
--cc=minchan@kernel.org \
--cc=nphamcs@gmail.com \
--cc=penguin-kernel@i-love.sakura.ne.jp \
--cc=senozhatsky@chromium.org \
--cc=yosryahmed@google.com \
/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