Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5725458rwb; Wed, 9 Aug 2023 08:20:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFG64wLphoTH77UrfbMU7zifLGGCHQ/7Ncm/CXH3JqNJam0qhykc7hwnSBKiAgJ6s10xUKE X-Received: by 2002:a9d:6e0d:0:b0:6b7:1fcd:1e22 with SMTP id e13-20020a9d6e0d000000b006b71fcd1e22mr3129188otr.29.1691594457294; Wed, 09 Aug 2023 08:20:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691594457; cv=none; d=google.com; s=arc-20160816; b=c/IG33bb+/BhDsAbN49zAMwaeMz4ssKHvWrlxm9WJjnsXdxnQdBjWiQkRmhO2lh0gr DJyoaQnVD5cpBdKIax0qW824YnhbAT0xSatp9z3WUIrUJTwWxzRn/MYzE78KemaJECfv Bq9n4hX6JbeEv6Wuq5PNY38azjYUCvQ3uzj75Z86Asn3HhZmnvzmOpQk/TpqIG2MCjk4 0q8+o/5BCRkMHO2nFuPgTmPYs3wN2VkRTkRYSoXIqpg5CDOxdRmyqW3vohUA85mI8PhZ gk4VxXAhfHnAc3ikXVAMnBGOGTg775tcGpf4JBPxjjJG14HrvTGsTs/dC3UEezV/lAzk OEJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CnA7zIGciiEg2PfazTZcIUvttJiVFHYu6GLsaiP/Bjg=; fh=ls8ltNtDhnoM3BvuddfC4PilBKET911nME6qbqrUGBk=; b=AyavwNKCjMH1UmxbEhlj3tlRjgfcMXgrL/jS8CjFlR+vxo2TdRkxFm+64eJZtLU/Am JS8OqaMxDfCBwHLLtBhmUeCZCQKTt0a8Y2yRTWdc3QMZ+Kd68psN1XbO00I3eKcMWS7A ub4mYO5VtEueIAh+Es4maeSQuj9mTrAmtKzyI9+Whw7FPhdZq3k95fj0EdaK8facAGfB 9xY2C6iO5cu0xQUX9ySNNXouaiwZpN9KIUUEdogiWrQ6hac/Pr5out9tY8BitiazwYX3 HfNiVl34Y46eWosQdPB60clu3E8KcMoX/R+rTzPXnc4EyGaJVI3nHypGiFkKwayQqOXb ZkSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="ClIz3Wn/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k2-20020a6568c2000000b0053059dfafe4si9444204pgt.86.2023.08.09.08.20.43; Wed, 09 Aug 2023 08:20:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="ClIz3Wn/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233131AbjHIOGb (ORCPT + 99 others); Wed, 9 Aug 2023 10:06:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232405AbjHIOGa (ORCPT ); Wed, 9 Aug 2023 10:06:30 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1BEE1FC2 for ; Wed, 9 Aug 2023 07:06:29 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id B2ECC1F38A; Wed, 9 Aug 2023 14:06:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1691589988; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CnA7zIGciiEg2PfazTZcIUvttJiVFHYu6GLsaiP/Bjg=; b=ClIz3Wn/KbcOjWChRfxNDarSibmEejZ8/KDOAvXwAgsZYoJ72bVyRt0Tex7/G2aJ71gs9H vwyIeTvZ/2ssuxp/vzm/pIGMEnyb0hJ2LFBAUjDEeBtPzFfn0NlfnnSk1d+6T3b0jHC7Lx 9K5dM/v5KoH8p5rUo6yXDmXSDOGExX8= Received: from suse.cz (pmladek.tcp.ovpn2.prg.suse.de [10.100.208.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 5D73A2C142; Wed, 9 Aug 2023 14:06:28 +0000 (UTC) Date: Wed, 9 Aug 2023 16:06:26 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH printk v2 4/8] printk: nbcon: Add buffer management Message-ID: References: <20230728000233.50887-1-john.ogness@linutronix.de> <20230728000233.50887-5-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230728000233.50887-5-john.ogness@linutronix.de> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham 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 On Fri 2023-07-28 02:08:29, John Ogness wrote: > From: Thomas Gleixner > > In case of hostile takeovers it must be ensured that the previous > owner cannot scribble over the output buffer of the emergency/panic > context. This is achieved by: > > - Adding a global output buffer instance for the panic context. > This is the only situation where hostile takeovers can occur and > there is always at most 1 panic context. > > - Allocating an output buffer per console upon console > registration. This buffer is used by the console owner when not > in panic context. > > - Choosing the appropriate buffer is handled in the acquire/release > functions. > > Co-developed-by: John Ogness > Signed-off-by: John Ogness > Signed-off-by: Thomas Gleixner (Intel) Looks good to me: Reviewed-by: Petr Mladek Best Regards, Petr