]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hugetlbfs: fix hugetlbfs_statfs() locking
authorMina Almasry <almasrymina@google.com>
Tue, 10 May 2022 01:20:50 +0000 (18:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:26:07 +0000 (10:26 +0200)
commitf50d99c5396fa376972227c75737f29cd8a84c04
treea4e8d6ce65170280852567e1bb2ff3c34eba3930
parent2cf62bf9cb3d7f22f0318bf2142f60c9429cd1f4
hugetlbfs: fix hugetlbfs_statfs() locking

[ Upstream commit 4b25f030ae69ba710eff587cabb4c57cb7e7a8a1 ]

After commit db71ef79b59b ("hugetlb: make free_huge_page irq safe"), the
subpool lock should be locked with spin_lock_irq() and all call sites was
modified as such, except for the ones in hugetlbfs_statfs().

Link: https://lkml.kernel.org/r/20220429202207.3045-1-almasrymina@google.com
Fixes: db71ef79b59b ("hugetlb: make free_huge_page irq safe")
Signed-off-by: Mina Almasry <almasrymina@google.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/hugetlbfs/inode.c