19 Nov, 2012

3 commits

  • - Capture the the user namespace that creates the pid namespace
    - Use that user namespace to test if it is ok to write to
    /proc/sys/kernel/ns_last_pid.

    Zhao Hongjiang noticed I was missing a put_user_ns
    in when destroying a pid_ns. I have foloded his patch into this one
    so that bisects will work properly.

    Acked-by: Serge Hallyn
    Signed-off-by: "Eric W. Biederman"

    Eric W. Biederman
     
  • The user namespace which creates a new network namespace owns that
    namespace and all resources created in it. This way we can target
    capability checks for privileged operations against network resources to
    the user_ns which created the network namespace in which the resource
    lives. Privilege to the user namespace which owns the network
    namespace, or any parent user namespace thereof, provides the same
    privilege to the network resource.

    This patch is reworked from a version originally by
    Serge E. Hallyn

    Acked-by: Serge Hallyn
    Signed-off-by: Eric W. Biederman

    Eric W. Biederman
     
  • The copy of copy_net_ns used when the network stack is not
    built is broken as it does not return -EINVAL when attempting
    to create a new network namespace. We don't even have
    a previous network namespace.

    Since we need a copy of copy_net_ns in net/net_namespace.h that is
    available when the networking stack is not built at all move the
    correct version of copy_net_ns from net_namespace.c into net_namespace.h
    Leaving us with just 2 versions of copy_net_ns. One version for when
    we compile in network namespace suport and another stub for all other
    occasions.

    Acked-by: Serge Hallyn
    Signed-off-by: Eric W. Biederman

    Eric W. Biederman
     

29 Oct, 2012

2 commits

  • Use rcu_read_lock_sched / rcu_read_unlock_sched / synchronize_sched
    instead of rcu_read_lock / rcu_read_unlock / synchronize_rcu.

    This is an optimization. The RCU-protected region is very small, so
    there will be no latency problems if we disable preempt in this region.

    So we use rcu_read_lock_sched / rcu_read_unlock_sched that translates
    to preempt_disable / preempt_disable. It is smaller (and supposedly
    faster) than preemptible rcu_read_lock / rcu_read_unlock.

    Signed-off-by: Mikulas Patocka
    Signed-off-by: Linus Torvalds

    Mikulas Patocka
     
  • This patch introduces new barrier pair light_mb() and heavy_mb() for
    percpu rw semaphores.

    This patch fixes a bug in percpu-rw-semaphores where a barrier was
    missing in percpu_up_write.

    This patch improves performance on the read path of
    percpu-rw-semaphores: on non-x86 cpus, there was a smp_mb() in
    percpu_up_read. This patch changes it to a compiler barrier and removes
    the "#if defined(X86) ..." condition.

    From: Lai Jiangshan
    Signed-off-by: Mikulas Patocka
    Signed-off-by: Linus Torvalds

    Mikulas Patocka
     

27 Oct, 2012

6 commits

  • Pull networking fixes from David Miller:
    "This is what we usually expect at this stage of the game, lots of
    little things, mostly in drivers. With the occasional 'oops didn't
    mean to do that' kind of regressions in the core code."

    1) Uninitialized data in __ip_vs_get_timeouts(), from Arnd Bergmann

    2) Reject invalid ACK sequences in Fast Open sockets, from Jerry Chu.

    3) Lost error code on return from _rtl_usb_receive(), from Christian
    Lamparter.

    4) Fix reset resume on USB rt2x00, from Stanislaw Gruszka.

    5) Release resources on error in pch_gbe driver, from Veaceslav Falico.

    6) Default hop limit not set correctly in ip6_template_metrics[], fix
    from Li RongQing.

    7) Gianfar PTP code requests wrong kind of resource during probe, fix
    from Wei Yang.

    8) Fix VHOST net driver on big-endian, from Michael S Tsirkin.

    9) Mallenox driver bug fixes from Jack Morgenstein, Or Gerlitz, Moni
    Shoua, Dotan Barak, and Uri Habusha.

    10) usbnet leaks memory on TX path, fix from Hemant Kumar.

    11) Use socket state test, rather than presence of FIN bit packet, to
    determine FIONREAD/SIOCINQ value. Fix from Eric Dumazet.

    12) Fix cxgb4 build failure, from Vipul Pandya.

    13) Provide a SYN_DATA_ACKED state to complement SYN_FASTOPEN in socket
    info dumps. From Yuchung Cheng.

    14) Fix leak of security path in kfree_skb_partial(). Fix from Eric
    Dumazet.

    15) Handle RX FIFO overflows more resiliently in pch_gbe driver, from
    Veaceslav Falico.

    16) Fix MAINTAINERS file pattern for networking drivers, from Jean
    Delvare.

    17) Add iPhone5 IDs to IPHETH driver, from Jay Purohit.

    18) VLAN device type change restriction is too strict, and should not
    trigger for the automatically generated vlan0 device. Fix from Jiri
    Pirko.

    19) Make PMTU/redirect flushing work properly again in ipv4, from
    Steffen Klassert.

    20) Fix memory corruptions by using kfree_rcu() in netlink_release().
    From Eric Dumazet.

    21) More qmi_wwan device IDs, from Bjørn Mork.

    22) Fix unintentional change of SNAT/DNAT hooks in generic NAT
    infrastructure, from Elison Niven.

    23) Fix 3.6.x regression in xt_TEE netfilter module, from Eric Dumazet.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (57 commits)
    tilegx: fix some issues in the SW TSO support
    qmi_wwan/cdc_ether: move Novatel 551 and E362 to qmi_wwan
    net: usb: Fix memory leak on Tx data path
    net/mlx4_core: Unmap UAR also in the case of error flow
    net/mlx4_en: Don't use vlan tag value as an indication for vlan presence
    net/mlx4_en: Fix double-release-range in tx-rings
    bas_gigaset: fix pre_reset handling
    vhost: fix mergeable bufs on BE hosts
    gianfar_ptp: use iomem, not ioports resource tree in probe
    ipv6: Set default hoplimit as zero.
    NET_VENDOR_TI: make available for am33xx as well
    pch_gbe: fix error handling in pch_gbe_up()
    b43: Fix oops on unload when firmware not found
    mwifiex: clean up scan state on error
    mwifiex: return -EBUSY if specific scan request cannot be honored
    brcmfmac: fix potential NULL dereference
    Revert "ath9k_hw: Updated AR9003 tx gain table for 5GHz"
    ath9k_htc: Add PID/VID for a Ubiquiti WiFiStation
    rt2x00: usb: fix reset resume
    rtlwifi: pass rx setup error code to caller
    ...

    Linus Torvalds
     
  • Pull staging driver fixes from Greg Kroah-Hartman:
    "Here are some staging driver fixes for your 3.7-rc tree.

    Nothing major here, a number of iio driver fixups that were causing
    problems, some comedi driver bugfixes, and a bunch of tidspbridge
    warning squashing and other regressions fixed from the 3.6 release.

    All have been in the linux-next releases for a bit.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'staging-3.7-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (32 commits)
    staging: tidspbridge: delete unused mmu functions
    staging: tidspbridge: ioremap physical address of the stack segment in shm
    staging: tidspbridge: ioremap dsp sync addr
    staging: tidspbridge: change type to __iomem for per and core addresses
    staging: tidspbridge: drop const from custom mmu implementation
    staging: tidspbridge: request the right irq for mmu
    staging: ipack: add missing include (implicit declaration of function 'kfree')
    staging: ramster: depends on NET
    staging: omapdrm: fix allocation size for page addresses array
    staging: zram: Fix handling of incompressible pages
    Staging: android: binder: Allow using highmem for binder buffers
    Staging: android: binder: Fix memory leak on thread/process exit
    staging: comedi: ni_labpc: fix possible NULL deref during detach
    staging: comedi: das08: fix possible NULL deref during detach
    staging: comedi: amplc_pc263: fix possible NULL deref during detach
    staging: comedi: amplc_pc236: fix possible NULL deref during detach
    staging: comedi: amplc_pc236: fix invalid register access during detach
    staging: comedi: amplc_dio200: fix possible NULL deref during detach
    staging: comedi: 8255_pci: fix possible NULL deref during detach
    staging: comedi: ni_daq_700: fix dio subdevice regression
    ...

    Linus Torvalds
     
  • Pull driver core fixes from Greg Kroah-Hartman:
    "Here are a number of firmware core fixes for 3.7, and some other minor
    fixes. And some documentation updates thrown in for good measure.

    All have been in the linux-next tree for a while.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'driver-core-3.7-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
    Documentation:Chinese translation of Documentation/arm64/memory.txt
    Documentation:Chinese translation of Documentation/arm64/booting.txt
    Documentation:Chinese translation of Documentation/IRQ.txt
    firmware loader: document kernel direct loading
    sysfs: sysfs_pathname/sysfs_add_one: Use strlcat() instead of strcat()
    dynamic_debug: Remove unnecessary __used
    firmware loader: sync firmware cache by async_synchronize_full_domain
    firmware loader: let direct loading back on 'firmware_buf'
    firmware loader: fix one reqeust_firmware race
    firmware loader: cancel uncache work before caching firmware

    Linus Torvalds
     
  • Pull char/misc driver fixes from Greg Kroah-Hartman:
    "Here are some driver fixes for 3.7. They include extcon driver fixes,
    a hyper-v bugfix, and two other minor driver fixes.

    All of these have been in the linux-next releases for a while.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'char-misc-3.7-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
    sonypi: suspend/resume callbacks should be conditionally compiled on CONFIG_PM_SLEEP
    Drivers: hv: Cleanup error handling in vmbus_open()
    extcon : register for cable interest by cable name
    extcon: trivial: kfree missed from remove path
    extcon: driver model release call not needed
    extcon: MAX77693: Add platform data for MUIC device to initialize registers
    extcon: max77693: Use max77693_update_reg for rmw operations
    extcon: Fix kerneldoc for extcon_set_cable_state and extcon_set_cable_state_
    extcon: adc-jack: Add missing MODULE_LICENSE
    extcon: adc-jack: Fix checking return value of request_any_context_irq
    extcon: Fix return value in extcon_register_interest()
    extcon: unregister compat link on cleanup
    extcon: Unregister compat class at module unload to fix oops
    extcon: optimising the check_mutually_exclusive function
    extcon: standard cable names definition and declaration changed
    extcon-max8997: remove usage of ret in max8997_muic_handle_charger_type_detach
    extcon: Remove duplicate inclusion of extcon.h header file

    Linus Torvalds
     
  • Pull x86 fixes from Ingo Molnar:
    "This fixes a couple of nasty page table initialization bugs which were
    causing kdump regressions. A clean rearchitecturing of the code is in
    the works - meanwhile these are reverts that restore the
    best-known-working state of the kernel.

    There's also EFI fixes and other small fixes."

    * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    x86, mm: Undo incorrect revert in arch/x86/mm/init.c
    x86: efi: Turn off efi_enabled after setup on mixed fw/kernel
    x86, mm: Find_early_table_space based on ranges that are actually being mapped
    x86, mm: Use memblock memory loop instead of e820_RAM
    x86, mm: Trim memory in memblock to be page aligned
    x86/irq/ioapic: Check for valid irq_cfg pointer in smp_irq_move_cleanup_interrupt
    x86/efi: Fix oops caused by incorrect set_memory_uc() usage
    x86-64: Fix page table accounting
    Revert "x86/mm: Fix the size calculation of mapping tables"
    MAINTAINERS: Add EFI git repository location

    Linus Torvalds
     
  • Pull perf fixes from Ingo Molnar:
    "Most of the kernel diffstat relates to a group of Intel P6 and KNC
    (Xeon-Phi Knights Corner) PMU driver fixes, neither of which is in
    heavy use, so we took the fixes.

    The rest is diverse smallish fixes to the tooling and kernel side."

    * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    perf/x86: Remove unused variable in nhmex_rbox_alter_er()
    perf/x86: Enable overflow on Intel KNC with a custom knc_pmu_handle_irq()
    perf/x86: Remove cpuc->enable check on Intl KNC event enable/disable
    perf/x86: Make Intel KNC use full 40-bit width of counters
    perf/x86/uncore: Handle pci_read_config_dword() errors
    perf/x86: Remove P6 cpuc->enabled check
    perf/x86: Update/fix generic events on P6 PMU
    perf/x86: Fix P6 FP_ASSIST event constraint
    perf, cpu hotplug: Use cached value of smp_processor_id()
    perf, cpu hotplug: Run CPU_STARTING notifiers with irqs disabled
    x86/perf: Fix virtualization sanity check
    perf test: Fix exclude_guest parse events tests
    perf tools: do not flush maps on COMM for perf report
    perf help: Fix --help for builtins
    perf trace: Check if sample raw_data field is set
    perf trace: Validate syscall id before growing syscall table

    Linus Torvalds
     

26 Oct, 2012

2 commits

  • Pull drm radeon fixes from Dave Airlie:
    "Just radeon fixes in this one:
    - some new PCI IDs
    - ATPX regression fix
    - async VM regression fixes
    - some module options fixes"

    * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
    drm/radeon: fix ATPX regression in acpi rework
    drm/radeon: fix ATPX function documentation
    drm/radeon: move the retry to gem_object_create
    drm/radeon: move size limits to gem_object_create.
    drm/radeon: use vzalloc for gart pages
    drm/radeon: fix and simplify pot argument checks v3
    drm/radeon: fix header size estimation in VM code
    drm/radeon: remove set_page check from VM code
    drm/radeon: fix si_set_page v2
    drm/radeon: fix cayman_vm_set_page v2
    drm/radeon: fix PFP sync in vm_flush
    drm/radeon: add error output if VM CS fails on cayman
    drm/radeon: give each backlight a unique id
    drm/radeon: fix sparse warning
    drm/radeon: add some new SI PCI ids

    Linus Torvalds
     
  • rb_erase_augmented() is a static function annotated with
    __always_inline. This causes a compile failure when attempting to use
    the rbtree implementation as a library (e.g. kvm tool):

    rbtree_augmented.h:125:24: error: expected `=', `,', `;', `asm' or `__attribute__' before `void'

    Include linux/compiler.h in rbtree_augmented.h so that the __always_inline
    macro is resolved correctly.

    Signed-off-by: Will Deacon
    Cc: Pekka Enberg
    Reviewed-by: Michel Lespinasse
    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Will Deacon
     

25 Oct, 2012

3 commits

  • Pull spi fixes from Mark Brown:
    "A bunch of fixes here, mostly minor except for the pl022 which has
    just been a bit of a shambles all round, the recent runtime PM changes
    have as far as I can tell never worked so they're just getting thrown
    out."

    * tag 'spi-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc:
    spi/pl022: Revert recent runtime PM changes
    spi: tsc2005: delete soon-obsolete e-mail address
    spi: spi-rspi: fix build error for the latest shdma driver

    Linus Torvalds
     
  • The __used attribute prevents gcc from eliminating
    unnecessary, otherwise optimized away, metadata for
    debugging logging messages.

    Remove the __used attribute.

    Signed-off-by: Joe Perches
    Acked-by: Jason Baron
    Signed-off-by: Greg Kroah-Hartman

    Joe Perches
     
  • We will not map partial pages, so need to make sure memblock
    allocation will not allocate those bytes out.

    Also we will use for_each_mem_pfn_range() to loop to map memory
    range to keep them consistent.

    Signed-off-by: Yinghai Lu
    Link: http://lkml.kernel.org/r/CAE9FiQVZirvaBMFYRfXMmWEcHbKSicQEHz4VAwUv0xFCk51ZNw@mail.gmail.com
    Acked-by: Jacob Shin
    Signed-off-by: H. Peter Anvin
    Cc:

    Yinghai Lu
     

24 Oct, 2012

3 commits

  • The perf_cpu_notifier() macro invokes smp_processor_id()
    multiple times. Optimize it by using a local variable.

    Signed-off-by: Srivatsa S. Bhat
    Reviewed-by: Paul E. McKenney
    Cc: peterz@infradead.org
    Cc: acme@ghostprotocols.net
    Link: http://lkml.kernel.org/r/20121016075817.3572.76733.stgit@srivatsabhat.in.ibm.com
    Signed-off-by: Ingo Molnar

    Srivatsa S. Bhat
     
  • The CPU_STARTING notifiers are supposed to be run with irqs
    disabled. But the perf_cpu_notifier() macro invokes them without
    doing that. Fix it.

    Signed-off-by: Srivatsa S. Bhat
    Reviewed-by: Paul E. McKenney
    Cc: peterz@infradead.org
    Cc: acme@ghostprotocols.net
    Link: http://lkml.kernel.org/r/20121016075809.3572.47848.stgit@srivatsabhat.in.ibm.com
    Signed-off-by: Ingo Molnar

    Srivatsa S. Bhat
     
  • Pull xen bug-fixes from Konrad Rzeszutek Wilk:
    - Fix mysterious SIGSEGV or SIGKILL in applications due to corrupting
    of the %eip when returning from a signal handler.
    - Fix various ARM compile issues after the merge fallout.
    - Continue on making more of the Xen generic code usable by ARM
    platform.
    - Fix SR-IOV passthrough to mirror multifunction PCI devices.
    - Fix various compile warnings.
    - Remove hypercalls that don't exist anymore.

    * tag 'stable/for-linus-3.7-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen:
    xen: dbgp: Fix warning when CONFIG_PCI is not enabled.
    xen: arm: comment on why 64-bit xen_pfn_t is safe even on 32 bit
    xen: balloon: use correct type for frame_list
    xen/x86: don't corrupt %eip when returning from a signal handler
    xen: arm: make p2m operations NOPs
    xen: balloon: don't include e820.h
    xen: grant: use xen_pfn_t type for frame_list.
    xen: events: pirq_check_eoi_map is X86 specific
    xen: XENMEM_translate_gpfn_list was remove ages ago and is unused.
    xen: sysfs: fix build warning.
    xen: sysfs: include err.h for PTR_ERR etc
    xen: xenbus: quirk uses x86 specific cpuid
    xen PV passthru: assign SR-IOV virtual functions to separate virtual slots
    xen/xenbus: Fix compile warning.
    xen/x86: remove duplicated include from enlighten.c

    Linus Torvalds
     

23 Oct, 2012

3 commits


22 Oct, 2012

2 commits


20 Oct, 2012

9 commits

  • Merge misc fixes from Andrew Morton:
    "Seven fixes"

    * emailed patches from Andrew Morton : (7 patches)
    lib/dma-debug.c: fix __hash_bucket_find()
    mm: compaction: correct the nr_strict va isolated check for CMA
    firmware/memmap: avoid type conflicts with the generic memmap_init()
    pidns: remove recursion from free_pid_ns()
    drivers/video/backlight/lm3639_bl.c: return proper error in lm3639_bled_mode_store() error paths
    kernel/sys.c: fix stack memory content leak via UNAME26
    linux/coredump.h needs asm/siginfo.h

    Linus Torvalds
     
  • free_pid_ns() operates in a recursive fashion:

    free_pid_ns(parent)
    put_pid_ns(parent)
    kref_put(&ns->kref, free_pid_ns);
    free_pid_ns

    thus if there was a huge nesting of namespaces the userspace may trigger
    avalanche calling of free_pid_ns leading to kernel stack exhausting and a
    panic eventually.

    This patch turns the recursion into an iterative loop.

    Based on a patch by Andrew Vagin.

    [akpm@linux-foundation.org: export put_pid_ns() to modules]
    Signed-off-by: Cyrill Gorcunov
    Cc: Andrew Vagin
    Cc: Oleg Nesterov
    Cc: "Eric W. Biederman"
    Cc: Pavel Emelyanov
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Cyrill Gorcunov
     
  • Commit 5ab1c309b344 ("coredump: pass siginfo_t* to do_coredump() and
    below, not merely signr") added siginfo_t to linux/coredump.h but forgot
    to include asm/siginfo.h. This breaks the build for UML/i386. (And any
    other arch where asm/siginfo.h is not magically preincluded...)

    In file included from arch/x86/um/elfcore.c:2:0: include/linux/coredump.h:15:25: error: unknown type name 'siginfo_t'
    make[1]: *** [arch/x86/um/elfcore.o] Error 1

    Signed-off-by: Richard Weinberger
    Cc: Denys Vlasenko
    Cc: Oleg Nesterov
    Cc: Amerigo Wang
    Cc: "Jonathan M. Foote"
    Cc: Roland McGrath
    Cc: Pedro Alves
    Cc: Fengguang Wu
    Cc: Stephen Rothwell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Weinberger
     
  • * commit 'v3.7-rc1': (10892 commits)
    Linux 3.7-rc1
    x86, boot: Explicitly include autoconf.h for hostprogs
    perf: Fix UAPI fallout
    ARM: config: make sure that platforms are ordered by option string
    ARM: config: sort select statements alphanumerically
    UAPI: (Scripted) Disintegrate include/linux/byteorder
    UAPI: (Scripted) Disintegrate include/linux
    UAPI: Unexport linux/blk_types.h
    UAPI: Unexport part of linux/ppp-comp.h
    perf: Handle new rbtree implementation
    procfs: don't need a PATH_MAX allocation to hold a string representation of an int
    vfs: embed struct filename inside of names_cache allocation if possible
    audit: make audit_inode take struct filename
    vfs: make path_openat take a struct filename pointer
    vfs: turn do_path_lookup into wrapper around struct filename variant
    audit: allow audit code to satisfy getname requests from its names_list
    vfs: define struct filename and have getname() return it
    btrfs: Fix compilation with user namespace support enabled
    userns: Fix posix_acl_file_xattr_userns gid conversion
    userns: Properly print bluetooth socket uids
    ...

    Konrad Rzeszutek Wilk
     
  • This correctly sizes it as 64 bit on ARM but leaves it as unsigned
    long on x86 (therefore no intended change on x86).

    The long and ulong guest handles are now unused (and a bit dangerous)
    so remove them.

    Acked-by: Stefano Stabellini
    Signed-off-by: Ian Campbell
    Signed-off-by: Konrad Rzeszutek Wilk

    Ian Campbell
     
  • Signed-off-by: Ian Campbell
    Signed-off-by: Konrad Rzeszutek Wilk

    Ian Campbell
     
  • Pull TTY fixes from Greg Kroah-Hartman:
    "Here are some tty and serial driver fixes for your 3.7-rc1 tree.

    Again, the UABI header file fixes, and a number of build and runtime
    serial driver bugfixes that solve problems people have been reporting
    (the staging driver is a tty driver, hence the fixes coming in through
    this tree.)

    All of these have been in the linux-next tree for a while.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'tty-3.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
    staging: dgrp: check return value of alloc_tty_driver
    staging: dgrp: check for NULL pointer in (un)register_proc_table
    serial/8250_hp300: Missing 8250 register interface conversion bits
    UAPI: (Scripted) Disintegrate include/linux/hsi
    tty: serial: sccnxp: Fix bug with unterminated platform_id list
    staging: serial: dgrp: Add missing #include
    serial: sccnxp: Allows the driver to be compiled as a module
    tty: Fix bogus "callbacks suppressed" messages
    net, TTY: initialize tty->driver_data before usage

    Linus Torvalds
     
  • Pull USB fixes from Greg Kroah-Hartman:
    "Here are the USB patches against your 3.7-rc1 tree.

    There are the usual UABI header file movements, and we finally are now
    able to remove the dbg() macro that is over 15 years old (that had to
    wait for after some other trees got merged into yours during the big
    3.7-rc1 merge window.)

    Other than that, nothing major, just a number of bugfixes and new
    device ids. It turns out that almost all of the usb-serial drivers
    had bugs in how they were handling their internal data, leaking
    memory, hence all of those fixups.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'usb-3.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (42 commits)
    USB: option: add more ZTE devices
    USB: option: blacklist net interface on ZTE devices
    usb: host: xhci: New system added for Compliance Mode Patch on SN65LVPE502CP
    USB: io_ti: fix sysfs-attribute creation
    USB: iuu_phoenix: fix sysfs-attribute creation
    USB: spcp8x5: fix port-data memory leak
    USB: ssu100: fix port-data memory leak
    USB: ti_usb_3410_5052: fix port-data memory leak
    USB: oti6858: fix port-data memory leak
    USB: iuu_phoenix: fix port-data memory leak
    USB: kl5kusb105: fix port-data memory leak
    USB: io_ti: fix port-data memory leak
    USB: keyspan_pda: fix port-data memory leak
    USB: f81232: fix port-data memory leak
    USB: io_edgeport: fix port-data memory leak
    USB: kobil_sct: fix port-data memory leak
    USB: cypress_m8: fix port-data memory leak
    usb: acm: fix the computation of the number of data bits
    usb: Missing dma_mask in ehci-vt8500.c when probed from device-tree
    usb: Missing dma_mask in uhci-platform.c when probed from device-tree
    ...

    Linus Torvalds
     
  • …wireless into for-davem

    John W. Linville
     

19 Oct, 2012

3 commits

  • Some datasheets use a different unit to specify the channel scale than what IIO
    expects it to be. This patch adds two helper macros which allow to convert units
    commonly used in datasheets to IIO units:

    * acceleration: g -> meter / second**2
    * angular velocity: degree (/ second) -> rad (/ second)

    This makes it much more convenient to specify and also easier to verify a
    channel's scale attribute.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Jonathan Cameron

    Lars-Peter Clausen
     
  • Pull media fixes from Mauro Carvalho Chehab:
    "Media fixes for:
    - one Kconfig fix patch;
    - one patch fixing DocBook breakage due to the drivers/media UAPI
    changes;
    - the remaining UAPI media changes (DVB API).

    I'm aware that is is a little late for the UAPI renames for the DVB
    API, but IMHO, it is better to merge it for 3.7, due to two reasons:

    1) There is a major rename at 3.7 (not only uapi changes, but also
    the entire media drivers were reorganized on 3.7, in order to
    simplify the Kconfig logic, and easy drivers selection, especially
    for hybrid devices). By confining all those renames there at 3.7
    it will cause all the harm at for media developers on just one
    shot. Stable backports upstream and at distros will likely
    welcome it as well, as they won't need to check what changed on
    3.7 and what was postponed for on 3.8.

    2) The V4L2 DocBook Makefile creates a cross-reference between the
    media API headers and the specs. This helps us _a_lot_ to be sure
    that all API improvements are properly documented. Every time a
    header changes from one place to another, DocBook/media/Makefile
    needs to be patched. Currently, the DocBook breakage patch
    depends on the DVB UAPI."

    * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
    [media] Kconfig: Fix dependencies for driver autoselect options
    DocBook/media/Makefile: Fix build due to uapi breakage
    UAPI: (Scripted) Disintegrate include/linux/dvb

    Linus Torvalds
     
  • Pull DeviceTree fixes from Rob Herring:
    "A handful of fixes:
    - a fix for dtc from upstream
    - sparse fixes in DeviceTree code
    - stub of_get_child_by_name for !OF builds"

    * tag 'dt-fixes-for-3.7' of git://sources.calxeda.com/kernel/linux:
    dtc: fix for_each_*() to skip first object if deleted
    of/platform: sparse fix
    of/irq: sparse fixes
    of/address: sparse fixes
    of: add stub of_get_child_by_name for non-OF builds

    Linus Torvalds
     

18 Oct, 2012

4 commits

  • …linux-headers into tty-linus

    UAPI Disintegration 2012-10-09

    Greg Kroah-Hartman
     
  • drivers/of/irq.c:195:57: warning: restricted __be32 degrades to integer
    drivers/of/irq.c:196:51: warning: restricted __be32 degrades to integer
    drivers/of/irq.c:199:57: warning: restricted __be32 degrades to integer
    drivers/of/irq.c:201:58: warning: restricted __be32 degrades to integer
    drivers/of/irq.c:470:37: warning: incorrect type in assignment (different modifiers)
    drivers/of/irq.c:470:37: expected int ( *[usertype] irq_init_cb )( ... )
    drivers/of/irq.c:470:37: got void const *const data
    drivers/of/irq.c:96:5: error: symbol 'of_irq_map_raw' redeclared with different type (originally declared at include/linux/of_irq.h:61) - incompatible argument 2 (different base types)

    drivers/of/of_pci_irq.c:91:40: warning: incorrect type in argument 2 (different base types)
    drivers/of/of_pci_irq.c:91:40: expected unsigned int const [usertype] *intspec
    drivers/of/of_pci_irq.c:91:40: got restricted __be32 *
    drivers/of/of_pci_irq.c:91:53: warning: incorrect type in argument 4 (different base types)
    drivers/of/of_pci_irq.c:91:53: expected unsigned int const [usertype] *addr
    drivers/of/of_pci_irq.c:91:53: got restricted __be32 *

    Signed-off-by: Kim Phillips
    Signed-off-by: Rob Herring

    Kim Phillips
     
  • drivers/of/address.c:66:29: warning: incorrect type in argument 1 (different base types)
    drivers/of/address.c:66:29: expected restricted __be32 const [usertype] *cell
    drivers/of/address.c:66:29: got unsigned int [usertype] *addr
    drivers/of/address.c:87:32: warning: incorrect type in argument 1 (different base types)
    drivers/of/address.c:87:32: expected restricted __be32 const [usertype] *cell
    drivers/of/address.c:87:32: got unsigned int [usertype] *addr
    drivers/of/address.c:91:30: warning: incorrect type in assignment (different base types)
    drivers/of/address.c:91:30: expected unsigned int [unsigned] [usertype]
    drivers/of/address.c:91:30: got restricted __be32 [usertype]
    drivers/of/address.c:92:22: warning: incorrect type in assignment (different base types)
    drivers/of/address.c:92:22: expected unsigned int [unsigned] [usertype]
    drivers/of/address.c:92:22: got restricted __be32 [usertype]
    drivers/of/address.c:147:35: warning: incorrect type in argument 1 (different base types)
    drivers/of/address.c:147:35: expected restricted __be32 const [usertype] *addr
    drivers/of/address.c:147:35: got unsigned int [usertype] *addr
    drivers/of/address.c:157:34: warning: incorrect type in argument 1 (different base types)
    drivers/of/address.c:157:34: expected restricted __be32 const [usertype] *cell
    drivers/of/address.c:157:34: got unsigned int [usertype] *
    drivers/of/address.c:256:29: warning: restricted __be32 degrades to integer
    drivers/of/address.c:256:36: warning: restricted __be32 degrades to integer
    drivers/of/address.c:262:34: warning: incorrect type in argument 1 (different base types)
    drivers/of/address.c:262:34: expected restricted __be32 const [usertype] *cell
    drivers/of/address.c:262:34: got unsigned int [usertype] *
    drivers/of/address.c:372:41: warning: incorrect type in argument 1 (different base types)
    drivers/of/address.c:372:41: expected restricted __be32 const [usertype] *cell
    drivers/of/address.c:372:41: got unsigned int [usertype] *addr
    drivers/of/address.c:395:53: warning: incorrect type in argument 2 (different base types)
    drivers/of/address.c:395:53: expected restricted __be32 const [usertype] *addr
    drivers/of/address.c:395:53: got unsigned int [usertype] *addr
    drivers/of/address.c:443:50: warning: incorrect type in argument 2 (different base types)
    drivers/of/address.c:443:50: expected restricted __be32 const [usertype] *addr
    drivers/of/address.c:443:50: got unsigned int *
    drivers/of/address.c:455:49: warning: incorrect type in argument 1 (different base types)
    drivers/of/address.c:455:49: expected restricted __be32 const [usertype] *cell
    drivers/of/address.c:455:49: got unsigned int *
    drivers/of/address.c:480:60: warning: incorrect type in argument 2 (different base types)
    drivers/of/address.c:480:60: expected restricted __be32 const [usertype] *addr
    drivers/of/address.c:480:60: got unsigned int *
    drivers/of/address.c:412:5: warning: symbol '__of_translate_address' was not declared. Should it be static?
    drivers/of/address.c:520:14: error: symbol 'of_get_address' redeclared with different type (originally declared at include/linux/of_address.h:22) - different base types

    Signed-off-by: Kim Phillips
    Signed-off-by: Rob Herring

    Kim Phillips
     
  • Fixes build error on s3c6400_defconfig, introduced by commit
    06455bbcab76e5f5225de5f38ab948d37a1c3587, "dt/s3c64xx/spi: Use
    of_get_child_by_name to get a named child".

    drivers/spi/spi-s3c64xx.c: In function 's3c64xx_get_slave_ctrldata':
    drivers/spi/spi-s3c64xx.c:838:2: error: implicit declaration of function
    'of_get_child_by_name' [-Werror=implicit-function-declaration]

    Signed-off-by: Olof Johansson
    Signed-off-by: Rob Herring

    Olof Johansson