From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4BA0AC4321A for ; Fri, 28 Jun 2019 13:17:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0FF1D2083B for ; Fri, 28 Jun 2019 13:17:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="u0wy6nRn" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726846AbfF1NRq (ORCPT ); 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()?