From owner-svn-src-stable@FreeBSD.ORG Mon Sep 16 12:21:01 2013 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CF93C157; Mon, 16 Sep 2013 12:21:01 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-vc0-x22a.google.com (mail-vc0-x22a.google.com [IPv6:2607:f8b0:400c:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 46B842909; Mon, 16 Sep 2013 12:21:01 +0000 (UTC) Received: by mail-vc0-f170.google.com with SMTP id kw10so2875048vcb.29 for ; Mon, 16 Sep 2013 05:21:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=QeFWoC/SpNYQK+98O1Q94Y86ns4aAjJP2d21UVAgUBg=; b=0w6QICdzbWQ4YrrlJj3VuGT42ooIjzFISsbNrzCKczpAz+0ep15r4FXjYpRGDOY7Ds fn4hx1V8IRPBYIc0agKH5qR6SGWnN+mIqmiOEoZTM+kDJSKKLv9xPDPuB4lKpOHnfDCd 8c0YBz//lcaB4rf3hsNnXmpwzbXm9sLP4EEACZH8Wh7aU3eiQsiM7aw+TjgfBNKWAZ7K npt//abJ9ojU662K+8lL7XJGTAO1z7n6gEgd+OvAF7BUfuIJ+mskRQpvqL0RRw/9H4Kn elnSRCo8W1DWJz0Qin4INi6ro4Ym5pvP8LRu4eeffzqpq9Jd0bwa5JfrLaz/ehLueX7g xG3g== X-Received: by 10.221.27.73 with SMTP id rp9mr89077vcb.29.1379334060356; Mon, 16 Sep 2013 05:21:00 -0700 (PDT) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.58.229.167 with HTTP; Mon, 16 Sep 2013 05:20:20 -0700 (PDT) In-Reply-To: <201309141012.r8EACTW9032484@svn.freebsd.org> References: <201309141012.r8EACTW9032484@svn.freebsd.org> From: Ivan Voras Date: Mon, 16 Sep 2013 14:20:20 +0200 X-Google-Sender-Auth: -y21_rtjgQzQ_FrNZlbQMtxW_rw Message-ID: Subject: Re: svn commit: r255567 - stable/9/sys/geom/zero To: Alexander Motin Content-Type: text/plain; charset=UTF-8 Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-9@freebsd.org X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Sep 2013 12:21:01 -0000 On 14 September 2013 12:12, Alexander Motin 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?