Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • X xcap-capability-linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • xcap
  • xcap-capability-linux
  • Repository
  • xcap-capability-linux
  • drivers
  • net
  • wireless
  • rt2x00
  • rt2500usb.c
Find file BlameHistoryPermalink
  • Gertjan van Wingerde's avatar
    rt2x00: Fix double usage of skb->cb in USB RX path. · a26cbc65
    Gertjan van Wingerde authored Jun 06, 2008
    
    
    It is not safe to use the skb->cb area for both the rxd and
    skb_frame_desc data at the same time, while they occupy an overlapping
    piece of memory. This can lead to hard to trace crashes as pointers
    within skb_frame_desc are pointing into nowhere, or the rxd data is
    overwritten with non-sense.
    
    Fix it by copying the rxd to a small buffer on the stack.
    
    Signed-off-by: default avatarGertjan van Wingerde <gwingerde@kpnplanet.nl>
    Signed-off-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    a26cbc65