From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 940BA3858419; Wed, 28 Sep 2022 02:01:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 940BA3858419 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664330481; bh=unmtZSvMgdaXPgTHdG8BhqdxS6Ikhym9StcuUjl6/lo=; h=From:To:Subject:Date:From; b=V0961zfnEokvWECVcOdjtVJJl1VqligrGo7HX8AX4UVkky635Cq/3c/i1uvrSWjnD 1q0qHHJ8msJC4T/oWMVtj3/R2c5sQXDipWeCdFd3kqBbWx1jGRlSYgrfBJjbdn/sGR /0FI6U2YgffCB0h2qW+pAzRAkYB1kHoHgurPhbLA= From: "dluyaning at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/29622] New: Open file permission error under aarch64 architecture Date: Wed, 28 Sep 2022 02:01:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.28 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dluyaning at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29622 Bug ID: 29622 Summary: Open file permission error under aarch64 architecture Product: glibc Version: 2.28 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: dluyaning at gmail dot com CC: drepper.fsp at gmail dot com Target Milestone: --- strace log=EF=BC=9A openat(AT_FDCWD, "/home/lyn/test/", O_RDWR|O_CLOEXEC|O_TMPFILE, 0134240) = =3D 12 write(12, "11111\0", 6) =3D 6 lseek(12, 0, SEEK_SET) =3D 0 demo=EF=BC=9A #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include int main() { char path[PATH_MAX]; int fd =3D open("/home/lyn/test", O_TMPFILE | O_RDWR, S_IRUSR | S_IWUSR); write(fd, "hello", 5); fsync(fd); printf("pidis %d\n", getpid()); snprintf(path, PATH_MAX, "/proc/self/fd/%d", fd); int ret =3D linkat(fd, path, AT_FDCWD, "yyyy", AT_SYMLINK_FOLLOW); if(ret < 0) { printf("linkat error %d %s\n", errno, strerror(errno)); } pause(); return 0; } --=20 You are receiving this mail because: You are on the CC list for the bug.=