kernel_optimize_test/fs/ext2
Pan Bian ecebf55d27 ext2: fix potential use after free
The function ext2_xattr_set calls brelse(bh) to drop the reference count
of bh. After that, bh may be freed. However, following brelse(bh),
it reads bh->b_data via macro HDR(bh). This may result in a
use-after-free bug. This patch moves brelse(bh) after reading field.

CC: stable@vger.kernel.org
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2018-11-27 10:21:15 +01:00
..
acl.c ext2: cache NULL when both default_acl and acl are NULL 2018-09-03 11:05:03 +02:00
acl.h
balloc.c
dir.c
ext2.h ext2: remove redundant building macro check 2018-09-24 21:34:15 +02:00
file.c
ialloc.c
inode.c ext2, dax: set ext2_dax_aops for dax files 2018-09-19 15:03:04 +02:00
ioctl.c
Kconfig
Makefile
namei.c
super.c ext2: initialize opts.s_mount_opt as zero before using it 2018-11-27 10:21:03 +01:00
symlink.c
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c ext2: fix potential use after free 2018-11-27 10:21:15 +01:00
xattr.h