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
File | Mode | Size |
---|---|---|
40x_mmu.c | -rw-r--r-- | 4.4 KB |
44x_mmu.c | -rw-r--r-- | 6.7 KB |
Makefile | -rw-r--r-- | 1.4 KB |
dma-noncoherent.c | -rw-r--r-- | 10.5 KB |
fault.c | -rw-r--r-- | 14.3 KB |
fsl_booke_mmu.c | -rw-r--r-- | 6.5 KB |
gup.c | -rw-r--r-- | 4.6 KB |
hash_low_32.S | -rw-r--r-- | 19.1 KB |
hash_low_64.S | -rw-r--r-- | 25.0 KB |
hash_native_64.c | -rw-r--r-- | 13.9 KB |
hash_utils_64.c | -rw-r--r-- | 34.1 KB |
highmem.c | -rw-r--r-- | 2.2 KB |
hugetlbpage-book3e.c | -rw-r--r-- | 2.8 KB |
hugetlbpage-hash64.c | -rw-r--r-- | 4.1 KB |
hugetlbpage.c | -rw-r--r-- | 21.9 KB |
icswx.c | -rw-r--r-- | 7.9 KB |
icswx.h | -rw-r--r-- | 2.0 KB |
icswx_pid.c | -rw-r--r-- | 1.8 KB |
init_32.c | -rw-r--r-- | 5.6 KB |
init_64.c | -rw-r--r-- | 8.5 KB |
mem.c | -rw-r--r-- | 16.4 KB |
mmap_64.c | -rw-r--r-- | 2.8 KB |
mmu_context_hash32.c | -rw-r--r-- | 3.4 KB |
mmu_context_hash64.c | -rw-r--r-- | 2.7 KB |
mmu_context_nohash.c | -rw-r--r-- | 12.5 KB |
mmu_decl.h | -rw-r--r-- | 4.6 KB |
numa.c | -rw-r--r-- | 36.5 KB |
pgtable.c | -rw-r--r-- | 6.7 KB |
pgtable_32.c | -rw-r--r-- | 10.7 KB |
pgtable_64.c | -rw-r--r-- | 8.2 KB |
ppc_mmu_32.c | -rw-r--r-- | 8.3 KB |
slb.c | -rw-r--r-- | 9.9 KB |
slb_low.S | -rw-r--r-- | 7.6 KB |
slice.c | -rw-r--r-- | 20.0 KB |
stab.c | -rw-r--r-- | 7.5 KB |
subpage-prot.c | -rw-r--r-- | 5.3 KB |
tlb_hash32.c | -rw-r--r-- | 4.5 KB |
tlb_hash64.c | -rw-r--r-- | 6.6 KB |
tlb_low_64e.S | -rw-r--r-- | 29.3 KB |
tlb_nohash.c | -rw-r--r-- | 17.0 KB |
tlb_nohash_low.S | -rw-r--r-- | 9.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...