From owner-freebsd-current@FreeBSD.ORG Fri Dec 28 19:51:31 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0503D16A419 for ; Fri, 28 Dec 2007 19:51:31 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.191]) by mx1.freebsd.org (Postfix) with ESMTP id 7354F13C46E for ; Fri, 28 Dec 2007 19:51:29 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by mu-out-0910.google.com with SMTP id w9so2333210mue.6 for ; Fri, 28 Dec 2007 11:51:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:message-id:from:to:cc:subject:in-reply-to:references:user-agent:mime-version:content-type:sender; bh=25FqWIX+b+oixcOOMOguHsnxXEyoDwjDmm8WCykeg7g=; b=YvvJke182TOmpU57tSQyAbwY/8AIIkGZWieLP+7VhKuWkoyPj/hsv5/8+WeZYE4/auvdcLVORMNmL1p9jgNx9UgY1KxcWIJ1QRSysqX3unuhO6JyLxzcf8ENBCAP4iHbONMaBrK+kv68YgKLBXY8Enmd+nMAaaRE7Cn7RC6+H/A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:message-id:from:to:cc:subject:in-reply-to:references:user-agent:mime-version:content-type:sender; b=b0aiWe/e6tUgoWq3WwjqjVWwaYTg7YDGTATFyxz/Ic9+q46oxD1MBIhIOOG752fsqm6grM1k02cAajPJayt8SablkK3DBmh+r2Z2XIGyQv2+1VwzQ07kx8I2sxGoEkrI1ctS8J0761vesy/duRhcdDOdLx4DQz4YhFiE2djkC6s= Received: by 10.82.150.20 with SMTP id x20mr17282334bud.37.1198871488752; Fri, 28 Dec 2007 11:51:28 -0800 (PST) Received: from epsilon.local.gmail.com ( [83.144.140.64]) by mx.google.com with ESMTPS id z33sm14529133ikz.0.2007.12.28.11.51.26 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 28 Dec 2007 11:51:27 -0800 (PST) Date: Fri, 28 Dec 2007 19:47:41 +0000 Message-ID: <86bq8ar482.wl%rpaulo@fnop.net> From: Rui Paulo To: Michael Butler In-Reply-To: <47754D37.4050702@protected-networks.net> References: <20071228120152.GB1544@schweikhardt.net> <4774F09A.3050405@FreeBSD.org> <47754D37.4050702@protected-networks.net> User-Agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/22.1 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: Rui X-Mailman-Approved-At: Fri, 28 Dec 2007 19:56:46 +0000 Cc: Kris Kennaway , FreeBSD current , Jens Schweikhardt Subject: Re: Garbled shutdown message X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2007 19:51:31 -0000 At Fri, 28 Dec 2007 14:23:35 -0500, Michael Butler wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Kris Kennaway wrote: > > Jens Schweikhardt wrote: > >> If you look at this closely you can find "Syncing (max 60 seconds) for > >> system process" if you read about every other character. It's always the > >> third of the three "Waiting" lines. Anyone else seeing this? > > > > You have an SMP system and do not have the PRINTF_BUFR option or > > whatever it is. Without it multiple CPUs have no synchronization > > between printfs and will interleave. > > So the recommended value for PRINTF_BUFR_SIZE is ... ? > > In my (very brief) browse through kern/subr_prf.c, I didn't see any > overflow protection on the stack-allocated buffer ... which makes me > rather nervous. > > Interleaved text is *way* better than clobbered kernel stack .. pca.n_bufr = sizeof(bufr); pca.remain = sizeof(bufr); I think this is the "overflow protection". -- Rui Paulo