Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp443227lqt; Thu, 18 Apr 2024 23:44:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW8npbRqoo15BxdFNIvUI4YoDqEHRdP3MmsfO4EyR9o/AR7Nm1+9+eIiNAmsn4EzcJIoIZRtdCKxkMQe0ThNM3RhWtRXliPudRu7dDW4Q== X-Google-Smtp-Source: AGHT+IEnD1/GwIeLW0R+Z7h6yw/iagIyJckS3vGAfdjl7fjyAAfgPG6Xo3f97VtPFTJNEPHgJ0sj X-Received: by 2002:aca:1e0c:0:b0:3c7:4b08:e6ae with SMTP id m12-20020aca1e0c000000b003c74b08e6aemr259683oic.40.1713509084489; Thu, 18 Apr 2024 23:44:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713509084; cv=pass; d=google.com; s=arc-20160816; b=NX26YBiNyGUuEzipzdw6vSQ0Ntc4QW9MDH8w2E5+1GMot1SSs+p7aVdEPHiEjtrPUn v3OKZItxKAcg1GLGqM6Jn8O3SnlfHQPUeFYqAryBzuDtxzcYZECZkWkK+AWDYZl1Ji0X v35i/QGb7HtvkuJrcD/AOuamJ4/Z4r+/aBABlUQaM3QiEYjcimORAcPldcC9NC3Bb1Be yvvjV7JbwcQd0MsUAcMNt1aOj9ftiC8aBnPC9HcJhnJmSjbwxDXjnvwTcKqW3xM/VHRK VfmB8l2MXz2kCQHo6QhjTj/Yygn4TiUAi4xf2MsKKfZOIFSNWsdHu61qa/AmjjxLDp0C ec6w== 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=UROJHqQVwW/+GHHAIwwIcUJ9WuKIRocbwkF9swP1GXo=; fh=zvkgqHbUMmYRYabJdA97oFAkBc92jzUVoObRIL0vcX0=; b=VzNV5+2PoOMZTgTLB8bCEDjQz3f1w69DROjFJtbD4orfIWhSdMkqt10TozWrwpCdaD 8C7I/38zj7mjpA13mlkRQBUOrxRPCnhyd6krFhtPiHtO2t6j4gPRZbxmnKTV4OFlTR7e EnpWV+hChylLBKtc5baSdttydbcRHi+LdumYcYKRNcCkMiLEknsixwHXt/ApkHfs77Dr w77f3PBpb4bC2TxIg6CulrWKT14o7cDCWLroViQ6//uriTeGZPecJXlh7qR9EFlED5El 10fGt952frgYhlffVO4tN+wYOk7XoqpRX6SVLEcmgg3T4H9TeYPQKUs+k1FXPZg0MGOv 6Uag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=PIWehuEj; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=PIWehuEj; 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-151066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 4-20020a631744000000b005cf268638f4si2669178pgx.156.2024.04.18.23.44.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 23:44:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=PIWehuEj; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=PIWehuEj; 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-151066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151066-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EC53C284749 for ; Fri, 19 Apr 2024 06:44:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7FFE38382; Fri, 19 Apr 2024 06:44:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="PIWehuEj"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="c0EPZo5H"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="PIWehuEj"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="c0EPZo5H" 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 711AFDDCD; Fri, 19 Apr 2024 06:44:36 +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=1713509077; cv=none; b=CXtFJTwmgxSfgGunGrSCAj1tR2x8F8EdQgVzSm83tuASpY7kwcNyxvjQUPJwscMty4A3yaDpApmArYRO931e1zmoCQyDWDdeN7720js1a8JAnti6QCuQm3nrCy10s7q6rZ881lwX4lDhuy3nkUNFgVxJf6bDS/ENrhdN9Hki8es= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713509077; c=relaxed/simple; bh=nZE8GP15Tpu8RoAw/K0BsUWuKsEVSKd62qJfcUEAEXw=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=ut1KtWK4y9LqERPRtOXr9tKasmpMusIuxq5hQBlxHw6XevYQViYjBNTCisYSsMOCqAER7ntXLNKEkEA5XhNTLrPAfl0v9K/Gb60WsxqddcdZCMlTX+yQglNK1+pz9ds0Di0dHB5Y80IlS/UbwZkWGWMtJURa5yXbSkGxwgB1WTc= 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=PIWehuEj; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=c0EPZo5H; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=PIWehuEj; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=c0EPZo5H; 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 8C9F25D3A1; Fri, 19 Apr 2024 06:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1713509068; 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=UROJHqQVwW/+GHHAIwwIcUJ9WuKIRocbwkF9swP1GXo=; b=PIWehuEjC16feTeJ8/Qm0TYOcWGEk/uFIRzimIKUVBEYRjZLo1buiKnkMRTWGFyBtWlkED eSi3YhncHR5gYmFESoCK+xQ2UI4XtXB6uszcnUJlVU8c2qJtkoSW0EeNQvjbY3zkLHrlW1 mLPZZgExGzEbDG+g2nuqAvOBcGEWFWA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1713509068; 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=UROJHqQVwW/+GHHAIwwIcUJ9WuKIRocbwkF9swP1GXo=; b=c0EPZo5HDSDWsu1bCIdkfiiFI5aY4sF/T3JgxIfnTNMUUlYT8/mW/pT3GlIvL6FoaZtCYQ ZsU/k9baZQ+279CQ== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1713509068; 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=UROJHqQVwW/+GHHAIwwIcUJ9WuKIRocbwkF9swP1GXo=; b=PIWehuEjC16feTeJ8/Qm0TYOcWGEk/uFIRzimIKUVBEYRjZLo1buiKnkMRTWGFyBtWlkED eSi3YhncHR5gYmFESoCK+xQ2UI4XtXB6uszcnUJlVU8c2qJtkoSW0EeNQvjbY3zkLHrlW1 mLPZZgExGzEbDG+g2nuqAvOBcGEWFWA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1713509068; 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=UROJHqQVwW/+GHHAIwwIcUJ9WuKIRocbwkF9swP1GXo=; b=c0EPZo5HDSDWsu1bCIdkfiiFI5aY4sF/T3JgxIfnTNMUUlYT8/mW/pT3GlIvL6FoaZtCYQ ZsU/k9baZQ+279CQ== 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 3055A13687; Fri, 19 Apr 2024 06:44:28 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id d0WbCswSImYIRgAAD6G6ig (envelope-from ); Fri, 19 Apr 2024 06:44:28 +0000 Date: Fri, 19 Apr 2024 08:44:35 +0200 Message-ID: <878r19voks.wl-tiwai@suse.de> From: Takashi Iwai To: Helge Deller Cc: Takashi Iwai , Nam Cao , Thomas Zimmermann , Harshit Mogalapalli , 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: References: <271372d6-e665-4e7f-b088-dee5f4ab341a@oracle.com> <20240418160652.68df1a86@namcao> <87ttjywxv5.wl-tiwai@suse.de> 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)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TAGGED_RCPT(0.00)[]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_TWELVE(0.00)[15]; FREEMAIL_TO(0.00)[gmx.de]; FREEMAIL_ENVRCPT(0.00)[gmail.com,gmx.de]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[suse.de,linutronix.de,oracle.com,ffwll.ch,vger.kernel.org,lists.freedesktop.org,gmail.com,intel.com]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_SOME(0.00)[] 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. Then later on, the commit 33cd6ea9c067 changed cancel_*() to flush_delayed_work() blindly, and the known problem resurfaced again. Takashi