mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-01-14 01:02:04 +03:00
raidz_test: Restore rand_data protection
It feels dirty to modify protection of a memory allocated via libc, but at least we should try to restore it before freeing. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Rob Norris <robn@despairlabs.com> Signed-off-by: Alexander Motin <alexander.motin@TrueNAS.com> Closes #17977
This commit is contained in:
parent
6e10a51b74
commit
071369803e
@ -847,6 +847,8 @@ main(int argc, char **argv)
|
||||
err = run_test(NULL);
|
||||
}
|
||||
|
||||
mprotect(rand_data, SPA_MAXBLOCKSIZE, PROT_READ | PROT_WRITE);
|
||||
|
||||
umem_free(rand_data, SPA_MAXBLOCKSIZE);
|
||||
kernel_fini();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user