Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5131072rdb; Tue, 12 Dec 2023 22:36:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1pgYbfZ1uTKdz455Fc29FuvFtuIkcizFIeM/MMntlEprvdW8s8bYew5P+V/TvdGmoRgWY X-Received: by 2002:a0d:e685:0:b0:5e1:b789:9e58 with SMTP id p127-20020a0de685000000b005e1b7899e58mr2492025ywe.31.1702449395954; Tue, 12 Dec 2023 22:36:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702449395; cv=none; d=google.com; s=arc-20160816; b=y6kVY2CfBj2WZLfZS7k5BSqb6/AkhLlZ6EkKIzr3RXzozAxIDZnDOZ7/LWAfx8JgTE c5jlP5xy/2JGNN2fznVm0/2+y8XjLC9o3ZYmvUf803O4VnpY6uYTP0O1yPr91vv02tGa OpPfaI7MfAvfhQOWv+e27SpBaibwh/IKr/eDbAK50jo9Pr/Vwwt/WZPauz2EXV9W8wb+ MaRH8Apm0xuEUf1ota91kmEIs1+WCxrt+ghE0qGDKUYyApJBeCnXCssWH0KmAsGVjSqU bTpLaAMsgKeZ5SwhnL91FNyBpA1yc6RZhF2+MQ+tMHnk34L6XPRPeSFADmJJnPThqh4l 371Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:mime-version:dkim-signature; bh=kcmFWfftq2G2Pe8r2jvIeDmGVCfNhd3HCerTRPIks3k=; fh=fDmwoHgzMT72Qm4cdYDek/2xQowXMvB2MJOLLbsL8Zs=; b=ALeLXlA/U7FUFV2D5Jxhe8SvzJBrU2YSlZvk+nVuCS+axIdKU8ncnrITBBf42+33EK BEFvXS/oxoEjQjLzNmWbnzctclx6DTshCrEWPcar5Tc+HVDaQ01CS8UYzXhqvH5JKhuY qCUkYrA0ylPLki5yxpaEyRR94daWf86EfS3k3f3HoTX2SwlYV8Tdg9f7wIN6i1lA3Gdo vZq51xLt995mMq/QoI++MjExlCvFBNXM1+Yrt9ulZfkIO9atQyqIlqZ5qa0vsPO7+/Pp Ekq3hWLPb0gr5o0BumlPF2ZMIx+nek7o/qVjDkbyiFz/sptNnJ3GZolwXYLXlmoD0FJ7 xm0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bO1MzouK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id o2-20020a170902d4c200b001cc3527145bsi9277284plg.29.2023.12.12.22.36.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 22:36:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bO1MzouK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 2FCD281CDBB4; Tue, 12 Dec 2023 22:36:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378637AbjLMGgL (ORCPT + 99 others); Wed, 13 Dec 2023 01:36:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378644AbjLMGgI (ORCPT ); Wed, 13 Dec 2023 01:36:08 -0500 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 261DC116; Tue, 12 Dec 2023 22:36:11 -0800 (PST) Received: by mail-oi1-x230.google.com with SMTP id 5614622812f47-3b9e7f4a0d7so4264512b6e.1; Tue, 12 Dec 2023 22:36:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702449370; x=1703054170; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kcmFWfftq2G2Pe8r2jvIeDmGVCfNhd3HCerTRPIks3k=; b=bO1MzouKJLCOHPp4Szm+trCtoNQqe9zVmPgzRKGgPx3/fkMTvK3wx0M8MaUd0cCAHm vVScit1m7ou23HkEz+HPNo0vxXZ2qxpgfEatZfNx0oWD6P0JfJdEEyacSEPJ/lJaazPT 9smieZIsXU5HdJfuoQ0bzlFWVoC/X6RccDMV39QrPYcwCQwOj3uyPNO9pLQeHwMdUd4W ZJOJaEBmcREK1gcouopYybie0og+Mp5Wpx/c4/Zb8ebCQ/QTyxERsu5RJuAoJDUPHLqu HgMZvrFg+TaPV4TYdiENXKCERdsgRG9sOdWxjIP+yQehbLydGMrpsI3gXeQDmMcmVHc1 gJfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702449370; x=1703054170; h=content-transfer-encoding:cc:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kcmFWfftq2G2Pe8r2jvIeDmGVCfNhd3HCerTRPIks3k=; b=g3D1wWBLdbYDsTo0WDgigUq8yvY5C52GX3g2VbvwmhKIlhunAHGypf0A9WgSBucYQ7 /Bdy3UltbccYxlswrO6mLibUJTdYU3bOTr5ZjqzVYVL8Xjcui9qMk0fpHWiSRbnd7V3Z 0uzlZd6A50tl2uVW5L+JbSWq0oeNbeevGnfxwAo1iXO/TkxfIq7Wdd6q50hLECqHLy2C lB0H0ZnrzhCAP7Fps3KboAGCduWEfrpJNd0S2/2fLevJS4r9g3qxFLEZZlQl2l6H0LVt kleFA6puEZrzGetiVx1biCIjfsbF/VjcDBCtWCVxQ3acJkQwK8NK8CeljT0w9/NH63kT I6gw== X-Gm-Message-State: AOJu0YwzdjvTgSbkmyR9XQ4Mrk8Xy41yalHnAojDxYhT6ZZz7HbbY/i5 dPMopNA4/Zxn1KAALUV5O9coKYrphrf5pQjLrEelPFaSXWByNrsZ X-Received: by 2002:a05:6808:10cc:b0:3b8:b063:5049 with SMTP id s12-20020a05680810cc00b003b8b0635049mr10985998ois.74.1702449370274; Tue, 12 Dec 2023 22:36:10 -0800 (PST) MIME-Version: 1.0 From: xingwei lee Date: Wed, 13 Dec 2023 14:35:58 +0800 Message-ID: Subject: Re: [syzbot] [gfs2] WARNING in vfs_utimes To: syzbot+0c64a8706d587f73409e@syzkaller.appspotmail.com Cc: brauner@kernel.org, gfs2@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=1.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SORTED_RECIPS, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 12 Dec 2023 22:36:32 -0800 (PST) X-Spam-Level: * Hello, I reproduced this bug with repro.c and repro.txt since it relatively large please see https://gist.github.com/xrivendell7/b3b804bbf6d8c9930b2ba22e2dfaa6e6 Since this bug in the dashboard https://syzkaller.appspot.com/bug?extid=3D0c64a8706d587f73409e use kernel commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin= ux.git/log/?id=3Daed8aee11130a954356200afa3f1b8753e8a9482 kernel config: https://syzkaller.appspot.com/text?tag=3DKernelConfig&x=3Ddf= 91a3034fe3f122 my repro.c use the seem config and it crash report like below, and it=E2=80=99s almost can make sure it the same as bug reported by syzobt. TITLE: WARNING in vfs_utimes CORRUPTED: false () MAINTAINERS (TO): [linux-kernel@vger.kernel.org] MAINTAINERS (CC): [brauner@kernel.org linux-fsdevel@vger.kernel.org viro@zeniv.linux.org.uk] ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) !=3D current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): y WARNING: CPU: 2 PID: 12763 at kernel/locking/rwsem.c:1370 __up_write kernel/locking/rwsem.c:1369 [inline] WARNING: CPU: 2 PID: 12763 at kernel/locking/rwsem.c:1370 up_write+0x4f4/0x580 kernel/locking/rwsem.c:1626 Modules linked in: CPU: 2 PID: 12763 Comm: c90 Not tainted 6.6.0-rc1-00072-gaed8aee11130-dirty= #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:__up_write kernel/locking/rwsem.c:1369 [inline] RIP: 0010:up_write+0x4f4/0x580 kernel/locking/rwsem.c:1626 Code: 48 c7 c7 20 99 4a 8b 48 c7 c6 60 9b 4a 8b 48 8b 54 24 28 48 8b 4c 24 18 4d 89 e0 4c 8b 4c 24 31 RSP: 0018:ffffc9000af5fbe0 EFLAGS: 00010292 RAX: d361770a4cb50c00 RBX: ffffffff8b4a9a00 RCX: 0000000000000000 RDX: ffff8880298fbcc0 RSI: ffff8880298fbcc0 RDI: 0000000000000000 RBP: ffffc9000af5fcb0 R08: ffffffff8155ef6f R09: 1ffff1101732516a R10: dffffc0000000000 R11: ffffed101732516b R12: 0000000000000000 R13: ffff88807c966d68 R14: 1ffff920015ebf84 R15: dffffc0000000000 FS: 00007fc89df2d6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc89df2e000 CR3: 000000014aab9000 CR4: 0000000000750ee0 PKRU: 55555554 Call Trace: inode_unlock include/linux/fs.h:807 [inline] vfs_utimes+0x4dc/0x790 fs/utimes.c:68 do_utimes_path fs/utimes.c:99 [inline] do_utimes fs/utimes.c:145 [inline] __do_sys_utime fs/utimes.c:226 [inline] __se_sys_utime+0x1f2/0x2f0 fs/utimes.c:215 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x43deb9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 1c 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c8 RSP: 002b:00007fc89df2d208 EFLAGS: 00000246 ORIG_RAX: 0000000000000084 RAX: ffffffffffffffda RBX: 00007fc89df2d6c0 RCX: 000000000043deb9 RDX: 0031656c69662f2e RSI: 0000000000000000 RDI: 0000000020000080 RBP: 00007fc89df2d220 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffb0 R13: 0000000000000016 R14: 00007fffd3267590 R15: 00007fffd3267678 TITLE: kernel panic: kernel: panic_on_warn set ... CORRUPTED: false () MAINTAINERS (TO): [linux-kernel@vger.kernel.org] MAINTAINERS (CC): [brauner@kernel.org linux-fsdevel@vger.kernel.org viro@zeniv.linux.org.uk] Modules linked in: CPU: 2 PID: 12763 Comm: c90 Not tainted 6.6.0-rc1-00072-gaed8aee11130-dirty= #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:__up_write kernel/locking/rwsem.c:1369 [inline] RIP: 0010:up_write+0x4f4/0x580 kernel/locking/rwsem.c:1626 Code: 48 c7 c7 20 99 4a 8b 48 c7 c6 60 9b 4a 8b 48 8b 54 24 28 48 8b 4c 24 18 4d 89 e0 4c 8b 4c 24 31 RSP: 0018:ffffc9000af5fbe0 EFLAGS: 00010292 RAX: d361770a4cb50c00 RBX: ffffffff8b4a9a00 RCX: 0000000000000000 RDX: ffff8880298fbcc0 RSI: ffff8880298fbcc0 RDI: 0000000000000000 RBP: ffffc9000af5fcb0 R08: ffffffff8155ef6f R09: 1ffff1101732516a R10: dffffc0000000000 R11: ffffed101732516b R12: 0000000000000000 R13: ffff88807c966d68 R14: 1ffff920015ebf84 R15: dffffc0000000000 FS: 00007fc89df2d6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc89df2e000 CR3: 000000014aab9000 CR4: 0000000000750ee0 PKRU: 55555554 Call Trace: inode_unlock include/linux/fs.h:807 [inline] vfs_utimes+0x4dc/0x790 fs/utimes.c:68 do_utimes_path fs/utimes.c:99 [inline] do_utimes fs/utimes.c:145 [inline] __do_sys_utime fs/utimes.c:226 [inline] __se_sys_utime+0x1f2/0x2f0 fs/utimes.c:215 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x43deb9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 1c 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c8 RSP: 002b:00007fc89df2d208 EFLAGS: 00000246 ORIG_RAX: 0000000000000084 RAX: ffffffffffffffda RBX: 00007fc89df2d6c0 RCX: 000000000043deb9 RDX: 0031656c69662f2e RSI: 0000000000000000 RDI: 0000000020000080 RBP: 00007fc89df2d220 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffb0 R13: 0000000000000016 R14: 00007fffd3267590 R15: 00007fffd3267678 Kernel panic - not syncing: kernel: panic_on_warn set ... CPU: 2 PID: 12763 Comm: c90 Not tainted 6.6.0-rc1-00072-gaed8aee11130-dirty= #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1f4/0x2f0 lib/dump_stack.c:106 panic+0x31e/0x7a0 kernel/panic.c:340 __warn+0x32e/0x4c0 __report_bug lib/bug.c:199 [inline] report_bug+0x2ca/0x520 lib/bug.c:219 handle_bug+0x3d/0x70 arch/x86/kernel/traps.c:237 exc_invalid_op+0x1a/0x50 arch/x86/kernel/traps.c:258 asm_exc_invalid_op+0x1a/0x20 arch/x86/include/asm/idtentry.h:568 RIP: 0010:__up_write kernel/locking/rwsem.c:1369 [inline] RIP: 0010:up_write+0x4f4/0x580 kernel/locking/rwsem.c:1626 Code: 48 c7 c7 20 99 4a 8b 48 c7 c6 60 9b 4a 8b 48 8b 54 24 28 48 8b 4c 24 18 4d 89 e0 4c 8b 4c 24 31 RSP: 0018:ffffc9000af5fbe0 EFLAGS: 00010292 RAX: d361770a4cb50c00 RBX: ffffffff8b4a9a00 RCX: 0000000000000000 RDX: ffff8880298fbcc0 RSI: ffff8880298fbcc0 RDI: 0000000000000000 RBP: ffffc9000af5fcb0 R08: ffffffff8155ef6f R09: 1ffff1101732516a R10: dffffc0000000000 R11: ffffed101732516b R12: 0000000000000000 R13: ffff88807c966d68 R14: 1ffff920015ebf84 R15: dffffc0000000000 inode_unlock include/linux/fs.h:807 [inline] vfs_utimes+0x4dc/0x790 fs/utimes.c:68 do_utimes_path fs/utimes.c:99 [inline] do_utimes fs/utimes.c:145 [inline] __do_sys_utime fs/utimes.c:226 [inline] __se_sys_utime+0x1f2/0x2f0 fs/utimes.c:215 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x43deb9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 1c 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c8 RSP: 002b:00007fc89df2d208 EFLAGS: 00000246 ORIG_RAX: 0000000000000084 RAX: ffffffffffffffda RBX: 00007fc89df2d6c0 RCX: 000000000043deb9 RDX: 0031656c69662f2e RSI: 0000000000000000 RDI: 0000000020000080 RBP: 00007fc89df2d220 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffb0 R13: 0000000000000016 R14: 00007fffd3267590 R15: 00007fffd3267678 Kernel Offset: disabled Rebooting in 86400 seconds.. However, the repro.c can also crash the lastest kernel HEAD commit: 88035e5694a86a7167d490bb95e9df97a9bb162b use the same configuation. It report below the same of the bug reported by syzbot: https://syzkaller.appspot.com/bug?extid=3De14d6cd6ec241f507ba7. TITLE: WARNING in __folio_mark_dirty CORRUPTED: false () MAINTAINERS (TO): [akpm@linux-foundation.org linux-fsdevel@vger.kernel.org linux-mm@kvack.org willy@infradead.org] MAINTAINERS (CC): [linux-kernel@vger.kernel.org] ------------[ cut here ]------------ WARNING: CPU: 3 PID: 8118 at include/linux/backing-dev.h:255 folio_account_dirtied mm/page-writeback.c:2618 [inline] WARNING: CPU: 3 PID: 8118 at include/linux/backing-dev.h:255 __folio_mark_dirty+0x936/0x1120 mm/page-writeback.c:2669 Modules linked in: CPU: 3 PID: 8118 Comm: c90 Not tainted 6.7.0-rc5-00042-g88035e5694a8 #3 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:inode_to_wb include/linux/backing-dev.h:252 [inline] RIP: 0010:folio_account_dirtied mm/page-writeback.c:2618 [inline] RIP: 0010:__folio_mark_dirty+0x936/0x1120 mm/page-writeback.c:2669 Code: f8 ff ff e8 5c 72 c8 ff 0f 0b e9 c9 f8 ff ff 31 ff e8 4e 72 c8 ff 4c 89 f7 48 8b 74 24 20 e8 bf RSP: 0018:ffffc900142afa00 EFLAGS: 00010093 RAX: ffffffff81c92f96 RBX: 0000000000000000 RCX: ffff8880250f1e80 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff88801b12c2f8 R08: ffffffff81c92ab5 R09: 1ffff1100362585f R10: dffffc0000000000 R11: ffffed1003625860 R12: 0000000000000001 R13: ffff88801b12c180 R14: ffffea000518f8c0 R15: 1ffff1100362585f FS: 00000000023563c0(0000) GS:ffff88823bd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0aff8f78 CR3: 000000001d875000 CR4: 0000000000750ef0 PKRU: 55555554 Call Trace: mark_buffer_dirty+0x2ab/0x520 fs/buffer.c:1200 gfs2_unpin+0x142/0xad0 fs/gfs2/lops.c:111 buf_lo_after_commit+0x157/0x1b0 fs/gfs2/lops.c:745 lops_after_commit fs/gfs2/lops.h:51 [inline] gfs2_log_flush+0x1f45/0x26a0 fs/gfs2/log.c:1115 gfs2_kill_sb+0x60/0x340 fs/gfs2/ops_fstype.c:1786 deactivate_locked_super+0xc8/0x140 fs/super.c:484 cleanup_mnt+0x444/0x4e0 fs/namespace.c:1256 task_work_run+0x257/0x310 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:296 do_syscall_64+0x50/0x110 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x43f117 Code: 09 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 18 RSP: 002b:00007fff0aff9728 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007fff0affaa68 RCX: 000000000043f117 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007fff0aff97d0 RBP: 00007fff0affa810 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000206 R12: 0000000000000001 R13: 00007fff0affaa58 R14: 0000000000000001 R15: 0000000000000001 TITLE: kernel panic: kernel: panic_on_warn set ... CORRUPTED: false () MAINTAINERS (TO): [akpm@linux-foundation.org linux-fsdevel@vger.kernel.org linux-mm@kvack.org willy@infradead.org] MAINTAINERS (CC): [linux-kernel@vger.kernel.org] Modules linked in: CPU: 3 PID: 8118 Comm: c90 Not tainted 6.7.0-rc5-00042-g88035e5694a8 #3 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:inode_to_wb include/linux/backing-dev.h:252 [inline] RIP: 0010:folio_account_dirtied mm/page-writeback.c:2618 [inline] RIP: 0010:__folio_mark_dirty+0x936/0x1120 mm/page-writeback.c:2669 Code: f8 ff ff e8 5c 72 c8 ff 0f 0b e9 c9 f8 ff ff 31 ff e8 4e 72 c8 ff 4c 89 f7 48 8b 74 24 20 e8 bf RSP: 0018:ffffc900142afa00 EFLAGS: 00010093 RAX: ffffffff81c92f96 RBX: 0000000000000000 RCX: ffff8880250f1e80 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff88801b12c2f8 R08: ffffffff81c92ab5 R09: 1ffff1100362585f R10: dffffc0000000000 R11: ffffed1003625860 R12: 0000000000000001 R13: ffff88801b12c180 R14: ffffea000518f8c0 R15: 1ffff1100362585f FS: 00000000023563c0(0000) GS:ffff88823bd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff0aff8f78 CR3: 000000001d875000 CR4: 0000000000750ef0 PKRU: 55555554 Call Trace: mark_buffer_dirty+0x2ab/0x520 fs/buffer.c:1200 gfs2_unpin+0x142/0xad0 fs/gfs2/lops.c:111 buf_lo_after_commit+0x157/0x1b0 fs/gfs2/lops.c:745 lops_after_commit fs/gfs2/lops.h:51 [inline] gfs2_log_flush+0x1f45/0x26a0 fs/gfs2/log.c:1115 gfs2_kill_sb+0x60/0x340 fs/gfs2/ops_fstype.c:1786 deactivate_locked_super+0xc8/0x140 fs/super.c:484 cleanup_mnt+0x444/0x4e0 fs/namespace.c:1256 task_work_run+0x257/0x310 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:296 do_syscall_64+0x50/0x110 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x43f117 Code: 09 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 18 RSP: 002b:00007fff0aff9728 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007fff0affaa68 RCX: 000000000043f117 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007fff0aff97d0 RBP: 00007fff0affa810 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000206 R12: 0000000000000001 R13: 00007fff0affaa58 R14: 0000000000000001 R15: 0000000000000001 Kernel panic - not syncing: kernel: panic_on_warn set ... CPU: 3 PID: 8118 Comm: c90 Not tainted 6.7.0-rc5-00042-g88035e5694a8 #3 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1f4/0x2f0 lib/dump_stack.c:106 panic+0x35a/0x880 kernel/panic.c:344 __warn+0x32e/0x4c0 __report_bug lib/bug.c:199 [inline] report_bug+0x2ca/0x520 lib/bug.c:219 handle_bug+0x3d/0x70 arch/x86/kernel/traps.c:237 exc_invalid_op+0x1a/0x50 arch/x86/kernel/traps.c:258 asm_exc_invalid_op+0x1a/0x20 arch/x86/include/asm/idtentry.h:568 RIP: 0010:inode_to_wb include/linux/backing-dev.h:252 [inline] RIP: 0010:folio_account_dirtied mm/page-writeback.c:2618 [inline] RIP: 0010:__folio_mark_dirty+0x936/0x1120 mm/page-writeback.c:2669 Code: f8 ff ff e8 5c 72 c8 ff 0f 0b e9 c9 f8 ff ff 31 ff e8 4e 72 c8 ff 4c 89 f7 48 8b 74 24 20 e8 bf RSP: 0018:ffffc900142afa00 EFLAGS: 00010093 RAX: ffffffff81c92f96 RBX: 0000000000000000 RCX: ffff8880250f1e80 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff88801b12c2f8 R08: ffffffff81c92ab5 R09: 1ffff1100362585f R10: dffffc0000000000 R11: ffffed1003625860 R12: 0000000000000001 R13: ffff88801b12c180 R14: ffffea000518f8c0 R15: 1ffff1100362585f mark_buffer_dirty+0x2ab/0x520 fs/buffer.c:1200 gfs2_unpin+0x142/0xad0 fs/gfs2/lops.c:111 buf_lo_after_commit+0x157/0x1b0 fs/gfs2/lops.c:745 lops_after_commit fs/gfs2/lops.h:51 [inline] gfs2_log_flush+0x1f45/0x26a0 fs/gfs2/log.c:1115 gfs2_kill_sb+0x60/0x340 fs/gfs2/ops_fstype.c:1786 deactivate_locked_super+0xc8/0x140 fs/super.c:484 cleanup_mnt+0x444/0x4e0 fs/namespace.c:1256 task_work_run+0x257/0x310 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:296 do_syscall_64+0x50/0x110 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x43f117 Code: 09 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 18 RSP: 002b:00007fff0aff9728 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007fff0affaa68 RCX: 000000000043f117 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007fff0aff97d0 RBP: 00007fff0affa810 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000206 R12: 0000000000000001 R13: 00007fff0affaa58 R14: 0000000000000001 R15: 0000000000000001 I hope someone figure out and hope it helps. Best regards xingwei Lee