Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3446370rdg; Tue, 17 Oct 2023 15:29:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVopamjkev7Y22e09EzNNWFPK6wRrhOMDZb1tSUcULec4lDlQsaV0tT6kgHx/9BL1vOucV X-Received: by 2002:a9d:77cd:0:b0:6b7:52ce:ff38 with SMTP id w13-20020a9d77cd000000b006b752ceff38mr3539328otl.16.1697581782314; Tue, 17 Oct 2023 15:29:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697581782; cv=pass; d=google.com; s=arc-20160816; b=yXHXEWt2eJMaa4ZxCZZCXiP9UgrnBE8u3h8LgimmXFYrWgBI1GQON9CqRXsh4m8Rkw 5zRjanaFrqJGVD3jQSREqba6YJHbbD2IZCPKbvLV9USJKXz6UH6Vv+EUFNIQsNye37US rcwNjyD0JJlq9w39j9AJb7/NEoBIshWOqcQh5v2mV8n5/jQuv70RSMxcE68FJ6Odmpe8 JD16TqbTZdNB3zxvqNMSvXkGZRlNPSezfBzrixa18rw4mJYrK9bBCxHU65r202webdCd j8t69fEtn9cSKxpmXQiYaf2KBEU3QU31lTkp1Z0DhHGZC6DuBe1vJ3TO/kn9vL+KRiRK GqqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=7YVrS5VSVP0Kl4IUSfdWeYyaA6MBZlqXX+XQsn22O/c=; fh=FBuCwIpxDFOuStwTOW+jYExl1Bs0RUKxmY2CkC1xYs8=; b=ABJd4ii2r0WQ92QBZy+X08htg/iNu211uAO2o7FT2PgQ6OyM4F2Vvpq4Y0jgcDAwGX QyrdtYby1GsVrYHQPBpXYCD5ywrX2/2e4SVBt3L2RGsb0zl0pla+9B2egGEP05soxISn CyPvsSTXyNIEaVP6q0M3e9zP6DJm0QWDxyhMKUUu3yRew9Y8YIW47kf+k3koFBSHyUss LWKwdd9eGmAcgQR6HtKyIsG8/HaHnqgpRAw/An26seHHuO+EkwsL2CK0dpRAL0usoai5 I4T9s3y/DrKAJVjM/VjmyxNFNAJzFa7qFQ+apOr5Hq9iiUuFuwRim8vIn5xAt7dEYib3 5gbA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector2 header.b=rOjeZJZq; arc=pass (i=1 spf=pass spfdomain=vmware.com dkim=pass dkdomain=vmware.com dmarc=pass fromdomain=vmware.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id n189-20020a6327c6000000b00565ec2a1e2asi743048pgn.760.2023.10.17.15.29.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 15:29:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@vmware.com header.s=selector2 header.b=rOjeZJZq; arc=pass (i=1 spf=pass spfdomain=vmware.com dkim=pass dkdomain=vmware.com dmarc=pass fromdomain=vmware.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 4F46F80226BF; Tue, 17 Oct 2023 15:29:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232593AbjJQW31 (ORCPT + 99 others); Tue, 17 Oct 2023 18:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230056AbjJQW3Z (ORCPT ); Tue, 17 Oct 2023 18:29:25 -0400 Received: from MW2PR02CU002.outbound.protection.outlook.com (mail-westus2azon11013008.outbound.protection.outlook.com [52.101.49.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C6FF9F for ; Tue, 17 Oct 2023 15:29:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Oev2sg7hhSh4bGKRF5wD+T7W7y5mGSoiPHRFbHna9JCsIzBrG6maiV2F6fuicucr3Gz6MDww9jxElD+o+WwJt+mXr9CiHj35IK6LqJWZmNNgZw8oYd1bGwYR18+qvkTSqLgujQHuhAEPUZWGMYywkWQMITAOMs1ajzXWfICyJkxH5vpj+Rk0MQA5gRRZzrdcN3xHwEXGXyPWMBaXIAwWS3j0PGB0Vn10sq5cLuZDLAseU8qAvQq+EJ0nKYBtEFt9UXgq87czEfDQsIYsyPhoejywji65+PTGHfYJwk0vj9kO4hGwpldjw5e22EpeU5DNDtRGTh37RUjxNBKSEXHdpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7YVrS5VSVP0Kl4IUSfdWeYyaA6MBZlqXX+XQsn22O/c=; b=FEdE2kamflo7/JJ/M82vX/6zn98HpBRi2Dr+UkzH6mns4WeWA4sl3ZWE+AzNbtJZ+OlCoIPJj/SSzQy2TgVr1CQiAqifumm4BRG/tw5Gx8Mm+qShdJpphdsYIUwl0pdGZFyl6c0eUjy5vInkOYjqS54VfFuLrexqYls9zWOsT8U35DJreNKRxm5GWDJL3MzTldLCIMx7x8Zfn3c/SwI68g9WYBhNSj64tJdrvrQU+c3OXgDpytG+X/G7CaWphqR7UfCJwQi31cDVOluxNLBOiB7AQTldNmrtzINyyyr8lpg5In+sT7nRqhlLk+DtsCABSHwCgbmN6IvVitCqVPGmkQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vmware.com; dmarc=pass action=none header.from=vmware.com; dkim=pass header.d=vmware.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7YVrS5VSVP0Kl4IUSfdWeYyaA6MBZlqXX+XQsn22O/c=; b=rOjeZJZqqrcb9gWN33qI8HcxPIHrv8KN2zHHVTOa+yKYrT0+h77eJFkiIGxpDoN4wXqcU0tKqgAemvpcQNnVVSVhBcvvp9Mp8qym/xQEQNlMWogOedS+UGvX7VqNAs5a8xt0U1shZ0T5nC8RCSbBZ+VP/jI7ypmwv2FeUePdBWw= Received: from BY3PR05MB8531.namprd05.prod.outlook.com (2603:10b6:a03:3ce::6) by CY8PR05MB9524.namprd05.prod.outlook.com (2603:10b6:930:9f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.36; Tue, 17 Oct 2023 22:29:22 +0000 Received: from BY3PR05MB8531.namprd05.prod.outlook.com ([fe80::e6fb:726:9aa2:fa13]) by BY3PR05MB8531.namprd05.prod.outlook.com ([fe80::e6fb:726:9aa2:fa13%6]) with mapi id 15.20.6886.037; Tue, 17 Oct 2023 22:29:22 +0000 From: Nadav Amit To: Linus Torvalds CC: Uros Bizjak , the arch/x86 maintainers , Linux Kernel Mailing List , Andy Lutomirski , Brian Gerst , Denys Vlasenko , "H . Peter Anvin" , Peter Zijlstra , Thomas Gleixner , Josh Poimboeuf , Nick Desaulniers Subject: Re: [PATCH v2 -tip] x86/percpu: Use C for arch_raw_cpu_ptr() Thread-Topic: [PATCH v2 -tip] x86/percpu: Use C for arch_raw_cpu_ptr() Thread-Index: AQHZ+5jZGZywpkB5zE2yxvhqDFo/Fg== Date: Tue, 17 Oct 2023 22:29:22 +0000 Message-ID: <2419C44A-2467-4FB2-A6D6-BA49856A9D85@vmware.com> References: <20231010164234.140750-1-ubizjak@gmail.com> <0617BB2F-D08F-410F-A6EE-4135BB03863C@vmware.com> <7D77A452-E61E-4B8B-B49C-949E1C8E257C@vmware.com> <9F926586-20D9-4979-AB7A-71124BBAABD3@vmware.com> <10930088-3B4E-4BED-896C-CA66AB196010@vmware.com> In-Reply-To: <10930088-3B4E-4BED-896C-CA66AB196010@vmware.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Apple Mail (2.3731.700.6) authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vmware.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BY3PR05MB8531:EE_|CY8PR05MB9524:EE_ x-ms-office365-filtering-correlation-id: f0d990a1-29d9-4630-8410-08dbcf6082d6 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: cwXn8SkK3DStAKJxKTldbuJlBbp6Ko6kS4TDk7Sg89Rj5FtxvhBRS0tN3cVD6ulqPKCh9+77ViADf0wbzzchozfDe2hlCEPeJG+m3RG7hVUzQtbxfHnnC46fMKSkinKah4JWUF2l8pOzg4BIqc2z1j2ofcPv1vzwRw/cwQLPyvshEbWpAEsUR8MCHRaVMzIGrG0ErO3W8lByh2Ct3tBjP7focl3xTCz9i47uAxDkQTmc2O8oyi2MSrEK6OEgHAoiRsKyr7MwcqBHXoQnSV2qq8hQ47rHYqBoRkhfFFWiB+JrCKYAa3ejnspO2GO+8tEv4/ydUdnSxJRauYfZNmAXGL1NBI4fNgYQriUINssg79wdHZ4czCg3xqTFIsDIOYc1vfHn3KEeyvBp1YE/WGaAa7ufUMUPLltCdU9968X1eifjCjMGBesOaKXD41ytiOyM8GXNTi3bXjl1N6kUuQPYwBlzu2cQ5CruFFEotdlDxzx/6FAY8X3ooVy3b+eLkPTtdomXSoB4r4cljfo8aCivfD6nExoUZeA6NAxnntDi4pKBCUBGM7fF7WRb3HORP030q65Ga/VudzhWlcf02AqZJWmxPpPLnjtvyiMqob9siyHaUBdOC8TtYBDoJkrc56Qv2w046cfuIioBd20OdV88Oi6ksBzx4V9u2ho2IlM9XtiS4zNYHf7EqvoSIVg3xayQe7okpIUnJeGRZWkrK+YxSQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY3PR05MB8531.namprd05.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(366004)(346002)(136003)(39860400002)(396003)(230922051799003)(186009)(1800799009)(451199024)(64100799003)(83380400001)(2616005)(64756008)(316002)(6916009)(66446008)(66476007)(66556008)(54906003)(8676002)(4326008)(8936002)(38100700002)(38070700005)(71200400001)(26005)(122000001)(6512007)(6506007)(53546011)(91956017)(6486002)(76116006)(36756003)(33656002)(2906002)(5660300002)(86362001)(66946007)(41300700001)(7416002)(478600001)(4744005)(45980500001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?he58VjC6ovse5cu+GoejlfNk05iovN6We37IgfmaGRAUdnBdnO+NHvc3Wdmi?= =?us-ascii?Q?YISye/Kgj1zr43735EJH4YHYw7fXzPnkydQDDJnxa+nb7abvv0SMZtVMbHkS?= =?us-ascii?Q?V2736sqs8L3YzJl+grpauH7yDJbRJPIaXjHn1X6YcrIQzcyzvHkl5UJsWUS6?= =?us-ascii?Q?SeKLcvhp6KjOEd4f7df4lnvJQAQFnzQgrQBxYA7U3z7Pqe4HLaa2KKpu/qJb?= =?us-ascii?Q?ST9/P6w+sQGZ6COoX14YuHpm7P/ZJ7j2kOvOBQyywJNXux1Gfash8j3y785H?= =?us-ascii?Q?TdFaef55TfVfe9XYFCNT98anMAm5brLep64wf1JeZwPttUOmMs3i2NhBH04Y?= =?us-ascii?Q?ClHS24feCaQC3JAfaMjX3v+2b4DWcc+R1UcfRVQ1NIQYJjkq2Yua+DNfj98o?= =?us-ascii?Q?rhTlE0uS/xnVEfATzKjX6/oZwwlLB4c85f3MtcIP8BCNScjtPSJAzgTUsUKK?= =?us-ascii?Q?KHYYbaikRm+2/z6Mp/CxhixLK9z4G5u/Eq1VLen6m4yntC+kINDJ/RvF7a0j?= =?us-ascii?Q?fKfrJ8ko09NVEjI61irUfXjKUP7TTRUjlh5o4oXAOf39yiRgaOoi60c8l8EJ?= =?us-ascii?Q?0CecgrrsmXqrSmta6FHuysWpM0PISde3sVV/TtZN2+cmdoNzsTSTuEK27KEo?= =?us-ascii?Q?jjVmzJk89vciRZsLAWv8JBXwnHdSSt0ykNxr7R4javdWrVkyUWwjXYMM+4Dh?= =?us-ascii?Q?moT9y7bqmsduRR8jxOrvZgXOJ/dxCY6SClziAmtnfY4urFBGFaqzwy2TEAMt?= =?us-ascii?Q?4inna89xB/0v/E9ZeSnLxCsRuNV4SkZht4v1McwYxlCa2YnVjmV4/gckAZ5M?= =?us-ascii?Q?kzs6atuoWATfDtXCBH3BqvRJFlL960W246uTVLQ/dXNRTAqYAbugfMX4B4aV?= =?us-ascii?Q?URjHpyPPNP++N/2h/HASrRRFCB9r702M7PUw5w8GonBAPfoVuO/viLN5alVE?= =?us-ascii?Q?dDdRftehNxNgv9y/z6WQv0UpqOJ33aQhGSBIAWzIImnWvuT5E9gxCqRZ83y2?= =?us-ascii?Q?F9tagEPc1XqrBdnZ4492sboLJzasQhWkPWnAW2s7mgoku8WYrNM4UtWeZ8qS?= =?us-ascii?Q?6UeTl8/C1k2XGKJeZlO4vWYpZeBU4ACzF9xN5JKPJr0Cy6sYuhZ0zrUC5jZx?= =?us-ascii?Q?O7nSH+bJ9NsCeuPYHPaPfeJFke7cwiafzWicrTnKvRxS1kzxL6uvZdHM5dIR?= =?us-ascii?Q?oXJG1APaKnBWvpU6WLHJKZ5pITapDZsWCo6kVXedCr8Nq55S/1s7tWdS7EMj?= =?us-ascii?Q?u6RWY3ZWRBVTC5LMxjGhekDUHI/fen43oDhEZ8GLIWddSybwwSJDfbBce5+g?= =?us-ascii?Q?naMx6jXZoZoprHu4jTTSryL9nRI4t0Q/nW30pM3dw+5GXYfNxDswAY9CBQZ2?= =?us-ascii?Q?HxbRWartXkqCvSyxqTyeGX3oCr7rx5xEA1vgH/iTG4E+WY0HgGqH1Ibc22Ll?= =?us-ascii?Q?efbEmboEogETaDnW0YWl2Qonp60MzUNo30z264eOpESRIpgGNaSHnxUSJP9r?= =?us-ascii?Q?hD0Ip1o/uv4u9xEUHMgrQy3aICgTHkykQxoBSYLKFqWoWwfb0nkCHSYuSFRo?= =?us-ascii?Q?fBNmv5IM9WwpOIpAaICAb2MCEXTGtsYRb1nUF5Jk?= Content-Type: text/plain; charset="us-ascii" Content-ID: <2CDD1EF7A3316F43AC4FDC0534A1E668@namprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY3PR05MB8531.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f0d990a1-29d9-4630-8410-08dbcf6082d6 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Oct 2023 22:29:22.1605 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 1Pt24XMdQ44JsaDO5lhu1ZhrKFfIH7VL+Y6QxfkDe0YSnlabrWea01YURItNQoR1h3dCTAZcAh+PtFbLqGq1wg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR05MB9524 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 17 Oct 2023 15:29:40 -0700 (PDT) > On Oct 18, 2023, at 1:06 AM, Nadav Amit wrote: >=20 >=20 >=20 >> On Oct 18, 2023, at 12:53 AM, Linus Torvalds wrote: >>=20 >>=20 >> but none of this should even matter, because by the time we actually >> *schedule* that thread, we'll set active_mm to the right thing. >>=20 >> Can anybody see what's up? >=20 > Could it be related to exec_mmap() -> exec_mm_release() -> mm_release() -= > deactivate_mm() ? I am probably completely wrong. Sorry for the noise.=