Bug 218162 - ubifs: UBIFS assert failed: c->dirty_pn_cnt == 0
Summary: ubifs: UBIFS assert failed: c->dirty_pn_cnt == 0
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: fs_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-20 01:26 UTC by Zhihao Cheng
Modified: 2023-11-20 01:27 UTC (History)
0 users

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
diff (3.45 KB, patch)
2023-11-20 01:27 UTC, Zhihao Cheng
Details | Diff
test.sh (916 bytes, application/x-shellscript)
2023-11-20 01:27 UTC, Zhihao Cheng
Details

Description Zhihao Cheng 2023-11-20 01:26:57 UTC
1. Apply diff and compile kernel
2. ./test.sh

[   31.558046] COMMIT
[   31.583781] Wait sync commit1 twice
[   31.587719] COMMIT
[   31.589485] COMMIT
[   31.686207] wait done
[   31.686658] wait sync commit2
[   31.693020] COMMIT
[   31.693641] sync dirty
[   31.887274] wait2 done
[   31.887531] Add dirty A
[   31.887790] Add dirty A
[   31.902187] sync done
[   31.902829] UBIFS error (ubi0:0 pid 2459): ubifs_assert_failed [ubifs]: UBIFS assert failed: c->dirty_pn_cnt == 0, in fs/ubifs/commit.c:97
[   31.906013] UBIFS warning (ubi0:0 pid 2459): ubifs_ro_mode [ubifs]: switched to read-only mode, error -22
[   31.908462] CPU: 3 PID: 2459 Comm: sync Not tainted 6.6.0-15035-g4779be8a57da-dirty #304
[   31.910468] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.1-2.fc37 04/01/2014
[   31.912628] Call Trace:
[   31.913294]  <TASK>
[   31.913851]  dump_stack_lvl+0x86/0xc0
[   31.914711]  dump_stack+0x18/0x30
[   31.915365]  ubifs_ro_mode+0x58/0x70 [ubifs]
[   31.916229]  ubifs_assert_failed+0x6a/0x90 [ubifs]
[   31.917182]  do_commit+0x5b7/0x930 [ubifs]
[   31.918008]  ? wb_wait_for_completion+0x39/0xd0
[   31.918870]  ? mutex_lock+0x1a/0x60
[   31.919545]  ? sync_inodes_sb+0x2a7/0x440
[   31.920308]  ? kmem_cache_free+0xef/0x2e0
[   31.921073]  ? hrtimer_try_to_cancel+0x31/0x120
[   31.921933]  ubifs_run_commit+0xc6/0x1a0 [ubifs]
[   31.922844]  ubifs_sync_fs+0xd8/0x110 [ubifs]
[   31.923711]  sync_filesystem+0xb4/0x120
[   31.924453]  __x64_sys_syncfs+0x6c/0x100
[   31.925208]  do_syscall_64+0x6f/0x140
[   31.925791]  entry_SYSCALL_64_after_hwframe+0x63/0x6b
[   31.926488] RIP: 0033:0x7f5978d06f27
[   31.926991] Code: 83 c4 08 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d 58 7f 2c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 32 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 31 7f 2c 00 f7 d8 64 89 01 48
[   31.929480] RSP: 002b:00007ffefe1daf88 EFLAGS: 00000246 ORIG_RAX: 0000000000000132
[   31.930505] RAX: ffffffffffffffda RBX: 00007ffefe1db0c8 RCX: 00007f5978d06f27
[   31.931477] RDX: 0000000000008000 RSI: 0000000000000004 RDI: 0000000000000003
[   31.932455] RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
[   31.933424] R10: fffffffffffff411 R11: 0000000000000246 R12: 0000000000000003
[   31.934392] R13: 00007f5978fcf1e4 R14: 0000000000000001 R15: 00007ffefe1dc4ef
Comment 1 Zhihao Cheng 2023-11-20 01:27:44 UTC
Created attachment 305428 [details]
diff
Comment 2 Zhihao Cheng 2023-11-20 01:27:58 UTC
Created attachment 305429 [details]
test.sh

Note You need to log in before you can comment on or make changes to this bug.