Fixes for common mistakes w/ for_each_process and task->mm
Get series with b4
b4 am 20120423070641.GA27702@lizardVersions newest first · linked by author and title
- v3 Latest9 patches 6 repliesIn review
- v210 patches 15 repliesSuperseded
- v18 patches 9 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | cpu: Introduce clear_tasks_mm_cpumask() helperinclude/ kernel/ | +27 | 4 replies | |
| 2/9 | arm: Use clear_tasks_mm_cpumask()arch/ | +1 | 0 replies | |
| 3/9 | powerpc: Use clear_tasks_mm_cpumask()arch/ | +2 | 0 replies | |
| 4/9 | sh: Use clear_tasks_mm_cpumask()arch/ | +1 | 0 replies | |
| 5/9 | blackfin: A couple of task->mm handling fixesarch/ | +13 | 1 reply | |
| 6/9 | blackfin: Fix possible deadlock in decode_address()arch/ | +3 | 0 replies | |
| 7/9 | um: Should hold tasklist_lock while traversing processesarch/ | +3 | 2 replies | |
| 8/9 | um: Fix possible race on task->mmarch/ | +5 | 0 replies | |
| 9/9 | um: Properly check all process' threads for a live mmarch/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/9] Fixes for common mistakes w/ for_each_process and task->mm
Hi all,
This is another resend of several task->mm fixes, the bugs I found during LMK code audit. Architectures were traverse the tasklist in an unsafe manner, plus there are a few cases of unsafe access to task->mm in general.
There were no objections on the previous resend, and the final words were somewhere along "the patches are fine" line.
In v3:
- Dropped a controversal 'Make find_lock_task_mm() sparse-aware' patch;
- Reword arm and sh commit messages, per Oleg Nesterov's suggestions;
- Added an optimization trick in clear_tasks_mm_cpumask(): take only the rcu read lock, no need for the whole tasklist_lock. Suggested by Peter Zijlstra.
In v2:
- introduced a small helper in cpu.c: most arches duplicate the same [buggy] code snippet, so it's better to fix it and move the logic into a common function.
Thanks,
Signature · 2 lines
Anton Vorontsov Email: cbouatmailru at gmail.com