aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2019-11-04 15:54:29 -0800
committerTejun Heo <tj@kernel.org>2019-11-12 08:18:03 -0800
commit880df131617393252f1fff701ed5b7b6d14c52c4 (patch)
treefc28379549f13b2ac6d4cbf1171b3d31aba6b470 /include/trace
parentkernfs: use dumber locking for kernfs_find_and_get_node_by_ino() (diff)
downloadlinux-dev-880df131617393252f1fff701ed5b7b6d14c52c4.tar.xz
linux-dev-880df131617393252f1fff701ed5b7b6d14c52c4.zip
kernfs: kernfs_find_and_get_node_by_ino() should only look up activated nodes
kernfs node can be created in two separate steps - allocation and activation. This is used to make kernfs nodes visible only after the internal states attached to the node are fully initialized. kernfs_find_and_get_node_by_id() currently allows lookups of nodes which aren't activated yet and thus can expose nodes are which are still being prepped by kernfs users. Fix it by disallowing lookups of nodes which aren't activated yet. kernfs_find_and_get_node_by_ino() Signed-off-by: Tejun Heo <tj@kernel.org> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions