lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <175137925672.318770.9783780559206172712.b4-ty@kernel.dk>
Date: Tue, 01 Jul 2025 08:14:16 -0600
From: Jens Axboe <axboe@...nel.dk>
To: hch@....de, yukuai3@...wei.com, Yu Kuai <yukuai1@...weicloud.com>
Cc: penguin-kernel@...ove.SAKURA.ne.jp, linux-block@...r.kernel.org, 
 linux-kernel@...r.kernel.org, yi.zhang@...wei.com, yangerkun@...wei.com, 
 johnny.chenyi@...wei.com
Subject: Re: [PATCH v2] brd: fix sleeping function called from invalid
 context in brd_insert_page()


On Mon, 30 Jun 2025 19:28:28 +0800, Yu Kuai wrote:
> __xa_cmpxchg() is called with rcu_read_lock(), and it will allocate
> memory if necessary.
> 
> Fix the problem by moving rcu_read_lock() after __xa_cmpxchg(), meanwhile,
> it still should be held before xa_unlock(), prevent returned page to be
> freed by concurrent discard.
> 
> [...]

Applied, thanks!

[1/1] brd: fix sleeping function called from invalid context in brd_insert_page()
      commit: 0d519bb0de3bf0ac9e6f401d4910fc119062d7be

Best regards,
-- 
Jens Axboe




Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ