Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3309805rwb; Fri, 30 Sep 2022 01:25:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM53G5Tm1f1hQLXN82jjnoYiUdMslt471ULUAag8c2/yXAexzE0fUAAWg3OQEgDD8FZmM0Fp X-Received: by 2002:a17:906:a3c2:b0:783:19a2:74d3 with SMTP id ca2-20020a170906a3c200b0078319a274d3mr5731973ejb.288.1664526350869; Fri, 30 Sep 2022 01:25:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664526350; cv=none; d=google.com; s=arc-20160816; b=sinROv/phOnuMNXnwaVzPNw51g+1/WLnv/UsVkO8FqU3NgChv7CCj56T4eFDN3UKG9 DzcuVGFK/fPhmyfOjn/eR7nNt7sYDG6zsI69GFweX1bMTa4dZ47bZGb2g8clo80WBZPh 0q1xQxBoSSSyue/4B7Lr5c0a6lsdilhiqddYksBxCfYmkLbLCD9ALDGUhTvHidDeM6Ss BQuiYgzaaLoUp55QMLyRN9wmzwCM2Wl/or7kxUyfvv7asnBEe2Yf47I86XIYAHIFJfLD 99bZUAr/vLfYeWsP5jZH0vTnfDx0/8QHEjSXUDXJjhIG+TDMil5X6buZ8oRVriuVFCBd Akyw== 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=mBNuBx7p4zWFfPy4deHXA3HcsMwaAOAXCFunK8Xif5k=; b=Y9HZPsB9tuRNzRlY+HoALoWDgPLoEoBsajkW1keR7tjdpFvmwih6j1Yv+wyxrWOoI3 SzmIrWYdUM5frWUB6TFMvaaCd0ZRuZ/YlR8Y1ZaeoE7s5pd+m7R5lHz9Mloz95s8hr8F GvGnIZCVXP3opn1csBo36gyPYSxd7OymevQnmnyYuqFKgW38O8sZSPrJ3QTaoVJBfZd7 Rc8N3PpjSa577OP/uDSUhypDGU2VIbIWHFA5LRpWKhrahTgPhpF9S43RaG/JcXBkkF2I mMeoF1tU4q63lljEZQBVS6bLR//0hEUyP7wwChrNZINIjLYPxDm+9gm+rmyZb0wmPMkW LYEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=BSR8neqz; 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 ne33-20020a1709077ba100b00781df60a2c8si1601036ejc.342.2022.09.30.01.25.25; Fri, 30 Sep 2022 01:25:50 -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=BSR8neqz; 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 S230179AbiI3IHx (ORCPT + 99 others); Fri, 30 Sep 2022 04:07:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229743AbiI3IHv (ORCPT ); Fri, 30 Sep 2022 04:07:51 -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 E2C18129FDE; Fri, 30 Sep 2022 01:07:49 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 994041F8CA; Fri, 30 Sep 2022 08:07:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1664525268; 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=mBNuBx7p4zWFfPy4deHXA3HcsMwaAOAXCFunK8Xif5k=; b=BSR8neqz3BpAFGFBTVg2CCGqAaYv8EYiK5BtMQIFh/QCewhQrL71CMojiimvqgHgRqLN3/ Vy5u99mkTaHs0WPAhNOtcLXiqbP7lC2NT5x9u4TYpkO5aG3mD8/pK22eFTOeYaobEWqQHJ 21BHANgcrkjvh5rPHs8w/fTIlNRdZxI= Received: from suse.cz (unknown [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 488412C15F; Fri, 30 Sep 2022 08:07:48 +0000 (UTC) Date: Fri, 30 Sep 2022 10:07:47 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Jason Wessel , Daniel Thompson , Douglas Anderson , Greg Kroah-Hartman , Jiri Slaby , kgdb-bugreport@lists.sourceforge.net, linux-serial@vger.kernel.org Subject: Re: [PATCH printk 09/18] serial: kgdboc: Lock console list in probe function Message-ID: References: <20220924000454.3319186-1-john.ogness@linutronix.de> <20220924000454.3319186-10-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220924000454.3319186-10-john.ogness@linutronix.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Sat 2022-09-24 02:10:45, John Ogness wrote: > From: Thomas Gleixner > > Unprotected list walks are not necessarily safe. > > Signed-off-by: Thomas Gleixner > Signed-off-by: John Ogness > Reviewed-by: Sergey Senozhatsky It looks correct in principle. There is still a discussion [1] whether to introduce console_list_lock() or use the existing console_lock(), see https://lore.kernel.org/r/20220924000454.3319186-7-john.ogness@linutronix.de Depending on the result of the discussion, with either console_list_lock() or console_lock(): Reviewed-by: Petr Mladek Best Regards, Petr