public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/29417] New: poll() declared with write-only fds
@ 2022-07-27 12:46 mlichvar at redhat dot com
  2022-07-27 15:03 ` [Bug libc/29417] " fweimer at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mlichvar at redhat dot com @ 2022-07-27 12:46 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 29417
           Summary: poll() declared with write-only fds
           Product: glibc
           Version: 2.36
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: mlichvar at redhat dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

The poll() function is currently declared as

extern int poll (struct pollfd *__fds, nfds_t __nfds, int __timeout)
    __fortified_attr_access (__write_only__, 1, 2);

Is the write-only access of __fds correct? I think the poll function needs to
read the fd and events field of pollfd.

Maybe I don't understand correctly how it's supposed to work, but the access
specified for some other functions made sense to me.

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

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

end of thread, other threads:[~2022-07-27 18:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-27 12:46 [Bug libc/29417] New: poll() declared with write-only fds mlichvar at redhat dot com
2022-07-27 15:03 ` [Bug libc/29417] " fweimer at redhat dot com
2022-07-27 15:18 ` mlichvar at redhat dot com
2022-07-27 15:39 ` fweimer at redhat dot com
2022-07-27 18:40 ` siddhesh at sourceware dot org
2022-07-27 18:44 ` siddhesh at sourceware dot org
2022-07-27 18:56 ` fweimer at redhat dot com

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).