Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752246AbbFYVbw (ORCPT ); Thu, 25 Jun 2015 17:31:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46381 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751469AbbFYVb1 (ORCPT ); Thu, 25 Jun 2015 17:31:27 -0400 Message-ID: <1435267885.2972.4.camel@redhat.com> Subject: Re: [PATCH] i8042: Add debug_kbd option From: Stephen Chandler Paul To: Dmitry Torokhov Cc: Benjamin Tissoires , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Hans de Goede Date: Thu, 25 Jun 2015 17:31:25 -0400 In-Reply-To: <20150625203238.GA27620@dtor-ws> References: <1435260310-10074-1-git-send-email-cpaul@redhat.com> <20150625203238.GA27620@dtor-ws> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2405 Lines: 65 On Thu, 2015-06-25 at 13:32 -0700, Dmitry Torokhov wrote: > On Thu, Jun 25, 2015 at 03:25:10PM -0400, cpaul@redhat.com wrote: > > From: Stephen Chandler Paul > > > > A big problem with the current i8042 debugging option is that it > > outputs > > data going to and from the keyboard by default. As a result, many > > dmesg > > logs uploaded by users will unintentionally contain sensitive > > information > > such as their password, as such it's probably a good idea not to > > output > > data coming from the keyboard unless specifically enabled by the > > user. > > > > Signed-off-by: Stephen Chandler Paul > > Reviewed-by: Benjamin Tissoires > > --- > > Documentation/kernel-parameters.txt | 7 +++++++ > > drivers/input/serio/i8042.c | 25 +++++++++++++++++++++---- > > 2 files changed, 28 insertions(+), 4 deletions(-) > > > > diff --git a/Documentation/kernel-parameters.txt > > b/Documentation/kernel-parameters.txt > > index ae44749..9e00234 100644 > > --- a/Documentation/kernel-parameters.txt > > +++ b/Documentation/kernel-parameters.txt > > @@ -1304,6 +1304,13 @@ bytes respectively. Such letter suffixes can > > also be entirely omitted. > > , > > > > i8042.debug [HW] Toggle i8042 debug mode > > + i8042.debug_kbd [HW] Enable printing of interrupt data > > from the KBD port > > + As a side effect, this option will > > mask some of the > > + interrupts sent back from the > > keyboard during the > > + initialization of the KBD port on the > > i8042, if you > > + need to see this, you will need to > > enable this > > + option. > > Hmm, can we maybe use the bus notifier and react to > BUS_NOTIFY_BOUND_DRIVER/BUS_NOTIFY_UNBIND_DRIVER to decide if we want > to > see keyboard data stream? Out of curiosity, are there devices that aren't keyboards that actually make use of the KBD port? It was my understanding keyboards used the KBD port, and everything else uses the AUX port. Regardless, I'm looking into doing this as we speak. Cheers, Stephen Chandler Paul > > Thanks. > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/