Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp624384pxa; Tue, 4 Aug 2020 13:53:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpmZBuoT6NTVCuJVi4NJItLhMrrWm99rscEHCqoBL62J7kJ7H8L9bnWtl5Dgnywg8ecHUm X-Received: by 2002:a05:6402:1218:: with SMTP id c24mr12188296edw.44.1596574393592; Tue, 04 Aug 2020 13:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596574393; cv=none; d=google.com; s=arc-20160816; b=Js34no3f8BjI3oBs3VaQ7ZeMtpgGv+mLY7h2UlXRdJyt9VfujDugoS+J03K6I8m8j/ 5qL4af39d6tY9ldd8/UPB+vDeUfVAgwNFFSknR94d2yMfopdSkdXjVKQBWIrNMT4IJiQ xifj9QSmv4VKTU/8r2+1KHmqb14XhecT0RsE42rS6/nLyX7J1KwxQyIo5WsOoZC0Ou+Y Uv9LFqqguureEAqVoj+7SIzfNBvN5hDFB7XVg0sPEgNW6xza8zk3pHTObY6S1ZvYBHdz oifqZgHg0aZVt7WPSV5fvZKI6g+6rlOP/EE9hPr9fCdE87Io2CryoCwPYkQR0NWDVSSu Jh3Q== 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:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=KkI8LyHYPiT/h3NnMBo5llKwufDfy44GU0em0whdiHo=; b=PZhkGReXEL/gVho4xx16DkrIPf+81+pPKuY5KmMrWqy09VAX2BVsdVZWG+D47sTgwO K7Zd+tjRJJ9IQRgOooyO95u8zQtVjykCgW7Pz7lJpsm5B+F+pkFHlxNH/Hw9/fv9ixZK b0BS9Spwviot99RL1AnHpEL/UiGBrrww/3IQ1Iqadr1+rVtttJnaluIRFrr7tlP+i9ur sHieInidQLTpxtouKl3sJvx6YQkGcAYpkrLuTY4mvSSPr2u6ApdrVtWlD9bPwCiinoGX 2A+e3RGLranRCbf4RWqHBF4TVf9/YqPv8x2uFydb5ti+v9/PwaT+U97+rfhWTWDpxbx5 JlBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N3nUdOps; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id i7si6390780ejo.230.2020.08.04.13.52.50; Tue, 04 Aug 2020 13:53:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N3nUdOps; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727962AbgHDUuj (ORCPT + 99 others); Tue, 4 Aug 2020 16:50:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727124AbgHDUuj (ORCPT ); Tue, 4 Aug 2020 16:50:39 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B525EC06174A for ; Tue, 4 Aug 2020 13:50:38 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id a26so18167955ejc.2 for ; Tue, 04 Aug 2020 13:50:38 -0700 (PDT) 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; bh=KkI8LyHYPiT/h3NnMBo5llKwufDfy44GU0em0whdiHo=; b=N3nUdOpstU6tgvlbaZ/Vd5Np5LpD5/A/embmd7N8aOzXsl7s+P7D0Divmm7dFugl7D /7e+Nb3uchaRfzeevOYDdWbFPiQMCmqkeud32UoqnkEQeQtXl6DX7yjM/rnerZEfSE8N 2+oMoDhNuPtZY5WnljVg8cEv+RkFWeUKZ+B9iBA9USpMe2DhREho5nmjjE02gsjOxt4a p0cwYS+gl6C/noiagQyf2FdL1wxAmF4kr6fPgY4VcWMhsvWF3hMxGIfjtwXL7/dBZD2y YVgN+7n4q/gPj0BgeLCrGKyvPq70CkWuZWD1/8mccmNcqIuAb7EBLYKvCQffSRASuk/c WWtA== 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; bh=KkI8LyHYPiT/h3NnMBo5llKwufDfy44GU0em0whdiHo=; b=CqRY6C5ZU/kggSgwsYz7NqC3WXmhfAjNMSwFxxkZh326A7s3XBL4Mdfep1GvZF2eDA uqGbROd1sXYaJAWBLwuha1ExlzDSR7wEfXw86pyPjarBbqzQeDu3zZHfaSte7AkTGnbC hwb+HtCLY20CGzQ4z70x0lvIHJMqiqnE4B4gkpw8YldGtqSEssHinI0cB880rprsbEOh dnCndVntQ83Rx3IV1NPOX/7gvUpOLkvvDvMeYJ8sR/+pwgkV6sUpYu4p2LjTAlM5GrSp in+tVlFXgZOrrf0NC5S/ryhesR/Y+QYF3rV9BZ7RTnnrMOcPjLP2mtng+0r4L7hRhfOg mzmA== X-Gm-Message-State: AOAM533Lmt+swcEfZOoUbuDDP+dZ3bJ5PcEdXnxF9l+INOx2WKIlefTN F056PVy5VHENDtJKRa6oSiU= X-Received: by 2002:a17:906:2801:: with SMTP id r1mr4018755ejc.17.1596574237558; Tue, 04 Aug 2020 13:50:37 -0700 (PDT) Received: from ltop.local ([2a02:a03f:a7fb:e200:d068:a44f:fa3b:62da]) by smtp.gmail.com with ESMTPSA id f22sm58218edt.91.2020.08.04.13.50.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Aug 2020 13:50:36 -0700 (PDT) Date: Tue, 4 Aug 2020 22:50:36 +0200 From: Luc Van Oostenryck To: Stafford Horne Cc: LKML , Jonas Bonn , Stefan Kristiansson , openrisc@lists.librecores.org Subject: Re: [PATCH 6/6] openrisc: uaccess: Add user address space check to access_ok Message-ID: <20200804205036.vgy7h3mmojzmjihs@ltop.local> References: <20200804042354.3930694-1-shorne@gmail.com> <20200804042354.3930694-7-shorne@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200804042354.3930694-7-shorne@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 04, 2020 at 01:23:54PM +0900, Stafford Horne wrote: > Now that __user annotations are fixed for openrisc uaccess api's we can > add checking to the access_ok macro. This patch adds the __chk_user_ptr > check, on normal builds the added check is a nop. > > Signed-off-by: Stafford Horne Look good to me. -- Luc