diff options
author | Alexei Starovoitov <ast@kernel.org> | 2022-12-28 14:11:48 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-12-28 14:11:48 -0800 |
commit | f90dd663c492124b53bb28db6ff85b50c80ccc32 (patch) | |
tree | 5647f0a167f6d19d803bba618e0ba12eac578691 /kernel/configs | |
parent | 8f161ca1105a6af6614333f13aa7be4aab8b633a (diff) | |
parent | b7793c8db7d9beb903bb42f52872b5b46abdcb88 (diff) | |
download | linux-stable-f90dd663c492124b53bb28db6ff85b50c80ccc32.tar.gz linux-stable-f90dd663c492124b53bb28db6ff85b50c80ccc32.tar.bz2 linux-stable-f90dd663c492124b53bb28db6ff85b50c80ccc32.zip |
Merge branch 'bpf: fix the crash caused by task iterators over vma'
Kui-Feng Lee says:
====================
This issue is related to task iterators over vma. A system crash can
occur when a task iterator travels through vma of tasks as the death
of a task will clear the pointer to its mm, even though the
task_struct is still held. As a result, an unexpected crash happens
due to a null pointer. To address this problem, a reference to mm is
kept on the iterator to make sure that the pointer is always
valid. This patch set provides a solution for this crash by properly
referencing mm on task iterators over vma.
The major changes from v1 are:
- Fix commit logs of the test case.
- Use reverse Christmas tree coding style.
- Remove unnecessary error handling for time().
v1: https://lore.kernel.org/bpf/20221216015912.991616-1-kuifeng@meta.com/
====================
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/configs')
0 files changed, 0 insertions, 0 deletions