kernel: Don't save allowlist on module exit

This is not needed and may trigger UAF as work is async.
This commit is contained in:
Wang Han
2025-11-09 22:35:03 +08:00
committed by ShirkNeko
parent 7a1a08064b
commit ef36a36e9a

View File

@@ -533,8 +533,6 @@ void ksu_allowlist_exit(void)
struct perm_data *np = NULL; struct perm_data *np = NULL;
struct perm_data *n = NULL; struct perm_data *n = NULL;
persistent_allow_list();
// free allowlist // free allowlist
mutex_lock(&allowlist_mutex); mutex_lock(&allowlist_mutex);
list_for_each_entry_safe (np, n, &allow_list, list) { list_for_each_entry_safe (np, n, &allow_list, list) {