Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6372255ybe; Wed, 18 Sep 2019 02:19:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1j2XgFDya11eWggTW5PFi8Ng2sI5ys3aDkz7YuPFwa9aCG38+cYRE09nwp+2XVb1aEmg3 X-Received: by 2002:a50:ab0f:: with SMTP id s15mr9108915edc.119.1568798380451; Wed, 18 Sep 2019 02:19:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568798380; cv=none; d=google.com; s=arc-20160816; b=UtIeFYs1GWewIc1OHtowW/QdmTm1jZTsDJmMMngpumFq4AxiEMpnOVzmfbCFXF9eeS 761F7prdx+ywWo116cGN166m0LovAu6ZLYFfvUCTdZAr5NR3DkLQteUOGnLwcAWTZ7KD 1Xt65btbZoRUHetOcnxNhtuqJDM1m3iS4xq0KgqoICgju6ItWnF4lLUGLFfiHJTMbKgE 7AaN4N5aK3O76ULs8m7cuYVVdTeXDRfaevsRSAGp3JTHG7ZMxCQkYRI/Of8jbaZ390JG AnkKOip+c7I8Uy8YTFgbBktFHL4hOAHptRkLrbWmAZl98b0+C8ODZ67WXQwukCA6SDXA HhPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=w49TQ0N35C8+aNkoU7EonuZ+lO88up05Z8pyD5El0SU=; b=xp3mYUZpIHiD3XGWPwZvfizJaISSQCBl/B6xezz9n0qkU+RNcBrY1y6UYN4q/EDqMq ruHq3uTYt+ui9C2bGJkdw8q5JVIkHESaczut1Lz8dPRsUzjZ2ZnalLdQJzwElNDoH9kf JwdKc5yXMqnrq2cQkp6mM6xDlvMpq6S2p66lmwJ0pk+/UNPKVsTJDuEWx3RtbDRYd1I1 wmYsJScV/dIyKyD3348M360Vl4Q0fjArx+ZnIu++fN3YtJhsjHdXRpR1b5pTHqf6a8gL bsyQDlZ9SznPzI261cL9F6W1WBTi0OAxKo6ygeIysN8mFldn4pDvwCSjeG3RqOhYRI4S hLpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=K3Y86tc+; 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 x20si2462085ejb.393.2019.09.18.02.19.16; Wed, 18 Sep 2019 02:19:40 -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=pass header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=K3Y86tc+; 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 S1726841AbfIRHt0 (ORCPT + 99 others); Wed, 18 Sep 2019 03:49:26 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:37740 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725834AbfIRHt0 (ORCPT ); Wed, 18 Sep 2019 03:49:26 -0400 Received: by mail-wm1-f65.google.com with SMTP id r195so1293879wme.2 for ; Wed, 18 Sep 2019 00:49:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to; bh=w49TQ0N35C8+aNkoU7EonuZ+lO88up05Z8pyD5El0SU=; b=K3Y86tc+vMZs495HCJBn2XEQR8Wuylyn912jixOZpKwv2couwVctcA686JMFUYlMeA OSZaTDidjPgjsRjuaCLj0vSBBFEQNcmJKWQ/ZKCi6y7gY7IdVV7UX1vLB5MEqsedNR7x N/ZetH++Ibtfyh9h3F2GRN/8RIecHYrZI9UQ3yagxXGDwFdwWfhnISjNHcZHuEQv99AM /6BsPMuP7Fjz/U/YpqcLXlgG6bULz4P7uCDzVIX3yseqgbvx3kKHZBuSks0C+z119UtP jxfcIXO1I4utv80dCn3JmsygkZ9YISqOe6I/QHOnqOQBDanjYAsgrYAcqWwoTBRTDbtC 4wjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to; bh=w49TQ0N35C8+aNkoU7EonuZ+lO88up05Z8pyD5El0SU=; b=Y7p3nRvl+Y6CJLC2R1WY82x5A2btQfGVRvCyR/Qn2e3MEraMpxOOOdM3Drb1elxrSS oAdp2X81hwAYFuU4AjAjmQl29VPgxX/SfMyjK1qD08m+xcy7NFQvGFvClLYpIZMUeL8q WTSTOB9R/TncErP7nIknvFXmCrRvX5k8IOxljmoHsOts7bU8H9H46Bn/sIFOAY4knM9+ PWZXq4c/Mx2fUfDfUXw91tv9y4L4aNSvIgknAFfrVpBEgbKXSAPMBIouEAVf3t8O4j9p Uoy7x27cfiuMTPEN7CjXEJ5DiEaLGBPY0NgXxMWQT0Suq2vJbok7XvFvdNDuRDlM7hZ+ raVA== X-Gm-Message-State: APjAAAVVh2F9pa+wehfLrcb6i/k1iQZVvt5L2hph9Ke2eu/O3JWcUJHU fhckNcN7boyODgIxqqTjlAvCpg== X-Received: by 2002:a1c:4108:: with SMTP id o8mr1674590wma.129.1568792962061; Wed, 18 Sep 2019 00:49:22 -0700 (PDT) Received: from [74.125.133.109] ([149.199.62.129]) by smtp.gmail.com with ESMTPSA id c1sm1138665wmk.20.2019.09.18.00.49.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Sep 2019 00:49:21 -0700 (PDT) Subject: Re: [PATCH] arch/microblaze: support get_user() of size 8 bytes To: Randy Dunlap , LKML , Linus Torvalds Cc: Andrew Morton , Al Viro , "Steven J. Magnani" , Jason Gunthorpe , Leon Romanovsky , Doug Ledford References: <71b1822c-c63f-4c92-ae4a-5e220714f995@infradead.org> From: Michal Simek Openpgp: preference=signencrypt Autocrypt: addr=monstr@monstr.eu; keydata= mQINBFFuvDEBEAC9Amu3nk79+J+4xBOuM5XmDmljuukOc6mKB5bBYOa4SrWJZTjeGRf52VMc howHe8Y9nSbG92obZMqsdt+d/hmRu3fgwRYiiU97YJjUkCN5paHXyBb+3IdrLNGt8I7C9RMy svSoH4WcApYNqvB3rcMtJIna+HUhx8xOk+XCfyKJDnrSuKgx0Svj446qgM5fe7RyFOlGX/wF Ae63Hs0RkFo3I/+hLLJP6kwPnOEo3lkvzm3FMMy0D9VxT9e6Y3afe1UTQuhkg8PbABxhowzj SEnl0ICoqpBqqROV/w1fOlPrm4WSNlZJunYV4gTEustZf8j9FWncn3QzRhnQOSuzTPFbsbH5 WVxwDvgHLRTmBuMw1sqvCc7CofjsD1XM9bP3HOBwCxKaTyOxbPJh3D4AdD1u+cF/lj9Fj255 Es9aATHPvoDQmOzyyRNTQzupN8UtZ+/tB4mhgxWzorpbdItaSXWgdDPDtssJIC+d5+hskys8 B3jbv86lyM+4jh2URpnL1gqOPwnaf1zm/7sqoN3r64cml94q68jfY4lNTwjA/SnaS1DE9XXa XQlkhHgjSLyRjjsMsz+2A4otRLrBbumEUtSMlPfhTi8xUsj9ZfPIUz3fji8vmxZG/Da6jx/c a0UQdFFCL4Ay/EMSoGbQouzhC69OQLWNH3rMQbBvrRbiMJbEZwARAQABtB9NaWNoYWwgU2lt ZWsgPG1vbnN0ckBtb25zdHIuZXU+iQJBBBMBAgArAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIe AQIXgAIZAQUCWq+GE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xtEL7eTLlbFPgBRUmvy6QbE 9GjRSSvlab6Mj5tocPBA0CSsonfLCiHlOLvjdMsdmX5NDUpDCo5QMSNEfHEmV3p+A/NOQ/Hk Qg41tpHgK85MlNXw6MBWLgdXBSGdD0zVX4S4Gz+vwyY1 Message-ID: <2dd46339-5d69-be42-e41f-510e68503ec9@monstr.eu> Date: Wed, 18 Sep 2019 09:49:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <71b1822c-c63f-4c92-ae4a-5e220714f995@infradead.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pUZ0j0XHrWzAHnQaCx7As75FmwcUpCyNw" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --pUZ0j0XHrWzAHnQaCx7As75FmwcUpCyNw Content-Type: multipart/mixed; boundary="S7qvRqb4c1qg4rSx0CT8TAalsMUP6vdFr"; protected-headers="v1" From: Michal Simek To: Randy Dunlap , LKML , Linus Torvalds Cc: Andrew Morton , Al Viro , "Steven J. Magnani" , Jason Gunthorpe , Leon Romanovsky , Doug Ledford Message-ID: <2dd46339-5d69-be42-e41f-510e68503ec9@monstr.eu> Subject: Re: [PATCH] arch/microblaze: support get_user() of size 8 bytes References: <71b1822c-c63f-4c92-ae4a-5e220714f995@infradead.org> In-Reply-To: <71b1822c-c63f-4c92-ae4a-5e220714f995@infradead.org> --S7qvRqb4c1qg4rSx0CT8TAalsMUP6vdFr Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 17. 09. 19 3:39, Randy Dunlap wrote: > From: Randy Dunlap >=20 > arch/microblaze/ is missing support for get_user() of size 8 bytes, > so add it by using __copy_from_user(). >=20 > While there, also drop a lot of the code duplication. >=20 > Fixes these build errors: > drivers/infiniband/core/uverbs_main.o: In function `ib_uverbs_write'= : > drivers/infiniband/core/.tmp_gl_uverbs_main.o:(.text+0x13a4): undefi= ned reference to `__user_bad' > drivers/android/binder.o: In function `binder_thread_write': > drivers/android/.tmp_gl_binder.o:(.text+0xda6c): undefined reference= to `__user_bad' > drivers/android/.tmp_gl_binder.o:(.text+0xda98): undefined reference= to `__user_bad' > drivers/android/.tmp_gl_binder.o:(.text+0xdf10): undefined reference= to `__user_bad' > drivers/android/.tmp_gl_binder.o:(.text+0xe498): undefined reference= to `__user_bad' > drivers/android/binder.o:drivers/android/.tmp_gl_binder.o:(.text+0xe= a78): more undefined references to `__user_bad' follow >=20 > 'make allmodconfig' now builds successfully for arch/microblaze/. >=20 > Fixes: 538722ca3b76 ("microblaze: fix get_user/put_user side-effects") > Reported-by: kbuild test robot > Signed-off-by: Randy Dunlap > Acked-by: Linus Torvalds > Cc: Al Viro > Cc: Steven J. Magnani > Cc: Michal Simek > Cc: Jason Gunthorpe > Cc: Leon Romanovsky > Cc: Andrew Morton > Cc: Doug Ledford > --- > v4: drop code duplication (Linus). >=20 >=20 > arch/microblaze/include/asm/uaccess.h | 42 +++++------------------- > 1 file changed, 9 insertions(+), 33 deletions(-) >=20 > --- lnx-53.orig/arch/microblaze/include/asm/uaccess.h > +++ lnx-53/arch/microblaze/include/asm/uaccess.h > @@ -163,44 +163,15 @@ extern long __user_bad(void); > * Returns zero on success, or -EFAULT on error. > * On error, the variable @x is set to zero. > */ > -#define get_user(x, ptr) \ > - __get_user_check((x), (ptr), sizeof(*(ptr))) > - > -#define __get_user_check(x, ptr, size) \ > -({ \ > - unsigned long __gu_val =3D 0; \ > - const typeof(*(ptr)) __user *__gu_addr =3D (ptr); \ > - int __gu_err =3D 0; \ > - \ > - if (access_ok(__gu_addr, size)) { \ > - switch (size) { \ > - case 1: \ > - __get_user_asm("lbu", __gu_addr, __gu_val, \ > - __gu_err); \ > - break; \ > - case 2: \ > - __get_user_asm("lhu", __gu_addr, __gu_val, \ > - __gu_err); \ > - break; \ > - case 4: \ > - __get_user_asm("lw", __gu_addr, __gu_val, \ > - __gu_err); \ > - break; \ > - default: \ > - __gu_err =3D __user_bad(); \ > - break; \ > - } \ > - } else { \ > - __gu_err =3D -EFAULT; \ > - } \ > - x =3D (__force typeof(*(ptr)))__gu_val; \ > - __gu_err; \ > +#define get_user(x, ptr) ({ \ > + const typeof(*(ptr)) __user *__gu_ptr =3D (ptr); \ > + access_ok(__gu_ptr, sizeof(*__gu_ptr)) ? \ > + __get_user(x, __gu_ptr) : -EFAULT; \ > }) > =20 > #define __get_user(x, ptr) \ > ({ \ > unsigned long __gu_val =3D 0; \ > - /*unsigned long __gu_ptr =3D (unsigned long)(ptr);*/ \ > long __gu_err; \ > switch (sizeof(*(ptr))) { \ > case 1: \ > @@ -212,6 +183,11 @@ extern long __user_bad(void); > case 4: \ > __get_user_asm("lw", (ptr), __gu_val, __gu_err); \ > break; \ > + case 8: \ > + __gu_err =3D __copy_from_user(&__gu_val, ptr, 8); \ > + if (__gu_err) \ > + __gu_err =3D -EFAULT; \ > + break; \ > default: \ > /* __gu_val =3D 0; __gu_err =3D -EINVAL;*/ __gu_err =3D __user_bad()= ;\ > } \ >=20 >=20 Applied. Thanks, Michal --S7qvRqb4c1qg4rSx0CT8TAalsMUP6vdFr-- --pUZ0j0XHrWzAHnQaCx7As75FmwcUpCyNw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQbPNTMvXmYlBPRwx7KSWXLKUoMIQUCXYHhegAKCRDKSWXLKUoM IUiDAJ4jX4u6BFZxvKNyATSZwuHuYD2RtwCglPzoSNMYB+5MONDDoBjr/tr9Nkg= =zsmP -----END PGP SIGNATURE----- --pUZ0j0XHrWzAHnQaCx7As75FmwcUpCyNw--