Revision 156cacb1d0d36b0d0582d9e798e58e0044f516b3 authored by Al Viro on 21 September 2012, 12:19:02 UTC, committed by Al Viro on 23 September 2012, 00:48:18 UTC
normally we deal with lock_mount()/umount races by checking that
mountpoint to be is still in our namespace after lock_mount() has
been done.  However, do_add_mount() skips that check when called
with MNT_SHRINKABLE in flags (i.e. from finish_automount()).  The
reason is that ->mnt_ns may be a temporary namespace created exactly
to contain automounts a-la NFS4 referral handling.  It's not the
namespace of the caller, though, so check_mnt() would fail here.
We still need to check that ->mnt_ns is non-NULL in that case,
though.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent fea7a08
History
File Mode Size
40x
44x
52xx
83xx
85xx
86xx
adder875_defconfig -rw-r--r-- 1.7 KB
amigaone_defconfig -rw-r--r-- 3.4 KB
c2k_defconfig -rw-r--r-- 10.6 KB
cell_defconfig -rw-r--r-- 5.5 KB
celleb_defconfig -rw-r--r-- 3.5 KB
chroma_defconfig -rw-r--r-- 7.1 KB
chrp32_defconfig -rw-r--r-- 3.3 KB
corenet32_smp_defconfig -rw-r--r-- 4.0 KB
corenet64_smp_defconfig -rw-r--r-- 3.0 KB
ep8248e_defconfig -rw-r--r-- 2.0 KB
ep88xc_defconfig -rw-r--r-- 1.8 KB
g5_defconfig -rw-r--r-- 6.0 KB
gamecube_defconfig -rw-r--r-- 2.8 KB
holly_defconfig -rw-r--r-- 1.6 KB
linkstation_defconfig -rw-r--r-- 3.8 KB
maple_defconfig -rw-r--r-- 3.3 KB
mgcoge_defconfig -rw-r--r-- 2.0 KB
mpc512x_defconfig -rw-r--r-- 3.2 KB
mpc5200_defconfig -rw-r--r-- 3.2 KB
mpc7448_hpc2_defconfig -rw-r--r-- 1.6 KB
mpc8272_ads_defconfig -rw-r--r-- 2.1 KB
mpc83xx_defconfig -rw-r--r-- 2.8 KB
mpc85xx_defconfig -rw-r--r-- 5.2 KB
mpc85xx_smp_defconfig -rw-r--r-- 5.2 KB
mpc866_ads_defconfig -rw-r--r-- 1.3 KB
mpc86xx_defconfig -rw-r--r-- 3.9 KB
mpc885_ads_defconfig -rw-r--r-- 2.0 KB
pasemi_defconfig -rw-r--r-- 4.3 KB
pmac32_defconfig -rw-r--r-- 8.6 KB
ppc40x_defconfig -rw-r--r-- 2.4 KB
ppc44x_defconfig -rw-r--r-- 2.9 KB
ppc64_defconfig -rw-r--r-- 11.2 KB
ppc64e_defconfig -rw-r--r-- 9.2 KB
ppc6xx_defconfig -rw-r--r-- 29.5 KB
pq2fads_defconfig -rw-r--r-- 2.2 KB
prpmc2800_defconfig -rw-r--r-- 2.4 KB
ps3_defconfig -rw-r--r-- 4.4 KB
pseries_defconfig -rw-r--r-- 8.5 KB
storcenter_defconfig -rw-r--r-- 2.3 KB
tqm8xx_defconfig -rw-r--r-- 2.1 KB
wii_defconfig -rw-r--r-- 3.3 KB

back to top