Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7224483imm; Wed, 27 Jun 2018 23:25:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ1D4XJcHm3Mxs1p+TbGnOPLd8irBenMO63Dfh0wTqbheHhGRCpVXz5y/qsWQjakroyrTie X-Received: by 2002:a63:3201:: with SMTP id y1-v6mr7850266pgy.419.1530167104902; Wed, 27 Jun 2018 23:25:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530167104; cv=none; d=google.com; s=arc-20160816; b=S/LOFWEEShIpdaFvvA/mWNXhHpSqQPTTPRsw8ziQWJbaRXUdMfHuWEFzghObYufh6K xRD1hTi703mYmEkzbbNUW8LaNQvmyOLZ49eO4Hf3WQ0kgkupUjb7RSkEptJFjzVmgF+S JOsvr0JMpDu0SeI/26pyqQSe10tysXVhBsyCQyRCyqdD8ApnqEm0uzHEwLmotYAL+2MT zdZ6U5QIxnN3ImzMyRHunLl6W/aUVUZiS/IbC+soIx9jyyaS+Y88fisqI6pX4Fh5cWPk DSTZsP07/wRKLUVF0XutXgukNZtpiG4DpqXYgM6GHR5g+SHo/AhSBX3728QBj1WfoBvm 16oQ== 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:arc-authentication-results; bh=SUtMrg8N0KzkoFGndvfU+Uh3gV6eJJBxlHd2ncQ5Mh8=; b=khWI5lwviMWf00cNjDXq9W/QmMqv9Xoa47dGwpvOtxYLTWsGrenjey5C6WLVxS4euT si3ARSQf5o+rnYHqzoqVfCnlFZEoVQin0V3mKXIPKC5/eQWEeNFla0o/BZgCNhVDs/Bl U+IuhSmGOFQMlFsRegypd/5PKvArY8LwkD8r5I1JYi7RVIYV7cXrbpBRmUoMC92wkIS3 k1pWNt1a3GRVVCHX+cVmefdLjnwfwEALQ70FrrbU7W+4EX4ixxKZY7t/Ss8wD6H9R6Vd u1qDT80OJhXNOeQLqPFu0CUbqYjHh55YhnfF4bGQw/lAtgaFOZ3t/F2br1D1xRbddJsD 9Q3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eh7maeiF; 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 e185-v6si1000223pgc.318.2018.06.27.23.24.50; Wed, 27 Jun 2018 23:25:04 -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=@gmail.com header.s=20161025 header.b=eh7maeiF; 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 S1753531AbeF1GSG (ORCPT + 99 others); Thu, 28 Jun 2018 02:18:06 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:36041 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750820AbeF1GSD (ORCPT ); Thu, 28 Jun 2018 02:18:03 -0400 Received: by mail-ed1-f67.google.com with SMTP id t3-v6so4437205eds.3; Wed, 27 Jun 2018 23:18:02 -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:user-agent; bh=SUtMrg8N0KzkoFGndvfU+Uh3gV6eJJBxlHd2ncQ5Mh8=; b=eh7maeiFQWnT4zPf8keKMuse4+qjQW5cadgn+b4VFUjD5UrLHnvan0aYt/eBct90o7 eTl9fYEfwFDlqIBalI7S6NUmYhwxLW81+rCx73BHaygrlQLINrhK+FTytUwEyxfiw9ou Dzh9ZKx1PdS9RZ6tZs0qVCbqLnUJ3Gje1zZ7vGPG3wZit2bdk0ZVxerCTNvMyIN8FF+P nJJD+5+0FVndagUXzcynWHRQFlajbOikFID7l6q8qMSeVuNciOfR4lpjmYEbjrGLk2Dz DHtndMLBkQI0nXNQGRffbOdxkFf65J3QAKoCcfaq5nQJa87kJmVKC3zKdqwt2WSKIdeT 0BFg== 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=SUtMrg8N0KzkoFGndvfU+Uh3gV6eJJBxlHd2ncQ5Mh8=; b=nIO5JvzBSpn1xClSVQAVJTpozoE23Bkc3rhEVKqJ9w2wIIQs3Rx7+4l8zet2QhD4G+ oXG4gEJBmazojk6mCqlTjl3tcXw0k091iBk3PPg9JCMw6b3U1fjv4Th/D18KFF7qAdom +iitBEfSwRBJWMQq/psiMlr+XSiZw+/eZwGeg1EfZUJoKNbcmWEdEFIMIrXLAl8tSGgo UV4dlRHyLQbOqE3iOx3rDIRZKZZ9jmi5p5YWLrCu0B1p8WX0JP2Otg9qfwWirNs2Au3m wH2ygO0WRHCINf7S42ukRlIUWD916Fh6MJ1Juj6mJXJFT3z9ghbzn3dbkZGS4+tnglGL 3VgA== X-Gm-Message-State: APt69E2fCSBRKFhW2cmiOus02PighkDbVlJgoB0mj/qvdVN8J1rgWnc+ QxQqG6ekoen6duQ9pQRsMN4= X-Received: by 2002:a50:8d88:: with SMTP id r8-v6mr7486297edh.86.1530166681681; Wed, 27 Jun 2018 23:18:01 -0700 (PDT) Received: from ltop.local ([2a02:a03f:40dc:3d00:cdc6:6da5:5120:7634]) by smtp.gmail.com with ESMTPSA id t3-v6sm2564361edq.50.2018.06.27.23.18.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Jun 2018 23:18:00 -0700 (PDT) Date: Thu, 28 Jun 2018 08:17:59 +0200 From: Luc Van Oostenryck To: Catalin Marinas Cc: Ramana Radhakrishnan , Andrey Konovalov , Mark Rutland , Kate Stewart , "linux-doc@vger.kernel.org" , Will Deacon , Kostya Serebryany , "linux-kselftest@vger.kernel.org" , Chintan Pandya , Shuah Khan , Ingo Molnar , "linux-arch@vger.kernel.org" , Jacob Bramley , Dmitry Vyukov , Evgeniy Stepanov , Kees Cook , Ruben Ayrapetyan , Al Viro , nd , Linux ARM , Linux Memory Management List , Greg Kroah-Hartman , LKML , Lee Smith , Andrew Morton , Robin Murphy , "Kirill A . Shutemov" Subject: Re: [PATCH v4 0/7] arm64: untag user pointers passed to the kernel Message-ID: <20180628061758.j6bytsaj5jk4aocg@ltop.local> References: <20180626172900.ufclp2pfrhwkxjco@armageddon.cambridge.arm.com> <0cef1643-a523-98e7-95e2-9ec595137642@arm.com> <20180627171757.amucnh5znld45cpc@armageddon.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180627171757.amucnh5znld45cpc@armageddon.cambridge.arm.com> User-Agent: NeoMutt/20180622 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 27, 2018 at 06:17:58PM +0100, Catalin Marinas wrote: > > sparse is indeed an option. The current implementation doesn't warn on > an explicit cast from (void __user *) to (unsigned long) since that's a > valid thing in the kernel. I couldn't figure out if there's any other > __attribute__ that could be used to warn of such conversion. Hi, sparse doesn't have such attribute but would an new option that would warn on such cast be a solution for your case? -- Luc