Commit b21c3b1
CKI KWF Bot
Merge: uprobes: Fix race in uprobe_free_utask
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/7506
JIRA: https://issues.redhat.com/browse/RHEL-120479
Fix kernel panic occurring in perf user callchain code.
The reason for that is the race between `uprobe_free_utask` and bpf profiler code doing the perf user stack unwind and is triggered within `uprobe_free_utask` function:
- after `current->utask` is freed and
- before `current->utask` is set to NULL
See commit message for more details, stack trace, and reproducer.
Signed-off-by: Viktor Malik <vmalik@redhat.com>
Approved-by: Jay Shin <jaeshin@redhat.com>
Approved-by: Gregory Bell <grbell@redhat.com>
Approved-by: Jerome Marchand <jmarchan@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>
Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1720 | 1720 | | |
1721 | 1721 | | |
1722 | 1722 | | |
| 1723 | + | |
1723 | 1724 | | |
1724 | 1725 | | |
1725 | 1726 | | |
| |||
1729 | 1730 | | |
1730 | 1731 | | |
1731 | 1732 | | |
1732 | | - | |
1733 | 1733 | | |
1734 | 1734 | | |
1735 | 1735 | | |
| |||
0 commit comments