Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L 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
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • kernel
  • module.c
Find file BlameHistoryPermalink
  • Christoph Lameter's avatar
    modules: use raw_cpu_write for initialization of per cpu refcount. · 08f141d3
    Christoph Lameter authored Apr 07, 2014
    
    
    The initialization of a structure is not subject to synchronization.
    The use of __this_cpu would trigger a false positive with the additional
    preemption checks for __this_cpu ops.
    
    So simply disable the check through the use of raw_cpu ops.
    
    Trace:
    
      __this_cpu_write operation in preemptible [00000000] code: modprobe/286
      caller is __this_cpu_preempt_check+0x38/0x60
      CPU: 3 PID: 286 Comm: modprobe Tainted: GF            3.12.0-rc4+ #187
      Call Trace:
        dump_stack+0x4e/0x82
        check_preemption_disabled+0xec/0x110
        __this_cpu_preempt_check+0x38/0x60
        load_module+0xcfd/0x2650
        SyS_init_module+0xa6/0xd0
        tracesys+0xe1/0xe6
    
    Signed-off-by: default avatarChristoph Lameter <cl@linux.com>
    Acked-by: default avatarIngo Molnar <mingo@kernel.org>
    Acked-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    Cc: Tejun Heo <tj@kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    08f141d3
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7