linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Fix a segmentation fault also add raid6test for RISC-V support
@ 2025-06-10 10:12 Chunyan Zhang
  2025-06-10 10:12 ` [PATCH 1/4] raid6: riscv: Clean up unused header file inclusion Chunyan Zhang
                   ` (5 more replies)
  0 siblings, 6 replies; 16+ messages in thread
From: Chunyan Zhang @ 2025-06-10 10:12 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti,
	Charlie Jenkins, Song Liu, Yu Kuai
  Cc: linux-riscv, linux-raid, linux-kernel, Chunyan Zhang

The first two patches are fixes. 
The last two are for userspace raid6test support on RISC-V.

The issue fixed in patch 2/4 was probably the same which was spotted by
Charlie [1], I couldn't reproduce it at that time.

When running raid6test in userspace on RISC-V, I saw a segmentation fault,
I used gdb command to print pointer p, it was an unaccessible address.

With patch 2/4, the issue didn't appear anymore.

[1] https://lore.kernel.org/lkml/Z5gJ35pXI2W41QDk@ghost/

Chunyan Zhang (4):
  raid6: riscv: clean up unused header file inclusion
  raid6: riscv: Fix NULL pointer dereference issue
  raid6: riscv: Allow code to be compiled in userspace
  raid6: test: add support for RISC-V

 lib/raid6/recov_rvv.c   |  9 +-----
 lib/raid6/rvv.c         | 62 +++++++++++++++++++++--------------------
 lib/raid6/rvv.h         | 15 ++++++++++
 lib/raid6/test/Makefile |  8 ++++++
 4 files changed, 56 insertions(+), 38 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2025-07-10  7:45 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10 10:12 [PATCH 0/4] Fix a segmentation fault also add raid6test for RISC-V support Chunyan Zhang
2025-06-10 10:12 ` [PATCH 1/4] raid6: riscv: Clean up unused header file inclusion Chunyan Zhang
2025-06-10 10:12 ` [PATCH 2/4] raid6: riscv: Fix NULL pointer dereference issue Chunyan Zhang
2025-06-10 22:00   ` Palmer Dabbelt
2025-06-11  3:03     ` Chunyan Zhang
2025-06-12 19:30   ` Palmer Dabbelt
2025-06-10 10:12 ` [PATCH 3/4] raid6: riscv: Allow code to be compiled in userspace Chunyan Zhang
2025-06-10 21:49   ` Palmer Dabbelt
2025-06-10 22:00   ` Palmer Dabbelt
2025-06-10 10:12 ` [PATCH 4/4] raid6: test: Add support for RISC-V Chunyan Zhang
2025-06-10 19:23 ` [PATCH 0/4] Fix a segmentation fault also add raid6test for RISC-V support Alexandre Ghiti
2025-06-10 22:00   ` Palmer Dabbelt
2025-06-11  2:08   ` Chunyan Zhang
2025-07-09 15:18 ` Alexandre Ghiti
2025-07-10  1:44   ` Chunyan Zhang
2025-07-10  7:45     ` Alexandre Ghiti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).