diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-10 19:07:55 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-10 19:07:55 +0200 |
commit | 3232b43f7252e04efd703ca8ecb87e2567a36388 (patch) | |
tree | 230e83a1cce18f9ecab3670a15a8d4d601999293 /lib/crc4.c | |
parent | Merge tag 'platform-drivers-x86-v5.2-1' of git://git.infradead.org/linux-plat... (diff) | |
parent | fork: do not release lock that wasn't taken (diff) | |
download | linux-3232b43f7252e04efd703ca8ecb87e2567a36388.tar.xz linux-3232b43f7252e04efd703ca8ecb87e2567a36388.zip |
Merge tag 'pidfd-fixes-v5.2-rc1' of gitolite.kernel.org:pub/scm/linux/kernel/git/brauner/linux
Pull pidfd fixes from Christian Brauner:
"This fixes two bugs:
- The first one reported by Linus whereby the pidfd-metadata binary
was not placed in a .gitignore file.
- The second one is rather urgent and fixes a locking issue found by
syzkaller.
What happened is that during process creation we need to check
whether the cgroup we are in allows us to fork. To perform this
check the cgroup needs to guard itself against threadgroup changes
and takes a lock.
Prior to CLONE_PIDFD the cleanup target "bad_fork_free_pid" would
also need to release said lock. That's not true anymore since
CLONE_PIDFD so this is fixed here.
Syzkaller has tested the patch and was not able to reproduce the
issue"
* tag 'pidfd-fixes-v5.2-rc1' of gitolite.kernel.org:pub/scm/linux/kernel/git/brauner/linux:
fork: do not release lock that wasn't taken
samples: add .gitignore for pidfd-metadata
Diffstat (limited to 'lib/crc4.c')
0 files changed, 0 insertions, 0 deletions