1. 19 2月, 2010 1 次提交
  2. 23 9月, 2009 2 次提交
  3. 12 6月, 2009 1 次提交
  4. 19 5月, 2009 1 次提交
  5. 16 1月, 2009 1 次提交
  6. 09 1月, 2009 1 次提交
  7. 13 10月, 2008 1 次提交
  8. 26 5月, 2008 1 次提交
    • E
      stackprotector: use canary at end of stack to indicate overruns at oops time · 7c9f8861
      Eric Sandeen 提交于
      (Updated with a common max-stack-used checker that knows about
      the canary, as suggested by Joe Perches)
      
      Use a canary at the end of the stack to clearly indicate
      at oops time whether the stack has ever overflowed.
      
      This is a very simple implementation with a couple of
      drawbacks:
      
      1) a thread may legitimately use exactly up to the last
         word on the stack
      
       -- but the chances of doing this and then oopsing later seem slim
      
      2) it's possible that the stack usage isn't dense enough
         that the canary location could get skipped over
      
       -- but the worst that happens is that we don't flag the overrun
       -- though this happens fairly often in my testing :(
      
      With the code in place, an intentionally-bloated stack oops might
      do:
      
      BUG: unable to handle kernel paging request at ffff8103f84cc680
      IP: [<ffffffff810253df>] update_curr+0x9a/0xa8
      PGD 8063 PUD 0
      Thread overran stack or stack corrupted
      Oops: 0000 [1] SMP
      CPU 0
      ...
      
      ... unless the stack overrun is so bad that it corrupts some other
      thread.
      Signed-off-by: NEric Sandeen <sandeen@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      7c9f8861
  9. 20 10月, 2007 1 次提交
    • P
      Task Control Groups: basic task cgroup framework · ddbcc7e8
      Paul Menage 提交于
      Generic Process Control Groups
      --------------------------
      
      There have recently been various proposals floating around for
      resource management/accounting and other task grouping subsystems in
      the kernel, including ResGroups, User BeanCounters, NSProxy
      cgroups, and others.  These all need the basic abstraction of being
      able to group together multiple processes in an aggregate, in order to
      track/limit the resources permitted to those processes, or control
      other behaviour of the processes, and all implement this grouping in
      different ways.
      
      This patchset provides a framework for tracking and grouping processes
      into arbitrary "cgroups" and assigning arbitrary state to those
      groupings, in order to control the behaviour of the cgroup as an
      aggregate.
      
      The intention is that the various resource management and
      virtualization/cgroup efforts can also become task cgroup
      clients, with the result that:
      
      - the userspace APIs are (somewhat) normalised
      
      - it's easier to test e.g. the ResGroups CPU controller in
       conjunction with the BeanCounters memory controller, or use either of
      them as the resource-control portion of a virtual server system.
      
      - the additional kernel footprint of any of the competing resource
       management systems is substantially reduced, since it doesn't need
       to provide process grouping/containment, hence improving their
       chances of getting into the kernel
      
      This patch:
      
      Add the main task cgroups framework - the cgroup filesystem, and the
      basic structures for tracking membership and associating subsystem state
      objects to tasks.
      Signed-off-by: NPaul Menage <menage@google.com>
      Cc: Serge E. Hallyn <serue@us.ibm.com>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Dave Hansen <haveblue@us.ibm.com>
      Cc: Balbir Singh <balbir@in.ibm.com>
      Cc: Paul Jackson <pj@sgi.com>
      Cc: Kirill Korotaev <dev@openvz.org>
      Cc: Herbert Poetzl <herbert@13thfloor.at>
      Cc: Srivatsa Vaddagiri <vatsa@in.ibm.com>
      Cc: Cedric Le Goater <clg@fr.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ddbcc7e8
  10. 17 10月, 2007 1 次提交
  11. 16 7月, 2007 1 次提交
  12. 11 5月, 2007 1 次提交
  13. 04 3月, 2007 1 次提交
  14. 13 2月, 2007 1 次提交
  15. 06 1月, 2007 1 次提交
  16. 12 10月, 2006 1 次提交
  17. 24 9月, 2006 1 次提交