public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug time/29097] New: fchmodat does not handle 64 bit time_t for AT_SYMLINK_NOFOLLOW
@ 2022-04-27 12:46 adhemerval.zanella at linaro dot org
  2022-04-27 13:49 ` [Bug time/29097] " P at draigBrady dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2022-04-27 12:46 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29097

            Bug ID: 29097
           Summary: fchmodat does not handle 64 bit time_t for
                    AT_SYMLINK_NOFOLLOW
           Product: glibc
           Version: 2.34
            Status: NEW
          Severity: normal
          Priority: P2
         Component: time
          Assignee: unassigned at sourceware dot org
          Reporter: adhemerval.zanella at linaro dot org
  Target Milestone: ---

Since Linux fchmodat syscall does not provide a 'flag' argument (to
handle AT_SYMLINK_NOFOLLOW), glibc emulates it through opening a procfs file
descriptor, issuing fstatat to check if it is link (since some kernels and
filesystem it returns in inconsistent results), and then issue chmod.

However, the glibc internal fstat does not use the 64-bit version, which
then results in EOVERFLOW.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug time/29097] fchmodat does not handle 64 bit time_t for AT_SYMLINK_NOFOLLOW
  2022-04-27 12:46 [Bug time/29097] New: fchmodat does not handle 64 bit time_t for AT_SYMLINK_NOFOLLOW adhemerval.zanella at linaro dot org
@ 2022-04-27 13:49 ` P at draigBrady dot com
  2022-04-27 17:22 ` adhemerval.zanella at linaro dot org
  2022-04-28 13:08 ` adhemerval.zanella at linaro dot org
  2 siblings, 0 replies; 4+ messages in thread
From: P at draigBrady dot com @ 2022-04-27 13:49 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29097

Pádraig Brady <P at draigBrady dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |P at draigBrady dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug time/29097] fchmodat does not handle 64 bit time_t for AT_SYMLINK_NOFOLLOW
  2022-04-27 12:46 [Bug time/29097] New: fchmodat does not handle 64 bit time_t for AT_SYMLINK_NOFOLLOW adhemerval.zanella at linaro dot org
  2022-04-27 13:49 ` [Bug time/29097] " P at draigBrady dot com
@ 2022-04-27 17:22 ` adhemerval.zanella at linaro dot org
  2022-04-28 13:08 ` adhemerval.zanella at linaro dot org
  2 siblings, 0 replies; 4+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2022-04-27 17:22 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29097

--- Comment #1 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Patch sent upstream for review:
https://patchwork.sourceware.org/project/glibc/patch/20220427165509.2614678-1-adhemerval.zanella@linaro.org/

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug time/29097] fchmodat does not handle 64 bit time_t for AT_SYMLINK_NOFOLLOW
  2022-04-27 12:46 [Bug time/29097] New: fchmodat does not handle 64 bit time_t for AT_SYMLINK_NOFOLLOW adhemerval.zanella at linaro dot org
  2022-04-27 13:49 ` [Bug time/29097] " P at draigBrady dot com
  2022-04-27 17:22 ` adhemerval.zanella at linaro dot org
@ 2022-04-28 13:08 ` adhemerval.zanella at linaro dot org
  2 siblings, 0 replies; 4+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2022-04-28 13:08 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29097

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |adhemerval.zanella at linaro dot o
                   |                            |rg
   Target Milestone|---                         |2.36
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Fixed on 2.36.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-28 13:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-27 12:46 [Bug time/29097] New: fchmodat does not handle 64 bit time_t for AT_SYMLINK_NOFOLLOW adhemerval.zanella at linaro dot org
2022-04-27 13:49 ` [Bug time/29097] " P at draigBrady dot com
2022-04-27 17:22 ` adhemerval.zanella at linaro dot org
2022-04-28 13:08 ` adhemerval.zanella at linaro dot org

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 read-only IMAP folder(s) and NNTP newsgroup(s).