Opened 6 years ago

Last modified 6 years ago

#14180 new bug

KDL on corrupt BFS - B+tree header size doesn't fit

Reported by: kallisti5 Owned by: axeld
Priority: normal Milestone: Unscheduled
Component: File Systems/BFS Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Saw this while playing with fstrim (#10336)

  • fstrim empty filesystem
  • Copied file to filesystem
  • fstrim filesystem
  • unmount
  • mount
  • KDL

Mounting a corrupted BFS shouldn't result in a KDL.

x86_64 hrev51985

B+tree header size 0 doesn't fit file size 2048!
bfs: SetTo:721: Bad data
bfs: could not create root node!
bfs: bfs_mount:174: Invalid Argument

It looks like things should of bailed on the mount but didn't?

Attachments (2)

BFS_Protection Exception_1.png (89.4 KB ) - added by kallisti5 6 years ago.
panic_inode.png (33.8 KB ) - added by kallisti5 6 years ago.

Download all attachments as: .zip

Change History (4)

by kallisti5, 6 years ago

by kallisti5, 6 years ago

Attachment: panic_inode.png added

comment:1 by korli, 6 years ago

Is it a regression?

comment:2 by kallisti5, 6 years ago

unsure. I can try on an older hrev... but I feel like it probably isn't.

Note: See TracTickets for help on using tickets.