tags 991922 +pending
thanks

On Thu, Aug 05, 2021 at 02:54:38PM -0300, Antonio Terceiro wrote:
> Source: e2fsprogs
> Version: 1.46.3-1
> Severity: serious
> Justification: fails to build from source
> 
> e2fsprogs currently fails to build on s390x buildd, and I was just able
> to reproduce it on a porter box.

(Note: the bug doesn't exist in 1.46.2, which is fortuante since
things are locked down for the upcoming stable release.)

Thanks for the bug report.  I'm glad to report that this is already
fixed upstream:

commit 225e5d093b519f9dbe9fcaacd995426f0e5194f6
Author: Theodore Ts'o <ty...@mit.edu>
Date:   Wed Jul 28 13:51:13 2021 -0400

    e2fsck: fix f_baddotdir failure on big-endian systems
    
    Commit 63f44aafb1f2 ("e2fsck: fix ".." more gracefully if possible")
    changed the check_dot() function to try to avoid resetting the '..'
    entry when the '.' entry is too large..  But if we do that, then on
    big-endian systems, we need to try byte swapping the rest of the
    directory entries, or else the f_baddotdir test will fail on
    big-endian systems.
    
    Also add a check to avoid UBSAN warning when there is not enough space
    at the end of the directory block for a directory entry, and so we can
    potentially overflow some pointer arithmetic when trying to byte swap
    the remainder of the (negative) space in the directory block.
    
    Fixes: 63f44aafb1f2 ("e2fsck: fix ".." more gracefully if possible")
    Signed-off-by: Theodore Ts'o <ty...@mit.edu>

I only noticed the problem when I uploaded 1.46.3-1 to experimental on
July 27th, and like you, was able to reproduce it on a porter box and
fixed it the next day.  I am planning 1.46.4 release next week to fix
this and a number of other bugs:

ea97af65 - (maint) libext2fs: improve error handling in POSIX ACL conversions 
(6 days ago)
165c8541 - setup-schroot: install the acl and libreadline-dev packages (6 days 
ago)
5148709f - tests: skip m_rootdir_acl on GNU Hurd (6 days ago)
7a97083d - libext2fs: fix translation of Posix ACL's on big-endian systems (6 
days ago)
654be045 - contrib: add setup-schroot command for use on Debian porter boxes (7 
days ago)
c3062042 - tests: add description for j_recover_fast_commit (7 days ago)
5a3ea390 - tests: force test file systems to be built for the Linux OS (7 days 
ago)
4d988e1b - tests: try using truncate command before falling back to using dd (8 
days ago)
9aba0528 - libsupport: fix sort_r.h to work on the GNU Hurd (8 days ago)
225e5d09 - e2fsck: fix f_baddotdir failure on big-endian systems (8 days ago)

                                        - Ted

Reply via email to