03 Sep, 2008

13 commits


02 Sep, 2008

7 commits

  • The MEMGETREGIONINFO ioctl() in mtdchar.c was clobbering user memory by
    overwriting more than intended, due the size of struct mtd_erase_region_info
    changing in commit 0ecbc81adfcb9f15f86b05ff576b342ce81bbef8 ('Support
    for auto locking flash on power up').

    Fix avoids this by copying struct members one by one with put_user(), as there
    is no longer a convenient struct to use the size of as the length argument to
    copy_to_user().

    Signed-off-by: Zev Weiss
    Signed-off-by: David Woodhouse

    Zev Weiss
     
  • This patch fixes a memory leak in an error path.

    Reported-by: Adrian Bunk
    Signed-off-by: Adrian Bunk
    Signed-off-by: David Woodhouse

    Adrian Bunk
     
  • Signed-off-by: David Woodhouse

    David Woodhouse
     
  • Fixes http://bugzilla.kernel.org/show_bug.cgi?id=11355 by avoiding a
    needless rebuild of the firmware/ihex2fw tool.

    Signed-off-by: David Woodhouse

    David Woodhouse
     
  • The array we kmalloc() here is not large enough.

    Thanks to Johann Dahm and David Richter for bug report and testing.

    Signed-off-by: J. Bruce Fields
    Cc: David Richter
    Tested-by: Johann Dahm

    J. Bruce Fields
     
  • Vegard Nossum reported
    ----------------------
    > I noticed that something weird is going on with /proc/sys/sunrpc/transports.
    > This file is generated in net/sunrpc/sysctl.c, function proc_do_xprt(). When
    > I "cat" this file, I get the expected output:
    > $ cat /proc/sys/sunrpc/transports
    > tcp 1048576
    > udp 32768

    > But I think that it does not check the length of the buffer supplied by
    > userspace to read(). With my original program, I found that the stack was
    > being overwritten by the characters above, even when the length given to
    > read() was just 1.

    David Wagner added (among other things) that copy_to_user could be
    probably used here.

    Ingo Oeser suggested to use simple_read_from_buffer() here.

    The conclusion is that proc_do_xprt doesn't check for userside buffer
    size indeed so fix this by using Ingo's suggestion.

    Reported-by: Vegard Nossum
    Signed-off-by: Cyrill Gorcunov
    CC: Ingo Oeser
    Cc: Neil Brown
    Cc: Chuck Lever
    Cc: Greg Banks
    Cc: Tom Tucker
    Signed-off-by: J. Bruce Fields

    Cyrill Gorcunov
     
  • Move the cstate_alloc call so that if it fails, the response is setup to
    encode the NFS error. The out label now means that the
    nfsd4_compound_state has not been allocated.

    Signed-off-by: Andy Adamson
    Signed-off-by: J. Bruce Fields

    Andy Adamson
     

01 Sep, 2008

2 commits


30 Aug, 2008

5 commits


29 Aug, 2008

12 commits

  • When changing the sample rate, the CMI8788's master clock output becomes
    unstable for a short time. The AK4396 needs the master clock to do SPI
    writes, so writing to an AK4396 control register directly after a sample
    rate change will garble the value. In our case, this leads to the DACs
    being misconfigured to I2S sample format, which results in a wrong
    output level and horrible distortions on samples louder than -6 dB.

    To fix this, we need to wait until the new master clock signal has
    become stable before doing SPI writes.

    Signed-off-by: Clemens Ladisch
    Signed-off-by: Takashi Iwai

    Clemens Ladisch
     
  • This patch remove blk_register_filter and blk_unregister_filter in
    gendisk, and adds them to sd.c, sr.c. and ide-cd.c

    The commit abf5439370491dd6fbb4fe1a7939680d2a9bc9d4 moved cmdfilter
    from gendisk to request_queue. It turned out that in some subsystems
    multiple gendisks share a single request_queue. So we get:

    Using physmap partition information
    Creating 3 MTD partitions on "physmap-flash":
    0x00000000-0x01c00000 : "User FS"
    0x01c00000-0x01c40000 : "booter"
    kobject (8511c410): tried to init an initialized object, something is seriously wrong.
    Call Trace:
    [] dump_stack+0x8/0x34
    [] kobject_init+0x50/0xcc
    [] kobject_init_and_add+0x24/0x58
    [] blk_register_filter+0x4c/0x64
    [] add_disk+0x78/0xe0
    [] add_mtd_blktrans_dev+0x254/0x278
    [] blktrans_notify_add+0x40/0x78
    [] add_mtd_device+0xd0/0x150
    [] add_mtd_partitions+0x568/0x5d8
    [] physmap_flash_probe+0x2ac/0x334
    [] driver_probe_device+0x12c/0x244
    [] __driver_attach+0x4c/0x84
    [] bus_for_each_dev+0x58/0xac
    [] bus_add_driver+0xc4/0x24c
    [] driver_register+0xcc/0x184
    [] _stext+0x60/0x1bc

    In the long term, we need to fix such subsystems but we need a quick
    fix now. This patch add the command filter support to only sd and sr
    though it might be useful for other SG_IO users (such as cciss).

    Signed-off-by: FUJITA Tomonori
    Reported-by: Manuel Lauss
    Signed-off-by: Jens Axboe

    FUJITA Tomonori
     
  • When a device is under an EBUS or ISA bus, the resource flags
    don't get set properly.

    Fix this by re-evaluating the resource flags at each level of
    bus as we apply ranges on the way to the root. And let PCI
    override any existing flags setting, but don't let the
    default flags calculator make such overrides.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Linus Torvalds
     
  • * master.kernel.org:/home/rmk/linux-2.6-arm:
    [ARM] 5226/1: remove unmatched comment end.
    [ARM] Skip memory holes in FLATMEM when reading /proc/pagetypeinfo
    [ARM] use bcd2bin/bin2bcd
    [ARM] use the new byteorder headers
    [ARM] OMAP: Fix 2430 SMC91x ethernet IRQ
    [ARM] OMAP: Add and update OMAP default configuration files
    [ARM] OMAP: Change mailing list for OMAP in MAINTAINERS
    [ARM] S3C2443: Fix the S3C2443 clock register definitions
    [ARM] JIVE: Fix the spi bus numbering
    [ARM] S3C24XX: pwm.c: stop debugging output
    [ARM] S3C24XX: Fix sparse warnings in pwm.c
    [ARM] S3C24XX: Fix spare errors in pwm-clock driver
    [ARM] S3C24XX: Fix sparse warnings in arch/arm/plat-s3c24xx/gpiolib.c
    [ARM] S3C24XX: Fix nor-simtec driver sparse errors
    [ARM] 5225/1: zaurus: Register I2C controller for audio codecs
    [ARM] orion5x: update defconfig to v2.6.27-rc4
    [ARM] Orion: register UART1 on QNAP TS-209 and TS-409
    [ARM] Orion: activate lm75 driver on DNS-323
    [ARM] Orion: fix MAC detection on QNAP TS-209 and TS-409
    [ARM] Orion: Fix boot crash on Kurobox Pro

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6:
    Blackfin arch: Fix PM building on BF52x: No ROTWE on BF52x, add USBWE
    Blackfin arch: sram: use 'unsigned long' for irqflags
    Blackfin arch: let PCI depend on BROKEN
    Blackfin arch: move include/asm-blackfin header files to arch/blackfin
    Blackfin arch: fix bug - MPU crashes under stress
    Blackfin arch: Fix bug - when to rmmod the L1_module, it stucks and then reboot the board.
    Blackfin arch: dont actually need to muck with EMAC_SYSTAT for BF52x for demuxing
    Blackfin arch: Add MTD Partitions for MTD_DATAFLASH, increase max SPI SCLK

    Linus Torvalds
     
  • …/git/tip/linux-2.6-tip

    * 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    exit signals: use of uninitialized field notify_count
    lockdep: fix invalid list_del_rcu in zap_class
    lockstat: repair erronous contention statistics
    lockstat: fix numerical output rounding error

    Linus Torvalds
     
  • …l/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: rt-bandwidth accounting fix
    sched: fix sched_rt_rq_enqueue() resched idle

    Linus Torvalds
     
  • …git/tip/linux-2.6-tip

    * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86: update defconfigs
    x86: msr: fix bogus return values from rdmsr_safe/wrmsr_safe
    x86: cpuid: correct return value on partial operations
    x86: msr: correct return value on partial operations
    x86: cpuid: propagate error from smp_call_function_single()
    x86: msr: propagate errors from smp_call_function_single()
    smp: have smp_call_function_single() detect invalid CPUs

    Linus Torvalds
     
  • * 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6:
    i2c: Prevent log spam on some DVB adapters
    i2c: Add missing kerneldoc descriptions
    i2c: Fix device_init_wakeup place

    Linus Torvalds
     
  • In accordance with commit f42ac38c59e0a03d6da0c24a63fb211393f484b0
    ("ftrace: disable tracing for suspend to ram"), disable tracing
    around the suspend code in hibernation code paths.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Steven Rostedt
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • remove unmatched comment end.

    Signed-off-by: Jean-Christophe DUBOIS
    Signed-off-by: Russell King

    Jean-Christophe DUBOIS
     

28 Aug, 2008

1 commit