mirror_zfs/module
Jorgen Lundman 4458157bee
zfs_ioctl: saved_poolname can be truncated
As it uses kmem_strdup() and kmem_strfree() which both rely on
strlen() being the same, but saved_poolname can be truncated causing:

SPL: kernel memory allocator:
buffer freed to wrong cache
SPL: buffer was allocated from kmem_alloc_16,
SPL: caller attempting free to kmem_alloc_8.
SPL: buffer=0xffffff90acc66a38  bufctl=0x0  cache: kmem_alloc_8

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Jorgen Lundman <lundman@lundman.net>
Closes #10469
2020-06-17 14:30:03 -07:00
..
avl Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
icp Add convenience wrappers for common uio usage 2020-06-14 10:09:55 -07:00
lua Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
nvpair Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
os FreeBSD: Kernel module should depend on xdr not krpc after 1300092 2020-06-16 11:47:04 -07:00
spl Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
unicode Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
zcommon Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
zfs zfs_ioctl: saved_poolname can be truncated 2020-06-17 14:30:03 -07:00
.gitignore Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
Kbuild.in Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
Makefile.bsd Combine OS-independent ABD Code into Common Source File 2020-05-10 12:23:52 -07:00
Makefile.in Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00