lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1307524998.2467.41.camel@newpride>
Date:	Wed, 08 Jun 2011 11:23:18 +0200
From:	"Yury V. Zaytsev" <yury@...rup.com>
To:	linux-ext4@...r.kernel.org
Subject: [PATCH] mke2fs: check that auto-detected blocksize <= sys_page_size

Hi!

I have recently stumbled upon a RHEL6.1 installation problem on an SSD
drive that was working fine with older kernels, where created file
systems could not be mounted and the installation was aborting.

It turned out that the drive had a firmware bug and was exposing a
minimum_io_size of 8912, whereas my x86_64 system had a page size of
4096 bytes.

mkfs in turn was silently creating file systems with 8912 bytes block
size, because it was auto-detected as opposed to specified via the -b
option from the command line.

This made the problem hard to debug, hence I attach a tentative patch to
fix this issue. I'd like to acknowledge Mike Snitzer for directing me to
this list.

I'm not subscribed, so please CC: me upon replies and be mindful that
it's my first contribution of this kind, so even though I did my best to
do it the right way, I might have screwed something up.

Thanks!

-- 
Sincerely yours,
Yury V. Zaytsev


View attachment "0001-mke2fs-check-that-auto-detected-blocksize-sys_page_s.patch" of type "text/x-patch" (2447 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ