Re: [PATCH] Cpuset: oops in exit on null cpuset fix

From: Andrew Morton
Date: Wed Feb 15 2006 - 01:47:14 EST


Paul Jackson <pj@xxxxxxx> wrote:
>
> Fix a latent bug in cpuset_exit() handling. If a task tried
> to allocate memory after calling cpuset_exit(), it oops'd in
> cpuset_update_task_memory_state() on a NULL cpuset pointer.
>
> So set the exiting tasks cpuset to the root cpuset instead of
> to NULL.
>
> A distro kernel hit this with an added kernel package that had
> just such a hook (allocating memory) in the exit code path.

Seems strange to patch the kernel for this. Can't the add-on patch do it?
Or can we just move the cpuset_exit()s to later in the exit() paths?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/