09 Apr, 2011

1 commit

  • Introduce get_user_arg_ptr() helper, convert count() and copy_strings()
    to use it.

    No functional changes, preparation. This helper is trivial, it just
    reads the pointer from argv/envp user-space array.

    Signed-off-by: Oleg Nesterov
    Reviewed-by: KOSAKI Motohiro
    Tested-by: KOSAKI Motohiro

    Oleg Nesterov
     

08 Apr, 2011

14 commits

  • * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6:
    [S390] compile fix for latest binutils
    [S390] cio: prevent purging of CCW devices in the online state
    [S390] qdio: fix init sequence
    [S390] Fix parameter passing for smp_switch_to_cpu()
    [S390] oprofile s390: prevent stack corruption

    Linus Torvalds
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6:
    quota: Don't write quota info in dquot_commit()
    ext3: Fix writepage credits computation for ordered mode

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog:
    watchdog: mpc8xxx_wdt: fix build

    Linus Torvalds
     
  • Since 1c48a5c93da6313 (dt: Eliminate of_platform_{,un}register_driver)
    mpc8xxx_wdt no longer builds as it tries to refer to a 'match' variable
    rather than ofdev->dev.of_match that it checks just before.

    Signed-off-by: Peter Korsgaard
    Acked-by: Grant Likely
    Signed-off-by: Wim Van Sebroeck

    Peter Korsgaard
     
  • …l/git/lethal/fbdev-2.6

    * 'fbdev-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev-2.6:
    efifb: Add override for 11" Macbook Air 3,1
    efifb: Support overriding fields FW tells us with the DMI data.
    fb: Reduce priority of resource conflict message
    savagefb: Remove obsolete else clause in savage_setup_i2c_bus
    savagefb: Set up I2C based on chip family instead of card id
    savagefb: Replace magic register address with define
    drivers/video/bfin-lq035q1-fb.c: introduce missing kfree
    video: s3c-fb: fix checkpatch errors and warning
    efifb: support AMD Radeon HD 6490
    s3fb: fix Virge/GX2
    fbcon: Remove unused 'display *p' variable from fb_flashcursor()
    fbdev: sh_mobile_lcdcfb: fix module lock acquisition
    fbdev: sh_mobile_lcdcfb: add blanking support
    viafb: initialize margins correct
    viafb: refresh rate bug collection
    sh: mach-ap325rxa: move backlight control code
    sh: mach-ecovec24: support for main lcd backlight

    Linus Torvalds
     
  • …nel/git/lethal/sh-2.6

    * 'rmobile-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6:
    ARM: arch-shmobile: only run FSI init on respective boards
    ARM: arch-shmobile: only run HDMI init on respective boards
    ARM: mach-shmobile: Correctly check for CONFIG_MACH_MACKEREL

    Linus Torvalds
     
  • * 'sh-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6:
    sh: select ARCH_NO_SYSDEV_OPS.
    sh: fix build error in board-sh7757lcr.c
    sh: landisk: Remove whitespace
    sh: landisk: Remove mv_nr_irqs
    sh: sh-sci: Fix double initialization by serial_console_setup
    serial: sh-sci: prevent setup of uninitialized serial console
    dma: shdma: add checking the DMAOR_AE in sh_dmae_err

    Linus Torvalds
     
  • …-linus', 'irq-fixes-for-linus' and 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/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-32, fpu: Fix FPU exception handling on non-SSE systems
    x86, hibernate: Initialize mmu_cr4_features during boot
    x86-32, NUMA: Fix ACPI NUMA init broken by recent x86-64 change
    x86: visws: Fixup irq overhaul fallout

    * 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    sched: Clean up rebalance_domains() load-balance interval calculation

    * 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86/mrst/vrtc: Fix boot crash in mrst_rtc_init()
    rtc, x86/mrst/vrtc: Fix boot crash in rtc_read_alarm()

    * 'irq-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    genirq: Fix cpumask leak in __setup_irq()

    * 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    perf probe: Fix listing incorrect line number with inline function
    perf probe: Fix to find recursively inlined function
    perf probe: Fix multiple --vars options behavior
    perf probe: Fix to remove redundant close
    perf probe: Fix to ensure function declared file

    Linus Torvalds
     
  • * 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6: (28 commits)
    staging: usbip: bugfix for isochronous packets and optimization
    staging: usbip: bugfix add number of packets for isochronous frames
    staging: usbip: bugfixes related to kthread conversion
    staging: usbip: fix shutdown problems.
    staging: hv: Fix GARP not sent after Quick Migration
    staging: IIO: IMU: ADIS16400: Avoid using printk facility directly
    staging: IIO: IMU: ADIS16400: Fix product ID check, skip embedded revision number
    staging: IIO: IMU: ADIS16400: Make sure only enabled scan_elements are pushed into the ring
    staging: IIO: IMU: ADIS16400: Fix addresses of GYRO and ACCEL calibration offset
    staging: IIO: IMU: ADIS16400: Add delay after self test
    staging: IIO: IMU: ADIS16400: Fix up SPI messages cs_change behavior
    staging/rtl81*: build as loadable modules only
    staging: brcm80211: removed 'is_amsdu causing toss' log spam
    staging: brcm80211: fix for 'Short CCK' log spam
    staging: brcm80211: fix for 'AC_BE txop..' logs spammed problem
    staging: memrar: remove driver from tree
    staging: sep: remove last memrar remnants
    staging: fix hv_mouse build, needs delay.h
    staging: fix olpc_dcon build errors
    staging: sm7xx: fixed defines
    ...

    Fix up trivial conflict in drivers/staging/memrar/memrar_handler.c
    (deleted vs trivial spelling fixes)

    Linus Torvalds
     
  • * 'kvm-updates/2.6.39' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
    KVM: move and fix substitue search for missing CPUID entries
    KVM: fix XSAVE bit scanning
    KVM: Enable async page fault processing
    KVM: fix crash on irqfd deassign

    Linus Torvalds
     
  • * 'for-linus' of git://git.infradead.org/ubifs-2.6:
    UBI: do not select KALLSYMS_ALL
    UBI: do not compare array with NULL
    UBI: check if we are in RO mode in the erase routine
    UBIFS: fix debugging failure in dbg_check_space_info
    UBIFS: fix error path in dbg_debugfs_init_fs
    UBIFS: unify error path dbg_debugfs_init_fs
    UBIFS: do not select KALLSYMS_ALL
    UBIFS: fix assertion warnings
    UBIFS: fix oops on error path in read_pnode
    UBIFS: do not read flash unnecessarily

    Linus Torvalds
     
  • * 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6:
    Fix common misspellings

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
    HID: Add support for CH Pro Throttle
    HID: hid-magicmouse: Increase evdev buffer size
    HID: add FF support for Logitech G25/G27
    HID: roccat: Add support for wireless variant of Pyra
    HID: Fix typo Keyoutch -> Keytouch
    HID: add support for Skycable 0x3f07 wireless presenter

    Linus Torvalds
     
  • Fix build failure issue for hv_mouse
    When build 2.6.39-rc1 kernel, it will be blocked at build hv_mouse.

    drivers/staging/hv/hv_mouse.c: In function ‘ReleaseInputDevice’:
    drivers/staging/hv/hv_mouse.c:293: error: implicit declaration of function ‘udelay’

    Signed-off-by: Youquan Song
    Signed-off-by: Linus Torvalds

    Youquan Song
     

07 Apr, 2011

22 commits

  • The normal mmap paths all avoid creating a mapping where the pgoff
    inside the mapping could wrap around due to overflow. However, an
    expanding mremap() can take such a non-wrapping mapping and make it
    bigger and cause a wrapping condition.

    Noticed by Robert Swiecki when running a system call fuzzer, where it
    caused a BUG_ON() due to terminally confusing the vma_prio_tree code. A
    vma dumping patch by Hugh then pinpointed the crazy wrapped case.

    Reported-and-tested-by: Robert Swiecki
    Acked-by: Hugh Dickins
    Cc: stable@kernel.org
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • The sfi_mrtc_array[] only gets initialized when the sfi mrtc
    table is parsed, so the vrtc_paddr should be initalized after it
    too.

    Signed-off-by: Feng Tang
    Signed-off-by: Alan Cox
    Cc: Linus Torvalds
    Link: http://lkml.kernel.org/r/1302140389-27603-1-git-send-email-feng.tang@intel.com
    Signed-off-by: Ingo Molnar

    Feng Tang
     
  • Commit f44f7f96a20 ("RTC: Initialize kernel state from RTC") caused a
    boot regression on the MRST platform.

    The reason is that rtc_device_register() calls rtc_read_alarm() after
    that change, which function does not have all driver data set up yet.

    The rtc-mrst driver needs to call dev_set_drvdata() before rtc_device_register()
    gets called.

    Signed-off-by: Feng Tang
    Signed-off-by: Alan Cox
    Acked-by: John Stultz
    Cc: Alessandro Zummo
    Cc: Linus Torvalds
    Link: http://lkml.kernel.org/r/1302140384-27571-1-git-send-email-feng.tang@intel.com
    Signed-off-by: Ingo Molnar

    Feng Tang
     
  • On 32bit systems without SSE (that is, they use FSAVE/FRSTOR for FPU
    context switches), FPU exceptions in user mode cause Oopses, BUGs,
    recursive faults and other nasty things:

    fpu exception: 0000 [#1]
    last sysfs file: /sys/power/state
    Modules linked in: psmouse evdev pcspkr serio_raw [last unloaded: scsi_wait_scan]

    Pid: 1638, comm: fxsave-32-excep Not tainted 2.6.35-07798-g58a992b-dirty #633 VP3-596B-DD/VT82C597
    EIP: 0060:[] EFLAGS: 00010202 CPU: 0
    EIP is at math_error+0x1b4/0x1c8
    EAX: 00000003 EBX: cf9be7e0 ECX: 00000000 EDX: cf9c5c00
    ESI: cf9d9fb4 EDI: c1372db3 EBP: 00000010 ESP: cf9d9f1c
    DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068
    Process fxsave-32-excep (pid: 1638, ti=cf9d8000 task=cf9be7e0 task.ti=cf9d8000)
    Stack:
    00000000 00000301 00000004 00000000 00000000 cf9d3000 cf9da8f0 00000001
    00000004 cf9b6b60 c1019a6b c1019a79 00000020 00000242 000001b6 cf9c5380
    cf806b40 cf791880 00000000 00000282 00000282 c108a213 00000020 cf9c5380
    Call Trace:
    [] ? need_resched+0x11/0x1a
    [] ? should_resched+0x5/0x1f
    [] ? do_sys_open+0xbd/0xc7
    [] ? do_sys_open+0xbd/0xc7
    [] ? do_coprocessor_error+0x0/0x11
    [] ? error_code+0x65/0x70
    Code: a8 20 74 30 c7 44 24 0c 06 00 03 00 8d 54 24 04 89 d9 b8 08 00 00 00 e8 9b 6d 02 00 eb 16 8b 93 5c 02 00 00 eb 05 e9 04 ff ff ff dd 32 9b e9 16 ff ff ff 81 c4 84 00 00 00 5b 5e 5f 5d c3 c6
    EIP: [] math_error+0x1b4/0x1c8 SS:ESP 0068:cf9d9f1c

    This usually continues in slight variations until the system is reset.

    This bug was introduced by commit 58a992b9cbaf449aeebd3575c3695a9eb5d95b5e:
    x86-32, fpu: Rewrite fpu_save_init()

    Signed-off-by: Hans Rosenfeld
    Link: http://lkml.kernel.org/r/1302106003-366952-1-git-send-email-hans.rosenfeld@amd.com
    Signed-off-by: H. Peter Anvin

    Hans Rosenfeld
     
  • For isochronous packets the actual_length is the sum of the actual
    length of each of the packets, however between the packets might be
    padding, so it is not sufficient to just send the first actual_length
    bytes of the buffer. To fix this and simultanesouly optimize the
    bandwidth the content of the isochronous packets are send without the
    padding, the padding is restored on the receiving end.

    Signed-off-by: Arjan Mels
    Cc: Takahiro Hirofuchi
    Cc: Max Vozeler
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Arjan Mels
     
  • The number_of_packets was not transmitted for RET_SUBMIT packets. The
    linux client used the stored number_of_packet from the submitted
    request. The windows userland client does not do this however and needs
    to know the number_of_packets to determine the size of the transmission.

    Signed-off-by: Arjan Mels
    Cc: Takahiro Hirofuchi
    Cc: Max Vozeler
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Arjan Mels
     
  • When doing a usb port reset do a queued reset instead to prevent a
    deadlock: the reset will cause the driver to unbind, causing the
    usb_driver_lock_for_reset to stall.

    Signed-off-by: Arjan Mels
    Cc: Takahiro Hirofuchi
    Cc: Max Vozeler
    Cc: Arnd Bergmann
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Arjan Mels
     
  • When shuting down the tcp_rx and tcp_tx threads first check if they are
    not closed already (maybe because an error caused them to return).

    Signed-off-by: Arjan Mels
    Cc: Takahiro Hirofuchi
    Cc: Max Vozeler
    Cc: Arnd Bergmann
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Arjan Mels
     
  • After Quick Migration, the network is not immediately operational in the
    current context when receiving RNDIS_STATUS_MEDIA_CONNECT event. So, I added
    another netif_notify_peers() into a scheduled work, otherwise GARP packet will
    not be sent after quick migration, and cause network disconnection.

    Thanks to Mike Surcouf for reporting the bug and
    testing the patch.

    Reported-by: Mike Surcouf
    Tested-by: Mike Surcouf
    Signed-off-by: Haiyang Zhang
    Signed-off-by: Hank Janssen
    Signed-off-by: Abhishek Kane
    Signed-off-by: K. Y. Srinivasan
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Haiyang Zhang
     
  • Restore the initialization of mmu_cr4_features during boot, which was
    removed without comment in checkin e5f15b45ddf3afa2bbbb10c7ea34fb32b6de0a0e

    x86: Cleanup highmap after brk is concluded

    thereby breaking resume from hibernate. This restores previous
    functionality in approximately the same place, and corrects the
    reading of %cr4 on pre-CPUID hardware (%cr4 exists if and only if
    CPUID is supported.)

    However, part of the problem is that the hibernate suspend/resume
    sequence should manage the save/restore of %cr4 explicitly.

    Signed-off-by: H. Peter Anvin
    Cc: Rafael J. Wysocki
    Cc: Stefano Stabellini
    Cc: Yinghai Lu
    LKML-Reference:

    H. Peter Anvin
     
  • Now that everything that was using these interfaces has been converted to
    the syscore ops, prevent new code from using the old API.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • If several boards are enabled in the kernel configuration,
    fsi_init_pm_clock() functions from board-ap4evb.c
    will run on any of them. Prevent this by calling these functions from the
    .init_machine() callback instead of using device_initcall().

    Signed-off-by: Kuninori Morimoto
    Cc: Magnus Damm
    Signed-off-by: Paul Mundt

    Kuninori Morimoto
     
  • If several boards are enabled in the kernel configuration,
    hdmi_init_pm_clock() functions from board-ap4evb.c and board-mackerel.c
    will run on any of them. Prevent this by calling these functions from the
    .init_machine() callback instead of using device_initcall().

    Signed-off-by: Guennadi Liakhovetski
    Cc: Magnus Damm
    Tested-by: Kuninori Morimoto
    Signed-off-by: Paul Mundt

    Guennadi Liakhovetski
     
  • I made a bit of a thinko when adding Mackerel to the boards
    that support zboot using MMCIF.

    Reported-by: Magnus Damm
    Signed-off-by: Simon Horman
    Signed-off-by: Paul Mundt

    Simon Horman
     
  • The 11" Macbook Air appears to claim that its stride is 1366, when it's
    actually 2048. Override it.

    Signed-off-by: Matthew Garrett
    Signed-off-by: Peter Jones
    Signed-off-by: Paul Mundt

    Matthew Garrett
     
  • Some machines apparently give us bogus linelength/stride/pitch data, so
    we need to support letting the DMI table override the supplied data.

    I bet you can't guess whose machines I'm talking about.

    Signed-off-by: Peter Jones
    Signed-off-by: Paul Mundt

    Peter Jones
     
  • It's expected that efifb will conflict with a native driver, so the
    handover message should be informational rather than an error.

    Signed-off-by: Matthew Garrett
    Acked-by: Dave Airlie
    Signed-off-by: Paul Mundt

    Matthew Garrett
     
  • The else clause was not needed after the cleanup in commit
    b8901b091db260b0f0101d6395ce5c6016835a47

    Signed-off-by: Tormod Volden
    Signed-off-by: Paul Mundt

    Tormod Volden
     
  • In practice this means enabling I2C (for DDC2) on all prosavage cards,
    like the xorg ddx does. The savage4 and savage2000 families have only
    one member each, so there is no change for those.

    Tested on TwisterK.

    Signed-off-by: Tormod Volden
    Signed-off-by: Paul Mundt

    Tormod Volden
     
  • MM_SERIAL1 was already defined, but not used.

    Signed-off-by: Tormod Volden
    Signed-off-by: Paul Mundt

    Tormod Volden
     
  • Error handling code following a kmalloc should free the allocated data.

    The semantic match that finds the problem is as follows:
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @r exists@
    local idexpression x;
    statement S;
    expression E;
    identifier f,f1,l;
    position p1,p2;
    expression *ptr != NULL;
    @@

    x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
    ...
    if (x == NULL) S
    }
    (
    x->f1 = E
    |
    (x->f1 == NULL || ...)
    |
    f(...,x->f1,...)
    )
    ...>
    (
    return \(0\|\|ptr\);
    |
    return@p2 ...;
    )

    @script:python@
    p1 << r.p1;
    p2 << r.p2;
    @@

    print "* file: %s kmalloc %s return %s" % (p1[0].file,p1[0].line,p2[0].line)
    //

    Signed-off-by: Julia Lawall
    Acked-by: Mike Frysinger
    Signed-off-by: Paul Mundt

    Julia Lawall
     
  • This patch fixes the checkpatch errors listed below:

    ERROR: space required before the open parenthesis '('
    ERROR: need consistent spacing around '+' (ctx:WxV)
    ERROR: space prohibited before that close parenthesis ')'

    Also, following warning is fixed by adding 'platid' variable
    which can reduce number of lines exceeding 80 characters.

    WARNING: line over 80 characters

    Signed-off-by: Jingoo Han
    Signed-off-by: Paul Mundt

    Jingoo Han
     

06 Apr, 2011

3 commits