Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1987522rdb; Tue, 3 Oct 2023 07:11:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGBxFofhyssn+VAc4nbCU1jbxrg+jOb6blrmZFgDp1trOMBpCJtRb7553X4aLBCwv+B+kHq X-Received: by 2002:a05:6a20:144e:b0:149:700e:f50a with SMTP id a14-20020a056a20144e00b00149700ef50amr4179391pzi.29.1696342313372; Tue, 03 Oct 2023 07:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696342313; cv=none; d=google.com; s=arc-20160816; b=nW3Ll50k48AoFmUFJ7ObpTuRrcXQCA/9s09i05KG+jCqUBdXhWBmJUIys607VVDQfL Aojo+bWopPPbF2Dh0birWWam8vqPYHDLR8wSZoqoGnPmfkBnAAQEjJP+D2hjeVTWN5ph 0YprKLjLF5CrtRjUmtm4d4+wbbYID2ybBvxSFPMnCwltT7JzHGGp6ZrC8X2LJSbY1kU/ Yl9aizsfxTeHjfE55zVdG3/G0rttE3vxvKZkUyOjFXec/EO36mgv4M2q1uSbvxRf7Obt TruS64n/ivQGT3eQ0emtln7MuXzC2FTrGzdxYw3LdqO0xuOUWyMhE5/+99fmRv5abyo4 Wfng== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=f5OIuVSTUdWImnFCTEXCJMtsDWw6OTj7aIC1dkPr/+Q=; fh=r9CQS09sqnIPBc8hcS7Q9/Cju+EQgMM7dcgoeHslRKA=; b=HuLZTXJQcbTzJoRyjfEKGPl7KDfnDnvw6fl+goT0afae87Ysw2AoSN+1PySDKUhCBF pkNncX7/jLnCf80ct5Ijj566AQmKI87rL5u76i8TIuw6ycm83aUllbdsdNeaA1LSnCD9 qfgM0HjW9Xr5skoHhUavTZV+p1tnkHxdQ5Jkc0MXTTD+QIj1iBSARp1eWQzkd2A7NaLi 2DMRv2GE7zA1igzYUGoY4YN6zK01vcU3uQtAk9/ItMR4ktirWg10whYAOVFQB/HV8e2I 4OU2u1py9qVCyqbbjFj6mwKHLm0MrmkbzKkXMqUWAH9N9KmOuR04pC606LY+jDG9l1o/ U0qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@anarazel.de header.s=fm2 header.b=iGYfw28U; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=o9BvMg2K; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id by5-20020a056a02058500b005891f74294csi1721232pgb.246.2023.10.03.07.11.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:11:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@anarazel.de header.s=fm2 header.b=iGYfw28U; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=o9BvMg2K; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D00D68060066; Tue, 3 Oct 2023 07:11:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232238AbjJCOLq (ORCPT + 99 others); Tue, 3 Oct 2023 10:11:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231834AbjJCOLp (ORCPT ); Tue, 3 Oct 2023 10:11:45 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8081395 for ; Tue, 3 Oct 2023 07:11:42 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 629AF5C01BC; Tue, 3 Oct 2023 10:11:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 03 Oct 2023 10:11:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1696342299; x=1696428699; bh=f5OIuVSTUdWImnFCTEXCJMtsDWw6OTj7aIC 1dkPr/+Q=; b=iGYfw28UfzEEnbujsAk437h4/+fwFRbhOpFhoPtuEriGamzD6K8 +sYn9RE8tx+rHKSfGEh1i4+R7cQGdNXakhIymSYcimIIG8EjDuPQQ0/gAlY/z420 dpQFTdhPjDiiRK43FE0gshknHE7pr8CN66Bodob8yB4wm8P18fqd0Wdw5m4txbo4 iOe90uvohzoowhFBykSrxOf6SDPd8dzivAPTpIw+RF7BeWADgj1jLMsl/dQvGAPc UtZGTHusgQJlAZ78IogHGhoCMq1Ct+Z6FWyEzVrUfDGzLfFFrqu6uncXLnMvGosh kMqZokPkFV7iLwyVExYLh+qQ7YMNk4pjFlw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1696342299; x=1696428699; bh=f5OIuVSTUdWImnFCTEXCJMtsDWw6OTj7aIC 1dkPr/+Q=; b=o9BvMg2K1BoCZ1BF8l6iHmwf826o/tYoI3GRjfVkT5P4CILp1dQ wapaqqPm8Ou3MA3qBzU3pMS+3RTEXlNt51Totj3+JjE8Z6M0EAb9V83QEQdjNcJX x6Ll/uOb7xYtdgGPrkth+2fuVKudFBsUuEL5KX4UkkFvo/Ctb+QAcyJ9rK3RaDu1 03w+aH96pN5LpXoPHc+arwMyFY6hjBoTfuTBDa9o3WIRtle8JYsUkp2bmfCZLiFs qoENro4GYQkkpla87zdOT147PHPFpC8eEU//dlyqxxzgE5Jw9hVgiHE4G75lgIiE jrjA0NiApYnh18c58SPYyyhCAkjh1SwzWew== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfeeigdejudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtugfgjgesthekredttddtudenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepuddtieegleejheeujeeiveegueelhfekleeuffdukeduleduffehfffg teeivefhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 3 Oct 2023 10:11:38 -0400 (EDT) Date: Tue, 3 Oct 2023 07:11:38 -0700 From: Andres Freund To: Theodore Ts'o Cc: Shreeya Patel , linux-ext4@vger.kernel.org, Ricardo =?utf-8?Q?Ca=C3=B1uelo?= , "gustavo.padovan@collabora.com" , groeck@google.com, zsm@google.com, garrick@google.com, Linux regressions mailing list Subject: Re: [syzbot] INFO: task hung in ext4_fallocate Message-ID: <20231003141138.owt6qwqyf4slgqgp@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 03 Oct 2023 07:11:46 -0700 (PDT) Hi, On 2023-09-18 18:07:54 -0400, Theodore Ts'o wrote: > On Mon, Sep 18, 2023 at 08:13:30PM +0530, Shreeya Patel wrote: > > When I tried to reproduce this issue on mainline linux kernel using the > > reproducer provided by syzbot, I see an endless loop of following errors :- > > > > [?? 89.689751][ T3922] loop1: detected capacity change from 0 to 512 > > [?? 89.690514][ T3916] EXT4-fs error (device loop4): ext4_map_blocks:577: > > inode #3: block 9: comm poc: lblock 0 mapped to illegal pblock 9 (length 1) > > [?? 89.694709][ T3890] EXT4-fs error (device loop0): ext4_map_blocks:577: > > Please note that maliciously corrupted file system is considered low > priority by ext4 developers. FWIW, I am seeing occasional hangs in ext4_fallocate with 6.6-rc4 as well, just doing database development on my laptop. Oct 03 06:48:30 alap5 kernel: INFO: task postgres:132485 blocked for more than 122 seconds. Oct 03 06:48:30 alap5 kernel: Not tainted 6.6.0-rc4-andres-00009-ge38f6d0c8360 #74 Oct 03 06:48:30 alap5 kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. Oct 03 06:48:30 alap5 kernel: task:postgres state:D stack:0 pid:132485 ppid:132017 flags:0x00020006 Oct 03 06:48:30 alap5 kernel: Call Trace: Oct 03 06:48:30 alap5 kernel: Oct 03 06:48:30 alap5 kernel: __schedule+0x388/0x13e0 Oct 03 06:48:30 alap5 kernel: ? nvme_queue_rqs+0x1e6/0x290 Oct 03 06:48:30 alap5 kernel: schedule+0x5f/0xe0 Oct 03 06:48:30 alap5 kernel: inode_dio_wait+0xd5/0x100 Oct 03 06:48:30 alap5 kernel: ? membarrier_register_private_expedited+0xa0/0xa0 Oct 03 06:48:30 alap5 kernel: ext4_fallocate+0x12f/0x1040 Oct 03 06:48:30 alap5 kernel: ? io_submit_sqes+0x392/0x660 Oct 03 06:48:30 alap5 kernel: vfs_fallocate+0x135/0x360 Oct 03 06:48:30 alap5 kernel: __x64_sys_fallocate+0x42/0x70 Oct 03 06:48:30 alap5 kernel: do_syscall_64+0x38/0x80 Oct 03 06:48:30 alap5 kernel: entry_SYSCALL_64_after_hwframe+0x46/0xb0 Oct 03 06:48:30 alap5 kernel: RIP: 0033:0x7fda32415f82 Oct 03 06:48:30 alap5 kernel: RSP: 002b:00007ffedbea0828 EFLAGS: 00000246 ORIG_RAX: 000000000000011d Oct 03 06:48:30 alap5 kernel: RAX: ffffffffffffffda RBX: 00000000002a6000 RCX: 00007fda32415f82 Oct 03 06:48:30 alap5 kernel: RDX: 0000000014b22000 RSI: 0000000000000000 RDI: 0000000000000016 Oct 03 06:48:30 alap5 kernel: RBP: 0000000014b22000 R08: 0000000014b22000 R09: 0000558f70eabed0 Oct 03 06:48:30 alap5 kernel: R10: 00000000002a6000 R11: 0000000000000246 R12: 00000000000000e0 Oct 03 06:48:30 alap5 kernel: R13: 000000000a000013 R14: 0000000000000004 R15: 0000558f709d4e70 Oct 03 06:48:30 alap5 kernel: cat /proc/132485/stack [<0>] inode_dio_wait+0xd5/0x100 [<0>] ext4_fallocate+0x12f/0x1040 [<0>] vfs_fallocate+0x135/0x360 [<0>] __x64_sys_fallocate+0x42/0x70 [<0>] do_syscall_64+0x38/0x80 [<0>] entry_SYSCALL_64_after_hwframe+0x46/0xb0 cat /sys/kernel/debug/block/nvme1n1/hctx*/busy doesn't show any active IO. Nor does the issue resolve when resetting the controller - so I don't think this is a disk/block level issue. This is on 8f1b4600373f, with one local, unrelated, commit ontop. Unfortunately, so far, I've only reproduced this every couple hours of interactive work, so bisecting isn't really feasible. I've not hit it on 6.5 over a considerably longer time, so I am reasonably confident this isn't an older issue. Greetings, Andres Freund