From owner-freebsd-current@FreeBSD.ORG Thu Feb 17 13:56:14 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3116816A4CE for ; Thu, 17 Feb 2005 13:56:14 +0000 (GMT) Received: from relay.bestcom.ru (relay.bestcom.ru [217.72.144.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5055F43D41 for ; Thu, 17 Feb 2005 13:56:13 +0000 (GMT) (envelope-from glebius@freebsd.org) Received: from cell.sick.ru (root@cell.sick.ru [217.72.144.68]) by relay.bestcom.ru (8.13.1/8.12.9) with ESMTP id j1HDuBUn038641 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 17 Feb 2005 16:56:11 +0300 (MSK) (envelope-from glebius@freebsd.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.11/8.12.8) with ESMTP id j1HDuAgC097569 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 17 Feb 2005 16:56:10 +0300 (MSK) (envelope-from glebius@freebsd.org) Received: (from glebius@localhost) by cell.sick.ru (8.12.11/8.12.11/Submit) id j1HDuA6k097568 for current@freebsd.org; Thu, 17 Feb 2005 16:56:10 +0300 (MSK) (envelope-from glebius@freebsd.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@freebsd.org using -f Date: Thu, 17 Feb 2005 16:56:09 +0300 From: Gleb Smirnoff To: current@freebsd.org Message-ID: <20050217135609.GA97455@cell.sick.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Virus-Scanned: ClamAV version devel-20050125, clamav-milter version 0.80ff on relay.bestcom.ru X-Virus-Status: Clean Subject: changing debuglevel of kernel messaging going to console X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 17 Feb 2005 13:56:14 -0000 Dear collegues, now all kernel messages are printed to system console by default: *.err;kern.debug;auth.notice;mail.crit /dev/console There is a problem that in case of a serial console, this printing is very slow and heavily pessimizes box performance, when kernel messages are printed at high speed. Moreover, several kernel messages with LOG_DEBUG severity can be triggered remotely, for example sending bogus ARP replies. So, sending bogus ARP packets to a FreeBSD box with serial console may lead to a DoS like conditions. I'd like to raise this level to kern.warning, so that important messages are still printed, but debug messages won't flood console. No logging will be lost, since next line logs kern.debug to /var/log/messages. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE