Message ID | 20240826112056.2458299-1-libaokun@huaweicloud.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | fscache: delete fscache_cookie_lru_timer when fscache exits to avoid UAF | expand |
diff --git a/fs/netfs/fscache_main.c b/fs/netfs/fscache_main.c index 42e98bb523e3..49849005eb7c 100644 --- a/fs/netfs/fscache_main.c +++ b/fs/netfs/fscache_main.c @@ -103,6 +103,7 @@ void __exit fscache_exit(void) kmem_cache_destroy(fscache_cookie_jar); fscache_proc_cleanup(); + timer_shutdown_sync(&fscache_cookie_lru_timer); destroy_workqueue(fscache_wq); pr_notice("FS-Cache unloaded\n"); }