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
  • sysctl.c
Find file BlameHistoryPermalink
  • Arun R Bharadwaj's avatar
    timers: Fix timer_migration interface which accepts any number as input · bfdb4d9f
    Arun R Bharadwaj authored Jun 23, 2009
    
    
    Poornima Nayek reported:
    
    | Timer migration interface /proc/sys/kernel/timer_migration in
    | 2.6.30-git9 accepts any numerical value as input.
    |
    | Steps to reproduce:
    | 1. echo -6666666 > /proc/sys/kernel/timer_migration
    | 2. cat /proc/sys/kernel/timer_migration
    | -6666666
    |
    | 1. echo 44444444444444444444444444444444444444444444444444444444444 > /proc/sys/kernel/timer_migration
    | 2. cat /proc/sys/kernel/timer_migration
    | -1357789412
    |
    | Expected behavior: Should 'echo: write error: Invalid argument' while
    | setting any value other then 0 & 1
    
    Restrict valid values to 0 and 1.
    
    Reported-by: default avatarPoornima Nayak <mpnayak@linux.vnet.ibm.com>
    Tested-by: default avatarPoornima Nayak <mpnayak@linux.vnet.ibm.com>
    Signed-off-by: default avatarArun R Bharadwaj <arun@linux.vnet.ibm.com>
    Cc: poornima nayak <mpnayak@linux.vnet.ibm.com>
    Cc: Arun Bharadwaj <arun@linux.vnet.ibm.com>
    LKML-Reference: <20090623043058.GA3249@linux.vnet.ibm.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    bfdb4d9f
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7