Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2013 14:20:20 +0200
From:      Ivan Voras <ivoras@freebsd.org>
To:        Alexander Motin <mav@freebsd.org>
Cc:        svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   Re: svn commit: r255567 - stable/9/sys/geom/zero
Message-ID:  <CAF-QHFWGcFdaHtJDCDLy7LtDcG=EB%2B05JUcOkT63FBbKXSLPug@mail.gmail.com>
In-Reply-To: <201309141012.r8EACTW9032484@svn.freebsd.org>
References:  <201309141012.r8EACTW9032484@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 14 September 2013 12:12, Alexander Motin <mav@freebsd.org> wrote:

>   Add unmapped BIO support to GEOM ZERO if kern.geom.zero.clear is cleared.

> +               if (g_zero_clear && (bp->bio_flags & BIO_UNMAPPED) == 0)
>                         memset(bp->bio_data, g_zero_byte, bp->bio_length);


Umm, I might be wrong, but won't this basically export random kernel
memory to anyone reading from /dev/gzero?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF-QHFWGcFdaHtJDCDLy7LtDcG=EB%2B05JUcOkT63FBbKXSLPug>