Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3025946rdb; Tue, 12 Sep 2023 22:27:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGn4Pg/A6179CQiUREQSuSoHHf+8eotOQID59yDlYbah0Qw+7jydyn4bf1Nw9qQMfx5kyt/ X-Received: by 2002:a05:6358:9996:b0:12b:da97:aba6 with SMTP id j22-20020a056358999600b0012bda97aba6mr1511320rwb.24.1694582827024; Tue, 12 Sep 2023 22:27:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1694582826; cv=pass; d=google.com; s=arc-20160816; b=A1Lh3ktgV7RbfOFIDEG74Ye0nVnmQpMwQZPPCf0TBDZEqzv42VJI9srMGkk3qSsy68 /ZlZjiUjc0NMyuO94pOOVQFiSV6JAljmYODqP64Bz7NzVAcmB7OtRkXWIP03+lxzLpXN l6OdjIxo5k2dIgcXER/OoYjfGAqY+wUVEj2d/NrIg5sdRAU4+FWf0C2pCfgVvaGp65Gq xJgy7bHgFBkSbMqfNFy2hGawvcvK9AULf5NguUBuVX5FH8l3X2JB7Jz2bnHCkDBV/1Z3 sjp6MjVXEeRliBTer0sR3lNciAB8rGpJ8i4t9FLHTSSZrff6+F4oV/3+CDpC3Qic992A j/YQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-disposition:references:mail-followup-to:message-id:subject :cc:to:from:date:dkim-signature:dkim-signature; bh=e2dLYtEbcCLnKgbkkyS9VKH/E/VEOIj3lp1+qn/wgdU=; fh=JLH2vfug2l2AEc9TDEU3WW4/+DDDH31MaHItCOciO4c=; b=c4LZ6JG7w2xioLwOnHdB5Kt1KNLd43+axf53kHzVEmnbpfBRAF0CNgky8OrPIU8zOj 7f9ziEbZqg8sKTL8m9yiMm+dNeSLX2QQ6DySbt36z/vqnx1C6VDATvD10i4MKIf/42qN 86fiHsuTGY2StDE+LIIWYU9RwT1oWS5l58qxzTqK47NyYcLpvdiEww5jyssK0nev7UbE oxvCCXwD271GfYsuxJL2ufHg8stiUN8D+HsCjOUrCTzoE5fDxPjnzxErK2i1vo6ZK99/ 3x6MGuRJNHUNn986883/FdyfBiAXRX2PP2R0qMsN+P1fLVwrtcd1KZHchdscbtqeEoQE BW+g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=JkG+sg7n; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=BYVGZReF; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id p34-20020a056a0026e200b0068fb6e2859dsi5963374pfw.45.2023.09.12.22.27.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 22:27:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=JkG+sg7n; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=BYVGZReF; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 802868246E41; Tue, 12 Sep 2023 12:10:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237149AbjILTKF (ORCPT + 99 others); Tue, 12 Sep 2023 15:10:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230204AbjILTKE (ORCPT ); Tue, 12 Sep 2023 15:10:04 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65E0AE6; Tue, 12 Sep 2023 12:10:00 -0700 (PDT) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38CHJVi1028541; Tue, 12 Sep 2023 19:09:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2023-03-30; bh=e2dLYtEbcCLnKgbkkyS9VKH/E/VEOIj3lp1+qn/wgdU=; b=JkG+sg7nLY5cuqxZ41teMVvMsOuTX7xZOWdf5WMH8fnEpKCqEQ1d5wrtb4Sl05RZ16kC 3mE3nCcKEsO+TT31Gc7VYpTGZfT1qFycwwclQnjTgMLufGM4ixNJs8PJC6G8jf3jjnfm 0RSRolNIT1P50NZQSNuyC3JB02H37w0mnsat+OY3D68DG0UEbmTouMrSAwHEKhezSUmG hFPEQ06IdgX4wEpB6lW6TWGXXkVxH1IrYxuR6Vy4OkmRA0NqPjmDGwgF/rQcZkui8GAW vH5178ROMnCTnV0CjXUuSvg0tbRogPQk1+GGZM5tkhuFa21iYt4Bn0A2uk19TMi7psOr gw== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3t1jp7crq9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Sep 2023 19:09:37 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 38CIFUE0007794; Tue, 12 Sep 2023 19:09:36 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2105.outbound.protection.outlook.com [104.47.55.105]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3t0f567k4x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 12 Sep 2023 19:09:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BvejvL+GdTwp4iFEszpjnQnecokjtlARq5+LmDRkcdU74FO7P4qvQxNC/UQlMufqzrLVY1SKd7BiITZlJHCmLC0DQK6/cMWyvlfBAavAeF0ODURFB8gd2Z4+gfLr9/pCiHO2w8AlGnrvyDGFNqZNlN02G9Rmp0R9ahAsmLCwAvy8WRJe0I+4lLsyk8O/ufkgGjFmQUtupqLKQjVWLeAcjMqXY6zoWmF3/inQrEREg9lgsHVZ9OEVpP/jNEEXNlN6BftoLzY6PuqDqxbKV8YdzU+tM0w7DTH2E2zXZxibBQsgF8zkA/uIGt8/xcMY7MRtmaCnpMnjOXmDVl//diIAYg== 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=e2dLYtEbcCLnKgbkkyS9VKH/E/VEOIj3lp1+qn/wgdU=; b=MEODOB+hwpecah9S4dkCQfbQltlHfV3jZIM4jsVWh9PJ/mrB1kooxqk+5jba3xjX0CVN1jVO2PIWi2yeUozmD5hzp7zdIGW+p/LJMp9W/uJle9a7uNZ2TE0/oz8nxC0a1M0PjYGpvX8ZifViWuFx7jKXR6kQpv3VF/Z7eNaCYym4nDwKc9I+18Mzxbc1WPwfejLLNr1EZfha0vbalHgm2XdWMBuBuvkL4RCxEtG6Q+L6VE1wxQXRsLdwuZ7lBbI6JL360007oGi8RtfaJSBJUxq4J8ksPnL9+5FS9EqlW+piKV8bUY5kUVM5buQ7NrKgDGGIZOv8kfsp++NdCFhgaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e2dLYtEbcCLnKgbkkyS9VKH/E/VEOIj3lp1+qn/wgdU=; b=BYVGZReFUNUGSVsId9llD7QRu1VjFHa97VoXq/m1KFsupB4k5Bhe0IISW4mPmt0Z1ANnUul8xVWcObSXjYI1t/TSmOHd+/GPWBkz6LejPEIXHBdTuJHeLBvhPW81i2bCerUjB1NQrGkGl06Q60X0j4Mvv8Cvaz/IU4NBXAxSUEo= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CH0PR10MB5017.namprd10.prod.outlook.com (2603:10b6:610:c3::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.19; Tue, 12 Sep 2023 19:09:34 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8979:3e3f:c3e0:8dfa]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8979:3e3f:c3e0:8dfa%4]) with mapi id 15.20.6768.036; Tue, 12 Sep 2023 19:09:34 +0000 Date: Tue, 12 Sep 2023 15:09:29 -0400 From: "Liam R. Howlett" To: Andreas Schwab Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, maple-tree@lists.infradead.org, linux-mm@kvack.org, Andrew Morton , linuxppc-dev@lists.ozlabs.org, Michael Ellerman , Geert Uytterhoeven Subject: Re: [PATCH v2 1/2] maple_tree: Disable mas_wr_append() when other readers are possible Message-ID: <20230912190929.54kxm7wyws7pgcsv@revolver> Mail-Followup-To: "Liam R. Howlett" , Andreas Schwab , linux-kernel@vger.kernel.org, stable@vger.kernel.org, maple-tree@lists.infradead.org, linux-mm@kvack.org, Andrew Morton , linuxppc-dev@lists.ozlabs.org, Michael Ellerman , Geert Uytterhoeven References: <20230819004356.1454718-1-Liam.Howlett@oracle.com> <20230819004356.1454718-2-Liam.Howlett@oracle.com> <87bkeotin8.fsf@igel.home> <87edj3b6me.fsf@igel.home> Content-Type: multipart/mixed; boundary="5aqidbzt6oq7a3jx" Content-Disposition: inline In-Reply-To: <87edj3b6me.fsf@igel.home> User-Agent: NeoMutt/20220429 X-ClientProxiedBy: YT4PR01CA0140.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:d5::11) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|CH0PR10MB5017:EE_ X-MS-Office365-Filtering-Correlation-Id: 681bd913-e2a0-4893-f66f-08dbb3c3cc60 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cbzOenbfYH6hVQ3UT4tpMdPTBeIuba2HvQvGq1LiOtTooj0i3dQjVvP4Hdntyy9YZQ9z3efppJcQPTQdQP3Xt7n/JFyQ2gjxiZAhtLm5ih45iQaNqP65r4+UDwmccGgivJdcEdWKJ7GF+iRvf03mZ6AaOiooV2fM1u/5RmTWjwu/2DJl/DDvufs5Ri0kAZrX7Yo3FePjgnk1QAvYgRsxY7i7QzuYezYoOBynLuwMBMAuRNIBbEv2qo/xJrdtfuxqjIhz9AgdQ0qX+Zoci4A1pdJNTytbeOzSWTFnWdzFFeTaHCRExb/enG+rWGl/Z7bWmyzJvtDVo4YLh9xvk08SZToaMXIkCTYmrm9aEKdft6UF4ut7J/pRMnNJZxN6lJelYu5sVlWsIznJrT2Cwcd5h/joFmU4RvuuRjAqVHF8f5aTB4qjcr8Pm3d5WCoh7MS9Xuf1x1z4zrwT+Xn7SaN7dUv/cYGCW/AbVLYoX8n6BBZ+fhLs9Lz00+V36e6hr2GAqrq8vj6+/onLTVAUJqCZkjNnTttTpznTm5d4AIqOktIUV76/oBwF7R/9E52mDmNiSpx6Hhzmlqwm3lRHftYqFAVwC/b05q/yJPDcyzqpTrFKXomaW80Bo7L7onUd+l4C X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7916004)(39860400002)(136003)(376002)(346002)(396003)(366004)(186009)(451199024)(1800799009)(66556008)(33716001)(8936002)(41300700001)(4326008)(8676002)(54906003)(478600001)(1076003)(66946007)(6666004)(26005)(316002)(6506007)(44144004)(6916009)(6512007)(9686003)(6486002)(2906002)(66476007)(86362001)(5660300002)(564344004)(38100700002)(235185007)(2700100001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?qcv6js39xjeElLqeoMlh78DxN6JolTTxXpuINTxhXC+ee6vbMFJeqewg+/jW?= =?us-ascii?Q?Y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gT/YU?= =?us-ascii?Q?lL7CysxahPEucOsrYJv6zYEDHlOlXo3S+viF1Fis5e60xmuSyToXaDL/LhYW?= =?us-ascii?Q?/w3uPbG2hE2b5ntTbanYtEwcCSTMkBYZJ0JKa/WBnIbZnVQMG+5d0QChh/zu?= =?us-ascii?Q?x8ErDpuKYFAfLfpRs1wvZorjMvAAtr6mcYgLs4eo1FW4b5hwRJ3G09jHlOG6?= =?us-ascii?Q?nOAMSVaHy3n+haXiFMGsv0H//RvirADxWjMhckponaZGoG89lY4TawLHk/8q?= =?us-ascii?Q?GjuRvDKBNROSaB5if5LHof8zjXKnlVkgF26AdcUrHlwVlKWIdK/ach7fSOcc?= =?us-ascii?Q?ECpniR7gRwsYtobJu5alhI+iJLuLSi6cLpWIB0kkqi0v8EcsRUoGPsuuc8gH?= =?us-ascii?Q?RFQBzM1wFkUp/lZw3LaLgb5Vhg1vKxNWeZllVUfHCpuSHinkVij0Oi8rkvXY?= =?us-ascii?Q?in4n2lxT5iqoO6ECbZe3qbg343+NOCHFMQcMzsujNvs401oheVvbm+5FEk0W?= =?us-ascii?Q?qd8su1LnB/aQE0O4oxyM5NsEeDWkxxuPoRnA/Q6oMjnikHO48OaFr13XhFGQ?= =?us-ascii?Q?QHz5V9KDJIq84X9VLK/xfMPWjPyckFZUTxloLpMF+p9vAGUajcE0BhpI0bq8?= =?us-ascii?Q?l4eByN10r9cjG/+/yzACWpqQ/8eW+N+RE0azlj9UY+tm99DQxHgjmJLjkU6f?= =?us-ascii?Q?Jw=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?us-ascii?Q?gaTReFN/E82Ur53B4dwFe88ITxZ1k/ugdHR8GXSQZA7QkQz9N+LM7pymqvki?= =?us-ascii?Q?ANpyJHemPQqPkE4xynWa26AT1XOUPec7EBllhKSH8wz1WJtMa3UfbvwCHtwL?= =?us-ascii?Q?kZW8wla/cRXDnb1WYJ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=?us-ascii?Q?TqTRFWzvwdB9uLOIFVv1U+4TfQ=3D=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 681bd913-e2a0-4893-f66f-08dbb3c3cc60 X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2023 19:09:33.9479 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: v9zp4vF/JZBWfdhwM3Osc7fSaYK+h3S1otTmv4V/YWR/GPvp2uLnk0H0LEqKFrWMp16hhVA6xQRqH2XkN2em8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB5017 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-12_18,2023-09-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 spamscore=0 mlxscore=0 mlxlogscore=865 adultscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309120161 X-Proofpoint-GUID: KljUFc6WHBeEOWtaJL298SuwaSd8xot3 X-Proofpoint-ORIG-GUID: KljUFc6WHBeEOWtaJL298SuwaSd8xot3 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 (groat.vger.email [0.0.0.0]); Tue, 12 Sep 2023 12:10:10 -0700 (PDT) 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 groat.vger.email --5aqidbzt6oq7a3jx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline * Andreas Schwab [230912 14:15]: > Any news? This is still broken. I have a proposed fix. I seem to have caused a pre-existing problem to show up. Please see if the attached works for you, and I'll send it to a lot of people. Thanks, Liam --5aqidbzt6oq7a3jx Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-init-main-Clear-boot-task-idle-flag.patch" Content-Transfer-Encoding: quoted-printable From 9ef8f834bb0342dc26464b9dd0165929d3e6a7e5 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Tue, 12 Sep 2023 13:45:29 -0400 Subject: [PATCH] init/main: Clear boot task idle flag Initial booting was setting the task flag to idle (PF_IDLE) by the call path sched_init() -> init_idle(). Having the task idle and calling call_rcu() in kernel/rcu/tiny.c means that TIF_NEED_RESCHED will be enabled. Subsequent calls to any cond_resched() will enable IRQs, potentially earlier than the enabling of IRQs. This causes a warning later in start_kernel() as interrupts are enabled before the are fully set up. Fix this issue by clearing the PF_IDLE flag on return from sched_init() and restore the flag in rest_init(). Signed-off-by: Liam R. Howlett --- init/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/main.c b/init/main.c index ad920fac325c..46b35be8f00a 100644 --- a/init/main.c +++ b/init/main.c @@ -696,7 +696,7 @@ noinline void __ref __noreturn rest_init(void) */ rcu_read_lock(); tsk =3D find_task_by_pid_ns(pid, &init_pid_ns); - tsk->flags |=3D PF_NO_SETAFFINITY; + tsk->flags |=3D PF_NO_SETAFFINITY | PF_IDLE; set_cpus_allowed_ptr(tsk, cpumask_of(smp_processor_id())); rcu_read_unlock(); =20 @@ -938,6 +938,7 @@ void start_kernel(void) * time - but meanwhile we still have a functioning scheduler. */ sched_init(); + current->flags &=3D ~PF_IDLE; =20 if (WARN(!irqs_disabled(), "Interrupts were enabled *very* early, fixing it\n")) --=20 2.39.2 --5aqidbzt6oq7a3jx--