Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1334981lqt; Tue, 19 Mar 2024 23:50:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsv7WDAE1g0TGcZFznSovSj+ml+MEP14axdruDrxlSKlIxQP5dZzrOPsKmKV5v+hvFVeZYIamvBNomNOFond4Sn76zzn3Bu7AGZ4A00g== X-Google-Smtp-Source: AGHT+IGnQ7WTqWxslfqRU7FLSXisMt00rF9TXf4Gq6kuxCIy/DoF7ZG6PihoVNbQEYlyWFDqDpE6 X-Received: by 2002:a0c:f0c8:0:b0:691:3b1e:d44b with SMTP id d8-20020a0cf0c8000000b006913b1ed44bmr18197948qvl.34.1710917459223; Tue, 19 Mar 2024 23:50:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710917459; cv=pass; d=google.com; s=arc-20160816; b=twxHEC978c2Iz4pjMnITx5eyksDJawlaMmooCTcq1ibfJTVkD1bB+KIP1/g03oNvPB ULlPqTmWV1AxFiBmCxqrSj8wquwM7mteiN+Og79GUfF4bxOban7fPejQTPyD/496FVIe m9l+fYDfhlpAkqNJOZeiRpXg+ZfzH1n2nAcMhTjmVrgXy2+WdHhmw241vabgJ2gILrxB 0UO8Npqm7tAv+0Y7txJ9D/YOyzOIAPuTsfo9zo7JSD2EZFsFucqJmICNqG1o5iTQeipJ ERVubV4NXmzaIDvmObBlp7vaQ7I1srRPSP2iy2ZZWV0HwfwFPt8ohk/a7HGJEE664nL1 6htw== 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:cc:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=4vcukamUtKbSrQkmi+7eHPDroMXtVOm4aFw1MXB7Oeg=; fh=EBe6H3BetsHUaVXcWT2blNKefCfGuS1yQtq6eGxdoo0=; b=TJole6xHCvukMir5ZRyeXWj6uvSSgW4DXEigXneX90sR2CfyIjzLCi80tZ0EYuvZ2V 9Xm258onp7ic0G++/GAYaY/FYicOnEk+aDwvuWl0xIMwRVRPDjW9EHa0YJFFuEI8PPch Ifs0lWLP9qfmdjvUWpTF2jlk4RIsWa1KYeY3lyoyvrbX/j5k76UF9WBeXof5YKaTbjZl /OpU8M9dusevJ3n9lNl2BVElCtSBUvkDpE+8on61uL2S4at+g6uWPt8dxz6sYcrNTYO4 GjLBJnMqKk7f0arnNHajTOyAw03XRrOQ84nvy3Akg3oe/AlyuYnaHJeuHNGl44UzAdO2 3GtQ==; 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-108509-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108509-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jx9-20020a0562142b0900b0069154e17940si12380402qvb.84.2024.03.19.23.50.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 23:50:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108509-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-108509-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108509-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 952411C22515 for ; Wed, 20 Mar 2024 06:50:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97C63ED0; Wed, 20 Mar 2024 06:50:52 +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 14FFD11C83 for ; Wed, 20 Mar 2024 06:50:49 +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=1710917452; cv=none; b=mht6QqVhvxzPJPIidPikPXhbyiQCEn0eS6HfNtL1u0tiZy4529M+nJ5cE24V1bZuuG+7yysh7+yii1ONcpSVeuIMB8eHBBkqRVBEHp9+96TrIlU7HEYsq3mt8f+qSxah7t0aRCRIuqByoUl39O0hQGFoT0nU0hATjM+Flxo6MuQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710917452; c=relaxed/simple; bh=//3zWgFy2AqLTSr3DwKo1CdcWGf1L3AS2nPoVmnAlh0=; h=Message-ID:Date:MIME-Version:Subject:To:References:Cc:From: In-Reply-To:Content-Type; b=rXmQ2jAVhzAdOJJtX3qxJburz9pT8kx6m4NEQ9WC9xFJK+mRv7jQ9EWPSc/RcOZe++4Wn05fyjAFt3Q5I+yynJfzxc05YS3MsqYtKrQJ+6P/YW71eMTjvUyY1BFG6hKFGGweskdAIoqFf2q3MPhcnrUg+ROAXvNSJ5JlL8X8ELY= 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 fsav414.sakura.ne.jp (fsav414.sakura.ne.jp [133.242.250.113]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 42K6o3G8097265; Wed, 20 Mar 2024 15:50:03 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav414.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav414.sakura.ne.jp); Wed, 20 Mar 2024 15:50:03 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav414.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 42K6o2pu097261 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Wed, 20 Mar 2024 15:50:03 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: Date: Wed, 20 Mar 2024 15:50:02 +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: syzbot , syzkaller-bugs@googlegroups.com, Alexei Starovoitov , Daniel Borkmann , John Fastabend , Petr Mladek , Steven Rostedt , John Ogness , Sergey Senozhatsky References: <000000000000e40a2906072e9567@google.com> Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, bpf From: Tetsuo Handa In-Reply-To: <000000000000e40a2906072e9567@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello, bpf developers. syzbot is reporting circular locking dependency because bpf program is hitting printk() path. To avoid this dependency, something like https://syzkaller.appspot.com/text?tag=Patch&x=121c92fe180000 is needed. Is it possible to call printk_deferred_{enter,exit}() from the bpf side (e.g. bpf_prog_run()) so that we don't need to add overhead on the scheduler side when bpf programs are not registered? printk_deferred_{enter,exit}() requires that printk_deferred_exit() is called on a CPU which printk_deferred_enter() was called, for percpu counter is used. Is migrate_{disable,enable}() also needed around printk_deferred_{enter,exit}() ? On 2023/10/08 15:28, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 7d730f1bf6f3 Add linux-next specific files for 20231005 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=172d36e9680000 > kernel config: https://syzkaller.appspot.com/x/.config?x=f532286be4fff4b5 > dashboard link: https://syzkaller.appspot.com/bug?extid=f78380e4eae53c64125c > compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40