All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/9] Fixes for common mistakes w/ for_each_process and task->mm
@ 2012-04-23  7:06 ` Anton Vorontsov
  0 siblings, 0 replies; 85+ messages in thread
From: Anton Vorontsov @ 2012-04-23  7:06 UTC (permalink / raw)
  To: linux-arm-kernel

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,

-- 
Anton Vorontsov
Email: cbouatmailru@gmail.com

^ permalink raw reply	[flat|nested] 85+ messages in thread

end of thread, other threads:[~2012-06-01  4:45 UTC | newest]

Thread overview: 85+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-23  7:06 [PATCH v3 0/9] Fixes for common mistakes w/ for_each_process and task->mm Anton Vorontsov
2012-04-23  7:06 ` Anton Vorontsov
2012-04-23  7:06 ` Anton Vorontsov
2012-04-23  7:06 ` Anton Vorontsov
2012-04-23  7:06 ` Anton Vorontsov
2012-04-23  7:07 ` [PATCH 1/9] cpu: Introduce clear_tasks_mm_cpumask() helper Anton Vorontsov
2012-04-23  7:07   ` Anton Vorontsov
2012-04-23  7:07   ` Anton Vorontsov
2012-04-23  7:07   ` Anton Vorontsov
2012-04-23  7:07   ` Anton Vorontsov
2012-04-26 23:59   ` Andrew Morton
2012-04-26 23:59     ` Andrew Morton
2012-04-26 23:59     ` Andrew Morton
2012-04-26 23:59     ` Andrew Morton
2012-04-26 23:59     ` Andrew Morton
2012-04-26 23:59     ` Andrew Morton
2012-05-01 10:45     ` Peter Zijlstra
2012-05-01 10:45       ` Peter Zijlstra
2012-05-01 10:45       ` Peter Zijlstra
2012-05-01 10:45       ` Peter Zijlstra
2012-05-01 10:45       ` Peter Zijlstra
2012-05-05  1:47       ` [PATCH] cpu: Document clear_tasks_mm_cpumask() Anton Vorontsov
2012-05-05  1:47         ` Anton Vorontsov
2012-05-05  1:47         ` Anton Vorontsov
2012-05-05  1:47         ` Anton Vorontsov
2012-05-05  1:47         ` Anton Vorontsov
2012-05-05  1:47     ` [PATCH 1/9] cpu: Introduce clear_tasks_mm_cpumask() helper Anton Vorontsov
2012-05-05  1:47       ` Anton Vorontsov
2012-05-05  1:47       ` Anton Vorontsov
2012-05-05  1:47       ` Anton Vorontsov
2012-05-05  1:47       ` Anton Vorontsov
2012-04-23  7:08 ` [PATCH 2/9] arm: Use clear_tasks_mm_cpumask() Anton Vorontsov
2012-04-23  7:08   ` Anton Vorontsov
2012-04-23  7:08   ` Anton Vorontsov
2012-04-23  7:08   ` Anton Vorontsov
2012-04-23  7:08   ` Anton Vorontsov
2012-04-23  7:08 ` [PATCH 3/9] powerpc: " Anton Vorontsov
2012-04-23  7:08   ` Anton Vorontsov
2012-04-23  7:08   ` Anton Vorontsov
2012-04-23  7:08   ` Anton Vorontsov
2012-04-23  7:08   ` Anton Vorontsov
2012-04-23  7:08 ` [PATCH 4/9] sh: " Anton Vorontsov
2012-04-23  7:08   ` Anton Vorontsov
2012-04-23  7:08   ` Anton Vorontsov
2012-04-23  7:08   ` Anton Vorontsov
2012-04-23  7:08   ` Anton Vorontsov
2012-04-23  7:09 ` [PATCH 5/9] blackfin: A couple of task->mm handling fixes Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-06-01  4:36   ` Mike Frysinger
2012-06-01  4:36     ` Mike Frysinger
2012-06-01  4:36     ` Mike Frysinger
2012-06-01  4:36     ` Mike Frysinger
2012-04-23  7:09 ` [PATCH 6/9] blackfin: Fix possible deadlock in decode_address() Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09 ` [PATCH 7/9] um: Should hold tasklist_lock while traversing processes Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23 14:57   ` Richard Weinberger
2012-04-23 14:57     ` Richard Weinberger
2012-04-23 14:57     ` Richard Weinberger
2012-04-23 14:57     ` Richard Weinberger
2012-04-23 14:57     ` Richard Weinberger
2012-04-23 15:40     ` Anton Vorontsov
2012-04-23 15:40       ` Anton Vorontsov
2012-04-23 15:40       ` Anton Vorontsov
2012-04-23 15:40       ` Anton Vorontsov
2012-04-23 15:40       ` Anton Vorontsov
2012-04-23  7:09 ` [PATCH 8/9] um: Fix possible race on task->mm Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09 ` [PATCH 9/9] um: Properly check all process' threads for a live mm Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov
2012-04-23  7:09   ` Anton Vorontsov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.