Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3479686rwb; Tue, 16 Aug 2022 03:58:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ieWfLg06Z0GZQCPO/+PbQ1otXVL0XpeCB8cLTO1v27d3bHsWyKia0Pc57d4hiHUGbWYAA X-Received: by 2002:a17:903:228c:b0:16e:df74:34e5 with SMTP id b12-20020a170903228c00b0016edf7434e5mr21520767plh.49.1660647519756; Tue, 16 Aug 2022 03:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660647519; cv=none; d=google.com; s=arc-20160816; b=muYNmVDsANQF1ciLcU2onUv/6+BJxhzHbUAmfsEvES8MjkxVj3RuFRl4qsD7KScgLP N7xCDTN2i5yH+SHyGph0c3O0dPBEz4a6x6Zi9kDbKGRMpswJ1QGP+0JB9H84cXi7Ct1e ukomqAvw8VcqKNqdQnlSad9CGsJoGhZ1n1JMkXvCI+yI1UXHev2WGYGpwtta7gXJqb42 /3bEjsFpFtNvhaZILlnJk3Eg31lxw6SgRUaH/QqjXoChKYcgBn2aEEFws9bWxAYM1B7T YLxNWEO4nNJKbHH/BSY8J9NC/6MN28/YzejYlaW/OK6b4xff0v5AbWtvGi9hk0gBLEMa ytDA== 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=UJbAd8O4HX5i1l/yaSsdF2PEtPtVJyFAHsLiJcf479M=; b=Twow2YxTjkVTkL6x+vBQjM7F+3A4GBDVaCHdsLCTU79aewdhRgoaYaOHsUP5anb4vS zFjznhuvQW0Hqzxad2CNPCLksZR+ZafRukHZ7/Pp+dppGD4Q7CTRyVxSdRvo8OE4TRD8 JKmFZwyY5unhcvOidDVs4aE3cnRU818Vu8CT0OknBHQqHoDCMvndJPHtEZacBgtSHraz hITiKj7zG6AaBQE4mHZ1ogpvXAAiY/a1gSWYpv9vf5YFmwxi9ipfBOBvj6e5DUVhrCpd u8Q3Pf5vGQiERzCuCdXWvHzjY4aewr35KFnjIrTxnaz6YxiLTcQSZtcK8ygivwhN3+GP 8+ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1HciwKEL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s14-20020a056a0008ce00b0052ad122ec59si14226633pfu.353.2022.08.16.03.58.28; Tue, 16 Aug 2022 03:58:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1HciwKEL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232022AbiHPKyp (ORCPT + 99 others); Tue, 16 Aug 2022 06:54:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234366AbiHPKyK (ORCPT ); Tue, 16 Aug 2022 06:54:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D964F44565; Tue, 16 Aug 2022 03:22:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 784C76134E; Tue, 16 Aug 2022 10:22:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2FCBBC433D7; Tue, 16 Aug 2022 10:22:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660645335; bh=H9sn8W3Nl/K9sZUDtrS3iVj49MLZG8SuRBSyKKzUtPM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1HciwKELvBGq1ly7f3V5Y/cVz1wkfoFVSTHRnVXCA1ZZqW0dAH39qholSTrLRUGBP bJqwqsRLmLOP6xY+XQSewKVR+KDdJFB9O9WQ0DPSuEsZN68WEOjR26TKoNTcQFBnc/ S/6aE95U6/afje3h9MpcWpVuRCnhEGUIBw/j5vmY= Date: Tue, 16 Aug 2022 12:22:12 +0200 From: Greg Kroah-Hartman To: Matthew Wilcox Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Uladzislau Rezki , Linus Torvalds , Joe Perches , "Jason A. Donenfeld" , Kees Cook , Sasha Levin Subject: Re: [PATCH 5.19 0246/1157] usercopy: use unsigned long instead of uintptr_t Message-ID: References: <20220815180439.416659447@linuxfoundation.org> <20220815180449.423777119@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 15, 2022 at 09:06:21PM +0100, Matthew Wilcox wrote: > On Mon, Aug 15, 2022 at 07:53:22PM +0200, Greg Kroah-Hartman wrote: > > From: Jason A. Donenfeld > > > > [ Upstream commit 170b2c350cfcb6f74074e44dd9f916787546db0d ] > > > > A recent commit factored out a series of annoying (unsigned long) casts > > into a single variable declaration, but made the pointer type a > > `uintptr_t` rather than the usual `unsigned long`. This patch changes it > > to be the integer type more typically used by the kernel to represent > > addresses. > > > > Fixes: 35fb9ae4aa2e ("usercopy: Cast pointer to an integer once") > > Not sure why this needs to be backported? Odd, shouldn't be, now dropped. greg k-h