Commit 30e0b28
Herton R. Krzesinski
Merge: mm/kmemleak: Fix a UAF problem in kmemleak
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/2026
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2151065
The BZ documents a use-after-free problem in the kmemleak code. The
last patch in this MR fixes it. A number of other kmemleaks patches
are pulled in as well to reduce merge conflicts and context differences.
The last 2 patches are from mm-stable and so will be merged into the 6.3
kernel.
Note that the kmemleak code is enabled only in the debug kernel. So it
doesn't affect the quality of the production kernel.
Signed-off-by: Waiman Long <longman@redhat.com>
Approved-by: Chris von Recklinghausen <crecklin@redhat.com>
Approved-by: Donald Dutile <ddutile@redhat.com>
Approved-by: Rafael Aquini <aquini@redhat.com>
Signed-off-by: Herton R. Krzesinski <herton@redhat.com>File tree
23 files changed
+473
-132
lines changed- Documentation/dev-tools
- drivers/of
- include/linux
- mm
- kfence
- tools
- include/linux
- testing/memblock
- asm
- lib
- linux
- scripts
23 files changed
+473
-132
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12179 | 12179 | | |
12180 | 12180 | | |
12181 | 12181 | | |
| 12182 | + | |
12182 | 12183 | | |
12183 | 12184 | | |
12184 | 12185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
532 | | - | |
| 532 | + | |
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
110 | | - | |
| 109 | + | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 115 | | |
120 | 116 | | |
121 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | 594 | | |
603 | 595 | | |
604 | 596 | | |
| |||
611 | 603 | | |
612 | 604 | | |
613 | 605 | | |
614 | | - | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
615 | 614 | | |
| 615 | + | |
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| |||
0 commit comments