diff options
author | Mike Christie <mchristi@redhat.com> | 2018-07-16 02:16:17 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-07-17 16:14:07 +0300 |
commit | cc57c07343bd071cdf1915a91a24ab7d40c9b590 (patch) | |
tree | e8432f3ff2cf715a1808701abbfe7e3291a86d88 /scripts/gen_initramfs_list.sh | |
parent | 1823342a1f2b47a4e6f5667f67cd28ab6bc4d6cd (diff) | |
download | linux-cc57c07343bd071cdf1915a91a24ab7d40c9b590.tar.xz |
configfs: fix registered group removal
This patch fixes a bug where configfs_register_group had added
a group in a tree, and userspace has done a rmdir on a dir somewhere
above that group and we hit a kernel crash. The problem is configfs_rmdir
will detach everything under it and unlink groups on the default_groups
list. It will not unlink groups added with configfs_register_group so when
configfs_unregister_group is called to drop its references to the group/items
we crash when we try to access the freed dentrys.
The patch just adds a check for if a rmdir has been done above
us and if so just does the unlink part of unregistration.
Sorry if you are getting this multiple times. I thouhgt I sent
this to some of you and lkml, but I do not see it.
Signed-off-by: Mike Christie <mchristi@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'scripts/gen_initramfs_list.sh')
0 files changed, 0 insertions, 0 deletions