Re: [PATCH 5.15.y] ima: Fix use-after-free on a dentry's dname.name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2024-12-11 at 16:28 +0800, libo.chen.cn@xxxxxxxxxxxxxxxxx wrote:
> From: Stefan Berger <stefanb@xxxxxxxxxxxxx>
> 
> [ Upstream commit be84f32bb2c981ca670922e047cdde1488b233de ]
> 
> ->d_name.name can change on rename and the earlier value can be freed;
> there are conditions sufficient to stabilize it (->d_lock on dentry,
> ->d_lock on its parent, ->i_rwsem exclusive on the parent's inode,
> rename_lock), but none of those are met at any of the sites. Take a stable
> snapshot of the name instead.

Thanks, Libo.  The backport looks fine.

Mimi





[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux