Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3298765ybd; Fri, 28 Jun 2019 06:19:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiiJ4VYrDltGhEDwNE3m1eG9ucZvdWBKochzugz4x9+dwWgxwXycuZyBZEkoWZ8eyNaJih X-Received: by 2002:a17:902:4aa3:: with SMTP id x32mr11074517pld.119.1561727952897; Fri, 28 Jun 2019 06:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561727952; cv=none; d=google.com; s=arc-20160816; b=zyH17PP1X6/R+hr9TaqWjLuLYbznYAUBnjrChGLj0XRSWSPhovyv9M5+IhqCZx0NSG be6sqWQvKH5waJVU9vjHaYWcWmjlXYTyp/s8EnO4tAWypsslP8NW5XK61t7gp/HFpL+v CDzCPesw6Ij/cd3zfyYsO/kcZdEiiU1WP327YsjK4P3vwA031nJxmspV0JlfQfJCddhd 6CaX1t+MROJpJsquz0tsFD7f8u1MS5CZxiDPAlViKuQQE7/0Wq940Ct5jPcRESUWk9u5 TXUAqVfQtxXImQepM/ViNRyEV9K8u08Lh6Umq5UyTdTD6klZUAv1Nl1uOJJoN1O60oQj gUYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=W0/hz6XgQPsCy3uua9IImeoMXvDssJ/R5ac8DDPw74o=; b=0q5kOh2o8u0BiHQUJdhtTvUPaJQgpHEZhIlaSJN+Bjf0evkqWSu6KdaMH5WFthhvpP r2XzXUg6zkVN5UIz3FOdxx8RYiQeffKvtZhqCcUYDK8yJC0TZv9cExSq6R4tG6rAw5lk gz7oPaOJKYqGdbdRzGPN0muNyddsQ2AFWYcah2j0FQt/udWFcdfOnZ87R12BqJlP6Pam T7INPpJZoXBRtuvzxMbB1/rCV18lkWr6idsnXnDBppk2FKxOjX6aDyPp+8d7zTQ2UMkT kBbpcce97QvsRtc6k0s47n6OKq/o5lEaQxgPP5cLu3ZCmk18g/u1VzsUy4xPagCbBH8Y B8pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=u0wy6nRn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6si2600594pfm.135.2019.06.28.06.18.56; Fri, 28 Jun 2019 06:19:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=u0wy6nRn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726803AbfF1NRq (ORCPT + 99 others); Fri, 28 Jun 2019 09:17:46 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49100 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726616AbfF1NRq (ORCPT ); Fri, 28 Jun 2019 09:17:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=W0/hz6XgQPsCy3uua9IImeoMXvDssJ/R5ac8DDPw74o=; b=u0wy6nRnO9Wc44TPu0YdFMn60 t+JKbPbD1VytXfvJvgN4//OrbRPmDMxa0Y+bPGu5sqyHSq7+37cLQbTcmOWacvy7TH9hyz3yCTgCg R0gpyvTqHhJebFGBcu+WKvTM84/KIE6wcz4r0TRq3PS7YjMqqwQZ2yGVZ8uO+bZINuBTVKZxNfiF2 dga7JfjQb4vY4nnecv1TwjbVoJE1OSWiwzSzX3MMVMnVcIoTGFIOmoC9jyI5bjiCAOyGiK4elw23X OvR+IGcz3RT2TIhHk4f7clsVWxWNgdu2ijAxhb1zVuyWpcXgUcSlqoZHH0pAu+yTo4SfmV1/uADWF wi0/ko1IQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1hgql0-0000LR-BH; Fri, 28 Jun 2019 13:17:38 +0000 Date: Fri, 28 Jun 2019 06:17:38 -0700 From: Christoph Hellwig To: Arnd Bergmann Cc: Christoph Hellwig , Jaegeuk Kim , Chao Yu , Qiuyang Sun , Sahitya Tummala , Eric Biggers , Wang Shilong , "Linux F2FS DEV, Mailing List" , Linux Kernel Mailing List , Russell King - ARM Linux Subject: Re: [PATCH] f2fs: fix 32-bit linking Message-ID: <20190628131738.GA994@infradead.org> References: <20190628104007.2721479-1-arnd@arndb.de> <20190628124422.GA9888@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 28, 2019 at 03:09:47PM +0200, Arnd Bergmann wrote: > I came across this on arm-nommu (which disables > CONFIG_CPU_SPECTRE) during randconfig testing. > > I don't see an easy way to add this in there, short of rewriting the > whole __get_user_err() function. Any suggestions? Can't we just fall back to using copy_from_user with a little wrapper that switches based on sizeof()?