Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-vm
  • 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
  • linux-vm
  • Repository
Switch branch/tag
  • linux-vm
  • arch
  • arm
  • net
  • bpf_jit_32.c
Find file BlameHistoryPermalink
  • Schichan Nicolas's avatar
    ARM: 7597/1: net: bpf_jit_32: fix kzalloc gfp/size mismatch. · 89c2e009
    Schichan Nicolas authored Dec 10, 2012
    Official prototype for kzalloc is:
    
    void *kzalloc(size_t, gfp_t);
    
    The ARM bpf_jit code was having the assumption that it was:
    
    void *kzalloc(gfp_t, size);
    
    This was resulting the use of some random GFP flags depending on the
    size requested and some random overflows once the really needed size
    was more than the value of GFP_KERNEL.
    
    This bug was present since the original inclusion of bpf_jit for ARM
    (ddecdfce
    
    : ARM: 7259/3: net: JIT compiler for packet filters).
    
    Signed-off-by: default avatarNicolas Schichan <nschichan@freebox.fr>
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    89c2e009