Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3416002rdh; Thu, 28 Sep 2023 10:54:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrFMfZoA7LNHnG0l+N0NLib3dhfTYpIN8dt2ol0kOYQLcDkMLUuR1LIsTe7xyIF6ssaLT8 X-Received: by 2002:a05:6902:4e9:b0:d81:69f7:1732 with SMTP id w9-20020a05690204e900b00d8169f71732mr1618617ybs.9.1695923695183; Thu, 28 Sep 2023 10:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695923695; cv=none; d=google.com; s=arc-20160816; b=IKK6V8ePfnHgwC/LNS2HXD8CfkKKZcg+Q5fXH408D4ITEZwNbCMb3sPnbAdS41pRJm elJrg7vQU3pG4lI7h2jmKDcqYexIVUhszVC0smH1grCnsICjQcyRkUcCz7qmmpjKDudR G20rKYpqG5tLsdkCJ6SFESeCkdsZYU37386tnP7d0tbujWVmqc0qCXmLUSfrkY7SVFxf 1x9TzovLHZGyej7JI8pvXZXVpNnq9WoftSFDndA3SqWNcg/hNWFNgqePUOBRvZ1BQkfB pLPmA56VBdoOeGs4qwQr5cxHv2EmrihM7k/PDb5Dn84X9F306Gwo5COHP3FfFTWItSKV zbbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tPU8iyjpgSIBCOSk7Wcxg0E9kh+miOLhLUIx3QkgCHU=; fh=GyquttGJW7Ve9HLEKAXsFCVR/K0CAR3cXeslA2HHq0s=; b=o58WbRqSwRJORLHXcvdqUqNUGkXKMnMVryMS57gqpvGvoluY9G2fosH1p0bMtgwTnh 0Tg4THdgIs6h0hSFEnDpDDG4GCUOVUdDuaeK5I0aHY2vN5D7RCV25nNXs+vGJRU0x2H6 Tqel3KlCDj8u/1eKfBE5h9ZcDfP3e2tkk4HRpd0xHPKj6I0WPihXqu1nQaGiuLvYuK9P xYOHdYYEUC9cButMU2SOPs2PGAKBJGc1U9P9efMXXh3VDdWr+/5e2Y2uOkMqLSOo0fTK pVtLKB9wjjXjMgEALfPiqT5cFnF3JwgAFvxTmkgeGcVflXFPVzKSOPKFuRu8T6l+ZZk4 lusw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=Ll1gXe5e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id bz14-20020a056a02060e00b00565e424cbc7si22031382pgb.109.2023.09.28.10.54.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 10:54:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=Ll1gXe5e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 9560083BD9AC; Thu, 28 Sep 2023 07:47:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230291AbjI1OrN (ORCPT + 99 others); Thu, 28 Sep 2023 10:47:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjI1OrM (ORCPT ); Thu, 28 Sep 2023 10:47:12 -0400 Received: from mail.alien8.de (mail.alien8.de [IPv6:2a01:4f9:3051:3f93::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F6CB180 for ; Thu, 28 Sep 2023 07:47:10 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 1CF7E40E0198; Thu, 28 Sep 2023 14:47:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id N5pJ5cn_zyMK; Thu, 28 Sep 2023 14:47:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1695912422; bh=tPU8iyjpgSIBCOSk7Wcxg0E9kh+miOLhLUIx3QkgCHU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ll1gXe5e3fpQ+szMHmOHc//PTgpilvT7S57e0IhATDq6tDehQ1o2EgoeCSI3zAsOv qLVwdxpZ+qYC/b7BX0RvHDqR/ZJh9mBvjVSE2WZv0pIlr84uYoOdc67yRLc+Eo+hE1 v2Pg11lRg/BSvQU3bFmybtXtMo0YECtYBA5cpNRoVipS9y1xGTtLH9BZr2Fi4ONlMb uGYzpt3Yd+6AnMrLawD9QtPwfC8B0eRUH3Tpy50UTZZ8oFios1DjxXwX+3aeNWQku0 A10Gxc28sw7EpIUasKSPCHEj2tyXssapZOMiyrYxvAcxlDTGoD4imkyj0SWvJBtXjU 39xT6FcjXg2qgoS/js4We3RiaJNc6r+iQbhDT7RWlnU43MNPbtHmBHoY6I3YITtohr VckEzdycdx+VfDUprobZdo3u3ga7ikM0rxh/prcT9/gqYvNnJbxVESsVIS8V/1lU2T Q9WYW0nN+FHfenvuPDPLDmqaDZc2aDwRyUGhNMSRHdkIyfLEVzsgTxPl63Q1F73s7e PDU3q6FHB8dJkwgh8Cp+rCpGcmtUdWoetVfw2wrus17tp0nL6mHg8Ei7V7KtFQrsFi VV0DsvItSODlgmWqQajBBVIxGbjMw43m0FrOGyXk9cWLoO+8AGwt8PnhXmwH2QTvEQ rI6+ntonm/tg4EWbBwe1M3T4= Received: from nazgul.tnic (unknown [88.128.88.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id D96CC40E00B3; Thu, 28 Sep 2023 14:46:41 +0000 (UTC) Date: Thu, 28 Sep 2023 16:47:07 +0200 From: Borislav Petkov To: David Howells Cc: Jens Axboe , Al Viro , Linus Torvalds , Christoph Hellwig , Christian Brauner , David Laight , Matthew Wilcox , Jeff Layton , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Dan Williams , Thomas Gleixner , Ingo Molnar , Dave Hansen , "H. Peter Anvin" , x86@kernel.org Subject: Re: [PATCH v7 02/12] iov_iter, x86: Be consistent about the __user tag on copy_mc_to_user() Message-ID: <20230928144707.GBZRWR693kYmj8Z0NX@fat_crate.local> References: <20230925120309.1731676-1-dhowells@redhat.com> <20230925120309.1731676-3-dhowells@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230925120309.1731676-3-dhowells@redhat.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 28 Sep 2023 07:47:22 -0700 (PDT) On Mon, Sep 25, 2023 at 01:02:59PM +0100, David Howells wrote: > copy_mc_to_user() has the destination marked __user on powerpc, but not on > x86; the latter results in a sparse warning in lib/iov_iter.c. > > Fix this by applying the tag on x86 too. > > Fixes: ec6347bb4339 ("x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()") > Signed-off-by: David Howells > cc: Dan Williams > cc: Thomas Gleixner > cc: Ingo Molnar > cc: Borislav Petkov > cc: Dave Hansen > cc: "H. Peter Anvin" > cc: Alexander Viro > cc: Jens Axboe > cc: Christoph Hellwig > cc: Christian Brauner > cc: Matthew Wilcox > cc: Linus Torvalds > cc: David Laight > cc: x86@kernel.org > cc: linux-block@vger.kernel.org > cc: linux-fsdevel@vger.kernel.org > cc: linux-mm@kvack.org > --- > arch/x86/include/asm/uaccess.h | 2 +- > arch/x86/lib/copy_mc.c | 8 ++++---- > 2 files changed, 5 insertions(+), 5 deletions(-) Acked-by: Borislav Petkov (AMD) -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette