Commit 1a7d0f0bec4be078ce2cfb11538c0f4ffbbed8e5

Authored by Linus Torvalds

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorri…

…s/security-testing-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
  CRED: Fix commit_creds() on a process that has no mm

Showing 1 changed file Side-by-side Diff

... ... @@ -372,7 +372,8 @@
372 372 old->fsuid != new->fsuid ||
373 373 old->fsgid != new->fsgid ||
374 374 !cap_issubset(new->cap_permitted, old->cap_permitted)) {
375   - set_dumpable(task->mm, suid_dumpable);
  375 + if (task->mm)
  376 + set_dumpable(task->mm, suid_dumpable);
376 377 task->pdeath_signal = 0;
377 378 smp_wmb();
378 379 }