Loading
cpuinspect: make inspector unregister reliable
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAO4PE CVE: NA ---------------------------------------- Calling cpuinspect_unregister_inspector() while the inspector is running will lead a issue as follow: [ 733.650856] Unable to handle kernel paging request at virtual address ffff80000922b0e4 [ 733.651118] Call trace: [ 733.651136] run_inspector+0xe4/0x220 [cpu_inspect] [ 733.651148] kthread+0x108/0x150 [ 733.651154] ret_from_fork+0x10/0x18 Return -EBUSY do not prevent the inspector form being removed. Fix this by providing a synchronized stop function to ensure inspect threads are really finished. Fixes: 069486b6 ("cpuinspect: add CPU-inspect infrastructure") Signed-off-by:Yu Liao <liaoyu15@huawei.com>