linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fix mm/rodata_test
@ 2024-11-19 11:37 Petr Tesarik
  2024-11-19 11:37 ` [PATCH v2 1/2] mm/rodata_test: use READ_ONCE() to read const variable Petr Tesarik
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Petr Tesarik @ 2024-11-19 11:37 UTC (permalink / raw)
  To: Andrew Morton, Kees Cook, Jinbum Park
  Cc: linux-mm, linux-kernel, Petr Tesarik

Make sure that the test actually reads the read-only memory location.
Verify that the variable contains the expected value rather than any
non-zero value.

Petr Tesarik (2):
  mm/rodata_test: use READ_ONCE() to read const variable
  mm/rodata_test: verify test data is unchanged, rather than non-zero

 mm/rodata_test.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

-- 
2.46.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-19 17:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-19 11:37 [PATCH v2 0/2] Fix mm/rodata_test Petr Tesarik
2024-11-19 11:37 ` [PATCH v2 1/2] mm/rodata_test: use READ_ONCE() to read const variable Petr Tesarik
2024-11-19 11:37 ` [PATCH v2 2/2] mm/rodata_test: verify test data is unchanged, rather than non-zero Petr Tesarik
2024-11-19 17:41 ` [PATCH v2 0/2] Fix mm/rodata_test Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox