Intro: convert lockd to kthread and fix use-after-free (try #3)
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | SUNRPC: Allow svc_pool_map_set_cpumask to work with any tasknet/ | +10 | 0 replies | |
| 2/7 | SUNRPC: spin svc_rqst initialization to its own functioninclude/ net/ net/ | +33 | 0 replies | |
| 3/7 | SUNRPC: export svc_sock_update_bufsnet/ | +1 | 0 replies | |
| 4/7 | NLM: Initialize completion variable in lockd_upfs/ | +1 | 0 replies | |
| 5/7 | NLM: Have lockd call try_to_freezefs/ | +3 | 0 replies | |
| 6/7 | NLM: Convert lockd to use kthreadsfs/ | +35 | 0 replies | |
| 7/7 | NLM: Add reference counting to lockdfs/ fs/ include/ | +45 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/7] Intro: convert lockd to kthread and fix use-after-free (try #3)
This is the third patchset to fix the use-after-free problem in lockd, and to convert lockd to use the kthread API instead of kernel_thread. The main change from the last patchset is the elimination of the svc_create_kthread helper function, and having lockd_up call kthread_run directly. I've also made some changes to the function prototype for the lockd function to eliminate the need for casting the function pointer.
Tested against the reproducer I have for the main issue (detailed in patch #7). As always, comments and suggestions are appreciated.
Signed-off-by Jeff Layton <[email protected]>