Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1726881ioo; Mon, 23 May 2022 01:39:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4vjEM4z/spvvOzHzDUzextlZC2+9vWc0fxJrz7yzO4PU1j7IGA/qn8bx6M8KG+MnVfse5 X-Received: by 2002:a05:6a00:a02:b0:4fd:f9dd:5494 with SMTP id p2-20020a056a000a0200b004fdf9dd5494mr23242542pfh.68.1653295164776; Mon, 23 May 2022 01:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653295164; cv=none; d=google.com; s=arc-20160816; b=YNhuT75eFjEOC1oh4UeQWuKmF1YLjIW/zw9s7ood1Yufwv//qilBuXGs7Jdo8hWch6 WMgte+6ddEfiztvig/UyfP4paQ4o/7MwwJ1zpamY4o3oNyUc+Wgz8xMWuoSYDuFcxquy 5/HzAjRXcJ13+lvcRIRxAovvnodZDHExZYRu+yHRBi1BGie3hhio6w7dMjzAkf0gsvDm rFwhPiQJxi0JSZ64IHDblehYsGM4s9hDLAHEfCOX22vemm3q/2Y/N3HsfS5yOaaxDO8v Cet7PMqsrpmvbfTC+pHAOUpWubAJK2xkI5KYjr9L3331fi4ADFRgLowTk0oxiqI9fRvx miJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:mime-version:content-transfer-encoding :message-id:subject:cc:to:dkim-signature:dkim-signature:from; bh=i4zfVgtUhZh9/+iQyGs2d3Sy2r4CkZY4YqWoCB++8kY=; b=GizRWNLdaC9qff191F3RWToIwvYEhAG2n5dq5mw1i8Pl4oi2cqU8SBe0z61Fhvbwwt HIugcT6tEzjYcKXaIFPWNrbSflE42WaK6yJj/HsdGAvyUXLyDYaltY4ZL4xo/ZmySB7a 0LUHbNqDIf+KmiBxsHdxYJMKpEx4SvVp6gmB3svZE+wTEwKlb90JgG3XdrF4koAnNxpD sG4qnq7Gj38dlaJzDxfrsweQiXWp+2U4hnaZ8EfPmS/ep5wr7PG5PNwFfbFligxFMec9 0niMedvt1tymvWfYTFZp5HHGwM1sJzxK2UtmkldZoNWjEfZGEstMzaOvqZ4CMxJuAiLh Uobw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=vUvjksqp; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=QPzbhaWJ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s198-20020a632ccf000000b003f5d7f247a7si9447808pgs.334.2022.05.23.01.39.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 01:39:24 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=vUvjksqp; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=QPzbhaWJ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3E9F81EEDD; Mon, 23 May 2022 01:02:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231524AbiEWICQ (ORCPT + 99 others); Mon, 23 May 2022 04:02:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231502AbiEWICK (ORCPT ); Mon, 23 May 2022 04:02:10 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7FB913F8B for ; Mon, 23 May 2022 01:02:08 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1653292924; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=i4zfVgtUhZh9/+iQyGs2d3Sy2r4CkZY4YqWoCB++8kY=; b=vUvjksqprEKLrVPHEYFEezrxcLJD4Z3RsLY2JubE2FRNCdlB475iX8LcwCMfkPdTYlFgDM tq8M2k8tPNRR4qWiD6Bck3SKqSEInBaqPCQB9L1pN3Pd12w0cpImwRO+PXADPHyNuE/XDU YOm3yJFR1h4MPY4znOKAM92E9tDnbv0D/AWO3IH3Bnuj6KE3E9KZUh+ggoDcJbDf+YzZSd Mw5ik2nPKxRtSqVycoV6UpzN22mdv12Lc9FSxWle7ERAwpNgWvzoWdsEMxybKckqXlBD1x NaX19Ft88kQjQyDRo/JOJk4fCHtik14mbL9WghJiE6rB90oHsUipE2QVz1Pf1Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1653292924; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=i4zfVgtUhZh9/+iQyGs2d3Sy2r4CkZY4YqWoCB++8kY=; b=QPzbhaWJvvaFk/2Bm75iY/CxZqfNomlP3dyVEdGRR4FCZEQbN/eAHF+3ELJTJ3XJv641A4 nObFyYx24J9GagAg== To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, x86@kernel.org Subject: [GIT pull] core/core for 5.19-rc1 Message-ID: <165329267741.3801280.534077656528571075.tglx@xen13> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Mon, 23 May 2022 10:02:03 +0200 (CEST) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Linus, please pull the latest core/core branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-core-2022-0= 5-23 up to: 75d8cce128c5: lib/irq_poll: Prevent softirq pending leak in irq_poll_= cpu_dead() A single update for irqpoll: - Ensure that a raised soft interrupt is handled after pulling the blk_cpu_iopoll backlog from a unplugged CPU. This prevents that the CPU which runs that code reaches idle with soft interrupts pending. Thanks, tglx ------------------> Sebastian Andrzej Siewior (1): lib/irq_poll: Prevent softirq pending leak in irq_poll_cpu_dead() lib/irq_poll.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/irq_poll.c b/lib/irq_poll.c index 2f17b488d58e..2d5329a42105 100644 --- a/lib/irq_poll.c +++ b/lib/irq_poll.c @@ -188,14 +188,18 @@ EXPORT_SYMBOL(irq_poll_init); static int irq_poll_cpu_dead(unsigned int cpu) { /* - * If a CPU goes away, splice its entries to the current CPU - * and trigger a run of the softirq + * If a CPU goes away, splice its entries to the current CPU and + * set the POLL softirq bit. The local_bh_disable()/enable() pair + * ensures that it is handled. Otherwise the current CPU could + * reach idle with the POLL softirq pending. */ + local_bh_disable(); local_irq_disable(); list_splice_init(&per_cpu(blk_cpu_iopoll, cpu), this_cpu_ptr(&blk_cpu_iopoll)); __raise_softirq_irqoff(IRQ_POLL_SOFTIRQ); local_irq_enable(); + local_bh_enable(); =20 return 0; }