Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-dm
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-dm
  • Repository
Switch branch/tag
  • linux-dm
  • tools
  • testing
  • selftests
  • bpf
  • prog_tests
  • tcp_rtt.c
Find file BlameHistoryPermalink
  • Stanislav Fomichev's avatar
    selftests/bpf: test_progs: fix client/server race in tcp_rtt · 8a03222f
    Stanislav Fomichev authored Sep 23, 2019
    This is the same problem I found earlier in test_sockopt_inherit:
    there is a race between server thread doing accept() and client
    thread doing connect(). Let's explicitly synchronize them via
    pthread conditional variable.
    
    v2:
    * don't exit from server_thread without signaling condvar,
      fixes possible issue where main() would wait forever (Andrii Nakryiko)
    
    Fixes: b5587398
    
     ("selftests/bpf: test BPF_SOCK_OPS_RTT_CB")
    Signed-off-by: default avatarStanislav Fomichev <sdf@google.com>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    8a03222f