1. 11 Feb, 2008 27 commits
  2. 10 Feb, 2008 13 commits
    • Linus Torvalds's avatar
      Linux 2.6.25-rc1 · 19af3554
      Linus Torvalds authored
      .. and I really need to call it something else.  Maybe it is time to
      bring back the weasel series, since weasels always make me feel good
      about a kernel.
      19af3554
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm · 0eccf60b
      Linus Torvalds authored
      * 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (30 commits)
        [ARM] constify function pointer tables
        [ARM] 4823/1: AT91 section fix
        [ARM] 4824/1: pxa: clear RDH bit after any reset
        [ARM] pxa: remove debugging PM: printk
        ARM: OMAP1: Misc clean-up
        ARM: OMAP1: Update defconfigs for omap1
        ARM: OMAP1: Palm Tungsten E board clean-up
        ARM: OMAP1: Use I2C bus registration helper for omap1
        ARM: OMAP1: Remove omap_sram_idle()
        ARM: OMAP1: PM fixes for OMAP1
        ARM: OMAP1: Use MMC multislot structures for Siemens SX1 board
        ARM: OMAP1: Make omap1 use MMC multislot structures
        ARM: OMAP1: Change the comments to C style
        ARM: OMAP1: Make omap1 boards to use omap_nand_platform_data
        ARM: OMAP: Add helper module for board specific I2C bus registration
        ARM: OMAP: Add dmtimer support for OMAP3
        ARM: OMAP: Pre-3430 clean-up for dmtimer.c
        ARM: OMAP: Add DMA support for chaining and 3430
        ARM: OMAP: Add 24xx GPIO debounce support
        ARM: OMAP: Get rid of unnecessary ifdefs in GPIO code
        ...
      0eccf60b
    • Matthew Wilcox's avatar
      Change pci_raw_ops to pci_raw_read/write · b6ce068a
      Matthew Wilcox authored
      We want to allow different implementations of pci_raw_ops for standard
      and extended config space on x86.  Rather than clutter generic code with
      knowledge of this, we make pci_raw_ops private to x86 and use it to
      implement the new raw interface -- raw_pci_read() and raw_pci_write().
      Signed-off-by: default avatarMatthew Wilcox <willy@linux.intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      b6ce068a
    • Ivan Kokshaysky's avatar
      PCI x86: always use conf1 to access config space below 256 bytes · a0ca9909
      Ivan Kokshaysky authored
      Thanks to Loic Prylli <loic@myri.com>, who originally proposed
      this idea.
      
      Always using legacy configuration mechanism for the legacy config space
      and extended mechanism (mmconf) for the extended config space is
      a simple and very logical approach. It's supposed to resolve all
      known mmconf problems. It still allows per-device quirks (tweaking
      dev->cfg_size). It also allows to get rid of mmconf fallback code.
      Signed-off-by: default avatarIvan Kokshaysky <ink@jurassic.park.msu.ru>
      Signed-off-by: default avatarMatthew Wilcox <willy@linux.intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a0ca9909
    • Linus Torvalds's avatar
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-hrt · 58a14ee9
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-hrt:
        hrtimer: don't modify restart_block->fn in restart functions
        hrtimer: fix *rmtp/restarts handling in compat_sys_nanosleep()
        hrtimer: fix *rmtp handling in hrtimer_nanosleep()
        ntp: correct inconsistent interval/tick_length usage
      58a14ee9
    • Bastian Blank's avatar
      splice: fix user pointer access in get_iovec_page_array() · 712a30e6
      Bastian Blank authored
      Commit 8811930d ("splice: missing user
      pointer access verification") added the proper access_ok() calls to
      copy_from_user_mmap_sem() which ensures we can copy the struct iovecs
      from userspace to the kernel.
      
      But we also must check whether we can access the actual memory region
      pointed to by the struct iovec to fix the access checks properly.
      Signed-off-by: default avatarBastian Blank <waldi@debian.org>
      Acked-by: default avatarOliver Pinter <oliver.pntr@gmail.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      712a30e6
    • David S. Miller's avatar
      [PKT_SCHED] ematch: Fix build warning. · 30ddb159
      David S. Miller authored
      Commit 954415e3 ("[PKT_SCHED] ematch:
      tcf_em_destroy robustness") removed a cast on em->data when
      passing it to kfree(), but em->data is an integer type that can
      hold pointers as well as other values so the cast is necessary.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      30ddb159
    • Oleg Nesterov's avatar
      hrtimer: don't modify restart_block->fn in restart functions · c289b074
      Oleg Nesterov authored
      hrtimer_nanosleep_restart() clears/restores restart_block->fn. This is
      pointless and complicates its usage. Note that if sys_restart_syscall()
      doesn't actually happen, we have a bogus "pending" restart->fn anyway,
      this is harmless.
      Signed-off-by: default avatarOleg Nesterov <oleg@tv-sign.ru>
      Cc: Alexey Dobriyan <adobriyan@sw.ru>
      Cc: Pavel Emelyanov <xemul@sw.ru>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Toyo Abe <toyoa@mvista.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      c289b074
    • Oleg Nesterov's avatar
      hrtimer: fix *rmtp/restarts handling in compat_sys_nanosleep() · 41652937
      Oleg Nesterov authored
      Spotted by Pavel Emelyanov and Alexey Dobriyan.
      
      compat_sys_nanosleep() implicitly uses hrtimer_nanosleep_restart(), this can't
      work. Make a suitable compat_nanosleep_restart() helper.
      
      Introduced by commit c70878b4
      hrtimer: hook compat_sys_nanosleep up to high res timer code
      
      Also, set ->addr_limit = KERNEL_DS before doing hrtimer_nanosleep(), this func
      was changed by the previous patch and now takes the "__user *" parameter.
      
      Thanks to Ingo Molnar for fixing the bug in this patch.
      Signed-off-by: default avatarOleg Nesterov <oleg@tv-sign.ru>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Alexey Dobriyan <adobriyan@sw.ru>
      Cc: Pavel Emelyanov <xemul@sw.ru>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Toyo Abe <toyoa@mvista.com>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      41652937
    • Oleg Nesterov's avatar
      hrtimer: fix *rmtp handling in hrtimer_nanosleep() · 080344b9
      Oleg Nesterov authored
      Spotted by Pavel Emelyanov and Alexey Dobriyan.
      
      hrtimer_nanosleep() sets restart_block->arg1 = rmtp, but this rmtp points to
      the local variable which lives in the caller's stack frame. This means that
      if sys_restart_syscall() actually happens and it is interrupted as well, we
      don't update the user-space variable, but write into the already dead stack
      frame.
      
      Introduced by commit 04c22714
      hrtimer: Rework hrtimer_nanosleep to make sys_compat_nanosleep easier
      
      Change the callers to pass "__user *rmtp" to hrtimer_nanosleep(), and change
      hrtimer_nanosleep() to use copy_to_user() to actually update *rmtp.
      
      Small problem remains. man 2 nanosleep states that *rtmp should be written if
      nanosleep() was interrupted (it says nothing whether it is OK to update *rmtp
      if nanosleep returns 0), but (with or without this patch) we can dirty *rem
      even if nanosleep() returns 0.
      
      NOTE: this patch doesn't change compat_sys_nanosleep(), because it has other
      bugs. Fixed by the next patch.
      Signed-off-by: default avatarOleg Nesterov <oleg@tv-sign.ru>
      Cc: Alexey Dobriyan <adobriyan@sw.ru>
      Cc: Michael Kerrisk <mtk.manpages@googlemail.com>
      Cc: Pavel Emelyanov <xemul@sw.ru>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Toyo Abe <toyoa@mvista.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      
       include/linux/hrtimer.h |    2 -
       kernel/hrtimer.c        |   51 +++++++++++++++++++++++++-----------------------
       kernel/posix-timers.c   |   14 +------------
       3 files changed, 30 insertions(+), 37 deletions(-)
      080344b9
    • john stultz's avatar
      ntp: correct inconsistent interval/tick_length usage · e13a2e61
      john stultz authored
      clocksource initialization and error accumulation.  This corrects a 280ppm
      drift seen on some systems using acpi_pm, and affects other clocksources as
      well (likely to a lesser degree).
      Signed-off-by: default avatarJohn Stultz <johnstul@us.ibm.com>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      e13a2e61
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 25f66630
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (28 commits)
        [NET_SCHED] sch_htb: htb_requeue fix
        [IPV6]: Replace using the magic constant "1024" with IP6_RT_PRIO_USER for fc_metric.
        starfire: secton fix
        via-velocity: section fix
        natsemi: section fix
        typhoon: section fix
        isdn: fix section mismatch warning for ISACVer
        isdn: fix section mismatch warnings from hisax_cs_setup_card
        isdn: fix section mismatch warnings in isac.c and isar.c
        isdn: fix section mismatch warning in hfc_sx.c
        [PKT_SCHED] ematch: tcf_em_destroy robustness
        [PKT_SCHED]: deinline functions in meta match
        [SCTP]: Convert sctp_dbg_objcnt to seq files.
        [SCTP]: Use snmp_fold_field instead of a homebrew analogue.
        [IGMP]: Optimize kfree_skb in igmp_rcv.
        [KEY]: Convert net/pfkey to use seq files.
        [KEY]: Clean up proc files creation a bit.
        pppol2tp: fix printk warnings
        bnx2: section fix
        bnx2x: section fix
        ...
      25f66630