Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • C Ch Linux Perf
  • 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 and registries
    • Packages and 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
  • Ch Linux Perf
  • Repository
Switch branch/tag
  • ch-linux-perf
  • net
  • mptcp
  • protocol.c
Find file BlameHistoryPermalink
  • Paolo Abeni's avatar
    mptcp: avoid OOB access in setsockopt() · 20b5759f
    Paolo Abeni authored May 25, 2021
    We can't use tcp_set_congestion_control() on an mptcp socket, as
    such function can end-up accessing a tcp-specific field -
    prior_ssthresh - causing an OOB access.
    
    To allow propagating the correct ca algo on subflow, cache the ca
    name at initialization time.
    
    Additionally avoid overriding the user-selected CA (if any) at
    clone time.
    
    Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/182
    Fixes: aa1fbd94
    
     ("mptcp: sockopt: add TCP_CONGESTION and TCP_INFO")
    Acked-by: default avatarFlorian Westphal <fw@strlen.de>
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    Signed-off-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    20b5759f