From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Hurley Subject: Re: [PATCH 03/15] tty: audit: Remove icanon mode from call chain Date: Thu, 12 Nov 2015 14:58:37 -0500 Message-ID: <5644EF6D.2030103@hurleysoftware.com> References: <1447207560-16410-1-git-send-email-peter@hurleysoftware.com> <1447207560-16410-4-git-send-email-peter@hurleysoftware.com> <20151112191032.GA24011@madcap2.tricolour.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tACJwg5v008741 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 12 Nov 2015 14:58:42 -0500 Received: from mail-ig0-f169.google.com (mail-ig0-f169.google.com [209.85.213.169]) by mx1.redhat.com (Postfix) with ESMTPS id 28331A0B4D for ; Thu, 12 Nov 2015 19:58:41 +0000 (UTC) Received: by igl9 with SMTP id 9so1173985igl.0 for ; Thu, 12 Nov 2015 11:58:40 -0800 (PST) In-Reply-To: <20151112191032.GA24011@madcap2.tricolour.ca> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Richard Guy Briggs Cc: Greg Kroah-Hartman , linux-audit@redhat.com, Jiri Slaby List-Id: linux-audit@redhat.com On 11/12/2015 02:10 PM, Richard Guy Briggs wrote: > On 15/11/10, Peter Hurley wrote: >> The tty termios bits cannot change while n_tty_read() is in the >> i/o loop; the termios_rwsem ensures mutual exclusion with termios >> changes in n_tty_set_termios(). Check L_ICANON() directly and >> eliminate icanon parameter. >> >> NB: tty_audit_add_data() => tty_audit_buf_get() => tty_audit_buf_alloc() >> is a single path; ie., tty_audit_buf_get() and tty_audit_buf_alloc() >> have no other callers. > > Which tree is this based on? I don't see where the first chunk applies. 4.3 but this series requires a -stable fix [1] posted earlier but not in any tree yet, which I noted in the cover-letter (was easy to overlook). Regards, Peter Hurley [1] https://lkml.org/lkml/2015/11/8/133