23 Jun, 2010

1 commit

  • Stanse found a potential NULL dereference in ablkcipher_next_slow.
    Even though kmalloc fails, its retval is dereferenced later. Return
    from that function properly earlier.

    Signed-off-by: Jiri Slaby
    Acked-by: David S. Miller
    Signed-off-by: Herbert Xu

    Jiri Slaby
     

03 Jun, 2010

1 commit


26 May, 2010

26 commits

  • Do this by putting the async fallback request at the end of an n2
    specific ahash request context, then properly adjusting the request
    private size in our ahash ->cra_init().

    We also need to put the writable state bits into the n2 request
    private instead of the n2 cra_ctx.

    With help from Herbert Xu.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Both the CWQ and MAU caches unintentionally had that same name.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Signed-off-by: David S. Miller

    David S. Miller
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (63 commits)
    drivers/net/usb/asix.c: Fix pointer cast.
    be2net: Bug fix to avoid disabling bottom half during firmware upgrade.
    proc_dointvec: write a single value
    hso: add support for new products
    Phonet: fix potential use-after-free in pep_sock_close()
    ath9k: remove VEOL support for ad-hoc
    ath9k: change beacon allocation to prefer the first beacon slot
    sock.h: fix kernel-doc warning
    cls_cgroup: Fix build error when built-in
    macvlan: do proper cleanup in macvlan_common_newlink() V2
    be2net: Bug fix in init code in probe
    net/dccp: expansion of error code size
    ath9k: Fix rx of mcast/bcast frames in PS mode with auto sleep
    wireless: fix sta_info.h kernel-doc warnings
    wireless: fix mac80211.h kernel-doc warnings
    iwlwifi: testing the wrong variable in iwl_add_bssid_station()
    ath9k_htc: rare leak in ath9k_hif_usb_alloc_tx_urbs()
    ath9k_htc: dereferencing before check in hif_usb_tx_cb()
    rt2x00: Fix rt2800usb TX descriptor writing.
    rt2x00: Fix failed SLEEP->AWAKE and AWAKE->SLEEP transitions.
    ...

    Linus Torvalds
     
  • * 'alpha-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mattst88/alpha-2.6:
    alpha: simplify and optimize sched_find_first_bit
    alpha: invoke oom-killer from page fault
    Convert alpha to use clocksources instead of arch_gettimeoffset

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
    driver core: add devname module aliases to allow module on-demand auto-loading

    Linus Torvalds
     
  • This reverts commit 480b02df3aa9f07d1c7df0cd8be7a5ca73893455, since
    Rafael reports that it causes occasional kernel paging request faults in
    load_module().

    Dropping the module lock and re-taking it deep in the call-chain is
    definitely not the right thing to do. That just turns the mutex from a
    lock into a "random non-locking data structure" that doesn't actually
    protect what it's supposed to protect.

    Requested-and-tested-by: Rafael J. Wysocki
    Cc: Rusty Russell
    Cc: Brandon Philips
    Cc: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Stephen Rothwell reports the following new warning:

    drivers/net/usb/asix.c: In function 'asix_rx_fixup':
    drivers/net/usb/asix.c:325: warning: cast from pointer to integer of different size
    drivers/net/usb/asix.c:354: warning: cast from pointer to integer of different size

    The code just cares about the low alignment bits, so use
    an "unsigned long" cast instead of one to "u32".

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Certain firmware commands/operations to upgrade firmware could take several
    seconds to complete. The code presently disables bottom half during these
    operations which could lead to unpredictable behaviour in certain cases. This
    patch now does all firmware upgrade operations asynchronously using a
    completion variable.

    Signed-off-by: Sarveshwar Bandi
    Signed-off-by: David S. Miller

    Sarveshwar Bandi
     
  • The commit 00b7c3395aec3df43de5bd02a3c5a099ca51169f
    "sysctl: refactor integer handling proc code"
    modified the behaviour of writing to /proc.
    Before the commit, write("1\n") to /proc/sys/kernel/printk succeeded. But
    now it returns EINVAL.

    This commit supports writing a single value to a multi-valued entry.

    Signed-off-by: J. R. Okajima
    Reviewed-and-tested-by: WANG Cong
    Signed-off-by: David S. Miller

    J. R. Okajima
     
  • This patch adds a few new product id's for the hso driver.

    Signed-off-by: Filip Aben
    Signed-off-by: David S. Miller

    Filip Aben
     
  • sk_common_release() might destroy our last reference to the socket.
    So an extra temporary reference is needed during cleanup.

    Signed-off-by: Rémi Denis-Courmont
    Signed-off-by: David S. Miller

    Rémi Denis-Courmont
     
  • Search only the first 100 bits instead of 140, saving a couple
    instructions. The resulting code is about 1/3 faster (40K ticks/1000
    iterations down to 30K ticks/1000 iterations).

    Cc: Peter Zijlstra
    Cc: Ingo Molnar
    Cc: Ivan Kokshaysky
    Cc: linux-alpha@vger.kernel.org
    Acked-by: Richard Henderson
    Signed-off-by: Matt Turner

    Matt Turner
     
  • As explained in commit 1c0fe6e3bd, we want to call the architecture
    independent oom killer when getting an unexplained OOM from
    handle_mm_fault, rather than simply killing current.

    [mattst88: kill now unused 'survive' label]
    Cc: linux-alpha@vger.kernel.org
    Cc: Richard Henderson
    Cc: linux-arch@vger.kernel.org
    Acked-by: David Rientjes
    Signed-off-by: Matt Turner
    Signed-off-by: Nick Piggin

    Nick Piggin
     
  • Alpha has a tsc like rpcc counter that it uses to manage time.
    This can be converted to an actual clocksource instead of utilizing
    the arch_gettimeoffset method that is really only there for legacy
    systems with no continuous counter.

    Further cleanups could be made if alpha converted to the clockevent
    model.

    CC: Thomas Gleixner
    CC: Richard Henderson
    Acked-by: Ivan Kokshaysky
    Tested-by: Ivan Kokshaysky
    Signed-off-by: Matt Turner
    Signed-off-by: John Stultz

    John Stultz
     
  • This adds:
    alias: devname:
    to some common kernel modules, which will allow the on-demand loading
    of the kernel module when the device node is accessed.

    Ideally all these modules would be compiled-in, but distros seems too
    much in love with their modularization that we need to cover the common
    cases with this new facility. It will allow us to remove a bunch of pretty
    useless init scripts and modprobes from init scripts.

    The static device node aliases will be carried in the module itself. The
    program depmod will extract this information to a file in the module directory:
    $ cat /lib/modules/2.6.34-00650-g537b60d-dirty/modules.devname
    # Device nodes to trigger on-demand module loading.
    microcode cpu/microcode c10:184
    fuse fuse c10:229
    ppp_generic ppp c108:0
    tun net/tun c10:200
    dm_mod mapper/control c10:235

    Udev will pick up the depmod created file on startup and create all the
    static device nodes which the kernel modules specify, so that these modules
    get automatically loaded when the device node is accessed:
    $ /sbin/udevd --debug
    ...
    static_dev_create_from_modules: mknod '/dev/cpu/microcode' c10:184
    static_dev_create_from_modules: mknod '/dev/fuse' c10:229
    static_dev_create_from_modules: mknod '/dev/ppp' c108:0
    static_dev_create_from_modules: mknod '/dev/net/tun' c10:200
    static_dev_create_from_modules: mknod '/dev/mapper/control' c10:235
    udev_rules_apply_static_dev_perms: chmod '/dev/net/tun' 0666
    udev_rules_apply_static_dev_perms: chmod '/dev/fuse' 0666

    A few device nodes are switched to statically allocated numbers, to allow
    the static nodes to work. This might also useful for systems which still run
    a plain static /dev, which is completely unsafe to use with any dynamic minor
    numbers.

    Note:
    The devname aliases must be limited to the *common* and *single*instance*
    device nodes, like the misc devices, and never be used for conceptually limited
    systems like the loop devices, which should rather get fixed properly and get a
    control node for losetup to talk to, instead of creating a random number of
    device nodes in advance, regardless if they are ever used.

    This facility is to hide the mess distros are creating with too modualized
    kernels, and just to hide that these modules are not compiled-in, and not to
    paper-over broken concepts. Thanks! :)

    Cc: Greg Kroah-Hartman
    Cc: David S. Miller
    Cc: Miklos Szeredi
    Cc: Chris Mason
    Cc: Alasdair G Kergon
    Cc: Tigran Aivazian
    Cc: Ian Kent
    Signed-Off-By: Kay Sievers
    Signed-off-by: Greg Kroah-Hartman

    Kay Sievers
     
  • David S. Miller
     
  • David S. Miller
     
  • * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (103 commits)
    ARM: 6141/1: Add audio support part in arch/arm/mach-w90x900
    ARM: 5939/1: ARM: Add option CMDLINE_FORCE to force usage of the in-kernel cmdline
    ARM: 6140/1: silence a bogus sparse warning in unwind.c
    ARM: mach-at91: duplicated include
    ARM: arch/arm/nwfpe/fpsr.h: Checkpatch cleanup
    ARM: arch/arm/mach-shark/pci.c: Checkpatch cleanup
    ARM: arch/arm/nwfpe/ChangeLog: Checkpatch cleanup
    ARM: arch/arm/mach-sa1100/leds.c: Checkpatch cleanup
    ARM: arch/arm/mach-h720x/common.h: Checkpatch cleanup
    ARM: arch/arm/mach-footbridge/ebsa285-pci.c: Checkpatch cleanup
    ARM: arch/arm/mach-clps711x/Makefile.boot: Checkpatch cleanup
    ARM: arch/arm/boot/bootp/bootp.lds: Checkpatch cleanup
    ARM: SPEAR6xx: remove duplicated #include
    ARM: s3c6400_defconfig: Add NAND driver
    ARM: s3c6400_defconfig: enable sound as modules
    ARM: s3c6400_defconfig: enable power management
    ARM: s5pv210_defconfig: Update s5pv210_defconfig to v2.6.34
    ARM: s5pc110_defconfig: Update s5pc110_defconfig to v2.6.34
    ARM: s5p6442_defconfig: Update s5p6442_defconfig to v2.6.34
    ARM: s5p6440_defconfig: Update s5p6440_defconfig to v2.6.34
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
    RDMA/nes: Fix incorrect unlock in nes_process_mac_intr()
    RDMA/nes: Async event for closed QP causes crash
    RDMA/nes: Have ethtool read hardware registers for rx/tx stats
    RDMA/cxgb4: Only insert sq qid in lookup table
    RDMA/cxgb4: Support IB_WR_READ_WITH_INV opcode
    RDMA/cxgb4: Set fence flag for inv-local-stag work requests
    RDMA/cxgb4: Update some HW limits
    RDMA/cxgb4: Don't limit fastreg page list depth
    RDMA/cxgb4: Return proper errors in fastreg mr/pbl allocation
    RDMA/cxgb4: Fix overflow bug in CQ arm
    RDMA/cxgb4: Optimize CQ overflow detection
    RDMA/cxgb4: CQ size must be IQ size - 2
    RDMA/cxgb4: Register RDMA provider based on LLD state_change events
    RDMA/cxgb4: Detach from the LLD after unregistering RDMA device
    IB/ipath: Remove support for QLogic PCIe QLE devices
    IB/qib: Add new qib driver for QLogic PCIe InfiniBand adapters
    IB/mad: Make needlessly global mad_sendq_size/mad_recvq_size static
    IB/core: Allow device-specific per-port sysfs files
    mlx4_core: Clean up mlx4_alloc_icm() a bit
    mlx4_core: Fix possible chunk sg list overflow in mlx4_alloc_icm()

    Linus Torvalds
     
  • * 'next-spi' of git://git.secretlab.ca/git/linux-2.6:
    spi/xilinx: Fix compile error
    spi/davinci: Fix clock prescale factor computation
    spi: move bitbang txrx utility functions to private header
    spi/mpc5121: Add SPI master driver for MPC5121 PSC
    powerpc/mpc5121: move PSC FIFO memory init to platform code
    spi/ep93xx: implemented driver for Cirrus EP93xx SPI controller
    Documentation/spi/* compile warning fix
    spi/omap2_mcspi: Check params before dereference or use
    spi/omap2_mcspi: add turbo mode support
    spi/omap2_mcspi: change default DMA_MIN_BYTES value to 160
    spi/pl022: fix stop queue procedure
    spi/pl022: add support for the PL023 derivate
    spi/pl022: fix up differences between ARM and ST versions
    spi/spi_mpc8xxx: Do not use map_tx_dma to unmap rx_dma
    spi/spi_mpc8xxx: Fix QE mode Litte Endian
    spi/spi_mpc8xxx: fix potential memory corruption.

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
    arch/m68knommu/platform/68360/commproc.c: Checkpatch cleanup
    arch/m68knommu/mm/fault.c: Checkpatch cleanup
    m68knommu: improve short help of m68knommu/Kconfig/RAMSIZE for '0' case
    m68knommu: remove un-used mcfsmc.h
    m68knommu: add smc91x support for ColdFire NETtel boards
    m68knommu: add smc91x support to ColdFire 5249 platform
    m68knommu: remove size limit on non-MMU TASK_SIZE
    m68knommu: fix broken use of BUAD_TABLE_SIZE in 68328serial driver
    m68knommu: Coldfire QSPI platform support

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6:
    regulator: return set_mode is same mode is requested
    Regulators: ab3100/bq24022: add a missing .owner field in regulator_desc
    twl6030: regulator: Remove vsel tables and use formula for calculation
    mc13783-regulator: fix vaild voltage range checking for mc13783_fixed_regulator_set_voltage
    regulator: use voltage number array in 88pm860x
    regulator: make 88pm860x sharing one driver structure
    regulator: simplify regulator_register() error handling
    regulator: fix unset_regulator_supplies() to remove all matches
    regulator: prevent registration of matching regulator consumer supplies
    regulator: Allow regulator-regulator supplies to be specified by name

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog:
    watchdog: Driver for the watchdog timer on Freescale IMX2 (and later) processors.
    watchdog: s3c2410_wdt - Fix on handling of the request_mem_region fail
    watchdog: s3c2410_wdt - Add extra option to include watchdog for Samsung SoCs
    iTCO_wdt: fix TCO V1 timeout values and limits
    watchdog: twl4030_wdt: Disable watchdog during probing
    watchdog: update/improve/consolidate watchdog driver
    watchdog: booke_wdt: fix ioctl status flags
    watchdog: fix several MODULE_PARM_DESC strings
    watchdog: bfin: use new common Blackfin watchdog header

    Linus Torvalds
     
  • Roland Dreier
     
  • Commit ce6e74f2 ("RDMA/nes: Make nesadapter->phy_lock usage
    consistent") introduced a problem where phy_lock was only unlocked
    within an if statement and so nes_process_mac_intr() could return with
    phy_lock still held. Fix this.

    This was discovered because of the sparse warning:

    drivers/infiniband/hw/nes/nes_hw.c:2643:9: warning: context imbalance in 'nes_process_mac_intr' - different lock contexts for basic block

    Reported-by: Roland Dreier
    Signed-off-by: Chien Tung
    Signed-off-by: Roland Dreier

    Chien Tung
     

25 May, 2010

12 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-fixes:
    GFS2: Fix permissions checking for setflags ioctl()
    GFS2: Don't "get" xattrs for ACLs when ACLs are turned off
    GFS2: Rework reclaiming unlinked dinodes

    Linus Torvalds
     
  • * 'for-linus' of git://oss.sgi.com/xfs/xfs:
    xfs: Ensure inode allocation buffers are fully replayed
    xfs: enable background pushing of the CIL
    xfs: forced unmounts need to push the CIL
    xfs: Introduce delayed logging core code
    xfs: Delayed logging design documentation
    xfs: Improve scalability of busy extent tracking
    xfs: make the log ticket ID available outside the log infrastructure
    xfs: clean up log ticket overrun debug output
    xfs: Clean up XFS_BLI_* flag namespace
    xfs: modify buffer item reference counting
    xfs: allow log ticket allocation to take allocation flags
    xfs: Don't reuse the same transaction ID for duplicated transactions.

    Linus Torvalds
     
  • * git://git.infradead.org/battery-2.6:
    power_supply: Fix regression for 'type' property

    Linus Torvalds
     
  • With VEOL, Beacon transmission in ad-hoc does not currently work.
    I believe for larger ad-hoc networks, VEOL is too unreliable, as
    it can get beacon transmissions stuck during synchronization.
    Use SWBA based beacon trasmission similar to AP mode instead.

    Signed-off-by: Felix Fietkau
    Acked-by: Benoit Papillault
    Signed-off-by: John W. Linville

    Felix Fietkau
     
  • This fixes IBSS beacon transmissions without VEOL enabled

    Signed-off-by: Felix Fietkau
    Signed-off-by: John W. Linville

    Felix Fietkau
     
  • This fixes a two section mismatches and makes remove() __devexit.

    Signed-off-by: Henrik Kretzschmar
    Cc: Miguel Ojeda Sandonis
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Henrik Kretzschmar
     
  • We should be releasing "res->start" here.

    Signed-off-by: Dan Carpenter
    Acked-by: Wan ZongShun
    Cc: Wang Qiang
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dan Carpenter
     
  • Fix a problem observed while using fb_defio with a short delay on a
    PowerPC platform.

    It is possible that page_mkclean() is invoked in the deferred io work
    function _before_ a PTE has been marked dirty. In this case, the page is
    removed from the defio pagelist but page_mkclean() does not write-protect
    the page again. The end result is that defio ignores all subsequent
    writes to the page and the corresponding portions of the framebuffer never
    get updated.

    The fix consists in keeping track of the pages with non-dirty PTEs,
    re-checking them again on the next deferred io work iteration. Note that
    those pages are not passed to the defio callback as they are not written
    by userspace yet.

    Signed-off-by: Albert Herranz
    Acked-by: Jaya Kumar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Albert Herranz
     
  • Since the drivers probe call was changed from .init.text to .devinit.text
    in commit c2e13037e6794bd0d9de3f9ecabf5615f15c160b ("platform-drivers:
    move probe to .devinit.text in drivers/video") the fb_fix_screeninfo and
    fb_var_screeninfo structures must be changed from .init.data to
    .devinit.data, too.

    Also the drivers remove routine should be moved from .text to .devexit.text

    It removes these 7 section mismatch warnings from modpost:

    WARNING: vmlinux.o(.devinit.text+0x1e28): Section mismatch in reference from the function sgivwfb_probe() to the variable .init.data:sgivwfb_fix
    The function __devinit sgivwfb_probe() references
    a variable __initdata sgivwfb_fix.
    If sgivwfb_fix is only used by sgivwfb_probe then
    annotate sgivwfb_fix with a matching annotation.

    WARNING: vmlinux.o(.devinit.text+0x1e50): Section mismatch in reference from the function sgivwfb_probe() to the (unknown reference) .init.data:(unknown)
    The function __devinit sgivwfb_probe() references
    a (unknown reference) __initdata (unknown).
    If (unknown) is only used by sgivwfb_probe then
    annotate (unknown) with a matching annotation.

    WARNING: vmlinux.o(.devinit.text+0x1e59): Section mismatch in reference from the function sgivwfb_probe() to the (unknown reference) .init.data:(unknown)
    The function __devinit sgivwfb_probe() references
    a (unknown reference) __initdata (unknown).
    If (unknown) is only used by sgivwfb_probe then
    annotate (unknown) with a matching annotation.

    WARNING: vmlinux.o(.devinit.text+0x1e60): Section mismatch in reference from the function sgivwfb_probe() to the variable .init.data:sgivwfb_fix
    The function __devinit sgivwfb_probe() references
    a variable __initdata sgivwfb_fix.
    If sgivwfb_fix is only used by sgivwfb_probe then
    annotate sgivwfb_fix with a matching annotation.

    WARNING: vmlinux.o(.devinit.text+0x1e6a): Section mismatch in reference from the function sgivwfb_probe() to the (unknown reference) .init.data:(unknown)
    The function __devinit sgivwfb_probe() references
    a (unknown reference) __initdata (unknown).
    If (unknown) is only used by sgivwfb_probe then
    annotate (unknown) with a matching annotation.

    WARNING: vmlinux.o(.devinit.text+0x1e7f): Section mismatch in reference from the function sgivwfb_probe() to the variable .init.data:sgivwfb_var1600sw
    The function __devinit sgivwfb_probe() references
    a variable __initdata sgivwfb_var1600sw.
    If sgivwfb_var1600sw is only used by sgivwfb_probe then
    annotate sgivwfb_var1600sw with a matching annotation.

    WARNING: vmlinux.o(.devinit.text+0x1e91): Section mismatch in reference from the function sgivwfb_probe() to the variable .init.data:sgivwfb_var
    The function __devinit sgivwfb_probe() references
    a variable __initdata sgivwfb_var.
    If sgivwfb_var is only used by sgivwfb_probe then
    annotate sgivwfb_var with a matching annotation.

    Signed-off-by: Henrik Kretzschmar
    Cc: Arnaud Patard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Henrik Kretzschmar
     
  • Since the drivers probe calls were changed from .init.text to
    .devinit.text in commit c2e13037e6794bd0d9de3f9ecabf5615f15c160b
    ("platform-drivers: move probe to .devinit.text in drivers/video") all the
    function from .init.text should be moved to .devinit.text, too.

    The drivers remove calls can also be move from .text to .devexit.text.

    Signed-off-by: Henrik Kretzschmar
    Cc: Vincent Sanders
    Acked-by: Arnaud Patard
    Tested-by: Arnaud Patard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Henrik Kretzschmar
     
  • Since the drivers probe call was changed from .init.text to .devinit.text
    in commit c2e13037e6794bd0d9de3f9ecabf5615f15c160b ("platform-drivers:
    move probe to .devinit.text in drivers/video") the fb_fix_screeninfo and
    fb_var_screeninfo structures must be changed from .init.data to
    .devinit.data, too.

    Also the drivers remove routine should be moved from .exit.text to
    .devexit.text

    Signed-off-by: Henrik Kretzschmar
    Cc: Paul Mundt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Henrik Kretzschmar
     
  • FBIO_WAITFORVSYNC is currently implemented by matroxfb, atyfb, intelfb and
    more. All of them keep redefining the same FBIO_WAITFORVSYNC macro over
    and over again, so move it to linux/fb.h and clean up those duplicate
    defines.

    Signed-off-by: Grazvydas Ignotas
    Cc: Ville Syrjala
    Cc: Grant Likely
    Cc: Maik Broemme
    Cc: Petr Vandrovec
    Cc: Benjamin Herrenschmidt
    Cc: Krzysztof Helt
    Cc: "Hiremath, Vaibhav"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Grazvydas Ignotas