From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932478AbdA0KSX (ORCPT ); Fri, 27 Jan 2017 05:18:23 -0500 Received: from mail.skyhub.de ([78.46.96.112]:44443 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932328AbdA0KSQ (ORCPT ); Fri, 27 Jan 2017 05:18:16 -0500 Date: Fri, 27 Jan 2017 11:16:56 +0100 From: Borislav Petkov To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, Andrew Morton , Andy Lutomirski , Dave Hansen , Fenghua Yu , "H . Peter Anvin" , Linus Torvalds , Oleg Nesterov , Peter Zijlstra , Rik van Riel , Thomas Gleixner , Yu-cheng Yu Subject: Re: [PATCH 04/14] x86/fpu: Remove 'kbuf' parameter from the copy_xstate_to_user() APIs Message-ID: <20170127101656.r6djweg3snx4n7k2@pd.tnic> References: <1485426179-13681-1-git-send-email-mingo@kernel.org> <1485426179-13681-5-git-send-email-mingo@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1485426179-13681-5-git-send-email-mingo@kernel.org> User-Agent: NeoMutt/20161014 (1.7.1) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 26, 2017 at 11:22:49AM +0100, Ingo Molnar wrote: > The 'kbuf' parameter is unused in the _user() side of the API, remove it. > > This simplifies the code and makes it easier to think about. ... > @@ -1010,10 +1010,7 @@ int copy_xstate_to_kernel(unsigned int pos, unsigned int count, void *kbuf, stru > } > > static inline int > -__copy_xstate_to_user(unsigned int pos, unsigned int count, > - void *kbuf, void __user *ubuf, > - const void *data, const int start_pos, > - const int end_pos) > +__copy_xstate_to_user(unsigned int pos, unsigned int count, void __user *ubuf, const void *data, const int start_pos, const int end_pos) That and similar lines are insanely long and could be broken. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.