Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp466156lqt; Fri, 19 Apr 2024 00:45:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWI+G6Ofgd5WM6CQ1nF2SP5MZdaLFam9Gg1tWCYbL/406YiGgLmeWnJzuIGkS/F/ayBwyi/mjo2EYcLuFwfD6E6cEpZ/NM6hrs3zL7HYw== X-Google-Smtp-Source: AGHT+IE6dv0TgqlLYl07HcVN9HL/h34YzilG+/OjZMufw1sXqzaigBwutoVeZOZH7cBRyUdmuSYb X-Received: by 2002:a05:6402:13d2:b0:571:b82b:4831 with SMTP id a18-20020a05640213d200b00571b82b4831mr5219568edx.7.1713512756734; Fri, 19 Apr 2024 00:45:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713512756; cv=pass; d=google.com; s=arc-20160816; b=dZ/kBKoQ8H0OTrcuKvRvQ9DA69ACpPrtTBBMJxq+LTl2eFrUYf7+XpLpaZQsfV1x5l 1FOgyQ1UMbLuzMhvdJvdBGJuTCXV3RX1+OW3HLtKncRysL348QgBKDd1KcGo8im8xc23 TBKdsUASqdycRsShLM3Cxynwr7hzQTmk7hoVdtxaNd2nMqp4+9tIgCkccVJrSCuuLOKT 9ZyCIRF6fUF87t7puGrdzYHaYGMuYn0kbvreKF+olxBgEYL/TiJkJek5PjiOYByXAGWb TO90avwNgePIymmZwvPiYnFkgEcTwI4MdEpXq9+kBtLVFVqUSh8v+YN1SIcaLjbl/zX9 jqwA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=v2CbqxqiKRFhLuKxyiQ96b3q978YvjljtUswuKcL6eA=; fh=SY24MEpGkXGPAdW6vG4XlMlQJ1N+sUo4CcS9mw0k5PU=; b=PIobM0uPg9Np/LoPjExzkQpXGpwGKoRnY+F5kUdIlHFA/ZHHN+/qOhro5kT8EW1ghy dS2yv0+A8c/kVMOA9ZxPdB0/IRtzvooCxTvK9fRa1PlFqAOCQ2jMHOMvhj/vOwmAtFr5 bgS75HBy1FGWRmxqJoxrE3G2rUuUN8JDtSEYyzjMPz75rHA4qvkv0TUgMwIxcEhwL2r2 RnfYMoqgi5Ay51H/TYp2stkuV1Jr6Fgcoai6kKN/6Wphf8YaXwjprTR4jCgqFkhs/IFO nuw1umMY1ebuINnI5dW6N1GcCYxDD2rko1z6L9JuzrPm5dHIJ8QJ/0fo7Wnba4lBEFKw EOMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Eby7e4Bb; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Eby7e4Bb; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-151131-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151131-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v4-20020aa7d644000000b0056e5c5c072fsi1890537edr.598.2024.04.19.00.45.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 00:45:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151131-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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Eby7e4Bb; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Eby7e4Bb; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-151131-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151131-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 4CAC91F22A07 for ; Fri, 19 Apr 2024 07:45:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 521C34AED9; Fri, 19 Apr 2024 07:45:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="Eby7e4Bb"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="Ja5YI5De"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="Eby7e4Bb"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="Ja5YI5De" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E033043ACB; Fri, 19 Apr 2024 07:45:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713512734; cv=none; b=aonYAsaEnNqMMPz3VqWoHDUzX7qCbMSJ2YuM6zlZBzDumq1ywxvRcVbO8k+p70psb3xC8TtKaCiag3qMt6gpVHKYAavsLnRKDX0TE6A/G3ZnVK9Nabl3urMNajPIWg1o5oX48D7L3tKlU7/4vpvunq5eB9u7zUt6Pud/l7Oisvo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713512734; c=relaxed/simple; bh=juvinVdEgYuwYOANFHK3Jj6AkU89ykOt8K0a7Q+BApE=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=PmhNap2PPhiLVGY1wa3XFzTnfWci6/5QwsX4lccuhhdh000sAMlXztq/9wiMwrT6L+knaxkvIjXu2WDC+WKEZ/RhV+IklrI4wd5KtcK95xWlbxBGqh0kKaqpvqqTlgh/goJXphkvuL8GFMnqkKfi9EvZsmhoFyazXycH08u9ups= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=Eby7e4Bb; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=Ja5YI5De; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=Eby7e4Bb; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=Ja5YI5De; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 230925D42E; Fri, 19 Apr 2024 07:45:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1713512730; 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=v2CbqxqiKRFhLuKxyiQ96b3q978YvjljtUswuKcL6eA=; b=Eby7e4Bb0ywUAAR9YC+ROvR6GD9JRvN+5K3U/JyzmfGQ45neTR/tOQx/vtsk4RSyaFjADd GFWrUrNShxSbAKMGKKJlTuZTtYn1hR4oS/g7yQvhGNsZyF7imrczZ6eWZcbiYnzdqvqLuq K7se6qmYqTPrLFq3ZS0aDKsJFf7XcAE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1713512730; 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=v2CbqxqiKRFhLuKxyiQ96b3q978YvjljtUswuKcL6eA=; b=Ja5YI5De+zx2p+OzhhmPkIyRcU3x6qfyDuxjDfLiF/vngjDE3a0ATTB00PgaU8y0YOfynb isXa2/ERomvE7gBA== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1713512730; 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=v2CbqxqiKRFhLuKxyiQ96b3q978YvjljtUswuKcL6eA=; b=Eby7e4Bb0ywUAAR9YC+ROvR6GD9JRvN+5K3U/JyzmfGQ45neTR/tOQx/vtsk4RSyaFjADd GFWrUrNShxSbAKMGKKJlTuZTtYn1hR4oS/g7yQvhGNsZyF7imrczZ6eWZcbiYnzdqvqLuq K7se6qmYqTPrLFq3ZS0aDKsJFf7XcAE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1713512730; 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=v2CbqxqiKRFhLuKxyiQ96b3q978YvjljtUswuKcL6eA=; b=Ja5YI5De+zx2p+OzhhmPkIyRcU3x6qfyDuxjDfLiF/vngjDE3a0ATTB00PgaU8y0YOfynb isXa2/ERomvE7gBA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id B213D136CF; Fri, 19 Apr 2024 07:45:29 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id MxorKhkhImavWQAAD6G6ig (envelope-from ); Fri, 19 Apr 2024 07:45:29 +0000 Date: Fri, 19 Apr 2024 09:45:37 +0200 Message-ID: <8734rhvlr2.wl-tiwai@suse.de> From: Takashi Iwai To: Harshit Mogalapalli Cc: Takashi Iwai , Helge Deller , Nam Cao , Thomas Zimmermann , Daniel Vetter , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, bigeasy@linutronix.de, patrik.r.jakobsson@gmail.com, LKML , Vegard Nossum , George Kennedy , Darren Kenny , chuansheng.liu@intel.com Subject: Re: [bug-report] task info hung problem in fb_deferred_io_work() In-Reply-To: <5febb249-1d4d-4ea7-b031-1df4d14620d2@oracle.com> References: <271372d6-e665-4e7f-b088-dee5f4ab341a@oracle.com> <20240418160652.68df1a86@namcao> <87ttjywxv5.wl-tiwai@suse.de> <878r19voks.wl-tiwai@suse.de> <5febb249-1d4d-4ea7-b031-1df4d14620d2@oracle.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Flag: NO X-Spam-Score: -1.80 X-Spam-Level: X-Spamd-Result: default: False [-1.80 / 50.00]; BAYES_HAM(-3.00)[100.00%]; SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TAGGED_RCPT(0.00)[]; RCPT_COUNT_TWELVE(0.00)[15]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVRCPT(0.00)[gmail.com,gmx.de]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[suse.de,gmx.de,linutronix.de,ffwll.ch,vger.kernel.org,lists.freedesktop.org,gmail.com,oracle.com,intel.com]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns] On Fri, 19 Apr 2024 09:39:09 +0200, Harshit Mogalapalli wrote: > > Hi Takashi, > > On 19/04/24 12:14, Takashi Iwai wrote: > > On Thu, 18 Apr 2024 21:29:57 +0200, > > Helge Deller wrote: > >> > >> On 4/18/24 16:26, Takashi Iwai wrote: > >>> On Thu, 18 Apr 2024 16:06:52 +0200, > >>> Nam Cao wrote: > >>>> > >>>> On 2024-04-18 Harshit Mogalapalli wrote: > >>>>> While fuzzing 5.15.y kernel with Syzkaller, we noticed a INFO: task hung > >>>>> bug in fb_deferred_io_work() > >>>> > >>>> Which framebuffer device are you using exactly? It is possible that > >>>> the problem is with the device driver, not core framebuffer. > >>> > >>> Note that it was already known that using flush_delayed_work() caused > >>> a problem. See the thread of the fix patch: > >>> https://lore.kernel.org/all/20230129082856.22113-1-tiwai@suse.de/ > >> > >> Harshit reported the hung tasks with kernel v5.15-stable, and can even reproduce > >> that issue with kernel v6.9-rc4 although it has all of your patches from > >> that referenced mail thread applied. > >> So, what does your statement that "it was already known that it causes problems" exactly mean? > >> Can it be fixed? Is someone looking into fixing it? > > > > My original fix was intentionally with cancel_delayed_work_sync() > > because flush_delayed_work() didn't work. We knew that it'd miss some > > last-minute queued change, but it's better than crash, so it was > > applied in that way. > > > > Thanks for sharing these details. > > > Then later on, the commit 33cd6ea9c067 changed cancel_*() to > > flush_delayed_work() blindly, and the known problem resurfaced again. > > > > I have reverted that commit, but still could see some other task hung > message as shared here on other reply: > > https://lore.kernel.org/all/d2485cb9-277d-4b8e-9794-02f1efababc9@oracle.com/ Yes, then it could be a different cause, I suppose. The crash with flush_delayed_work() was a real crash, no hanging task, IIRC. Can you reproduce the issue with the latest Linus upstream, too? thanks, Takashi