Skip to content
  1. Jan 25, 2010
  2. Jan 24, 2010
  3. Jan 23, 2010
  4. Jan 22, 2010
    • Sathya Perla's avatar
      be2net: fix bug in rx page posting · 26d92f92
      Sathya Perla authored
      
      
      Pages are posted to the rxq in such a way that more than one frag
      can share the page. The last frag that uses the page unmaps the
      page.  In the case when a page is not fully used (due to lack of space in rxq)
      the last frag that uses the page is not being set as a "last_page_user";
      instead, the next frag in the rxq is incorrectly being set.
      
      The fix has also been tested on ppc64 with 64k pages...
      
      Signed-off-by: default avatarSathya Perla <sathyap@serverengines.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      26d92f92
    • Inaky Perez-Gonzalez's avatar
      wimax/i2400m: Add support for more i6x50 SKUs · b8112469
      Inaky Perez-Gonzalez authored
      
      
      The Intel WiMax Wireless Link 6050 can show under more than one USB
      ID. Add support for all, introducing a generic flag (i2400mu->i6050)
      that denotes a 6x50 based device.
      
      Signed-off-by: default avatarInaky Perez-Gonzalez <inaky@linux.intel.com>
      b8112469
    • Linus Torvalds's avatar
      Linux 2.6.33-rc5 · 92dcffb9
      Linus Torvalds authored
      92dcffb9
    • Linus Torvalds's avatar
      Merge branch 'perf-fixes-for-linus' of... · e80b1359
      Linus Torvalds authored
      Merge branch 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        perf: x86: Add support for the ANY bit
        perf: Change the is_software_event() definition
        perf: Honour event state for aux stream data
        perf: Fix perf_event_do_pending() fallback callsite
        perf kmem: Print usage help for unknown commands
        perf kmem: Increase "Hit" column length
        hw-breakpoints, perf: Fix broken mmiotrace due to dr6 by reference change
        perf timechart: Use tid not pid for COMM change
      e80b1359
    • Linus Torvalds's avatar
      Merge branch 'sched-fixes-for-linus' of... · 341031ca
      Linus Torvalds authored
      Merge branch 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        sched: Reassign prev and switch_count when reacquire_kernel_lock() fail
        sched: Fix vmark regression on big machines
      341031ca
  5. Jan 21, 2010
    • Linus Torvalds's avatar
      Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev · 836f48c5
      Linus Torvalds authored
      * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
        libata: retry FS IOs even if it has failed with AC_ERR_INVALID
      836f48c5
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6 · bdeef61c
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6:
        tty: fix race in tty_fasync
        serial: serial_cs: oxsemi quirk breaks resume
        serial: imx: bit &/| confusion
        serial: Fix crash if the minimum rate of the device is > 9600 baud
        serial-core: resume serial hardware with no_console_suspend
        serial: 8250_pnp: use wildcard for serial Wacom tablets
        nozomi: quick fix for the close/close bug
        compat_ioctl: Supress "unknown cmd" message on serial /dev/console
      bdeef61c
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 · 4caca5f9
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6:
        Staging: hv: fix smp problems in the hyperv core code
        Staging: et131x: Fix 2.6.33rc1 regression in et131x
        Staging: asus_oled: fix oops in 2.6.32.2
      4caca5f9
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6 · f8c7e6c2
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
        Revert "sysdev: fix prototype for memory_sysdev_class show/store functions"
        driver-core: fix devtmpfs crash on s390
      f8c7e6c2
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 · c9140487
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6:
        USB: isp1362: fix build failure on ARM systems via irq_flags cleanup
        USB: isp1362: better 64bit printf warning fixes
        USB: fix usbstorage for 2770:915d delivers no FAT
        USB: Fix level of isp1760 Reloading ptd error message
        USB: FHCI: avoid NULL pointer dereference
        USB: Fix duplicate sysfs problem after device reset.
        USB: add speed values for USB 3.0 and wireless controllers
        USB: add missing delay during remote wakeup
        USB: EHCI & UHCI: fix race between root-hub suspend and port resume
        USB: EHCI: fix handling of unusual interrupt intervals
        USB: Don't use GFP_KERNEL while we cannot reset a storage device
        USB: fix bitmask merge error
        usb: serial: fix memory leak in generic driver
        USB: serial: fix USB serial fix kfifo_len locking
      c9140487
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block · 456eac94
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
        fs/bio.c: fix shadows sparse warning
        drbd: The kernel code is now equivalent to out of tree release 8.3.7
        drbd: Allow online resizing of DRBD devices while peer not reachable (needs to be explicitly forced)
        drbd: Don't go into StandAlone mode when authentification failes because of network error
        drivers/block/drbd/drbd_receiver.c: correct NULL test
        cfq-iosched: Respect ioprio_class when preempting
        genhd: overlapping variable definition
        block: removed unused as_io_context
        DM: Fix device mapper topology stacking
        block: bdev_stack_limits wrapper
        block: Fix discard alignment calculation and printing
        block: Correct handling of bottom device misaligment
        drbd: check on CONFIG_LBDAF, not LBD
        drivers/block/drbd: Correct NULL test
        drbd: Silenced an assert that could triggered after changing write ordering method
        drbd: Kconfig fix
        drbd: Fix for a race between IO and a detach operation [Bugz 262]
        drbd: Use drbd_crypto_is_hash() instead of an open coded check
      456eac94
    • Linus Torvalds's avatar
      Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 · dedd0c2a
      Linus Torvalds authored
      * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (23 commits)
        ACPI: delete acpi_processor_power_verify_c2()
        ACPI: allow C3 > 1000usec
        ACPI: enable C2 and Turbo-mode on Nehalem notebooks on A/C
        ACPI: power_meter: remove double kfree()
        ACPI: processor: restrict early _PDC to opt-in platforms
        ACPI: Fix unused variable warning in sbs.c
        acpi: make ACPI device id constant
        sony-laptop - fix using of uninitialized variable
        ACPI: Fix section mismatch error for acpi_early_processor_set_pdc()
        eeepc-laptop: disable wireless hotplug for 1201N
        eeepc-laptop: add hotplug_disable parameter
        eeepc-laptop: switch to using sparse keymap library
        eeepc-laptop: dmi blacklist to disable pci hotplug code
        eeepc-laptop: disable cpu speed control on EeePC 701
        ACPI: don't cond_resched if irq is disabled
        ACPI: Remove unnecessary cast.
        ACPI: Advertise to BIOS in _OSC: _OST on _PPC changes
        ACPI: EC: Add wait for irq storm
        ACPI: SBS: Move SBS HC callback to faster Notify queue
        x86, ACPI: delete acpi_boot_table_init() return value
        ...
      dedd0c2a
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ecryptfs/ecryptfs-2.6 · 15e551e5
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ecryptfs/ecryptfs-2.6:
        ecryptfs: use after free
        ecryptfs: Eliminate useless code
        ecryptfs: fix interpose/interpolate typos in comments
        ecryptfs: pass matching flags to interpose as defined and used there
        ecryptfs: remove unnecessary d_drop calls in ecryptfs_link
        ecryptfs: don't ignore return value from lock_rename
        ecryptfs: initialize private persistent file before dereferencing pointer
        eCryptfs: Remove mmap from directory operations
        eCryptfs: Add getattr function
        eCryptfs: Use notify_change for truncating lower inodes
      15e551e5
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable · 30a0f5e1
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable:
        Btrfs: fix possible panic on unmount
        Btrfs: deal with NULL acl sent to btrfs_set_acl
        Btrfs: fix regression in orphan cleanup
        Btrfs: Fix race in btrfs_mark_extent_written
        Btrfs, fix memory leaks in error paths
        Btrfs: align offsets for btrfs_ordered_update_i_size
        btrfs: fix missing last-entry in readdir(3)
      30a0f5e1
    • Yongseok Koh's avatar
      vmalloc: remove BUG_ON due to racy counting of VM_LAZY_FREE · 88f50044
      Yongseok Koh authored
      
      
      In free_unmap_area_noflush(), va->flags is marked as VM_LAZY_FREE first, and
      then vmap_lazy_nr is increased atomically.
      
      But, in __purge_vmap_area_lazy(), while traversing of vmap_are_list, nr
      is counted by checking VM_LAZY_FREE is set to va->flags.  After counting
      the variable nr, kernel reads vmap_lazy_nr atomically and checks a
      BUG_ON condition whether nr is greater than vmap_lazy_nr to prevent
      vmap_lazy_nr from being negative.
      
      The problem is that, if interrupted right after marking VM_LAZY_FREE,
      increment of vmap_lazy_nr can be delayed.  Consequently, BUG_ON
      condition can be met because nr is counted more than vmap_lazy_nr.
      
      It is highly probable when vmalloc/vfree are called frequently.  This
      scenario have been verified by adding delay between marking VM_LAZY_FREE
      and increasing vmap_lazy_nr in free_unmap_area_noflush().
      
      Even the vmap_lazy_nr is for checking high watermark, it never be the
      strict watermark.  Although the BUG_ON condition is to prevent
      vmap_lazy_nr from being negative, vmap_lazy_nr is signed variable.  So,
      it could go down to negative value temporarily.
      
      Consequently, removing the BUG_ON condition is proper.
      
      A possible BUG_ON message is like the below.
      
         kernel BUG at mm/vmalloc.c:517!
         invalid opcode: 0000 [#1] SMP
         EIP: 0060:[<c04824a4>] EFLAGS: 00010297 CPU: 3
         EIP is at __purge_vmap_area_lazy+0x144/0x150
         EAX: ee8a8818 EBX: c08e77d4 ECX: e7c7ae40 EDX: c08e77ec
         ESI: 000081fe EDI: e7c7ae60 EBP: e7c7ae64 ESP: e7c7ae3c
         DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
         Call Trace:
         [<c0482ad9>] free_unmap_vmap_area_noflush+0x69/0x70
         [<c0482b02>] remove_vm_area+0x22/0x70
         [<c0482c15>] __vunmap+0x45/0xe0
         [<c04831ec>] vmalloc+0x2c/0x30
         Code: 8d 59 e0 eb 04 66 90 89 cb 89 d0 e8 87 fe ff ff 8b 43 20 89 da 8d 48 e0 8d 43 20 3b 04 24 75 e7 fe 05 a8 a5 a3 c0 e9 78 ff ff ff <0f> 0b eb fe 90 8d b4 26 00 00 00 00 56 89 c6 b8 ac a5 a3 c0 31
         EIP: [<c04824a4>] __purge_vmap_area_lazy+0x144/0x150 SS:ESP 0068:e7c7ae3c
      
      [ See also http://marc.info/?l=linux-kernel&m=126335856228090&w=2 ]
      
      Signed-off-by: default avatarYongseok Koh <yongseok.koh@samsung.com>
      Reviewed-by: default avatarMinchan Kim <minchan.kim@gmail.com>
      Cc: Nick Piggin <npiggin@suse.de>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      88f50044
    • Linus Torvalds's avatar
      Merge branch 'sh/for-2.6.33' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6 · 970114a1
      Linus Torvalds authored
      * 'sh/for-2.6.33' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6:
        sh64: wire up sys_accept4.
        sh: unwire sys_recvmmsg.
        sh: ms7724: Correct sh-eth EEPROM polling timeout.
      970114a1
    • Linus Torvalds's avatar
      Merge master.kernel.org:/home/rmk/linux-2.6-arm · def20529
      Linus Torvalds authored
      * master.kernel.org:/home/rmk/linux-2.6-arm:
        ARM: 5888/1: arm: Update comments in cacheflush.h and remove unnecessary V6 and V7 comments
        ARM: 5886/1: arm: Fix cpu_proc_fin() for proc-v7.S and make kexec work
        ARM: 5885/1: arm: Flush TLB entries in setup_mm_for_reboot()
        ARM: 5884/1: arm: Fix DCC console for v7
        ARM: 5883/1: Revert "disable NX support for OABI-supporting kernels"
        ARM: 5882/1: ARM: Fix uncompress code compile for different defines of flush(void)
        ARM: fix badly placed mach/plat entries in Kconfig & Makefile
      def20529
    • Stephane Eranian's avatar
      perf: x86: Add support for the ANY bit · b27d515a
      Stephane Eranian authored
      
      
      Propagate the ANY bit into the fixed counter config for v3 and higher.
      
      Signed-off-by: default avatarStephane Eranian <eranian@google.com>
      [a.p.zijlstra@chello.nl: split from larger patch]
      Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
      LKML-Reference: <4b5430c6.0f975e0a.1bf9.ffff85fe@mx.google.com>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      b27d515a
    • Peter Zijlstra's avatar
      perf: Change the is_software_event() definition · 92b67598
      Peter Zijlstra authored
      
      
      The is_software_event() definition always confuses me because its an
      exclusive expression, make it an inclusive one.
      
      Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
      LKML-Reference: <new-submission>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      92b67598
    • Peter Zijlstra's avatar
      perf: Honour event state for aux stream data · 22e19085
      Peter Zijlstra authored
      
      
      Anton reported that perf record kept receiving events even after calling
      ioctl(PERF_EVENT_IOC_DISABLE). It turns out that FORK,COMM and MMAP
      events didn't respect the disabled state and kept flowing in.
      
      Reported-by: default avatarAnton Blanchard <anton@samba.org>
      Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
      Tested-by: default avatarAnton Blanchard <anton@samba.org>
      LKML-Reference: <1263459187.4244.265.camel@laptop>
      CC: stable@kernel.org
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      22e19085
    • Peter Zijlstra's avatar
      perf: Fix perf_event_do_pending() fallback callsite · fe432200
      Peter Zijlstra authored
      
      
      Paul questioned the context in which we should call
      perf_event_do_pending(). After looking at that I found that it should be
      called from IRQ context these days, however the fallback call-site is
      placed in softirq context. Ammend this by placing the callback in the IRQ
      timer path.
      
      Reported-by: default avatarPaul Mackerras <paulus@samba.org>
      Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
      LKML-Reference: <1263374859.4244.192.camel@laptop>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      fe432200
    • Yong Zhang's avatar
      sched: Reassign prev and switch_count when reacquire_kernel_lock() fail · 6d558c3a
      Yong Zhang authored
      
      
      Assume A->B schedule is processing, if B have acquired BKL before and it
      need reschedule this time. Then on B's context, it will go to
      need_resched_nonpreemptible for reschedule. But at this time, prev and
      switch_count are related to A. It's wrong and will lead to incorrect
      scheduler statistics.
      
      Signed-off-by: default avatarYong Zhang <yong.zhang0@gmail.com>
      Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
      LKML-Reference: <2674af741001102238w7b0ddcadref00d345e2181d11@mail.gmail.com>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      6d558c3a
    • Mike Galbraith's avatar
      sched: Fix vmark regression on big machines · 50b926e4
      Mike Galbraith authored
      
      
      SD_PREFER_SIBLING is set at the CPU domain level if power saving isn't
      enabled, leading to many cache misses on large machines as we traverse
      looking for an idle shared cache to wake to.  Change the enabler of
      select_idle_sibling() to SD_SHARE_PKG_RESOURCES, and enable same at the
      sibling domain level.
      
      Reported-by: default avatarLin Ming <ming.m.lin@intel.com>
      Signed-off-by: default avatarMike Galbraith <efault@gmx.de>
      Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
      LKML-Reference: <1262612696.15495.15.camel@marge.simson.net>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      50b926e4
    • Jesse Brandeburg's avatar
      e1000e: enhance frame fragment detection · b94b5028
      Jesse Brandeburg authored
      
      
      Originally patched by Neil Horman <nhorman@tuxdriver.com>
      
      e1000e could with a jumbo frame enabled interface, and packet split disabled,
      receive a packet that would overflow a single rx buffer.  While in practice
      very hard to craft a packet that could abuse this, it is possible.
      
      this is related to CVE-2009-4538
      
      Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
      CC: Neil Horman <nhorman@tuxdriver.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      b94b5028
    • Jesse Brandeburg's avatar
      e1000: enhance frame fragment detection · 40a14dea
      Jesse Brandeburg authored
      
      
      Originally From: Neil Horman <nhorman@tuxdriver.com>
      Modified by: Jesse Brandeburg <jesse.brandeburg@intel.com>
      
      Hey all-
      	A security discussion was recently given:
      http://events.ccc.de/congress/2009/Fahrplan//events/3596.en.html
      And a patch that I submitted awhile back was brought up.  Apparently some of
      their testing revealed that they were able to force a buffer fragment in e1000
      in which the trailing fragment was greater than 4 bytes.  As a result the
      fragment check I introduced failed to detect the fragement and a partial
      invalid frame was passed up into the network stack.  I've written this patch
      to correct it.  I'm in the process of testing it now, but it makes good
      logical sense to me.  Effectively it maintains a per-adapter state variable
      which detects a non-EOP frame, and discards it and subsequent non-EOP frames
      leading up to _and_ _including_ the next positive-EOP frame (as it is by
      definition the last fragment).  This should prevent any and all partial frames
      from entering the network stack from e1000.
      
      Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
      Acked-by: default avatarNeil Horman <nhorman@tuxdriver.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      40a14dea
    • Roel Kluin's avatar
      e1000/e1000e/igb/igbvf/ixgb/ixgbe: Fix tests of unsigned in *_tx_map() · c1fa347f
      Roel Kluin authored
      
      
      The variable count and i are unsigned so the (<|>=)0 tests do not work.
      
      Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
      Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c1fa347f
    • Lothar Wassmann's avatar
      USB: isp1362: fix build failure on ARM systems via irq_flags cleanup · 0a2fea2e
      Lothar Wassmann authored
      
      
      There was some left over #ifdef ARM logic that is outdated but no one
      really noticed.  So instead of relying on this tricky logic, properly
      load and utilize the platform irq_flags resources.
      
      Reported-by: default avatarBen Hutchings <ben@decadent.org.uk>
      Signed-off-by: default avatarLothar Wassmann <LW@KARO-electronics.de>
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      0a2fea2e
    • Lothar Wassmann's avatar
      USB: isp1362: better 64bit printf warning fixes · 96b85179
      Lothar Wassmann authored
      Some hosts that treat the return value of sizeof differently from unsigned
      long might still hit warnings.  So use %zu for sizeof() values.  This is a
      better version of the previous commit b0a9cf29
      
      .
      
      Signed-off-by: default avatarLothar Wassmann <LW@KARO-electronics.de>
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      96b85179