GrapheneOS / os-issue-tracker

Issue tracker for GrapheneOS Android Open Source Project hardening work. Standalone projects like Auditor, AttestationServer and hardened_malloc have their own dedicated trackers.
https://grapheneos.org/
363 stars 21 forks source link

File system check error #4334

Closed onlycparra closed 1 week ago

onlycparra commented 1 week ago

I got this error after booting my Pixel 6 Pro. Nothing visibly broken (as a simple user), but the error popped up:

type: fsck_error
flags: dev options enabled

isPrevious: true
Build: google/raven/raven:15/AP3A.241105.007/2024110700:user/release-keys
Hardware: raven
Revision: MP1.0
Bootloader: slider-15.0-12100230
Radio: null
Kernel: Linux version 5.10.226-android13-4-g535dae39b154 (build-user@build-host) (Android (8508608, based on r450784e) clang version 14.0.7 (https://android.googlesource.com/toolchain/llvm-project 4c603efb0cca074e9238af8b4106c30add4418f6), LLD 14.0.7) #1 SMP PREEMPT Fri Oct 11 02:02:33 UTC 2024

e2fsck 1.46.6 (1-Feb-2023)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/block/platform/14700000.ufs/by-name/persist: 70/16384 files (14.3% non-contiguous), 4628/16384 blocks

fs_stat,/dev/block/platform/14700000.ufs/by-name/persist,0xb
e2fsck 1.46.6 (1-Feb-2023)
/dev/block/platform/14700000.ufs/by-name/efs: clean, 17/2560 files, 1445/2560 blocks

fs_stat,/dev/block/platform/14700000.ufs/by-name/efs,0x3
e2fsck 1.46.6 (1-Feb-2023)
/dev/block/platform/14700000.ufs/by-name/efs_backup: clean, 13/1280 files, 180/1280 blocks

fs_stat,/dev/block/platform/14700000.ufs/by-name/efs_backup,0x3
e2fsck 1.46.6 (1-Feb-2023)
/dev/block/platform/14700000.ufs/by-name/modem_userdata: clean, 14/1280 files, 86/1280 blocks

fs_stat,/dev/block/platform/14700000.ufs/by-name/modem_userdata,0x3

fs_stat,/dev/block/platform/14700000.ufs/by-name/modem_b,0x3
Info: Automatic fix mode enabled.
Info: not exist /proc/version!
Info: MKFS version
  "5.10.161-android13-4-g80fa177599c4"
Info: FSCK version
  from "5.10.226-android13-4-g535dae39b154"
    to "5.10.226-android13-4-g535dae39b154"
Info: superblock features = 3499 :  encrypt extra_attr project_quota quota verity casefold compression
Info: superblock encrypt level = 0, salt = 00000000000000000000000000000000
Info: checkpoint stop reason: shutdown(7) 
Info: Segments per section = 1
Info: Sections per zone = 1
Info: total FS sectors = 28906005 (112914 MB)
Info: CKPT version = 54d2d43a
Info: version timestamp cur: 54395289, prev: 51787876
[update_superblock: 890] Info: Done to update superblock
Info: checkpoint state = 40 :  crc sudden-power-off
[FSCK] Check node 15509 / 155095 (10.00%)
[FSCK] Check node 31018 / 155095 (20.00%)
[FSCK] Check node 46527 / 155095 (30.00%)
[FSCK] Check node 62036 / 155095 (40.00%)
[FSCK] Check node 77545 / 155095 (50.00%)
[FSCK] Check node 93054 / 155095 (60.00%)
[FSCK] Check node 108563 / 155095 (70.00%)
[FSCK] Check node 124072 / 155095 (80.00%)
[FSCK] Check node 139581 / 155095 (90.00%)
[FSCK] Check node 155090 / 155095 (100.00%)
[ERROR] external/f2fs-tools/fsck/quotaio_v2.c:204:v2_init_io:: Quota inode 4 corrupted: file size 65536 does not match page offset 16
[fsck_chk_quota_files:2258] Fixing Quota file ([  0] ino [0x4])
[FIX] (nullify_nat_entry:3274)  --> Remove nid [0x4] in NAT
[fsck_chk_quota_files:2258] Fixing Quota file ([  1] ino [0x5])
[FIX] (nullify_nat_entry:3274)  --> Remove nid [0x5] in NAT
[fsck_chk_quota_files:2258] Fixing Quota file ([  2] ino [0x6])
[FIX] (nullify_nat_entry:3274)  --> Remove nid [0x6] in NAT

[FSCK] Max image size: 108480 MB, Free space: 4434 MB
[FSCK] Unreachable nat entries                        [Ok..] [0x0]
[FSCK] SIT valid block bitmap checking                [Ok..]
[FSCK] Hard link checking for regular file            [Ok..] [0x0]
[FSCK] valid_block_count matching with CP             [Ok..] [0x1a5eaed]
[FSCK] valid_node_count matching with CP (de lookup)  [Ok..] [0x25dd7]
[FSCK] valid_node_count matching with CP (nat lookup) [Ok..] [0x25dd7]
[FSCK] valid_inode_count matched with CP              [Ok..] [0x20067]
[FSCK] free segment_count matched with CP             [Ok..] [0x2ac]
[FSCK] next block offset is free                      [Ok..]
[FSCK] fixing SIT types
[FSCK] other corrupted bugs                           [Ok..]
Info: flush_journal_entries() n_nats: 38, n_sits: 6
Info: Duplicate valid checkpoint to mirror position 512 -> 1024
Info: Write valid nat_bits in checkpoint
Info: write_checkpoint() cur_cp:1
Info: Write valid nat_bits in checkpoint
Info: fix_checkpoint() cur_cp:1

Done: 21.859109 secs

c, u, RA, CH, CM, Repl=
10000 10000 27841463 27385909 455554 445554

fs_stat,/dev/block/platform/14700000.ufs/by-name/userdata,0x0
ProgrammerWhoPrograms commented 1 week ago

I got this error too on a Pixel 6a.

thestinger commented 1 week ago

@onlycparra It likely crashed or was powered off uncleanly and this shows it had to clean up some filesystem quota info.