Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp110562lqo; Wed, 27 Mar 2024 08:13:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWfRsvPnHmSOenzeEUwdG8PxZzLlyWGaNMW3JAE8aBM73jf3S6UaGAG4wxqiaRKuLRDH9f+/NUvK/VvWit2cK4P1YIz/AA7divd194qtQ== X-Google-Smtp-Source: AGHT+IEnqZyMbitCgfK8gKXLCKiSkY2+r33JIxeo2068lYQR4u5iTWgnd24XN8nljPe5xDAqKF4P X-Received: by 2002:a17:906:6d45:b0:a46:9b71:b852 with SMTP id a5-20020a1709066d4500b00a469b71b852mr1122597ejt.26.1711552385839; Wed, 27 Mar 2024 08:13:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711552385; cv=pass; d=google.com; s=arc-20160816; b=Gg3adYlfyWBEKlIi0sQ7jqstb7Nr+sRiTSuOxdtHNsERci/yPhMbrSdE5R1ulKi8UQ ATl5A6oGq9abMV/OJN1PoeJcZHuLgyO3TQCl7IzJXrhe08g4/SYhuI8KhxILMeXaSqQD 9dJgt0XflBr1QDc7wDvk62I/t+95nBl5joCvkDKBMbt86AD1ZfFdkYrG1qCoo4XJRV1b pkhNEBW/l0HVgSNlJOLkPVleX7HGJMiJVo10JQkRVYMyLxPDGbdefqDZb76hE4IQl9wc swDnnzM5pASsWJYeyXzR5gzjNILT+/u/kYKZi8fzXrh3+zNhxhEPly7VHBICIvqUJetv K3HQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=G1cUB+/iwR0Lw8awRMO4u0kxrmmzi7XVkjBHy1UoCog=; fh=Yx/d3j0DIock5VUIFsCpI/HOFvrnUEL2ajWklnkcilc=; b=C/37hIPJprU/xYSLyQeJA/2cSvxw4SRyigesqhZIDF+UG3fbA7J7wrJ/dEzdUMdXBK 6zIby0UnWhqb28nEFhQ50LXR1n9CiX61eT2l03CxlkVavSbjGlpHCaamXBur6jzj1aiE HFcLMlOdOKGqX6ic+qqPW25bUcRpjar/KXMtMmw1VVA+R1IE7qVN6ltYLto+/qOEKPrP SiBbp6yx8czuFxpMcozTMYQG5ZU4FUHeIJJYNX3XZsfShZS8BECvwP9dy+ZpMH6zkU6d 8WNfO42m6Un3DLm279Bc43m+ZhM6PZWm0QNb+G/VYi3OQXXrRksbQ6AKUFUaaDT4qZ7s wcjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=i-love.sakura.ne.jp); spf=pass (google.com: domain of linux-kernel+bounces-121434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121434-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m3-20020a170906720300b00a46b9fdb7a4si4765055ejk.296.2024.03.27.08.13.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 08:13:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=i-love.sakura.ne.jp); spf=pass (google.com: domain of linux-kernel+bounces-121434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121434-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 949781F35ACC for ; Wed, 27 Mar 2024 15:06:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CB80C14883A; Wed, 27 Mar 2024 14:26:21 +0000 (UTC) Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) (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 110C214882E for ; Wed, 27 Mar 2024 14:26:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.181.97.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711549581; cv=none; b=AbDhN6jUz8w+K8hC6kRUVksN10UhiyIhSqlgU6rdD2n27obm2TZKZ5bsqNbLcb7TWtbt7zp8mZ3Z368txgs/waatxGEZ11+iZ+UDAbktrYyf+xLT7hdE0T91I0ztBwY+kQhwE26v/cMKLX9lnF4aiHM/AtRgXnCHiloEE6OxO3U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711549581; c=relaxed/simple; bh=tc99LQ8/bN2jng+sFvmWcqITHA+NqPWXNfa4bVPy7O8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=G7Za8SjLDb4xwD6DN8NJWRS6lEtZewTiAB+8gSAm2+dUi4yVczB6wyY1QEz5wwAQhUCYb5C4D9nGXtqD41PiaGFQNiytBHUpBOJSaR2BT5UuhQuy4IAqSBBekkAoX5kjiR5l4/eOkA4urLys+c7tX3rTkoz9SVRBpyH85+7xsW4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=I-love.SAKURA.ne.jp; spf=pass smtp.mailfrom=I-love.SAKURA.ne.jp; arc=none smtp.client-ip=202.181.97.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=I-love.SAKURA.ne.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=I-love.SAKURA.ne.jp Received: from fsav312.sakura.ne.jp (fsav312.sakura.ne.jp [153.120.85.143]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 42REPEUa015043; Wed, 27 Mar 2024 23:25:14 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav312.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav312.sakura.ne.jp); Wed, 27 Mar 2024 23:25:14 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav312.sakura.ne.jp) Received: from [192.168.1.6] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 42REPEED015040 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Wed, 27 Mar 2024 23:25:14 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: <895193c7-1339-45b3-99fa-6fc804040a3c@I-love.SAKURA.ne.jp> Date: Wed, 27 Mar 2024 23:25:14 +0900 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [syzbot] [kernel?] possible deadlock in console_flush_all (2) Content-Language: en-US To: John Ogness , Alexei Starovoitov , John Fastabend Cc: syzbot , syzkaller-bugs , Alexei Starovoitov , Daniel Borkmann , Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Thomas Gleixner , LKML , bpf References: <000000000000e40a2906072e9567@google.com> <596aad11-ee69-4ef1-b945-7b67a9fb22d7@I-love.SAKURA.ne.jp> <87o7b0szno.fsf@jogness.linutronix.de> From: Tetsuo Handa In-Reply-To: <87o7b0szno.fsf@jogness.linutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2024/03/27 20:05, John Ogness wrote: > The printk rework (which is not yet fully mainline) will correctly > handle this context. > > As to the patch [0] you suggested, it would be more appropriate to > perform deferred_enter/_exit *within* the locked critical section. But > we really only want these whack-a-mole workarounds for cases that can > occur in a non-bug situation. IMHO this is not such a case and falls > into the category of "known problem, the rework will handle it". > > John Ogness > > [0] https://syzkaller.appspot.com/text?tag=Patch&x=121c92fe180000 > Since the cause of current flood of lockdep reports is already explained in https://syzkaller.appspot.com/bug?extid=c4f4d25859c2e5859988 , we don't need [0] for now. But it is unfortunate that the message which explains what went wrong cannot be reported due to reporting console_lock dependency. Therefore, I intend [0] as a workaround for a bug situation. We can revert [0] after the printk rework completed.