Date: Thu, 07 Sep 2017 15:46:12 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 222077] geli(8) writing uninitialized memory out to disk Message-ID: <bug-222077-8-1PD2e3q1VV@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-222077-8@https.bugs.freebsd.org/bugzilla/> References: <bug-222077-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222077 --- Comment #3 from Maxim Khitrov <max@mxcrypt.com> --- I think the same issue also affects geli metadata with 4k sector size. I was able to reproduce this using the script below, but it took many iterations. Once it happened, the same data was returned every time, so I think it's ju= st a matter of getting the right memory page allocated. The result is that the l= ast sector contains 512 bytes of metadata followed by 3584 bytes of uninitializ= ed memory. #!/bin/sh dd if=3D/dev/zero of=3Dgelitest.md bs=3D8K count=3D1 status=3Dnone md=3D$(mdconfig -f gelitest.md -S 4096) || exit echo 'fakekey' | geli init -B none -K - -P $md || exit mdconfig -du $md hd gelitest.md --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222077-8-1PD2e3q1VV>