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-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y7Xb9cYkymilfKLd@gmail.com>
Date:   Wed, 4 Jan 2023 20:05:09 +0000
From:   Eric Biggers <ebiggers@...nel.org>
To:     "Darrick J. Wong" <djwong@...nel.org>
Cc:     linux-ext4@...r.kernel.org,
        Paulo Antonio Alvarez <pauloaalvarez@...il.com>
Subject: Re: [e2fsprogs PATCH] libext2fs: fix 32-bit Windows build

On Wed, Jan 04, 2023 at 08:54:27AM -0800, Darrick J. Wong wrote:
> On Wed, Jan 04, 2023 at 01:03:01AM -0800, Eric Biggers wrote:
> > From: Eric Biggers <ebiggers@...gle.com>
> > 
> > _WIN32 is the standard macro to detect Windows, regardless of 32-bit or
> > 64-bit.  _WIN64 is for 64-bit Windows only.  Use _WIN32 where _WIN64 was
> > incorrectly being used.
> > 
> > This fixes several 32-bit Windows build errors, for example this one:
> 
> Color me impressed, I would have applied to deprecate Windows support
> entirely, particularly given the existence of WSL.

Yes, now that everyone has migrated to GNU Hurd, which is fully supported by
e2fsprogs, there's no need for Windows which no one uses anymore :-)

The reason I have to care about e2fsprogs support for Windows is because the
Windows build of the Android SDK Platform tools includes a Windows binary of
mke2fs, so that it can be used by 'fastboot format'.

I am sure that Ted would be very unhappy if Android had to bring back
'make_ext4fs' due to e2fsprogs removing Windows support...

(One way out of this for Android would be to remove fastboot's support for
formatting filesystems, and just have it support wiping them.  The actual
formatting would then always happen on the Android device itself, using the
Linux build of e2fsprogs.  I'm not sure why that can't be done; however, I do
know that it's been brought up many times before and still hasn't happened...)

Of course, a second problem that I ran into after I sent this patch without
properly testing it, is that misc/mke2fs.c is hard-coding unix_io_manager.  So
an additional fix would be needed to make it use windows_io_manager on Windows,
now that Windows has its own windows_io_manager instead of unix_io_manager.

Paulo, just to double check: was your intent when adding the windows_io_manager
that it *always* replace unix_io_manager on Windows?

- Eric

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ