Last commit made on 2020-02-12
Get this branch:
git clone -b fw/tst-lchmod

Branch merges

Branch information


Recent commits

1afe8d9... by Florian Weimer on 2020-02-12

Linux: Work around kernel bugs in chmod on /proc/self/fd paths

It appears that the ability to change symbolic link modes through such
paths is unintended. On several file systems, the operation fails with
EOPNOTSUPP, even though the symbolic link permissions are updated.
The expected behavior is a failure to update the permissions, without
file system changes.

f34c4d0... by Matheus Castanho <email address hidden> on 2020-02-12

sunrpc: Properly clean up if tst-udp-timeout fails

The macro TEST_VERIFY_EXIT is used several times on
sunrpc/tst-udp-timeout to exit the test if a condition evaluates to
false. The side effect is that the code to terminate the RPC server
process is not executed when the program calls exit, so that
sub-process stays alive.

This commit registers a clean up function with atexit to kill the
server process before exiting the main program.

Reviewed-by: Tulio Magno Quites Machado Filho <email address hidden>

0a8ce6a... by David Kilroy <email address hidden> on 2020-02-12

elf: avoid stack allocation in dl_open_worker

As the sort was removed, there's no need to keep a separate map of
links. Instead, when relocating objects iterate over l_initfini

This allows us to remove the loop copying l_initfini elements into
map. We still need a loop to identify the first and last elements that
need relocation.

Tested by running the testsuite on x86_64.

71bcfa6... by David Kilroy <email address hidden> on 2020-02-12

elf: avoid redundant sort in dlopen

l_initfini is already sorted by dependency in _dl_map_object_deps(),
so avoid sorting again in dl_open_worker().

Tested by running the testsuite on x86_64.

eb447b7... by David Kilroy <email address hidden> on 2020-02-12

elf: Allow dlopen of filter object to work [BZ #16272]

There are two fixes that are needed to be able to dlopen filter
objects. First _dl_map_object_deps cannot assume that map will be at
the beginning of l_searchlist.r_list[], as filtees are inserted before
map. Secondly dl_open_worker needs to ensure that filtees get

In _dl_map_object_deps:

* avoiding removing relocation dependencies of map by setting
  l_reserved to 0 and otherwise processing the rest of the search

* ensure that map remains at the beginning of l_initfini - the list
  of things that need initialisation (and destruction). Do this by
  splitting the copy up. This may not be required, but matches the
  initialization order without dlopen.

Modify dl_open_worker to relocate the objects in new->l_inifini.
new->l_initfini is constructed in _dl_map_object_deps, and lists the
objects that need initialization and destruction. Originally the list
of objects in new->l_next are relocated. All of these objects should
also be included in new->l_initfini (both lists are populated with
dependencies in _dl_map_object_deps). We can't use new->l_prev to pick
up filtees, as during a recursive dlopen from an interposed malloc
call, l->prev can contain objects that are not ready for relocation.

Add tests to verify that symbols resolve to the filtee implementation
when auxiliary and filter objects are used, both as a normal link and
when dlopen'd.

Tested by running the testsuite on x86_64.

6721b9d... by Siddhesh Poyarekar <email address hidden> on 2020-02-12

Update translations

Pull in translation update from

6cf6a91... by Joseph Myers <email address hidden> on 2020-02-12

Rename RWF_WRITE_LIFE_NOT_SET to RWH_WRITE_LIFE_NOT_SET following Linux 5.5.

with the old name kept as an alias. This patch makes the
corresponding change in glibc.

Tested for x86_64.

08aea89... by Stefan Liebler <email address hidden> on 2020-02-12

S390: Fix non-ascii character in fenv.h.

The comment "isn't" contained a non-ascii character which leads to
an error if compiled with -finput-charset=ascii:
error: failure to convert ascii to UTF-8

This is observable in GCC testsuite:
FAIL: 17_intro/headers/c++1998/ (test for excess errors)
FAIL: 17_intro/headers/c++2011/ (test for excess errors)
FAIL: 17_intro/headers/c++2014/ (test for excess errors)
FAIL: 17_intro/headers/c++2017/ (test for excess errors)
FAIL: 17_intro/headers/c++2020/ (test for excess errors)

Also rewrite the comment above.

Reported-by: Ulrich Weigand <email address hidden>

47136d6... by Florian Weimer on 2020-02-11

io: Add io/tst-lchmod covering lchmod and fchmodat

752dd17... by Florian Weimer on 2020-01-22

Linux: Emulate fchmodat with AT_SYMLINK_NOFOLLOW using O_PATH [BZ #14578]

/proc/self/fd files are special and chmod on O_PATH descriptors
in that directory operates on the symbolic link itself (like lchmod).