# \[PATCH v2 0/10\] Fixes for common mistakes w/ for\_each\_process and task-\>mm

- From: Anton Vorontsov \<hidden\>
- Date: 2012-03-24 10:27:22 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2012/03/3840415
- Thread: https://ratatoskr.run/linux-arm-kernel/2012/03/3840415/t.md

```text
Hi all,

This is a reincarnation of the task->mm fixes. Several architectures
were traverse the tasklist in an unsafe manner, plus there are a
few cases of unsafe access to task->mm.

In v2 I decided to introduce 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
```
