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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 30 Jul 2009 20:02:41 +0200
From:	Jan Kara <jack@...e.cz>
To:	홍신 shin hong <hongshin@...il.com>
Cc:	linux-ext4@...r.kernel.org
Subject: Re: BUG? a suspected deadlock bug at ext4_fill_super()

  Hello,

> Hi. I found a suspected deadlock bug from ext4.
> 
> ext4_fill_super() releases and re-takes BKL while s_umount is held.
> Lock ordering at the point where BKL is re-taken is s_umount-> BKL.
> 
> However, at do_remount(), locking ordering is BKL->s_umount.
> Therefore, concurrent execution of do_remount() and ext4_fill_super()
> may result deadlock.
  Hmm, I don't see how this could deadlock since we seem to take kernel
lock only in do_new_mount() before calling do_kern_mount(). But you are
right that taking the kernel lock with s_umount_sem looks fishy...

> p.s. I found this suspected bug by the motivation from
>        commit 5f22ca9b13551debea77a407a8d06cd9c6f15238.
  From a quick look, this looks like a different matter - they have used
lock_super() instead of lock_kernel() and that's used in more places.

									Honza
-- 
Jan Kara <jack@...e.cz>
SuSE CR Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ