Commit d0d8f9c
committed
Merge: mm/swap: fix race when skipping swapcache
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/4031
JIRA: https://issues.redhat.com/browse/RHEL-31646
CVE: CVE-2024-26759
The commit in Fixes introduces a way to skip the swapcache for
fast devices like zram, pmem and btt as a mean to reduce swap-in
latency. By doing so, however it introduces the race conditions
leading to the noted CVE.
Fixes: 0bcac06 ("mm,swap: skip swapcache for swapin of synchronous device")
Signed-off-by: Rafael Aquini <aquini@redhat.com>
Approved-by: Nico Pache <npache@redhat.com>
Approved-by: Chris von Recklinghausen <crecklin@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>
Merged-by: Lucas Zampieri <lzampier@redhat.com>4 files changed
+43
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
586 | 591 | | |
587 | 592 | | |
588 | 593 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3730 | 3730 | | |
3731 | 3731 | | |
3732 | 3732 | | |
| 3733 | + | |
3733 | 3734 | | |
3734 | 3735 | | |
3735 | 3736 | | |
| |||
3793 | 3794 | | |
3794 | 3795 | | |
3795 | 3796 | | |
| 3797 | + | |
| 3798 | + | |
| 3799 | + | |
| 3800 | + | |
| 3801 | + | |
| 3802 | + | |
| 3803 | + | |
| 3804 | + | |
| 3805 | + | |
| 3806 | + | |
| 3807 | + | |
| 3808 | + | |
| 3809 | + | |
| 3810 | + | |
3796 | 3811 | | |
3797 | 3812 | | |
3798 | 3813 | | |
| |||
4041 | 4056 | | |
4042 | 4057 | | |
4043 | 4058 | | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
4044 | 4062 | | |
4045 | 4063 | | |
4046 | 4064 | | |
| |||
4055 | 4073 | | |
4056 | 4074 | | |
4057 | 4075 | | |
| 4076 | + | |
| 4077 | + | |
4058 | 4078 | | |
4059 | 4079 | | |
4060 | 4080 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
100 | 105 | | |
101 | 106 | | |
102 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3400 | 3400 | | |
3401 | 3401 | | |
3402 | 3402 | | |
| 3403 | + | |
| 3404 | + | |
| 3405 | + | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
| 3410 | + | |
| 3411 | + | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
3403 | 3416 | | |
3404 | 3417 | | |
3405 | 3418 | | |
| |||
0 commit comments