1. 01 5月, 2006 2 次提交
  2. 01 4月, 2006 1 次提交
    • O
      [PATCH] Don't pass boot parameters to argv_init[] · 9b41046c
      OGAWA Hirofumi 提交于
      The boot cmdline is parsed in parse_early_param() and
      parse_args(,unknown_bootoption).
      
      And __setup() is used in obsolete_checksetup().
      
      	start_kernel()
      		-> parse_args()
      			-> unknown_bootoption()
      				-> obsolete_checksetup()
      
      If __setup()'s callback (->setup_func()) returns 1 in
      obsolete_checksetup(), obsolete_checksetup() thinks a parameter was
      handled.
      
      If ->setup_func() returns 0, obsolete_checksetup() tries other
      ->setup_func().  If all ->setup_func() that matched a parameter returns 0,
      a parameter is seted to argv_init[].
      
      Then, when runing /sbin/init or init=app, argv_init[] is passed to the app.
      If the app doesn't ignore those arguments, it will warning and exit.
      
      This patch fixes a wrong usage of it, however fixes obvious one only.
      Signed-off-by: NOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      9b41046c
  3. 21 3月, 2006 9 次提交
  4. 19 1月, 2006 1 次提交
    • A
      [PATCH] EDAC: atomic scrub operations · 715b49ef
      Alan Cox 提交于
      EDAC requires a way to scrub memory if an ECC error is found and the chipset
      does not do the work automatically.  That means rewriting memory locations
      atomically with respect to all CPUs _and_ bus masters.  That means we can't
      use atomic_add(foo, 0) as it gets optimised for non-SMP
      
      This adds a function to include/asm-foo/atomic.h for the platforms currently
      supported which implements a scrub of a mapped block.
      
      It also adjusts a few other files include order where atomic.h is included
      before types.h as this now causes an error as atomic_scrub uses u32.
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      715b49ef
  5. 09 1月, 2006 1 次提交
  6. 13 12月, 2005 1 次提交
  7. 28 10月, 2005 1 次提交
  8. 09 10月, 2005 1 次提交
  9. 30 8月, 2005 2 次提交
  10. 17 8月, 2005 1 次提交
  11. 19 7月, 2005 1 次提交
  12. 15 7月, 2005 1 次提交
  13. 14 7月, 2005 1 次提交
  14. 02 7月, 2005 1 次提交
    • D
      AUDIT: Stop waiting for backlog after audit_panic() happens · ac4cec44
      David Woodhouse 提交于
      We force a rate-limit on auditable events by making them wait for space 
      on the backlog queue. However, if auditd really is AWOL then this could 
      potentially bring the entire system to a halt, depending on the audit 
      rules in effect.
      
      Firstly, make sure the wait time is honoured correctly -- it's the 
      maximum time the process should wait, rather than the time to wait 
      _each_ time round the loop. We were getting re-woken _each_ time a 
      packet was dequeued, and the timeout was being restarted each time.
      
      Secondly, reset the wait time after audit_panic() is called. In general 
      this will be reset to zero, to allow progress to be made. If the system
      is configured to _actually_ panic on audit_panic() then that will 
      already have happened; otherwise we know that audit records are being 
      lost anyway. 
      
      These two tunables can't be exposed via AUDIT_GET and AUDIT_SET because 
      those aren't particularly well-designed. It probably should have been 
      done by sysctls or sysfs anyway -- one for a later patch.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      ac4cec44
  15. 25 6月, 2005 1 次提交
  16. 24 6月, 2005 1 次提交
  17. 22 6月, 2005 3 次提交
  18. 21 6月, 2005 1 次提交
  19. 20 6月, 2005 2 次提交
  20. 24 5月, 2005 1 次提交
  21. 22 5月, 2005 1 次提交
  22. 21 5月, 2005 2 次提交
  23. 19 5月, 2005 3 次提交
    • D
      AUDIT: Honour audit_backlog_limit again. · fb19b4c6
      David Woodhouse 提交于
      The limit on the number of outstanding audit messages was inadvertently
      removed with the switch to queuing skbs directly for sending by a kernel
      thread. Put it back again.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      fb19b4c6
    • D
      AUDIT: Send netlink messages from a separate kernel thread · b7d11258
      David Woodhouse 提交于
      netlink_unicast() will attempt to reallocate and will free messages if
      the socket's rcvbuf limit is reached unless we give it an infinite 
      timeout. So do that, from a kernel thread which is dedicated to spewing
      stuff up the netlink socket.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      b7d11258
    • S
      AUDIT: Clean up logging of untrusted strings · 168b7173
      Steve Grubb 提交于
      * If vsnprintf returns -1, it will mess up the sk buffer space accounting. 
      This is fixed by not calling skb_put with bogus len values.
      
      * audit_log_hex was a loop that called audit_log_vformat with %02X for each 
      character. This is very inefficient since conversion from unsigned character 
      to Ascii representation is essentially masking, shifting, and byte lookups. 
      Also, the length of the converted string is well known - it's twice the 
      original. Fixed by rewriting the function.
      
      * audit_log_untrustedstring had no comments. This makes it hard for 
      someone to understand what the string format will be.
      
      * audit_log_d_path was never fixed to use untrustedstring. This could mess
      up user space parsers. This was fixed to make a temp buffer, call d_path, 
      and log temp buffer using untrustedstring. 
      
      From: Steve Grubb <sgrubb@redhat.com>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      168b7173
  24. 18 5月, 2005 1 次提交