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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul Jackson <[email protected]> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux