diff options
| author | Christophe Leroy <[email protected]> | 2023-09-25 18:31:16 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2023-10-09 11:37:31 +0000 |
| commit | 5ea0bbaa32e8f54e9a57cfee4a3b8769b80be0d2 (patch) | |
| tree | ffdba505c072825ffa2b49430903d11167a2ba2f /tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c | |
| parent | powerpc/8xx: Fix pte_access_permitted() for PAGE_NONE (diff) | |
| download | kernel-5ea0bbaa32e8f54e9a57cfee4a3b8769b80be0d2.tar.gz kernel-5ea0bbaa32e8f54e9a57cfee4a3b8769b80be0d2.zip | |
powerpc/64e: Fix wrong test in __ptep_test_and_clear_young()
Commit 45201c879469 ("powerpc/nohash: Remove hash related code from
nohash headers.") replaced:
if ((pte_val(*ptep) & (_PAGE_ACCESSED | _PAGE_HASHPTE)) == 0)
return 0;
By:
if (pte_young(*ptep))
return 0;
But it should be:
if (!pte_young(*ptep))
return 0;
Fix it.
Fixes: 45201c879469 ("powerpc/nohash: Remove hash related code from nohash headers.")
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/8bb7f06494e21adada724ede47a4c3d97e879d40.1695659959.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'tools/testing/selftests/bpf/progs/recvmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions
