From: wang wei <a929244872@163.com>
To: richardycc@google.com
Cc: akpm@linux-foundation.org, axboe@kernel.dk, bgeffon@google.com,
linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-mm@kvack.org, liumartin@google.com, minchan@kernel.org,
senozhatsky@chromium.org, stable@vger.kernel.org,
wang wei <a929244872@163.com>
Subject: [PATCH] Re:[PATCH v3] zram: fix use-after-free in zram_writeback_endio
Date: Wed, 13 May 2026 22:02:18 +0800 [thread overview]
Message-ID: <20260513140218.7425-1-a929244872@163.com> (raw)
In-Reply-To: <20260512074918.2606208-1-richardycc@google.com>
>@@ -847,7 +849,7 @@ static void release_wb_ctl(struct zram_wb_ctl *wb_ctl)
> release_wb_req(req);
> }
>
>- kfree(wb_ctl);
>+ kfree_rcu(wb_ctl, rcu);
> }
Do we need to add a 'rcu_assign_pointer(wb_ctl, NULL);' before 'kfree_rcu(wb_ctl, rcu)'?
Signed-off-by: wang wei <a929244872@163.com>
--
2.25.1
prev parent reply other threads:[~2026-05-13 14:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-04 12:32 [PATCH] zram: fix use-after-free in zram_writeback_endio Richard Chang
2026-05-05 3:25 ` Sergey Senozhatsky
2026-05-05 16:37 ` Minchan Kim
2026-05-07 9:40 ` Sergey Senozhatsky
2026-05-07 22:56 ` Minchan Kim
2026-05-07 23:38 ` Minchan Kim
2026-05-08 2:40 ` Sergey Senozhatsky
2026-05-08 8:49 ` [PATCH v2] " Richard Chang
2026-05-08 21:16 ` Minchan Kim
2026-05-09 2:18 ` Sergey Senozhatsky
2026-05-12 7:49 ` [PATCH v3] " Richard Chang
2026-05-13 14:02 ` wang wei [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=20260513140218.7425-1-a929244872@163.com \
--to=a929244872@163.com \
--cc=akpm@linux-foundation.org \
--cc=axboe@kernel.dk \
--cc=bgeffon@google.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=liumartin@google.com \
--cc=minchan@kernel.org \
--cc=richardycc@google.com \
--cc=senozhatsky@chromium.org \
--cc=stable@vger.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