From: Waiman Long Date: Fri, 20 Mar 2020 13:56:42 +0000 Subject: Re: [PATCH v5 1/2] KEYS: Don't write out to userspace while holding key semaphore Message-Id: <69678e1c-dfbe-7484-85ad-601ebe23c90d@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit List-Id: References: <20200318221457.1330-2-longman@redhat.com> <20200318221457.1330-1-longman@redhat.com> <3251035.1584692419@warthog.procyon.org.uk> In-Reply-To: <3251035.1584692419@warthog.procyon.org.uk> To: David Howells Cc: Jarkko Sakkinen , James Morris , "Serge E. Hallyn" , Mimi Zohar , "David S. Miller" , Jakub Kicinski , keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-integrity@vger.kernel.org, netdev@vger.kernel.org, linux-afs@lists.infradead.org, Sumit Garg , Jerry Snitselaar , Roberto Sassu , Eric Biggers , Chris von Recklinghausen On 3/20/20 4:20 AM, David Howells wrote: > Waiman Long wrote: > >> + if ((ret > 0) && (ret <= buflen)) { > That's a bit excessive on the bracketage, btw, but don't worry about it unless > you respin the patches. Got it. Thanks, Longman