Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp919313pxb; Wed, 29 Sep 2021 12:30:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkj4LJQbxqguDah0mvdOWMNk0oj3AjZFSmClYzsXOYPFcTXKtssCwTTklzjq6AdKpDYUgW X-Received: by 2002:a17:906:80d:: with SMTP id e13mr1785052ejd.492.1632943843000; Wed, 29 Sep 2021 12:30:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632943842; cv=none; d=google.com; s=arc-20160816; b=Ml3XveJAmekH3pijBwQS3OFEOdK//aw5yBD5yh4njZYTXdByy1tLJ4TrxCAVOrLqh9 phDTTtvn+/4NGt5EtVvpXMtIJjxybJCFdWPK9+CZszhb6nZylveBmFFV8Iy+0dDWUulj 4SsHlU1lda+SaOYnN+ZVcTCBAUlDV8aQ5K28zxbsAQkkNyS0BFmZGM7Z1OpU9LMQvxLf 2FaFfAmlFdi/Hm5lFFwAPevwkMCpBxiUgGv70PRT0Fz0Oyva9KcmWp31U7x6PWVZsahZ sb/MXrhr7t8cCYjU++REy+NiDxs/GRTlG0CkA5g6Mdw0qfF+8zsBQWHwRI2mdRf0vdm/ 2DHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZBqKqxvW5lKP+7Ghi+ei0HqWIxJ8KbDl1f8APQkWb04=; b=kIDJUW1rJ+e9HDpXycG9pACIPsfkvv+/YXcnQ8dwLJW9TfcfDgJ1EDE4n6sYovtXpb fTlKMCcliIoRkJjUndcTvXClnyNNFdtt67+DjK9R0MA2HbYZ3sDGerIUhdB+TEtNnKNb G1vu/e7FvRtqMvSn77iQQQAZfjAjOeFMQ6wlybH7tTbOGxfnVjq9PDUnlPcGgarJ7dbN OyBfzKoPOejdD/M7QcVxnkNkKOBi8JsCMRh0JOhc5b2Bkm40Tt+a2hKA6UMDsPYC9X3F ojfwOMwji6P1EHbj0x1ihwHH1/1PouNq95DlnOinxuTePGwmc9tFg9zBaQQTS3iOQTd5 tS+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ePLitTl8; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k4si894501ejq.644.2021.09.29.12.30.18; Wed, 29 Sep 2021 12:30:42 -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=@kernel.org header.s=k20201202 header.b=ePLitTl8; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344865AbhI2RuR (ORCPT + 99 others); Wed, 29 Sep 2021 13:50:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:45176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343623AbhI2RuP (ORCPT ); Wed, 29 Sep 2021 13:50:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F37A86135E; Wed, 29 Sep 2021 17:48:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632937714; bh=482/occB/yS+/Jqx2F4SR9dzkauGgE6lzjrIHfobhGE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ePLitTl8YgG+Urin9jhiok61bqG+AT1DOcH3WjXAWWOipp8vL8uRFWK9BcmwjIrBx p2GcbVIHb2tNyMyLORy9bxIN46uoV8CVK4F15I4b15V+YJhUn3xWmtPGK88BWur24/ VFeV1wEawtNX8ED+K0haxqwIe3HvegAIkUge0MsvKqnZakdpQ7HKXGYvoEEowmTbLX ncOApACSk3iF5znYKHMq9EpJJneYDd0KT4WzbAnRD/zAuFnd4Daj2x7xtyKc9l05I4 LwNKk7TfH2ccD8mPwMuWfByITu1w/+vnZ/FlCGDSAJA1BYBuC1yj3OXHgbXwcBWN7k YtPZvKVReuEHg== From: Will Deacon To: Amit Daniel Kachhap , linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , Mark Rutland , Vincenzo Frascino , Kevin Brodsky , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arm64/traps: Avoid unnecessary kernel/user pointer conversion Date: Wed, 29 Sep 2021 18:48:22 +0100 Message-Id: <163293026050.926465.15015359578646677100.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210917055811.22341-1-amit.kachhap@arm.com> References: <20210917055811.22341-1-amit.kachhap@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 17 Sep 2021 11:28:11 +0530, Amit Daniel Kachhap wrote: > Annotating a pointer from kernel to __user and then back again requires > an extra __force annotation to silent sparse warning. In call_undef_hook() > this unnecessary complexity can be avoided by modifying the intermediate > user pointer to unsigned long. > > This way there is no inter-changeable use of user and kernel pointers > and the code is consistent. > > [...] Applied to arm64 (for-next/misc), thanks! [1/1] arm64/traps: Avoid unnecessary kernel/user pointer conversion https://git.kernel.org/arm64/c/f5b650f887f3 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev