diff options
| author | Tejun Heo <[email protected]> | 2013-12-10 15:22:30 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2013-12-11 06:40:12 +0000 |
| commit | a7560a0132cfc93b25d2df1d277a078a05220cf4 (patch) | |
| tree | bc534b5b1b10d4a12d08f076b5040717013e35a6 /fs/kernfs/kernfs-internal.h | |
| parent | sysfs: bail early from kernfs_file_mmap() to avoid spurious lockdep warning (diff) | |
| download | kernel-a7560a0132cfc93b25d2df1d277a078a05220cf4.tar.gz kernel-a7560a0132cfc93b25d2df1d277a078a05220cf4.zip | |
sysfs: fix use-after-free in sysfs_kill_sb()
While restructuring the [u]mount path, 4b93dc9b1c68 ("sysfs, kernfs:
prepare mount path for kernfs") incorrectly updated sysfs_kill_sb() so
that it first kills super_block and then tries to dereference its
namespace tag to drop it. Fix it by caching namespace tag before
killing the superblock and then drop the cached namespace tag.
Signed-off-by: Tejun Heo <[email protected]>
Reported-by: Yuanhan Liu <[email protected]>
Tested-by: Yuanhan Liu <[email protected]>
Tested-by: Vlastimil Babka <[email protected]>
Link: http://lkml.kernel.org/g/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'fs/kernfs/kernfs-internal.h')
0 files changed, 0 insertions, 0 deletions
