diff options
| author | Weizhao Ouyang <[email protected]> | 2021-07-23 22:50:08 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-07-24 00:43:28 +0000 |
| commit | 32ae8a0669392248a92d7545a7363004543f3932 (patch) | |
| tree | 611c386b849a5cad17769a10209985ceaf986079 /lib/debugobjects.c | |
| parent | selftest: use mmap instead of posix_memalign to allocate memory (diff) | |
| download | kernel-32ae8a0669392248a92d7545a7363004543f3932.tar.gz kernel-32ae8a0669392248a92d7545a7363004543f3932.zip | |
kfence: defer kfence_test_init to ensure that kunit debugfs is created
kfence_test_init and kunit_init both use the same level late_initcall,
which means if kfence_test_init linked ahead of kunit_init,
kfence_test_init will get a NULL debugfs_rootdir as parent dentry, then
kfence_test_init and kfence_debugfs_init both create a debugfs node
named "kfence" under debugfs_mount->mnt_root, and it will throw out
"debugfs: Directory 'kfence' with parent '/' already present!" with
EEXIST. So kfence_test_init should be deferred.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Weizhao Ouyang <[email protected]>
Tested-by: Marco Elver <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
