Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751309AbdFEGlX (ORCPT ); Mon, 5 Jun 2017 02:41:23 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:56742 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751267AbdFEGlW (ORCPT ); Mon, 5 Jun 2017 02:41:22 -0400 Date: Mon, 5 Jun 2017 08:41:17 +0200 From: Greg Kroah-Hartman To: Al Viro Cc: Adam Borowski , Jiri Slaby , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5] vt: get rid of worst cases of __put_user/__get_user Message-ID: <20170605064117.GD14680@kroah.com> References: <20170603073255.zgpfmdp2pqusz4qw@angband.pl> <20170603154252.GA5123@kroah.com> <20170605061350.GR6365@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170605061350.GR6365@ZenIV.linux.org.uk> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1192 Lines: 29 On Mon, Jun 05, 2017 at 07:13:50AM +0100, Al Viro wrote: > On Sun, Jun 04, 2017 at 12:42:52AM +0900, Greg Kroah-Hartman wrote: > > On Sat, Jun 03, 2017 at 09:32:55AM +0200, Adam Borowski wrote: > > > Hi! > > > In a recent discussion, Linus and Al Viro said quite a bit of expletives > > > about __put_user() and __get_user(), that it's a bad interface that's > > > almost always the wrong thing to use: > > > https://marc.info/?l=linux-kernel&m=149463725626316&w=2 > > > https://marc.info/?l=linux-kernel&m=149465866929092&w=2 > > > > > > Here's a few patches applying the lessons from that discussion to vt. > > > None of the uses is performance-critical, but at least we get a nice bit > > > of code simplification. And, it's a start of manual review + conversion > > > that Al Viro wants. > > > > Ah, nice work, at first glance these all look good to me. I'll queue > > them up on Monday. > > Could you put that into a separate no-rebase branch? Or I could do that > in vfs.git, for that matter... If you just want to take these in vfs.git feel free to, I don't mind at all: Acked-by: Greg Kroah-Hartman that's probably the easiest. thanks, greg k-h