From nobody@FreeBSD.org Fri Jan 13 12:59:11 2012 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEA871065678 for ; Fri, 13 Jan 2012 12:59:11 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 9946A8FC26 for ; Fri, 13 Jan 2012 12:59:11 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q0DCxBoW040353 for ; Fri, 13 Jan 2012 12:59:11 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q0DCxBon040352; Fri, 13 Jan 2012 12:59:11 GMT (envelope-from nobody) Message-Id: <201201131259.q0DCxBon040352@red.freebsd.org> Date: Fri, 13 Jan 2012 12:59:11 GMT From: Claude Buisson To: freebsd-gnats-submit@FreeBSD.org Subject: recurring problem wirh /dev/console and syslog handling X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 164082 >Category: kern >Synopsis: recurring problem wirh /dev/console and syslog handling >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 13 13:00:24 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Claude Buisson >Release: 8.2-STABLE 9.0-CURRENT >Organization: >Environment: FreeBSD 9.0-PRERELEASE #0: Sat Dec 3 16:59:34 CET 2011 toor@inspiron:/usr/obj/home/src/sys/INSPIRON9X i386 >Description: This problem may be traced back to 8.0-CURRENT, and the first symptom was the fact that xconsole and xterm -C stopped displaying console messages. This was acknowledged by Ed Schouten in [1] To work around this problem I patched src/sys/security/mac_stub/mac_stub.c, so as to get stub_priv_grant() return 0 for PRIV_TTY_CONSOLE. Others [2] [3] patched src/sys/kern/tty.c. This worked BUT: The kernel messages got displayed by xconsole or xterm -C, but not the messages sent to /dev/console via syslog. My current workaround is to use xterm -C running a sudo watch /dev/ttyv0 the -C is needed for the kernel messages, and the watch for the syslog messages. This worked with 8.X-STABLE, BUT: After intalling a 9.0-CURRENT svn r224294 (I have not tested a previous revision), I found that some kernel messages are displayed as blank/empty lines in the xterm -C. See [4] for geli/geom_eli messages, such as cryptosoft0: on motherboard GEOM_ELI: Device ada0p9.eli created. GEOM_ELI: Encryption: AES-XTS 128 GEOM_ELI: Integrity: HMAC/SHA256 GEOM_ELI: Crypto: software This is also true for umass messages like: da0: 40.000MB/s transfers [1] http://lists.freebsd.org/pipermail/freebsd-hackers/2008-October/026518.html [2] http://lists.freebsd.org/pipermail/freebsd-current/2011-January/022107.html [3] http://lists.freebsd.org/pipermail/freebsd-current/2011-February/023109.html [4] http://lists.freebsd.org/pipermail/freebsd-current/2011-August/026375.html >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: