From: Wolf <wolf@wolfsden.cz>
To: musl@lists.openwall.com
Subject: Re: [musl] faccessat() always return EPERM
Date: Sat, 24 Jul 2021 03:56:46 +0200 [thread overview]
Message-ID: <20210724015646.7fi7ftdpydgprqq2@mail.wolfsden.cz> (raw)
In-Reply-To: <CAMhVC3ZwQdPK76Nw2QCc787wD=CN4XixJ1J6YbidhPBt5T-v6g@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1469 bytes --]
Hello,
On 2021-07-24 04:16:25 +0300, Yuri Kanivetsky wrote:
> I'm not sure that it has something to do with musl. But experienced in
> a Alpine Linux docker container (ruby:2.6-alpine3.14) on Debian 9 or
> 10. I can't reproduce it with Alpine Linux 3.13 (container) or Debian
> 8 (host).
Cannot reproduce over here, your sample program works for me in
alpine 3.14 container running under podman.
> For example, the following program outputs -1:
Not here:
/ # ./main
0
/ # strace -f ./main
execve("./main", ["./main"], 0x7ffdaab97618 /* 8 vars */) = 0
arch_prctl(ARCH_SET_FS, 0x7f2305385b48) = 0
set_tid_address(0x7f2305385f90) = 19
brk(NULL) = 0x562e4bf54000
brk(0x562e4bf56000) = 0x562e4bf56000
mmap(0x562e4bf54000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x562e4bf54000
mprotect(0x7f2305382000, 4096, PROT_READ) = 0
mprotect(0x562e4b3a9000, 4096, PROT_READ) = 0
faccessat2(AT_FDCWD, "/", R_OK, AT_EACCESS) = 0
ioctl(1, TIOCGWINSZ, {ws_row=53, ws_col=95, ws_xpixel=21852, ws_ypixel=0}) = 0
writev(1, [{iov_base="0", iov_len=1}, {iov_base="\n", iov_len=1}], 20
) = 2
exit_group(0) = ?
+++ exited with 0 +++
Maybe you can try to strace the 3.14 and 3.13 versions to see if there
is any difference.
W.
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2021-07-24 1:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-24 1:16 Yuri Kanivetsky
2021-07-24 1:40 ` Rich Felker
2021-07-24 5:56 ` Rich Felker
2021-07-24 23:36 ` Alex Xu (Hello71)
2021-07-27 4:34 ` Yuri Kanivetsky
2021-07-24 1:56 ` Wolf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210724015646.7fi7ftdpydgprqq2@mail.wolfsden.cz \
--to=wolf@wolfsden.cz \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).