]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Revert "fsck.cramfs: Fix bus error on broken file system."
authorRuediger Meier <ruediger.meier@ga-group.nl>
Tue, 23 Jan 2018 15:59:22 +0000 (16:59 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 24 Jan 2018 11:53:28 +0000 (12:53 +0100)
commit919e372da872bcc37502783e80564654569edb22
tree3774d31510237ee0c3b34dde89bd12329511e2ca
parentc0b340bc9972c9484e2cfa13054c9fe0f9925931
Revert "fsck.cramfs: Fix bus error on broken file system."

This reverts commit 7cb962c77015e9383b53eeb22ce732cb5216bbc3.

It can't be right that we mmap (start + super.size) bytes from a file
which is usually only super.size bytes large. The patch "fixed" a
problem when super.size is bad but now it fails for the correct case:

$ mkdir -p root/subdir
$ ./mkfs.cramfs -p root cramfs
$ ./fsck.cramfs cramfs
Bus error (core dumped)

We will fix the original problem later.

CC: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
disk-utils/fsck.cramfs.c