fsck exits 0 with no output (just version) when it doesn't find a type-specific fsck

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Downstream bug: https://bugs.debian.org/1062208

Just got
  [ 3030.473467] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
great idea! After unmounting I did
  # fsck /dev/mmcblk1p1
  fsck from util-linux 2.39.3
which is just --version. Maybe
  # fsck -AR
  fsck from util-linux 2.39.3
so also no.

strace says
  close(6</sys/devices/platform/soc/11240000.mmc/mmc_host/mmc1/mmc1:e624/block/mmcblk1/mmcblk1p1/start>) = 0
  close(5</sys/devices/platform/soc/11240000.mmc/mmc_host/mmc1/mmc1:e624/block/mmcblk1/mmcblk1p1>) = 0
  close(3</dev/mmcblk1p1>)                = 0
  munmap(0xffffa8eb7000, 266240)          = 0
  munmap(0xffffa8e76000, 266240)          = 0
  munmap(0xffffa8e35000, 266240)          = 0
  munmap(0xffffa8df4000, 266240)          = 0
  close(4</dev/mmcblk1>)                  = 0
  faccessat(AT_FDCWD</root>, "/usr/local/sbin/fsck.vfat", X_OK) = -1 ENOENT (No such file or directory)
  faccessat(AT_FDCWD</root>, "/usr/local/bin/fsck.vfat", X_OK) = -1 ENOENT (No such file or directory)
  faccessat(AT_FDCWD</root>, "/usr/sbin/fsck.vfat", X_OK) = -1 ENOENT (No such file or directory)
  faccessat(AT_FDCWD</root>, "/usr/bin/fsck.vfat", X_OK) = -1 ENOENT (No such file or directory)
  faccessat(AT_FDCWD</root>, "/sbin/fsck.vfat", X_OK) = -1 ENOENT (No such file or directory)
  faccessat(AT_FDCWD</root>, "/bin/fsck.vfat", X_OK) = -1 ENOENT (No such file or directory)
  dup(1<pipe:[10683]>)                    = 3<pipe:[10683]>
  close(3<pipe:[10683]>)                  = 0
  dup(2<pipe:[10683]>)                    = 3<pipe:[10683]>
  close(3<pipe:[10683]>)                  = 0
  exit_group(0)                           = ?
  +++ exited with 0 +++
which looks like a failed path traversal and then nothing?

I think in -A mode it makes sense to silently ignore a lack of type-specific fsck.
But when explicitly requesting fsck /dev/whatever, that condition
should at /least/ warn (I'm assuming erroring out would be too invasive),
because right now fsck cleared my potentially-broken filesystem w/o checks.

Best,
наб

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux