linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug 217888] New: jbd2: potential data lost in recovering journal raced with synchronizing fs bdev
@ 2023-09-08  8:12 bugzilla-daemon
  2023-09-08  8:13 ` [Bug 217888] " bugzilla-daemon
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bugzilla-daemon @ 2023-09-08  8:12 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=217888

            Bug ID: 217888
           Summary: jbd2: potential data lost in recovering journal raced
                    with synchronizing fs bdev
           Product: File System
           Version: 2.5
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: ext4
          Assignee: fs_ext4@kernel-bugs.osdl.org
          Reporter: chengzhihao1@huawei.com
        Regression: No

1. Apply diff and compile kernel
2. dd if=disk_1 of=/dev/sda bs=1M
   dd if=disk_1 of=/dev/sda bs=1M seek=43
3. mount /dev/sda temp # will stuck
4. sync /dev/sda # Type this command in another terminal, finish it in 5s when
you see "wait sync" from dmesg.
4. umount temp
5. fsck.ext4 -fn /dev/sda


Unattached inode 13
Connect to /lost+found? no

Pass 5: Checking group summary information

/dev/sda: ********** WARNING: Filesystem still has errors **********



===============
'touch file' is recorded in journal of sda, and the journal is not replayed
yet.

journal in sda:

Journal starts at block 1, transaction 2
Found expected sequence 2, type 1 (descriptor block) at block 1
Dumping descriptor block, sequence 2, at block 1:
  FS block 266 logged at journal block 2 (flags 0x0)
  FS block 2 logged at journal block 3 (flags 0x2)
  FS block 276 logged at journal block 4 (flags 0x2)   # new inode
  FS block 273 logged at journal block 5 (flags 0x2)
  FS block 3479 logged at journal block 6 (flags 0x2)  # new dentry
  FS block 1 logged at journal block 7 (flags 0xa)
Found expected sequence 2, type 2 (commit block) at block 8

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 217888] jbd2: potential data lost in recovering journal raced with synchronizing fs bdev
  2023-09-08  8:12 [Bug 217888] New: jbd2: potential data lost in recovering journal raced with synchronizing fs bdev bugzilla-daemon
@ 2023-09-08  8:13 ` bugzilla-daemon
  2023-09-08  9:28 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2023-09-08  8:13 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=217888

--- Comment #1 from Zhihao Cheng (chengzhihao1@huawei.com) ---
Created attachment 305067
  --> https://bugzilla.kernel.org/attachment.cgi?id=305067&action=edit
diff

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 217888] jbd2: potential data lost in recovering journal raced with synchronizing fs bdev
  2023-09-08  8:12 [Bug 217888] New: jbd2: potential data lost in recovering journal raced with synchronizing fs bdev bugzilla-daemon
  2023-09-08  8:13 ` [Bug 217888] " bugzilla-daemon
@ 2023-09-08  9:28 ` bugzilla-daemon
  2023-09-08  9:29 ` bugzilla-daemon
  2023-09-08  9:30 ` bugzilla-daemon
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2023-09-08  9:28 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=217888

--- Comment #2 from Zhihao Cheng (chengzhihao1@huawei.com) ---
1. Apply diff_v2 and compile kernel
2. dd if=disk of=/dev/sda bs=1M
3. mount /dev/sda temp # will stuck
4. sync /dev/sda # Type this command in another terminal, finish it in 5s when
you see "wait sync" from dmesg.
4. umount temp
5. fsck.ext4 -fa /dev/sda
/dev/sda: Unattached inode 13


/dev/sda: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
        (i.e., without -a or -p options)


===============
'touch file' is recorded in journal of sda, and the journal is not replayed
yet.

journal in sda:

Journal starts at block 1, transaction 2
Found expected sequence 2, type 1 (descriptor block) at block 1
Dumping descriptor block, sequence 2, at block 1:
  FS block 84 logged at journal block 2 (flags 0x0)
  FS block 2 logged at journal block 3 (flags 0x2)
  FS block 89 logged at journal block 4 (flags 0x2)  # new inode
  FS block 86 logged at journal block 5 (flags 0x2)
  FS block 726 logged at journal block 6 (flags 0x2) # new dentry
  FS block 1 logged at journal block 7 (flags 0x2)
  FS block 83 logged at journal block 8 (flags 0xa)

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 217888] jbd2: potential data lost in recovering journal raced with synchronizing fs bdev
  2023-09-08  8:12 [Bug 217888] New: jbd2: potential data lost in recovering journal raced with synchronizing fs bdev bugzilla-daemon
  2023-09-08  8:13 ` [Bug 217888] " bugzilla-daemon
  2023-09-08  9:28 ` bugzilla-daemon
@ 2023-09-08  9:29 ` bugzilla-daemon
  2023-09-08  9:30 ` bugzilla-daemon
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2023-09-08  9:29 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=217888

--- Comment #3 from Zhihao Cheng (chengzhihao1@huawei.com) ---
Created attachment 305068
  --> https://bugzilla.kernel.org/attachment.cgi?id=305068&action=edit
diff_v2

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 217888] jbd2: potential data lost in recovering journal raced with synchronizing fs bdev
  2023-09-08  8:12 [Bug 217888] New: jbd2: potential data lost in recovering journal raced with synchronizing fs bdev bugzilla-daemon
                   ` (2 preceding siblings ...)
  2023-09-08  9:29 ` bugzilla-daemon
@ 2023-09-08  9:30 ` bugzilla-daemon
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2023-09-08  9:30 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=217888

--- Comment #4 from Zhihao Cheng (chengzhihao1@huawei.com) ---
Created attachment 305069
  --> https://bugzilla.kernel.org/attachment.cgi?id=305069&action=edit
disk

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-09-08  9:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-08  8:12 [Bug 217888] New: jbd2: potential data lost in recovering journal raced with synchronizing fs bdev bugzilla-daemon
2023-09-08  8:13 ` [Bug 217888] " bugzilla-daemon
2023-09-08  9:28 ` bugzilla-daemon
2023-09-08  9:29 ` bugzilla-daemon
2023-09-08  9:30 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).