Skip to content

Commit 52ca857

Browse files
committed
ZSTD-DEBUG: Temporarily bypass custom allocator zstd_malloc
This commit uses ZSTD_createCCtx() instead of ZSTD_createCCtx_advanced() to confirm that the custom allocator (zstd_malloc) is causing ASAN failures in zloop testing. This is a TEMPORARY DEBUG commit and must be replaced before merge. Signed-off-by: Alexander Moch <mail@alexmoch.com>
1 parent 76d7600 commit 52ca857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/zstd/zfs_zstd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ zfs_zstd_compress_impl(void *s_start, void *d_start, size_t s_len, size_t d_len,
452452
ASSERT3U(d_len, <=, s_len);
453453
ASSERT3U(zstd_level, !=, 0);
454454

455-
cctx = ZSTD_createCCtx_advanced(zstd_malloc);
455+
cctx = ZSTD_createCCtx();
456456

457457
/*
458458
* Out of kernel memory, gently fall through - this will disable

0 commit comments

Comments
 (0)