Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp616834pxb; Tue, 5 Apr 2022 16:04:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWaEyOsUPHbSgOnN0JPprZFc9QlY0VUnBjAySAbYwEctL2V6AWKsq0HwklZ5oHVi9TBIa6 X-Received: by 2002:a05:6a00:1903:b0:4fa:fa9e:42e6 with SMTP id y3-20020a056a00190300b004fafa9e42e6mr6017718pfi.1.1649199894630; Tue, 05 Apr 2022 16:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649199894; cv=none; d=google.com; s=arc-20160816; b=HVQsVsKj/eAKsYDwvprZosc88FNjBinr3ajsYh1PJ9RTws55JDE7GasCfMRPRY4mI1 qbPPbOw1DwuHhyGDmQLJ27vOQLzvSxNQyK6hVuPChockoD+GJEI2ehQSRxWAzhnm8Lq0 Eb76Hl0erpE84sBh7++jlDzyzswyF2R8eFl+ptNlY8tsd2DDSLlhRfQSBqP82g/mrYPM pwSzBR2Pix8ruS2jihEHk55MZUe7YF+2N2V+CBRckgR/XYC3J8eD3E4J6SGxmj5Thfn9 fzOJgyOQ/XK83PXTkfZj9AzXwB6wthReQMHQE3VEYgzdzKsh5YDK7CcNXk50XXPwx4nC JeHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HYku11ScP/BzrhmcDROtjagbguO24f17nAJmqWJA//g=; b=gpOFddUCEoYPMvOb2vAKYoyTp+Zru4zj4EeSSbSBFyQoz96rBdMhZpGVUUM+s2FQOF rTBL3La4rJcAJbyGmaf+h9cJ9rj9Y8kMSGN8g+4vxTsZH50a+6MenfHUTem3zG2WBeWJ ALjMV7oCC7LqSriIq2mYQLlQDxbEePQ7rzIWdsTu91t6J3yjHA+M4/SYMf2N32bGNQn4 W0sN4Z2W+lnMyy3YU60HL/ULIYB0TVpqotbCk+3IEz9ul1hgKbf6W/oRfQSJwFWh2Ibh H1mor2eem5Fl1qxvvX81RYs9WJWBI+Yv1vzxaoCAu32ptcXhilvwnng/+dGPxFUb7TvF lSFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lYb6K33R; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y30-20020a056a001c9e00b004fa9a8cc0ccsi12632858pfw.100.2022.04.05.16.04.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 16:04:54 -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=@linuxfoundation.org header.s=korg header.b=lYb6K33R; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 64F149F6C7; Tue, 5 Apr 2022 15:47:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382270AbiDEMD7 (ORCPT + 99 others); Tue, 5 Apr 2022 08:03:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243992AbiDEIvY (ORCPT ); Tue, 5 Apr 2022 04:51:24 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04D02D0AB0; Tue, 5 Apr 2022 01:40:10 -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 ams.source.kernel.org (Postfix) with ESMTPS id 61907B81BC5; Tue, 5 Apr 2022 08:40:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5987C385A1; Tue, 5 Apr 2022 08:40:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649148008; bh=vCNxLByh22qWpvDtzrk7nKcRMnmgzftlBFDb7fx5dWY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lYb6K33RswvVn53LeUwYhFtzD//6sKBbO6aIcd18xNj05qjssnm73x8zZcXEpV9O0 1uNqukii7QFqzs1UV18EC2iOV8H2KuKK0DzSHxEyklOf9Lzgoajy/LRfSdY5Xz2Tik 66UsiiwpPj0D4aTNrfoY3F2INt9C8VX/izAvwKtU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Max Filippov Subject: [PATCH 5.16 0184/1017] xtensa: fix stop_machine_cpuslocked call in patch_text Date: Tue, 5 Apr 2022 09:18:17 +0200 Message-Id: <20220405070359.702346386@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 From: Max Filippov commit f406f2d03e07afc199dd8cf501f361dde6be8a69 upstream. patch_text must invoke patch_text_stop_machine on all online CPUs, but it calls stop_machine_cpuslocked with NULL cpumask. As a result only one CPU runs patch_text_stop_machine potentially leaving stale icache entries on other CPUs. Fix that by calling stop_machine_cpuslocked with cpu_online_mask as the last argument. Cc: stable@vger.kernel.org Fixes: 64711f9a47d4 ("xtensa: implement jump_label support") Signed-off-by: Max Filippov Signed-off-by: Greg Kroah-Hartman --- arch/xtensa/kernel/jump_label.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/xtensa/kernel/jump_label.c +++ b/arch/xtensa/kernel/jump_label.c @@ -61,7 +61,7 @@ static void patch_text(unsigned long add .data = data, }; stop_machine_cpuslocked(patch_text_stop_machine, - &patch, NULL); + &patch, cpu_online_mask); } else { unsigned long flags;