Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Issues
  • #3911
Closed
Open
Issue created Oct 28, 2019 by Administrator@rootContributor

pselect6 with NULL {sigmask*,masksize} struct for 6th + 7th args does not work?

Created by: egrimley

This program does not seem to run correctly under DynamioRIO:

#include <sys/select.h>
#include <sys/syscall.h>
#include <unistd.h>

int main()
{
  fd_set fds;
  struct timespec ts;

  FD_ZERO(&fds);
  ts.tv_sec = 2;
  ts.tv_nsec = 0;
  return syscall(SYS_pselect6, 0, 0, 0, &fds, &ts, 0);
}

I think it's because the pselect6 code in pre_system_call does not check for the sigmask parameter being NULL.

Assignee
Assign to
Time tracking