1. 26 3月, 2006 12 次提交
  2. 24 3月, 2006 4 次提交
  3. 23 3月, 2006 6 次提交
  4. 22 3月, 2006 5 次提交
  5. 21 3月, 2006 1 次提交
    • D
      [CRYPTO] aes: Fixed array boundary violation · 55e9dce3
      David McCullough 提交于
      The AES setkey routine writes 64 bytes to the E_KEY area even though
      there are only 60 bytes there.  It is in fact safe since E_KEY is
      immediately follwed by D_KEY which is initialised afterwards.  However,
      doing this may trigger undefined behaviour and makes Coverity unhappy.
      
      So by combining E_KEY and D_KEY into one array we sidestep this issue
      altogether.
      
      This problem was reported by Adrian Bunk.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      55e9dce3
  6. 15 3月, 2006 1 次提交
  7. 13 3月, 2006 1 次提交
    • A
      [PATCH] x86-64: Fix up handling of non canonical user RIPs · c33d4568
      Andi Kleen 提交于
      EM64T CPUs have somewhat weird error reporting for non canonical RIPs in
      SYSRET.
      
      We can't handle any exceptions there because the exception handler would
      end up running on the user stack which is unsafe.
      
      To avoid problems any code that might end up with a user touched pt_regs
      should return using int_ret_from_syscall.  int_ret_from_syscall ends up
      using IRET, which allows safe exceptions.
      
      Cc: Ernie Petrides <petrides@redhat.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      c33d4568
  8. 09 3月, 2006 1 次提交
  9. 06 3月, 2006 1 次提交
  10. 28 2月, 2006 1 次提交
  11. 27 2月, 2006 7 次提交
    • L
      Make Kprobes depend on modules · add2b6fd
      Linus Torvalds 提交于
      Commit 9ec4b1f3 made kprobes not compile
      without module support, so just make that clear in the Kconfig file.
      
      Also, since it's marked EXPERIMENTAL, make that dependency explicit too.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      add2b6fd
    • B
      [PATCH] fix build on x86_64 with !CONFIG_HOTPLUG_CPU · d5176123
      Brian Magnuson 提交于
      The commit e2c03888 added
      setup_additional_cpus to setup.c but this is only defined if
      CONFIG_HOTPLUG_CPU is set.  This patch changes the #ifdef to reflect that.
      Signed-off-by: NBrian Magnuson <magnuson@rcn.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      d5176123
    • A
      [PATCH] x86_64: Better ATI timer fix · ab9b32ee
      Andi Kleen 提交于
      The previous experiment for using apicmaintimer on ATI systems didn't
      work out very well.  In particular laptops with C2/C3 support often
      don't let it tick during idle, which makes it useless.  There were also
      some other bugs that made the apicmaintimer often not used at all.
      
      I tried some other experiments - running timer over RTC and some other
      things but they didn't really work well neither.
      
      I rechecked the specs now and it turns out this simple change is
      actually enough to avoid the double ticks on the ATI systems.  We just
      turn off IRQ 0 in the 8254 and only route it directly using the IO-APIC.
      
      I tested it on a few ATI systems and it worked there.  In fact it worked
      on all chipsets (NVidia, Intel, AMD, ATI) I tried it on.
      
      According to the ACPI spec routing should always work through the
      IO-APIC so I think it's the correct thing to do anyways (and most of the
      old gunk in check_timer should be thrown away for x86-64).
      
      But for 2.6.16 it's best to do a fairly minimal change:
       - Use the known to be working everywhere-but-ATI IRQ0 both over 8254
         and IO-APIC setup everywhere
       - Except on ATI disable IRQ0 in the 8254
       - Remove the code to select apicmaintimer on ATI chipsets
       - Add some boot options to allow to override this (just paranoia)
      
      In 2.6.17 I hope to switch the default over to this for everybody.
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      ab9b32ee
    • A
      [PATCH] x86_64: Move the SMP time selection earlier · e8b91777
      Andi Kleen 提交于
      SMP time selection originally ran after all CPUs were brought up because
      it needed to know the number of CPUs to decide if it needs an MP safe
      timer or not.
      
      This is not needed anymore because we know present CPUs early.
      
      This fixes a couple of problems:
       - apicmaintimer didn't always work because it relied on state that was
         set up time_init_gtod too late.
       - The output for the used timer in early kernel log was misleading
         because time_init_gtod could actually change it later.  Now always
         print the final timer choice
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e8b91777
    • A
      [PATCH] x86_64: Fix the additional_cpus=.. option · e2c03888
      Andi Kleen 提交于
      It didn't set up the CPU possible map early enough, so the
      option didn't actually work.
      
      Noticed by Heiko Carstens
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e2c03888
    • C
      [PATCH] x86_64: Fix NMI watchdog on x460 · 1f992153
      Chris McDermott 提交于
      [description from AK]
      
      Old check for the IO-APIC watchdog during the timer check was wrong -
      it obviously should only drop into this if the IO-APIC watchdog is used.
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      1f992153
    • A
      [PATCH] x86-64/i386: Use common X86_PM_TIMER option and make it EMBEDDED · e78256b8
      Andi Kleen 提交于
      This makes x86-64 use the common X86_PM_TIMER Kconfig entry in drivers/acpi
      
      And since PM timer is needed for correct timing on a lot of systems
      now (e.g. AMD dual cores) and we often get bug reports from people
      who forgot to set it make it depend on CONFIG_EMBEDDED. x86-64 had
      this change before and it's a good thing.
      
      I also fixed the description slightly to make this more clear.
      
      Cc: len.brown@intel.com
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e78256b8