public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/26248] New: Incorrect argument types for INLINE_SETXID_SYSCALL
@ 2020-07-16  2:53 hjl.tools at gmail dot com
  2020-07-16  8:24 ` [Bug nptl/26248] " fweimer at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2020-07-16  2:53 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 26248
           Summary: Incorrect argument types for INLINE_SETXID_SYSCALL
           Product: glibc
           Version: 2.32
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

nptl has

/* Opcodes and data types for communication with the signal handler to
   change user/group IDs.  */
struct xid_command
{
  int syscall_no;
  long int id[3];
  volatile int cntr;
  volatile int error; /* -1: no call yet, 0: success seen, >0: error seen.  */
};

 /* This must be last, otherwise the current thread might not have
     permissions to send SIGSETXID syscall to the other threads.  */
  result = INTERNAL_SYSCALL_NCS (cmdp->syscall_no, 3,
                                 cmdp->id[0], cmdp->id[1], cmdp->id[2]);

But arguments of some SETXID syscals are pointers:

       int setgroups(size_t size, const gid_t *list);

which aren't handled properly.

-- 
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:[~2020-08-18 13:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-16  2:53 [Bug nptl/26248] New: Incorrect argument types for INLINE_SETXID_SYSCALL hjl.tools at gmail dot com
2020-07-16  8:24 ` [Bug nptl/26248] " fweimer at redhat dot com
2020-07-16  8:36 ` aurelien at aurel32 dot net
2020-07-16  8:37 ` aurelien at aurel32 dot net
2020-07-16 11:29 ` hjl.tools at gmail dot com
2020-08-18 10:04 ` schwab@linux-m68k.org
2020-08-18 13:04 ` carlos 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).