23 Mar, 2010

2 commits

  • I chased down a fail on ppc64 on 2.6.34-rc2 where an application that
    uses shared memory was getting a SEGV.

    Commit baed7fc9b580bd3fb8252ff1d9b36eaf1f86b670 ("Add generic sys_ipc
    wrapper") changed the second argument from an unsigned long to an int.
    When we call shmget the system call wrappers for sys_ipc will sign
    extend second (ie the size) which truncates it. It took a while to
    track down because the call succeeds and strace shows the untruncated
    size :)

    The patch below changes second from an int to an unsigned long which
    fixes shmget on ppc64 (and I assume s390, sparc64 and mips64).

    Signed-off-by: Anton Blanchard
    --

    I assume the function prototypes for the other IPC methods would cause us
    to sign or zero extend second where appropriate (avoiding any security
    issues). Come to think of it, the syscall wrappers for each method should do
    that for us as well.
    Signed-off-by: Linus Torvalds

    Anton Blanchard
     
  • Commit 3f6da3905398826d85731247e7fbcf53400c18bd
    (perf: Rework and fix the arch CPU-hotplug hooks) broke suspend to
    RAM on my HP nx6325 (and most likely on other AMD-based boxes too)
    by allowing amd_pmu_cpu_offline() to be executed for CPUs that are
    going offline as part of the suspend process. The problem is that
    cpuhw->amd_nb may be NULL already, so the function should make sure
    it's not NULL before accessing the object pointed to by it.

    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     

20 Mar, 2010

12 commits

  • Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6:
    serial: sh-sci: remove duplicated #include
    sh: Export uncached helper symbols.
    sh: Fix up NUMA build for 29-bit.
    serial: sh-sci: Fix build failure for non-sh architectures.
    sh: Fix up uncached offset for legacy 29-bit mode.
    sh: Support CPU affinity masks for INTC controllers.

    Linus Torvalds
     
  • * 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/dvrabel/uwb:
    uwb: remove duplicate cpu_to_le16()
    uwb: declare MODULE_FIRMWARE() in i1480 DFU driver
    uwb: make USB device id table constant
    uwb: wlp: refactor wlp_get_() macros

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mattst88/alpha-2.6:
    alpha: fix compile errors in dma-mapping-common.h
    alpha: remove trailing spaces in messages
    alpha: use __ratelimit

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
    powerpc: Remove IOMMU_VMERGE config option
    powerpc: Fix swiotlb to respect the boot option
    powerpc: Do not call prink when CONFIG_PRINTK is not defined
    powerpc: Use correct ccr bit for syscall error status
    powerpc/fsl-booke: Get coherent bit from PTE
    powerpc/85xx: Make sure lwarx hint isn't set on ppc32

    Linus Torvalds
     
  • * 'zerolen' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/misc-2.6:
    Delete zero-length file drivers/mtd/maps/omap_nor.c

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6:
    tty_port,usb-console: Fix usb serial console open/close regression
    tty: cpm_uart: use resource_size()
    tty_buffer: Fix distinct type warning
    hvc_console: Fix race between hvc_close and hvc_remove
    uartlite: Fix build on sparc.
    tty: Take a 256 byte padding into account when buffering below sub-page units
    Revert "tty: Add a new VT mode which is like VT_PROCESS but doesn't require a VT_RELDISP ioctl call"

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
    driver core: numa: fix BUILD_BUG_ON for node_read_distance
    driver-core: document ERR_PTR() return values
    kobject: documentation: Update to refer to kset-example.c.
    sysdev: the cpu probe/release attributes should be sysdev_class_attributes
    kobject: documentation: Fix erroneous example in kobject doc.
    driver-core: fix missing kernel-doc in firmware_class
    Driver core: Early platform kernel-doc update
    sysfs: fix sysfs lockdep warning in mlx4 code
    sysfs: fix sysfs lockdep warning in infiniband code
    sysfs: fix sysfs lockdep warning in ipmi code
    sysfs: Initialised pci bus legacy_mem field before use
    sysfs: use sysfs_bin_attr_init in firmware class driver

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (45 commits)
    USB: gadget/multi: cdc_do_config: remove redundant check
    usb: r8a66597-hcd: fix removed from an attached hub
    USB: xhci: Make endpoint interval debugging clearer.
    USB: Fix usb_fill_int_urb for SuperSpeed devices
    USB: cp210x: Remove double usb_control_msg from cp210x_set_config
    USB: Remove last bit of CONFIG_USB_BERRY_CHARGE
    USB: gadget: add gadget controller number for s3c-hsotg driver
    USB: ftdi_sio: Fix locking for change_speed() function
    USB: g_mass_storage: fixed module name in Kconfig
    USB: gadget: f_mass_storage::fsg_bind(): fix error handling
    USB: g_mass_storage: fix section mismatch warnings
    USB: gadget: fix Blackfin builds after gadget cleansing
    USB: goku_udc: remove potential null dereference
    USB: option.c: Add Pirelli VID/PID and indicate Pirelli's modem interface is 0xff
    USB: serial: Fix module name typo for qcaux Kconfig entry.
    usb: cdc-wdm: Fix deadlock between write and resume
    usb: cdc-wdm: Fix order in disconnect and fix locking
    usb: cdc-wdm:Fix loss of data due to autosuspend
    usb: cdc-wdm: Fix submission of URB after suspension
    usb: cdc-wdm: Fix race between disconnect and debug messages
    ...

    Linus Torvalds
     
  • The content was deleted in cc87edb173effdf74e680ee6d622a935ff0c1d6f,
    but the file remained as a zero-length file.

    Signed-off-by: Jeff Garzik

    Jeff Garzik
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client: (205 commits)
    ceph: update for write_inode API change
    ceph: reset osd after relevant messages timed out
    ceph: fix flush_dirty_caps race with caps migration
    ceph: include migrating caps in issued set
    ceph: fix osdmap decoding when pools include (removed) snaps
    ceph: return EBADF if waiting for caps on closed file
    ceph: set osd request message front length correctly
    ceph: reset front len on return to msgpool; BUG on mismatched front iov
    ceph: fix snaptrace decoding on cap migration between mds
    ceph: use single osd op reply msg
    ceph: reset bits on connection close
    ceph: remove bogus mds forward warning
    ceph: remove fragile __map_osds optimization
    ceph: fix connection fault STANDBY check
    ceph: invalidate_authorizer without con->mutex held
    ceph: don't clobber write return value when using O_SYNC
    ceph: fix client_request_forward decoding
    ceph: drop messages on unregistered mds sessions; cleanup
    ceph: fix comments, locking in destroy_inode
    ceph: move dereference after NULL test
    ...

    Fix trivial conflicts in Documentation/ioctl/ioctl-number.txt

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
    cifs: trivial white space
    [CIFS] checkpatch cleanup
    cifs: add cifs_revalidate_file
    cifs: add a CIFSSMBUnixQFileInfo function
    cifs: add a CIFSSMBQFileInfo function
    cifs: overhaul cifs_revalidate and rename to cifs_revalidate_dentry

    Linus Torvalds
     

19 Mar, 2010

26 commits