pmem / pmemfile

Userspace implementation of file APIs using persistent memory.
Other
34 stars 21 forks source link

preload: truncate for paths outside of pmemfile pool is handled incorrectly #306

Closed marcinslusarz closed 7 years ago

marcinslusarz commented 7 years ago

Code from hook_truncate: "return syscall_no_intercept(SYS_truncate, where.at.kernel_fd, where.path, length);" is incorrect. Truncate syscall accepts only 2 arguments (and there's no truncateat, so it's not a simple fix).