Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4013665imu; Mon, 7 Jan 2019 13:50:44 -0800 (PST) X-Google-Smtp-Source: ALg8bN6OJfydhyoLtvl+ZxIRHWtQk9CxPxYSrApOGHHuJU3MVHRJ+rsbRrGUStixwWKPD5W4+OrJ X-Received: by 2002:a63:1766:: with SMTP id 38mr12099343pgx.299.1546897844833; Mon, 07 Jan 2019 13:50:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546897844; cv=none; d=google.com; s=arc-20160816; b=x7zviyMeATdwR+kKJXQtZo7eZkHWTmyaNGHoagsQzgLShHr/8vDKS1P7QMam5Afr3i 1n3qx8+So7+YXs+UIBTTAkQ6vvHtY7RnF+VaDXZXr5PlxZSPb0XNYjr0KthYx5Y70e3C PoggALtTFBpMBEA9KwNIHt+3mboYfu248y/W5xpCCp+Hp2ghoKzMT9H9N4RlJ209+0zM v5UiAQMjiFTrnxmAMZukhrrB13iH6ylA4DZi4lzbmCg0dJocPo6hLhkM8NX1TIztU992 XhUFKY3wZsW0/qLG3DHfJ/uvHZrNupsf7CQbpypsHNgZyRyfZ3qOAGjofLzIqwr4KW+2 TyUg== 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=p8QDgmF5hWQbM1FPsPHmky74xeeRc06CUZN469xsWiA=; b=wrXjet7mPthk5CqiPecpiroePFsbGnJvJpm/zbMzBj9x4ZTj730kbhUSQULm2AbwRV u8IMMzcnuUu/vlsN1mYzMPOscV/gd6AGDIb1doxlhytD7OxGFUvJ3wBRuxkFP/YrrMn/ AKyrq8VmZG3jbeAtvrkiicah7r5iPUQeq6tncX/c1ATkfR3D14Biif3C9axydK5C5nXM f3EfcxbRjG+YMinJvV6JigcsFijJnQzUtaHhulqRpBk6KuvvUfM4iZvoTiIWwgXiunOT RQTk+5vJ3irpNADQltc0UuVZqg77Qeq3S3gLh2hmMtM5fF7SjmJJZCmAJJH99edDw/v0 E/dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SGqAF4yv; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si41948392pll.384.2019.01.07.13.50.29; Mon, 07 Jan 2019 13:50:44 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=SGqAF4yv; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727028AbfAGVtY (ORCPT + 99 others); Mon, 7 Jan 2019 16:49:24 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:41085 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726535AbfAGVtY (ORCPT ); Mon, 7 Jan 2019 16:49:24 -0500 Received: by mail-pl1-f195.google.com with SMTP id u6so771537plm.8; Mon, 07 Jan 2019 13:49:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=p8QDgmF5hWQbM1FPsPHmky74xeeRc06CUZN469xsWiA=; b=SGqAF4yvF01kc3E6aC/4n3E5TW+fFkStsEjxi/K5DrKGzgXrQLY0N/DkGPwRfoV4W+ gN5PHqNlLPIoQ68HmqMajXsXwJuR0H0O6DcHt4sZtTc/WT7VUlixyWzzU/Hq9WullsR9 OLo4J7A9uWhGUyHL1NxQNmz7VZou9m1mcP0aTvzDnK8vClCqtmUoO52yQ7jOo/arpShP MV5axduRx/PFxpJ/Lc4WUTfYWyH0IHDSYPVF8D9fNZajjE0sEdYX94s/sBeOvNt8lhfi RZVkfnrq5rb1LGFSkRVkjPqmEkgyn2ClStXrheoa7O4FeYNcy0EieJ6gBP6E+EvQd6Zz a1vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=p8QDgmF5hWQbM1FPsPHmky74xeeRc06CUZN469xsWiA=; b=nvJ1R5G4xaUhX4pyHG/sih4t0nJlpfaCvbN0u8Mt/Nem4MhBS25VmXwDagAOyN6JFD x8T2Jm+X/CrOUF9i58Fn05vsmHZ+gx7Cajhr1CSnEUx7ENIED9Az45CjbhrHKDU7DkQo grjLX8PQdo4L5Skfyz2II/siLOfmi1MvYr3sSkSOUiBzWy6mKOle0NQ2Ni4+ZYuL1mAl 11oksR7H8BYykks+ep3xtcUEe7R73aL9Y6jswKRooMUpiCI0QK7oe+Zg9SmxQqk14YTy GPWKyxyDk2lARTO4iTyYlVmBvckBCuHHtjLOcuUawir6AUTaeyXLh+oNBMNFWQUYv864 WC+g== X-Gm-Message-State: AJcUuke0eM4WYJLUr6TxmYdXmxhVUHadPJNNaPvcV1Dz2KzaC6Bk+BZK BPuAvrVUf44mBWxEHtlun8Y= X-Received: by 2002:a17:902:7896:: with SMTP id q22mr63887096pll.280.1546897763148; Mon, 07 Jan 2019 13:49:23 -0800 (PST) Received: from localhost (g206.124-44-15.ppp.wakwak.ne.jp. [124.44.15.206]) by smtp.gmail.com with ESMTPSA id x12sm88232620pgr.55.2019.01.07.13.49.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 Jan 2019 13:49:22 -0800 (PST) Date: Tue, 8 Jan 2019 06:49:19 +0900 From: Stafford Horne To: Linus Torvalds Cc: Guenter Roeck , Matt Turner , Yoshinori Sato , Paul Burton , Greentime Hu , Ley Foon Tan , Jonas Bonn , Stefan Kristiansson , Chris Zankel , Max Filippov , linux-arch , Linux List Kernel Mailing Subject: Re: [PATCH] make 'user_access_begin()' do 'access_ok()' Message-ID: <20190107214919.GO3235@lianli.shorne-pla.net> References: <20190106180927.GA11993@roeck-us.net> <78e3717b-0604-3d5f-38b8-c523e392fc76@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 07, 2019 at 10:05:12AM -0800, Linus Torvalds wrote: > Gaah. Re-sending this for the kernel mailing list just for posterity. > I keep replying to emails that had the mailing list address wrong, and > then my reply will have it wrong too. > > I will learn to fix up the address just in time for this thread to die > out, I suspect. > > Linus > > On Mon, Jan 7, 2019 at 10:02 AM Linus Torvalds > wrote: > > > > On Sun, Jan 6, 2019 at 8:05 PM Guenter Roeck wrote: > > > > > > Of the above, my test system boots images for the following architectures > > > in qemu. > > > > > > - mips (32/64 bit, big/little endian) > > > - nios2 > > > - openrisc > > > - xtensa (mmu and nommu) > > > > So most of those are "only" the "macro arguments used twice" problem > > (although openrisc also does the "arguments not quoted right"). That > > doesn't cause problems with the new commit, it's an independent issue > > that could cause random problems elsewhere Linus, Thanks for pointing this out and Guenter thanks for testing. I ack the issue on OpenRISC and will send a patch for review in a day or so. I'll also do an audit of openrisc to see if we have similar issues. Next to access_ok() is __addr_ok() which seems to have the similar quoting issue, but I don't see it being used anywhere, it's also defined and not used on: arm, x86 and csky. It is used on SH. OK to remove __addr_ok()? -Stafford