From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78C001E47AC; Mon, 21 Oct 2024 10:29:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729506587; cv=none; b=Gi7qlRnfDRC/uQNzCP7+3uyBYPjzYqN/W6eAKGd4YdeUACf8PleREICjnu1uh+4jUQ2qY1fXkddCyJGLSO+XjYImPyl7opnxHY9FRByrQAdrJJM3d/cGWodS++rx8lBSTR5Un6N/6yhLmo6x+WTTAieIgr9zC9EIzz8Ypo8MrF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729506587; c=relaxed/simple; bh=78wSuA0DXGBz+7JS4R5m8sHukvdlD3fzesbJ5wxZJtI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uaap9godfCeDEqa2HqoejG9CDkDxxGuyNoToWPjotbcAM2AspGyuvr6cB+XcqOwcSgN/SDY49SOAhS7ZM3747a08lZDnkMk87nXlgnNMtsUt0eQX+9LznFROzo4bhiw2nlEagvrj6tPt+j8vGaz1YSTeHhFQNPJNAe4VL9MPqHc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=duUyxOXA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="duUyxOXA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB199C4CEC3; Mon, 21 Oct 2024 10:29:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729506587; bh=78wSuA0DXGBz+7JS4R5m8sHukvdlD3fzesbJ5wxZJtI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=duUyxOXAHdr1h3ZelFwTnysgYaas1SA+cTOdRX/r7wuFh9E1YNmy8dTq4UKvmjVRK VEs9SQO7VLbAKABgGdPXZaJkY7QhD2Rs3OUbQ/v/HwbrYUk8bZut12LHpShpPxxk+A x02wMSOBKSu0JOMPBa5AHKpRe7I40nabV98I/c0w= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Sven Schnelle , Heiko Carstens Subject: [PATCH 6.11 037/135] s390/sclp: Deactivate sclp after all its users Date: Mon, 21 Oct 2024 12:23:13 +0200 Message-ID: <20241021102300.784834838@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241021102259.324175287@linuxfoundation.org> References: <20241021102259.324175287@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.11-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Weißschuh commit 0d9dc27df22d9b5c8dc7185c8dddbc14f5468518 upstream. On reboot the SCLP interface is deactivated through a reboot notifier. This happens before other components using SCLP have the chance to run their own reboot notifiers. Two of those components are the SCLP console and tty drivers which try to flush the last outstanding messages. At that point the SCLP interface is already unusable and the messages are discarded. Execute sclp_deactivate() as late as possible to avoid this issue. Fixes: 4ae46db99cd8 ("s390/consoles: improve panic notifiers reliability") Cc: stable@vger.kernel.org Signed-off-by: Thomas Weißschuh Reviewed-by: Sven Schnelle Link: https://lore.kernel.org/r/20241014-s390-kunit-v1-1-941defa765a6@linutronix.de Signed-off-by: Heiko Carstens Signed-off-by: Greg Kroah-Hartman --- drivers/s390/char/sclp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/s390/char/sclp.c +++ b/drivers/s390/char/sclp.c @@ -1195,7 +1195,8 @@ sclp_reboot_event(struct notifier_block } static struct notifier_block sclp_reboot_notifier = { - .notifier_call = sclp_reboot_event + .notifier_call = sclp_reboot_event, + .priority = INT_MIN, }; static ssize_t con_pages_show(struct device_driver *dev, char *buf)