1. 12 Oct, 2012 3 commits
    • Amerigo Wang's avatar
      net: add doc for in6_pton() · 28194fcd
      Amerigo Wang authored
      It is not easy to use in6_pton() correctly without reading
      its definition, so add some doc for it.
      
      Cc: David S. Miller <davem@davemloft.net>
      Signed-off-by: default avatarCong Wang <amwang@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      28194fcd
    • stephen hemminger's avatar
      vti: fix sparse bit endian warnings · 8437e761
      stephen hemminger authored
      Use be32_to_cpu instead of htonl to keep sparse happy.
      Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8437e761
    • Alexey Kuznetsov's avatar
      tcp: resets are misrouted · 4c675258
      Alexey Kuznetsov authored
      After commit e2446eaa ("tcp_v4_send_reset: binding oif to iif in no
      sock case").. tcp resets are always lost, when routing is asymmetric.
      Yes, backing out that patch will result in misrouting of resets for
      dead connections which used interface binding when were alive, but we
      actually cannot do anything here.  What's died that's died and correct
      handling normal unbound connections is obviously a priority.
      
      Comment to comment:
      > This has few benefits:
      >   1. tcp_v6_send_reset already did that.
      
      It was done to route resets for IPv6 link local addresses. It was a
      mistake to do so for global addresses. The patch fixes this as well.
      
      Actually, the problem appears to be even more serious than guaranteed
      loss of resets.  As reported by Sergey Soloviev <sol@eqv.ru>, those
      misrouted resets create a lot of arp traffic and huge amount of
      unresolved arp entires putting down to knees NAT firewalls which use
      asymmetric routing.
      Signed-off-by: default avatarAlexey Kuznetsov <kuznet@ms2.inr.ac.ru>
      4c675258
  2. 11 Oct, 2012 26 commits
  3. 10 Oct, 2012 11 commits
    • David Howells's avatar
    • David S. Miller's avatar
      Merge tag 'master-2012-10-08' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless · 85457685
      David S. Miller authored
      John W. Linville says:
      
      ====================
      Here is a batch of fixes intended for 3.7...
      
      Amitkumar Karwar provides a couple of mwifiex fixes to correctly
      report some reason codes for certain connection failures.  He also
      provides a fix to cleanup after a scanning failure.  Bing Zhao rounds
      that out with another mwifiex scanning fix.
      
      Daniel Golle gives us a fix for a copy/paste error in rt2x00.
      
      Felix Fietkau brings a couple of ath9k fixes related to suspend/resume,
      and a couple of fixes to prevent memory leaks in ath9k and mac80211.
      
      Ronald Wahl sends a carl9170 fix for a sleep in softirq context.
      
      Thomas Pedersen reorders some code to prevent drv_get_tsf from being
      called while holding a spinlock, now that it can sleep.
      
      Finally, Wei Yongjun prevents a NULL pointer dereference in the
      ath5k driver.
      
      Please let me know if there are problems!
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      85457685
    • Linus Torvalds's avatar
      Merge tag 'for-3.7-rc1' of git://gitorious.org/linux-pwm/linux-pwm · 2474542f
      Linus Torvalds authored
      Pull pwm changes from Thierry Reding:
       "All legacy PWM providers have now been moved to the PWM subsystem.
        The plan for 3.8 is to adapt all board files to provide a lookup table
        for PWM devices in order to get rid of the global namespace.
        Subsequently, users of the legacy pwm_request() and pwm_free()
        functions can be migrated to the new pwm_get() and pwm_put()
        functions.  Once this has been completed, the legacy API and the
        compatibility code in the core can be removed.
      
        In addition to the above, these changes also add support for
        configuring the polarity of a PWM signal (currently only supported on
        ECAP and EHRPWM) and include a much needed rework of the i.MX driver.
        Managed functions to obtain and release a PWM device (devm_pwm_get()
        and devm_pwm_put()) have been added and the pwm-backlight driver has
        been updated to use them.  If the PWM subsystem hasn't been enabled,
        dummy functions are provided that allow the subsystem to safely
        compile out.
      
        Some common checks on input parameters have been moved to the core and
        removed from the drivers.  Finally, a small fix corrects the
        description of the PWM specifier's second cell in the device tree
        representation."
      
      * tag 'for-3.7-rc1' of git://gitorious.org/linux-pwm/linux-pwm: (23 commits)
        pwm: dt: Fix description of second PWM cell
        pwm: Check for negative duty-cycle and period
        pwm: Add Ingenic JZ4740 support
        MIPS: JZ4740: Export timer API
        pwm: Move PUV3 PWM driver to PWM framework
        unicore32: pwm: Use managed resource allocations
        unicore32: pwm: Remove unnecessary indirection
        unicore32: pwm: Use module_platform_driver()
        unicore32: pwm: Properly remap memory-mapped registers
        pwm-backlight: Use devm_pwm_get() instead of pwm_get()
        pwm: Move AB8500 PWM driver to PWM framework
        pwm: Fix compilation error when CONFIG_PWM is not defined
        pwm: i.MX: fix clock lookup
        pwm: i.MX: use per clock unconditionally
        pwm: i.MX: add devicetree support
        pwm: i.MX: Use module_platform_driver
        pwm: i.MX: add functions to enable/disable pwm.
        pwm: i.MX: remove unnecessary if in pwm_[en|dis]able
        pwm: i.MX: factor out SoC specific functions
        pwm: pwm-tiehrpwm: Add support for configuring polarity of PWM
        ...
      2474542f
    • Linus Torvalds's avatar
      Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds · c7a6ced9
      Linus Torvalds authored
      Pull LED subsystem update from Bryan Wu.
      
      * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds: (24 commits)
        leds: add output driver configuration for pca9633 led driver
        leds: lm3642: Use regmap_update_bits() in lm3642_chip_init()
        leds: Add new LED driver for lm3642 chips
        leds-lp5523: Fix riskiness of the page fault
        leds-lp5523: turn off the LED engines on unloading the driver
        leds-lm3530: Fix smatch warnings
        leds-lm3530: Use devm_regulator_get function
        leds: leds-gpio: adopt pinctrl support
        leds: Add new LED driver for lm355x chips
        leds-lp5523: use the i2c device id rather than fixed name
        leds-lp5523: add new device id for LP55231
        leds-lp5523: support new LP55231 device
        leds: triggers: send uevent when changing triggers
        leds-lp5523: minor code style fixes
        leds-lp5523: change the return type of lp5523_set_mode()
        leds-lp5523: set the brightness to 0 forcely on removing the driver
        leds-lp5523: add channel name in the platform data
        leds: leds-gpio: Use of_get_child_count() helper
        leds: leds-gpio: Use platform_{get,set}_drvdata
        leds: leds-gpio: use of_match_ptr()
        ...
      c7a6ced9
    • Linus Torvalds's avatar
      Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending · a188e7e9
      Linus Torvalds authored
      Pull scsi target updates from Nicholas Bellinger:
       "Things have been calm for the most part with no new fabric drivers in
        flight for v3.7 (we're up to eight now !), so this update is primarily
        focused on addressing a few long-standing items within target-core and
        iscsi-target fabric code.
      
        The highlights include:
      
         - target: Simplify fabric sense data length handling (roland)
         - qla2xxx: Fix endianness of task management response code (roland)
         - target: fix truncation of mode data, support zero allocation length
           (paolo)
         - target: Properly support zero-length commands in normal processing
           path (paolo)
         - iscsi-target: Correctly set 0xffffffff field within ISCSI_OP_REJECT
           PDU (ronnie + nab)
         - iscsi-target: Add explicit set of cache_dynamic_acls=1 for TPG
           demo-mode (ronnie + nab)
         - target/file: Re-enable optional fd_buffered_io=1 operation (nab +
           hch)
         - iscsi-target: Add MaxXmitDataSegmenthLength forr target ->
           initiator MDRSL declaration (nab)
         - target: Add target_submit_cmd_map_sgls for SGL fabric memory
           passthrough (nab + hch)
         - tcm_loop: Convert I/O path to use target_submit_cmd_map_sgls (hch +
           nab)
         - tcm_vhost: Convert I/O path to use target_submit_cmd_map_sgls (nab
           + hch)
      
        The last series for adding a new target_submit_cmd_map_sgls() fabric
        caller (as requested by hch) that accepts pre-allocated SGL memory
        (using existing logic), along with converting tcm_loop + tcm_vhost has
        only been in -next for the last days, but has gotten enough review
        +testing and is clear enough a mechanical change that I think it's
        reasonable to merge for -rc1 code.
      
        Thanks again to everyone who contributed this round! Extra special
        thanks to Roland (PureStorage) for tracking down the qla2xxx target
        TMR response code endian issue, and to Paolo (Redhat) for resolving
        the long standing zero-length CDB issues within target-core between
        virtual and pSCSI backends."
      
      * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending: (44 commits)
        iscsi-target: Bump defaults for nopin_timeout + nopin_response_timeout values
        iscsit: proper endianess conversions
        iscsit: use the itt_t abstract type
        iscsit: add missing endianess conversion in iscsit_check_inaddr_any
        iscsit: remove incorrect unlock in iscsit_build_sendtargets_resp
        iscsit: mark various functions static
        target/iscsi: precedence bug in iscsit_set_dataout_sequence_values()
        target/usb-gadget: strlen() doesn't count the terminator
        target/usb-gadget: remove duplicate initialization
        tcm_vhost: Convert I/O path to use target_submit_cmd_map_sgls
        target: Add control CDB READ payload zero work-around
        tcm_loop: Convert I/O path to use target_submit_cmd_map_sgls
        target: Add target_submit_cmd_map_sgls for SGL fabric memory passthrough
        iscsi-target: Add explicit set of cache_dynamic_acls=1 for TPG demo-mode
        iscsi-target: Change iscsi_target_seq_pdu_list.c to honor MaxXmitDataSegmentLength
        iscsi-target: Add MaxXmitDataSegmentLength connection recovery check
        iscsi-target: Convert incoming PDU payload checks to MaxXmitDataSegmentLength
        iscsi-target: Enable MaxXmitDataSegmentLength operation in login path
        iscsi-target: Add base MaxXmitDataSegmentLength code
        target/file: Re-enable optional fd_buffered_io=1 operation
        ...
      a188e7e9
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · e1b28147
      Linus Torvalds authored
      Pull second s390 update from Martin Schwidefsky:
       "The big thing in this pull request is the UAPI patch from David, and
        worth mentioning is the page table dumper.  The rest are small
        improvements and bug fixes."
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/entry: fix svc number for TIF_SYSCALL system call restart
        s390/mm,vmem: fix vmem_add_mem()/vmem_remove_range()
        s390/vmalloc: have separate modules area
        s390/zcrypt: remove duplicated include from zcrypt_pcixcc.c
        s390/css_chars: remove superfluous ifdef
        s390/chsc: make headers usable
        s390/mm: let kernel text section always begin at 1MB
        s390/mm: fix mapping of read-only kernel text section
        s390/mm: add page table dumper
        s390: add support to start the kernel in 64 bit mode.
        s390/mm,pageattr: remove superfluous EXPORT_SYMBOLs
        s390/mm,pageattr: add more page table walk sanity checks
        s390/mm: fix pmd_huge() usage for kernel mapping
        s390/dcssblk: cleanup device attribute usage
        s390/mm: use pfmf instruction to initialize storage keys
        s390/facilities: cleanup PFMF and HPAGE machine facility detection
        UAPI: (Scripted) Disintegrate arch/s390/include/asm
      e1b28147
    • Linus Torvalds's avatar
      Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux · ba706765
      Linus Torvalds authored
      Pull nouveau drm fixes from Dave Airlie:
       "Just a bunch of nouveau fixes, Ben wants to get some alternate
        versions into stable."
      
      * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
        drm/nouveau/timer: bump ptimer's alarm delay from u32 to u64
        drm/nouveau/fan: fix a typo in PWM's input clock calculation
        drm/nv50/clk: wire up pll_calc hook
        drm/nouveau: remove unused _nouveau_parent_ctor
        drm/nouveau/bios: fix shadowing of ACPI ROMs larger than 64KiB
      ba706765
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal · 42859eea
      Linus Torvalds authored
      Pull generic execve() changes from Al Viro:
       "This introduces the generic kernel_thread() and kernel_execve()
        functions, and switches x86, arm, alpha, um and s390 over to them."
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal: (26 commits)
        s390: convert to generic kernel_execve()
        s390: switch to generic kernel_thread()
        s390: fold kernel_thread_helper() into ret_from_fork()
        s390: fold execve_tail() into start_thread(), convert to generic sys_execve()
        um: switch to generic kernel_thread()
        x86, um/x86: switch to generic sys_execve and kernel_execve
        x86: split ret_from_fork
        alpha: introduce ret_from_kernel_execve(), switch to generic kernel_execve()
        alpha: switch to generic kernel_thread()
        alpha: switch to generic sys_execve()
        arm: get rid of execve wrapper, switch to generic execve() implementation
        arm: optimized current_pt_regs()
        arm: introduce ret_from_kernel_execve(), switch to generic kernel_execve()
        arm: split ret_from_fork, simplify kernel_thread() [based on patch by rmk]
        generic sys_execve()
        generic kernel_execve()
        new helper: current_pt_regs()
        preparation for generic kernel_thread()
        um: kill thread->forking
        um: let signal_delivered() do SIGTRAP on singlestepping into handler
        ...
      42859eea
    • Linus Torvalds's avatar
      Merge branch 'for-linus-37rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml · f59b51fe
      Linus Torvalds authored
      Pull UML changes from Richard Weinberger:
       "UML receives this time only cleanups.
      
        The most outstanding change is the 'include "foo.h"' do 'include
        <foo.h>' conversion done by Al Viro.
      
        It touches many files, that's why the diffstat is rather big."
      
      * 'for-linus-37rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
        typo in UserModeLinux-HOWTO
        hppfs: fix the return value of get_inode()
        hostfs: drop vmtruncate
        um: get rid of pointless include "..." where include <...> will do
        um: move sysrq.h out of include/shared
        um/x86: merge 32 and 64 bit variants of ptrace.h
        um/x86: merge 32 and 64bit variants of checksum.h
      f59b51fe
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · aac2b1f5
      Linus Torvalds authored
      Pull networking updates from David Miller:
      
       1) UAPI changes for networking from David Howells
      
       2) A netlink dump is an operation we can sleep within, and therefore we
          need to make sure the dump provider module doesn't disappear on us
          meanwhile.  Fix from Gao Feng.
      
       3) Now that tunnels support GRO, we have to be more careful in
          skb_gro_reset_offset() otherwise we OOPS, from Eric Dumazet.
      
       4) We can end up processing packets for VLANs we aren't actually
          configured to be on, fix from Florian Zumbiehl.
      
       5) Fix routing cache removal regression in redirects and IPVS.  The
          core issue on the IPVS side is that it wants to rewrite who the
          nexthop is and we have to explicitly accomodate that case.  From
          Julian Anastasov.
      
       6) Error code return fixes all over the networking drivers from Peter
          Senna Tschudin.
      
       7) Fix routing cache removal regressions in IPSEC, from Steffen
          Klassert.
      
       8) Fix deadlock in RDS during pings, from Jeff Liu.
      
       9) Neighbour packet queue can trigger skb_under_panic() because we do
          not reset the network header of the SKB in the right spot.  From
          Ramesh Nagappa.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (61 commits)
        RDS: fix rds-ping spinlock recursion
        netdev/phy: Prototype of_mdio_find_bus()
        farsync: fix support for over 30 cards
        be2net: Remove code that stops further access to BE NIC based on UE bits
        pch_gbe: Fix build error by selecting all the possible dependencies.
        e1000e: add device IDs for i218
        ixgbe/ixgbevf: Limit maximum jumbo frame size to 9.5K to avoid Tx hangs
        ixgbevf: Set the netdev number of Tx queues
        UAPI: (Scripted) Disintegrate include/linux/tc_ematch
        UAPI: (Scripted) Disintegrate include/linux/tc_act
        UAPI: (Scripted) Disintegrate include/linux/netfilter_ipv6
        UAPI: (Scripted) Disintegrate include/linux/netfilter_ipv4
        UAPI: (Scripted) Disintegrate include/linux/netfilter_bridge
        UAPI: (Scripted) Disintegrate include/linux/netfilter_arp
        UAPI: (Scripted) Disintegrate include/linux/netfilter/ipset
        UAPI: (Scripted) Disintegrate include/linux/netfilter
        UAPI: (Scripted) Disintegrate include/linux/isdn
        UAPI: (Scripted) Disintegrate include/linux/caif
        net: fix typo in freescale/ucc_geth.c
        vxlan: fix more sparse warnings
        ...
      aac2b1f5
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc · 23d5385f
      Linus Torvalds authored
      Pull sparc update from David Miller:
       "This is just the UAPI commits for sparc via David Howells."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
        UAPI: (Scripted) Disintegrate arch/sparc/include/asm
      23d5385f