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] [thread-next>] [day] [month] [year] [list]
Date: Tue, 10 Oct 2023 10:44:09 +0200
From: Christian Brauner <>
To: Al Viro <>
Cc: Christoph Hellwig <>, Heiko Carstens <>,
	Vasily Gorbik <>,
	Alexander Gordeev <>,
	Fenghua Yu <>,
	Reinette Chatre <>,
	Miquel Raynal <>,
	Richard Weinberger <>,
	Vignesh Raghavendra <>,
	Dennis Dalessandro <>,
	Tejun Heo <>,
	Trond Myklebust <>,
	Anna Schumaker <>, Kees Cook <>,
	Damien Le Moal <>,
	Naohiro Aota <>,
	Greg Kroah-Hartman <>,,,,,,,
Subject: Re: [PATCH 03/19] fs: release anon dev_t in deactivate_locked_super

> list removal should happen after generic_shutdown_super().  Sure, you
> want the superblock to serve as bdev holder, which leads to fun
> with -EBUSY if mount comes while umount still hadn't closed the
> device.  I suspect that it would make a lot more sense to
> introduce an intermediate state - "held, but will be released
> in a short while".  You already have something similar, but
> only for the entire disk ->bd_claiming stuff.
> Add a new primitive (will_release_bdev()), so that attempts to
> claim the sucker will wait until it gets released instead of
> failing with -EBUSY.  And do *that* before generic_shutdown_super()
> when unmounting something that is block-based.  Allows to bring
> the list removal back where it used to be, no UAF at all...

This is essentially equivalent to what is done right now. Only that this
would then happen in the block layer. I'm not sure it would buy us that
much. In all likelyhood we just get a range of other issues to fix.

Powered by blists - more mailing lists