1. 28 1月, 2014 8 次提交
    • S
      sky2: initialize napi before registering device · 731073b9
      Stanislaw Gruszka 提交于
      There is race condition when call netif_napi_add() after
      register_netdevice(), as ->open() can be called without napi initialized
      and trigger BUG_ON() on napi_enable(), like on below messages:
      
      [    9.699863] sky2: driver version 1.30
      [    9.699960] sky2 0000:02:00.0: Yukon-2 EC Ultra chip revision 2
      [    9.700020] sky2 0000:02:00.0: irq 45 for MSI/MSI-X
      [    9.700498] ------------[ cut here ]------------
      [    9.703391] kernel BUG at include/linux/netdevice.h:501!
      [    9.703391] invalid opcode: 0000 [#1] PREEMPT SMP
      <snip>
      [    9.830018] Call Trace:
      [    9.830018]  [<fa996169>] sky2_open+0x309/0x360 [sky2]
      [    9.830018]  [<c1007210>] ? via_no_dac+0x40/0x40
      [    9.830018]  [<c1007210>] ? via_no_dac+0x40/0x40
      [    9.830018]  [<c135ed4b>] __dev_open+0x9b/0x120
      [    9.830018]  [<c1431cbe>] ? _raw_spin_unlock_bh+0x1e/0x20
      [    9.830018]  [<c135efd9>] __dev_change_flags+0x89/0x150
      [    9.830018]  [<c135f148>] dev_change_flags+0x18/0x50
      [    9.830018]  [<c13bb8e0>] devinet_ioctl+0x5d0/0x6e0
      [    9.830018]  [<c13bcced>] inet_ioctl+0x6d/0xa0
      
      To fix the problem patch changes the order of initialization.
      
      Bug report:
      https://bugzilla.kernel.org/show_bug.cgi?id=67151
      
      Reported-and-tested-by: ebrahim.azarisooreh@gmail.com
      Signed-off-by: NStanislaw Gruszka <stf_xl@wp.pl>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      731073b9
    • H
      net: Fix memory leak if TPROXY used with TCP early demux · a452ce34
      Holger Eitzenberger 提交于
      I see a memory leak when using a transparent HTTP proxy using TPROXY
      together with TCP early demux and Kernel v3.8.13.15 (Ubuntu stable):
      
      unreferenced object 0xffff88008cba4a40 (size 1696):
        comm "softirq", pid 0, jiffies 4294944115 (age 8907.520s)
        hex dump (first 32 bytes):
          0a e0 20 6a 40 04 1b 37 92 be 32 e2 e8 b4 00 00  .. j@..7..2.....
          02 00 07 01 00 00 00 00 00 00 00 00 00 00 00 00  ................
        backtrace:
          [<ffffffff810b710a>] kmem_cache_alloc+0xad/0xb9
          [<ffffffff81270185>] sk_prot_alloc+0x29/0xc5
          [<ffffffff812702cf>] sk_clone_lock+0x14/0x283
          [<ffffffff812aaf3a>] inet_csk_clone_lock+0xf/0x7b
          [<ffffffff8129a893>] netlink_broadcast+0x14/0x16
          [<ffffffff812c1573>] tcp_create_openreq_child+0x1b/0x4c3
          [<ffffffff812c033e>] tcp_v4_syn_recv_sock+0x38/0x25d
          [<ffffffff812c13e4>] tcp_check_req+0x25c/0x3d0
          [<ffffffff812bf87a>] tcp_v4_do_rcv+0x287/0x40e
          [<ffffffff812a08a7>] ip_route_input_noref+0x843/0xa55
          [<ffffffff812bfeca>] tcp_v4_rcv+0x4c9/0x725
          [<ffffffff812a26f4>] ip_local_deliver_finish+0xe9/0x154
          [<ffffffff8127a927>] __netif_receive_skb+0x4b2/0x514
          [<ffffffff8127aa77>] process_backlog+0xee/0x1c5
          [<ffffffff8127c949>] net_rx_action+0xa7/0x200
          [<ffffffff81209d86>] add_interrupt_randomness+0x39/0x157
      
      But there are many more, resulting in the machine going OOM after some
      days.
      
      From looking at the TPROXY code, and with help from Florian, I see
      that the memory leak is introduced in tcp_v4_early_demux():
      
        void tcp_v4_early_demux(struct sk_buff *skb)
        {
          /* ... */
      
          iph = ip_hdr(skb);
          th = tcp_hdr(skb);
      
          if (th->doff < sizeof(struct tcphdr) / 4)
              return;
      
          sk = __inet_lookup_established(dev_net(skb->dev), &tcp_hashinfo,
                             iph->saddr, th->source,
                             iph->daddr, ntohs(th->dest),
                             skb->skb_iif);
          if (sk) {
              skb->sk = sk;
      
      where the socket is assigned unconditionally to skb->sk, also bumping
      the refcnt on it.  This is problematic, because in our case the skb
      has already a socket assigned in the TPROXY target.  This then results
      in the leak I see.
      
      The very same issue seems to be with IPv6, but haven't tested.
      Reviewed-by: NFlorian Westphal <fw@strlen.de>
      Signed-off-by: NHolger Eitzenberger <holger@eitzenberger.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a452ce34
    • D
      Merge branch 'bonding' · 66dd1c07
      David S. Miller 提交于
      Veaceslav Falico says:
      
      ====================
      bonding: fix locking in bond_ab_arp_prob
      
      After the latest patches, on every call of bond_ab_arp_probe() without an
      active slave I see the following warning:
      
      [    7.912314] RTNL: assertion failed at net/core/dev.c (4494)
      ...
      [    7.922495]  [<ffffffff817acc6f>] dump_stack+0x51/0x72
      [    7.923714]  [<ffffffff8168795e>] netdev_master_upper_dev_get+0x6e/0x70
      [    7.924940]  [<ffffffff816a2a66>] rtnl_link_fill+0x116/0x260
      [    7.926143]  [<ffffffff817acc6f>] ? dump_stack+0x51/0x72
      [    7.927333]  [<ffffffff816a350c>] rtnl_fill_ifinfo+0x95c/0xb90
      [    7.928529]  [<ffffffff8167af2b>] ? __kmalloc_reserve+0x3b/0xa0
      [    7.929681]  [<ffffffff8167bfcf>] ? __alloc_skb+0x9f/0x1e0
      [    7.930827]  [<ffffffff816a3b64>] rtmsg_ifinfo+0x84/0x100
      [    7.931960]  [<ffffffffa00bca07>] bond_ab_arp_probe+0x1a7/0x370 [bonding]
      [    7.933133]  [<ffffffffa00bcd78>] bond_activebackup_arp_mon+0x1a8/0x2f0 [bonding]
      ...
      
      It happens because in bond_ab_arp_probe() we change the flags of a slave
      without holding the RTNL lock.
      
      To fix this - remove the useless curr_active_lock, RCUify it and lock RTNL
      while changing the slave's flags. Also, remove bond_ab_arp_probe() from
      under any locks in bond_ab_arp_mon().
      ====================
      Signed-off-by: NVeaceslav Falico <vfalico@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      66dd1c07
    • V
      bonding: restructure locking of bond_ab_arp_probe() · f2ebd477
      Veaceslav Falico 提交于
      Currently we're calling it from under RCU context, however we're using some
      functions that require rtnl to be held.
      
      Fix this by restructuring the locking - don't call it under any locks,
      aquire rcu_read_lock() if we're sending _only_ (i.e. we have the active
      slave present), and use rtnl locking otherwise - if we need to modify
      (in)active flags of a slave.
      
      CC: Jay Vosburgh <fubar@us.ibm.com>
      CC: Andy Gospodarek <andy@greyhouse.net>
      Signed-off-by: NVeaceslav Falico <vfalico@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f2ebd477
    • V
      bonding: RCUify bond_ab_arp_probe · 98b90f26
      Veaceslav Falico 提交于
      Currently bond_ab_arp_probe() is always called under rcu_read_lock(),
      however to work with curr_active_slave we're still holding the
      curr_slave_lock.
      
      To remove that curr_slave_lock - rcu_dereference the bond's
      curr_active_slave and use it further - so that we're sure the slave won't
      go away, and we don't care if it will change in the meanwhile.
      
      CC: Jay Vosburgh <fubar@us.ibm.com>
      CC: Andy Gospodarek <andy@greyhouse.net>
      Signed-off-by: NVeaceslav Falico <vfalico@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      98b90f26
    • N
      AF_PACKET: Add documentation for queue mapping fanout mode · bb9fbe2d
      Neil Horman 提交于
      Recently I added a new AF_PACKET fanout operation mode in commit
      2d36097d, but I forgot to document it.  Add PACKET_FANOUT_QM as an available mode
      in the af_packet documentation.  Applies to net-next.
      Signed-off-by: NNeil Horman <nhorman@tuxdriver.com>
      CC: "David S. Miller" <davem@davemloft.net>
      CC: Daniel Borkmann <dborkman@redhat.com>
      Acked-by: NDaniel Borkmann <dborkman@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bb9fbe2d
    • Y
      bnx2x: More Shutdown revisions · 5f6db130
      Yuval Mintz 提交于
      Submission d9aee591 "bnx2x: Don't release PCI bars on shutdown" separated
      the PCI remove and shutdown flows, but pci_disable_device() is still
      being called on both.
      As a result, a dev_WARN_ONCE will be hit during shutdown for every bnx2x
      VF probed on a hypervisor (as its shutdown callback will be called and later
      pci_disable_sriov() will call its remove callback).
      
      This calls the pci_disable_device() only on the remove flow.
      Signed-off-by: NYuval Mintz <yuvalmin@broadcom.com>
      Signed-off-by: NAriel Elior <ariele@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5f6db130
    • S
      net: ipv4: Use PTR_ERR_OR_ZERO · 27d79f3b
      Sachin Kamat 提交于
      PTR_RET is deprecated. Use PTR_ERR_OR_ZERO instead. While at it
      also include missing err.h header.
      Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      27d79f3b
  2. 27 1月, 2014 7 次提交
  3. 26 1月, 2014 17 次提交
    • J
      um: hostfs: make functions static · 9e443bc3
      James Hogan 提交于
      The hostfs_*() callback functions are all only used within
      hostfs_kern.c, so make them static.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: user-mode-linux-devel@lists.sourceforge.net
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      9e443bc3
    • R
      um: Include generic barrier.h · 9af2452a
      Richard Weinberger 提交于
      ...to get smp_store_release().
      Reported-by: NRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      9af2452a
    • R
      um: Removed unused attributes from thread_struct · 61aad98a
      Richard Weinberger 提交于
      temp_stack and mm_count have no users and can be killed.
      Signed-off-by: NRichard Weinberger <richard@nod.at>
      61aad98a
    • L
      Merge branch 'ipmi' (ipmi patches from Corey Minyard) · b2e448ec
      Linus Torvalds 提交于
      Merge ipmi fixes from Corey Minyard:
       "Just some collected fixes for 3.14.  Nothing huge"
      
      * emailed patches from Corey Minyard <minyard@acm.org>:
        ipmi: Cleanup error return
        ipmi: fix timeout calculation when bmc is disconnected
        ipmi: use USEC_PER_SEC instead of 1000000 for more meaningful
        ipmi: remove deprecated IRQF_DISABLED
      b2e448ec
    • C
      ipmi: Cleanup error return · d02b3709
      Corey Minyard 提交于
      Return proper errors for a lot of IPMI failure cases.  Also call
      pci_disable_device when IPMI PCI devices are removed.
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d02b3709
    • X
      ipmi: fix timeout calculation when bmc is disconnected · e21404dc
      Xie XiuQi 提交于
      Loading ipmi_si module while bmc is disconnected, we found the timeout
      is longer than 5 secs.  Actually it takes about 3 mins and 20
      secs.(HZ=250)
      
      error message as below:
        Dec 12 19:08:59 linux kernel: IPMI BT: timeout in RD_WAIT [ ] 1 retries left
        Dec 12 19:08:59 linux kernel: BT: write 4 bytes seq=0x01 03 18 00 01
        [...]
        Dec 12 19:12:19 linux kernel: IPMI BT: timeout in RD_WAIT [ ]
        Dec 12 19:12:19 linux kernel: failed 2 retries, sending error response
        Dec 12 19:12:19 linux kernel: IPMI: BT reset (takes 5 secs)
        Dec 12 19:12:19 linux kernel: IPMI BT: flag reset [ ]
      
      Function wait_for_msg_done() use schedule_timeout_uninterruptible(1) to
      sleep 1 tick, so we should subtract jiffies_to_usecs(1) instead of 100
      usecs from timeout.
      Reported-by: NHu Shiyuan <hushiyuan@huawei.com>
      Signed-off-by: NXie XiuQi <xiexiuqi@huawei.com>
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e21404dc
    • X
      ipmi: use USEC_PER_SEC instead of 1000000 for more meaningful · ccb3368c
      Xie XiuQi 提交于
      Use USEC_PER_SEC instead of 1000000, that making the later bugfix
      more clearly.
      Signed-off-by: NXie XiuQi <xiexiuqi@huawei.com>
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ccb3368c
    • M
      ipmi: remove deprecated IRQF_DISABLED · aa5b2bab
      Michael Opdenacker 提交于
      This patch proposes to remove the use of the IRQF_DISABLED flag
      
      It's a NOOP since 2.6.35 and it will be removed one day.
      Signed-off-by: NMichael Opdenacker <michael.opdenacker@free-electrons.com>
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      aa5b2bab
    • L
      Merge tag 'spi-v3.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · 2d2e7d19
      Linus Torvalds 提交于
      Pull spi updates from Mark Brown:
       "A respun version of the merges for the pull request previously sent
        with a few additional fixes.  The last two merges were fixed up by
        hand since the branches have moved on and currently have the prior
        merge in them.
      
        Quite a busy release for the SPI subsystem, mostly in cleanups big and
        small scattered through the stack rather than anything else:
      
         - New driver for the Broadcom BC63xx HSSPI controller
         - Fix duplicate device registration for ACPI
         - Conversion of s3c64xx to DMAEngine (this pulls in platform and DMA
           changes upon which the transiton depends)
         - Some small optimisations to reduce the amount of time we hold locks
           in the datapath, eliminate some redundant checks and the size of a
           spi_transfer
         - Lots of fixes, cleanups and general enhancements to drivers,
           especially the rspi and Atmel drivers"
      
      * tag 'spi-v3.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: (112 commits)
        spi: core: Fix transfer failure when master->transfer_one returns positive value
        spi: Correct set_cs() documentation
        spi: Clarify transfer_one() w.r.t. spi_finalize_current_transfer()
        spi: Spelling s/finised/finished/
        spi: sc18is602: Convert to use bits_per_word_mask
        spi: Remove duplicate code to set default bits_per_word setting
        spi/pxa2xx: fix compilation warning when !CONFIG_PM_SLEEP
        spi: clps711x: Add MODULE_ALIAS to support module auto-loading
        spi: rspi: Add missing clk_disable() calls in error and cleanup paths
        spi: rspi: Spelling s/transmition/transmission/
        spi: rspi: Add support for specifying CPHA/CPOL
        spi/pxa2xx: initialize DMA channels to -1 to prevent inadvertent match
        spi: rspi: Add more QSPI register documentation
        spi: rspi: Add more RSPI register documentation
        spi: rspi: Remove dependency on DMAE for SHMOBILE
        spi/s3c64xx: Correct indentation
        spi: sh: Use spi_sh_clear_bit() instead of open-coded
        spi: bitbang: Grammar s/make to make/to make/
        spi: sh-hspi: Spelling s/recive/receive/
        spi: core: Improve tx/rx_nbits check comments
        ...
      2d2e7d19
    • L
      Merge tag 'regulator-v3.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator · 15333539
      Linus Torvalds 提交于
      Pull regulator updates from Mark Brown:
       "A respin of the merges in the previous pull request with one extra
        fix.
      
        A quiet release for the regulator API, quite a large number of small
        improvements all over but other than the addition of new drivers for
        the AS3722 and MAX14577 there is nothing of substantial non-local
        impact"
      
      * tag 'regulator-v3.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: (47 commits)
        regulator: pfuze100-regulator: Improve dev_info() message
        regulator: pfuze100-regulator: Fix some checkpatch complaints
        regulator: twl: Fix checkpatch issue
        regulator: core: Fix checkpatch issue
        regulator: anatop-regulator: Remove unneeded memset()
        regulator: s5m8767: Update LDO index in s5m8767-regulator.txt
        regulator: as3722: set enable time for SD0/1/6
        regulator: as3722: detect SD0 low-voltage mode
        regulator: tps62360: Fix up a pointer-integer size mismatch warning
        regulator: anatop-regulator: Remove unneeded kstrdup()
        regulator: act8865: Fix build error when !OF
        regulator: act8865: register all regulators regardless of how many are used
        regulator: wm831x-dcdc: Remove unneeded 'err' label
        regulator: anatop-regulator: Add MODULE_ALIAS()
        regulator: act8865: fix incorrect devm_kzalloc for act8865
        regulator: act8865: Remove set_suspend_[en|dis]able implementation
        regulator: act8865: Remove unneeded regulator_unregister() calls
        regulator: s2mps11: Clean up redundant code
        regulator: tps65910: Simplify setting enable_mask for regulators
        regulator: act8865: add device tree binding doc
        ...
      15333539
    • L
      Merge tag 'regmap-v3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap · bb1b6490
      Linus Torvalds 提交于
      Pull regmap updates from Mark Brown:
       "Nothing terribly exciting with regmap this release, mainly a few small
        extensions to allow more devices to be supported:
      
         - Allow the bulk I/O APIs to be used with no-bus regmaps
         - Support interrupt controllers with zero ack base
         - Warning and spelling fixes"
      
      * tag 'regmap-v3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
        regmap: fix a couple of typos
        regmap: Allow regmap_bulk_write() to work for "no-bus" regmaps
        regmap: Allow regmap_bulk_read() to work for "no-bus" regmaps
        regmap: irq: Allow using zero value for ack_base
        regmap: Fix 'ret' would return an uninitialized value
      bb1b6490
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next · 4ba9920e
      Linus Torvalds 提交于
      Pull networking updates from David Miller:
      
       1) BPF debugger and asm tool by Daniel Borkmann.
      
       2) Speed up create/bind in AF_PACKET, also from Daniel Borkmann.
      
       3) Correct reciprocal_divide and update users, from Hannes Frederic
          Sowa and Daniel Borkmann.
      
       4) Currently we only have a "set" operation for the hw timestamp socket
          ioctl, add a "get" operation to match.  From Ben Hutchings.
      
       5) Add better trace events for debugging driver datapath problems, also
          from Ben Hutchings.
      
       6) Implement auto corking in TCP, from Eric Dumazet.  Basically, if we
          have a small send and a previous packet is already in the qdisc or
          device queue, defer until TX completion or we get more data.
      
       7) Allow userspace to manage ipv6 temporary addresses, from Jiri Pirko.
      
       8) Add a qdisc bypass option for AF_PACKET sockets, from Daniel
          Borkmann.
      
       9) Share IP header compression code between Bluetooth and IEEE802154
          layers, from Jukka Rissanen.
      
      10) Fix ipv6 router reachability probing, from Jiri Benc.
      
      11) Allow packets to be captured on macvtap devices, from Vlad Yasevich.
      
      12) Support tunneling in GRO layer, from Jerry Chu.
      
      13) Allow bonding to be configured fully using netlink, from Scott
          Feldman.
      
      14) Allow AF_PACKET users to obtain the VLAN TPID, just like they can
          already get the TCI.  From Atzm Watanabe.
      
      15) New "Heavy Hitter" qdisc, from Terry Lam.
      
      16) Significantly improve the IPSEC support in pktgen, from Fan Du.
      
      17) Allow ipv4 tunnels to cache routes, just like sockets.  From Tom
          Herbert.
      
      18) Add Proportional Integral Enhanced packet scheduler, from Vijay
          Subramanian.
      
      19) Allow openvswitch to mmap'd netlink, from Thomas Graf.
      
      20) Key TCP metrics blobs also by source address, not just destination
          address.  From Christoph Paasch.
      
      21) Support 10G in generic phylib.  From Andy Fleming.
      
      22) Try to short-circuit GRO flow compares using device provided RX
          hash, if provided.  From Tom Herbert.
      
      The wireless and netfilter folks have been busy little bees too.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (2064 commits)
        net/cxgb4: Fix referencing freed adapter
        ipv6: reallocate addrconf router for ipv6 address when lo device up
        fib_frontend: fix possible NULL pointer dereference
        rtnetlink: remove IFLA_BOND_SLAVE definition
        rtnetlink: remove check for fill_slave_info in rtnl_have_link_slave_info
        qlcnic: update version to 5.3.55
        qlcnic: Enhance logic to calculate msix vectors.
        qlcnic: Refactor interrupt coalescing code for all adapters.
        qlcnic: Update poll controller code path
        qlcnic: Interrupt code cleanup
        qlcnic: Enhance Tx timeout debugging.
        qlcnic: Use bool for rx_mac_learn.
        bonding: fix u64 division
        rtnetlink: add missing IFLA_BOND_AD_INFO_UNSPEC
        sfc: Use the correct maximum TX DMA ring size for SFC9100
        Add Shradha Shah as the sfc driver maintainer.
        net/vxlan: Share RX skb de-marking and checksum checks with ovs
        tulip: cleanup by using ARRAY_SIZE()
        ip_tunnel: clear IPCB in ip_tunnel_xmit() in case dst_link_failure() is called
        net/cxgb4: Don't retrieve stats during recovery
        ...
      4ba9920e
    • L
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 82c47766
      Linus Torvalds 提交于
      Pull perf fixes from Ingo Molnar:
       "A handful of tooling fixes"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf symbols: Load map before using map->map_ip()
        perf tools: Fix traceevent plugin path definitions
        perf symbols: Fix JIT symbol resolution on heap
        perf stat: Fix memory corruption of xyarray when cpumask is used
        perf evsel: Remove duplicate member zeroing after free
        perf tools: Ensure sscanf does not overrun the "mem" field
        perf stat: fix NULL pointer reference bug with event unit
        perf tools: Add support for the xtensa architecture
        perf session: Free cpu_map in perf_session__cpu_bitmap
        perf timechart: Fix wrong SVG height
      82c47766
    • L
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f6d13daa
      Linus Torvalds 提交于
      Pull scheduler fixes from Ingo Molnar:
       "A couple of regression fixes mostly hitting virtualized setups, but
        also some bare metal systems"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/x86/tsc: Initialize multiplier to 0
        sched/clock: Fixup early initialization
        sched/preempt/x86: Fix voluntary preempt for x86
        Revert "sched: Fix sleep time double accounting in enqueue entity"
      f6d13daa
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace · d4a63a83
      Linus Torvalds 提交于
      Pull user namespaces work from Eric Biederman:
       "The work to convert the kernel to use kuid_t and kgid_t has been
        finished since 3.12 so it is time to remove the scaffolding that
        allowed the work to progress incrementally.
      
        The first patch on this branch just removes the scaffolding, ensuring
        we will always get compile errors if people accidentally try the
        userspace and the kernel uid and gid types.  The second patch an
        overlooked and unused chunk of mips code that that fails to build
        after the first patch.
      
        The code hasn't been in linux-next for long (as I was out of it and
        could not sheppared the cold properly) but the patch has been around
        for a long time just waiting for the day when I had finished the
        uid/gid conversions.  Putting the code in linux-next did find the
        compile failure on mips so I took the time to get that fix reviewed
        and included.  Beyond that I am not too worried about errors because
        all these two patches do is delete a modest amount of code"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
        MIPS: VPE: Remove vpe_getuid and vpe_getgid
        userns:  userns: Remove UIDGID_STRICT_TYPE_CHECKS
      d4a63a83
    • L
      Merge tag 'arc-v3.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc · 7ae0e06b
      Linus Torvalds 提交于
      Pull ARC changes from Vineet Gupta:
       - IPI optimization and cleanups
       - Support for bootloader provided external Device Tree blobs
      
      * tag 'arc-v3.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc:
        ARC: [cmdline] support External Device Trees from u-boot
        ARC: [cmdline] uboot cmdline handling rework
        ARC: [SMP] optimize IPI send and receive
        ARC: [SMP] simplify IPI code
        ARC: [SMP] cpu halt interface doesn't need "self" cpu-id
        ARC: [SMP] IPI ACK interface doesn't need "self" cpu-id
        ARC: [SMP] cpumask not needed in IPI send path
      7ae0e06b
    • L
      Merge tag 'xtensa-next-20140123' of git://github.com/czankel/xtensa-linux · 9b83d851
      Linus Torvalds 提交于
      Pull Xtensa patches from Chris Zankel:
       "The major changes are adding support for SMP for Xtensa, fixing and
        cleaning up the ISS (simulator) network driver, and better support for
        device trees"
      
      * tag 'xtensa-next-20140123' of git://github.com/czankel/xtensa-linux: (40 commits)
        xtensa: implement ndelay
        xtensa: clean up udelay
        xtensa: enable HAVE_PERF_EVENTS
        xtensa: remap io area defined in device tree
        xtensa: support default device tree buses
        xtensa: initialize device tree clock sources
        xtensa: xtfpga: fix definitions of platform devices
        xtensa: standardize devicetree cpu compatible strings
        xtensa: avoid duplicate of IO range definitions
        xtensa: fix ATOMCTL register documentation
        xtensa: Enable irqs after cpu is set online
        xtensa: ISS: raise network polling rate to 10 times/sec
        xtensa: remove unused XTENSA_ISS_NETWORK Kconfig parameter
        xtensa: ISS: avoid simple_strtoul usage
        xtensa: Switch to sched_clock_register()
        xtensa: implement CPU hotplug
        xtensa: add SMP support
        xtensa: add MX irqchip
        xtensa: clear timer IRQ unconditionally in its handler
        xtensa: clean up do_interrupt/do_IRQ
        ...
      9b83d851
  4. 25 1月, 2014 8 次提交
    • I
      Merge tag 'perf-urgent-for-mingo' of... · 993e5ee6
      Ingo Molnar 提交于
      Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
      
      Pull perf/urgent fixes from Arnaldo Carvalho de Melo:
      
        * Fix traceevent plugin path definitions (Josh Boyer)
      
        * Load map before using map->map_ip() (Masami Hiramatsu)
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      993e5ee6
    • L
      Merge tag 'vfio-v3.14-rc1' of git://github.com/awilliam/linux-vfio · 2d08cd0e
      Linus Torvalds 提交于
      Pull vfio update from Alex Williamson:
       - convert to misc driver to support module auto loading
       - remove unnecessary and dangerous use of device_lock
      
      * tag 'vfio-v3.14-rc1' of git://github.com/awilliam/linux-vfio:
        vfio-pci: Don't use device_lock around AER interrupt setup
        vfio: Convert control interface to misc driver
        misc: Reserve minor for VFIO
      2d08cd0e
    • L
      Merge tag 'md/3.14' of git://neil.brown.name/md · 5c85121b
      Linus Torvalds 提交于
      Pull md updates from Neil Brown:
       "All bug fixes, two tagged for -stable"
      
      * tag 'md/3.14' of git://neil.brown.name/md:
        md/raid5: close recently introduced race in stripe_head management.
        md/raid5: fix long-standing problem with bitmap handling on write failure.
        md: check command validity early in md_ioctl().
        md: ensure metadata is writen after raid level change.
        md/raid10: avoid fullsync when not necessary.
        md: allow a partially recovered device to be hot-added to an array.
        md: Change handling of save_raid_disk and metadata update during recovery.
      5c85121b
    • L
      Merge tag 'devicetree-for-3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 4d8880a0
      Linus Torvalds 提交于
      Pull devicetree updates from Rob Herring:
       - Add new documents with guidelines for DT binding stability and review
         process.  This is one of the outcomes of Kernel Summit DT discussions
       - Remove a bunch of device_type usage which is only for OF and
         deprecated with FDT
       - Fix a long standing issue with compatible string match ordering
       - Various minor binding documentation updates
      
      * tag 'devicetree-for-3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        dt-bindings: add rockchip vendor prefix
        serial: vt8500: Add missing binding document for arch-vt8500 serial driver.
        dt/bindings: submitting patches and ABI documents
        DT: Add vendor prefix for Emerging Display Technologies
        of: add vendor prefixe for EPFL
        of: add vendor prefix for Gumstix
        of: add vendor prefix for Ka-Ro electronics GmbH
        devicetree: macb: Document clock properties
        dts: bindings: trivial clock bindings doc fixes
        of: Fix __of_device_is_available check
        dt/bindings: Remove device_type "serial" from marvell,mv64360-mpsc
        dt/bindings: remove device_type "network" references
        dt/bindings: remove users of device_type "mdio"
        dt/bindings: Remove references to linux,phandle properties
        dt/bindings: Remove all references to device_type "ethernet-phy"
        of: irq: Ignore disabled intc's when searching map
        of: irq: Ignore disabled interrupt controllers
        OF: base: match each node compatible against all given matches first
        dt-bindings: add GIC-400 binding
      4d8880a0
    • L
      Merge tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband · 8e585a6c
      Linus Torvalds 提交于
      Pull infiniband updates from Roland Dreier:
       "Main batch of InfiniBand/RDMA changes for 3.14:
         - Flow steering for InfiniBand UD traffic
         - IP-based addressing for IBoE aka RoCE
         - Pass SRP submaintainership from Dave to Bart
         - SRP transport fixes from Bart
         - Add the new Cisco usNIC low-level device driver
         - Various other fixes"
      
      * tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband: (75 commits)
        IB/mlx5: Verify reserved fields are cleared
        IB/mlx5: Remove old field for create mkey mailbox
        IB/mlx5: Abort driver cleanup if teardown hca fails
        IB/mlx5: Allow creation of QPs with zero-length work queues
        mlx5_core: Fix PowerPC support
        mlx5_core: Improve debugfs readability
        IB/mlx5: Add support for resize CQ
        IB/mlx5: Implement modify CQ
        IB/mlx5: Make sure doorbell record is visible before doorbell
        mlx5_core: Use mlx5 core style warning
        IB/mlx5: Clear out struct before create QP command
        mlx5_core: Fix out arg size in access_register command
        RDMA/nes: Slight optimization of Ethernet address compare
        IB/qib: Fix QP check when looping back to/from QP1
        RDMA/cxgb4: Fix gcc warning on 32-bit arch
        IB/usnic: Remove unused includes of <linux/version.h>
        RDMA/amso1100: Add check if cache memory was allocated before freeing it
        IPoIB: Report operstate consistently when brought up without a link
        IB/core: Fix unused variable warning
        RDMA/cma: Handle global/non-linklocal IPv6 addresses in cma_check_linklocal()
        ...
      8e585a6c
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 1b59bab5
      Linus Torvalds 提交于
      Pull input subsystem updates from Dmitry Torokhov:
       "Just a swath of driver fixes and cleanups, no new drivers this time
        (although ALPS now supports one of the newer protocols, more to come)"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (57 commits)
        Input: wacom - add support for DTU-1031
        Input: wacom - fix wacom->shared guards for dual input devices
        Input: edt_ft5x06 - use devm_* functions where appropriate
        Input: hyperv-keyboard - pass through 0xE1 prefix
        Input: logips2pp - fix spelling s/reciver/receiver/
        Input: delete non-required instances of include <linux/init.h>
        Input: twl4030-keypad - convert to using managed resources
        Input: twl6040-vibra - remove unneeded check for CONFIG_OF
        Input: twl4030-keypad - add device tree support
        Input: twl6040-vibra - add missing of_node_put
        Input: twl4030-vibra - add missing of_node_put
        Input: i8042 - cleanup SERIO_I8042 dependencies
        Input: i8042 - select ARCH_MIGHT_HAVE_PC_SERIO on x86
        Input: i8042 - select ARCH_MIGHT_HAVE_PC_SERIO on unicore32
        Input: i8042 - select ARCH_MIGHT_HAVE_PC_SERIO on sparc
        Input: i8042 - select ARCH_MIGHT_HAVE_PC_SERIO for SH_CAYMAN
        Input: i8042 - select ARCH_MIGHT_HAVE_PC_SERIO on powerpc
        Input: i8042 - select ARCH_MIGHT_HAVE_PC_SERIO on mips
        Input: i8042 - select ARCH_MIGHT_HAVE_PC_SERIO on IA64
        Input: i8042 - select ARCH_MIGHT_HAVE_PC_SERIO on ARM/Footbridge
        ...
      1b59bab5
    • L
      Merge tag 'fbdev-3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux · b788769e
      Linus Torvalds 提交于
      Pull fbdev changes from Tomi Valkeinen:
       "This is a rather boring pull request.  There is one new fb driver,
        OpenCores VGA/LCD, but other than that it's just minor cleanups and
        fixes"
      
      * tag 'fbdev-3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux: (51 commits)
        i810: delete useless variable
        video: add OpenCores VGA/LCD framebuffer driver
        video/logo: Remove MIPS-specific include section
        tgafb: potential NULL dereference in init
        video: mmp: Using plain integer as NULL pointer
        video: mmp: delete a stray mutex_unlock()
        video: amba-clcd: Make CLCD driver available on more platforms
        video: Replace local macro with PCI standard macro
        fbmem: really support wildcard video=options for all fbdev drivers
        video: vgacon: Don't build on arm64
        video: mx3fb: Allow blocking during framebuffer allocation
        fbcon: Fix memory leak in fbcon_exit().
        fbcon: trivial optimization for fbcon_exit
        video: pxa168fb: Cleanup pxa168fb.h file
        video: pxa: Cleanup video-pxafb.h header
        video: msm: Cleanup video-msm_fb.h header
        video: ep93xx: Cleanup video-ep93xx.h header
        video: mxsfb: fix broken videomode selection
        video: mxsfb: convert pr_debug()/dev_dbg() to pr_err()/dev_err() for error messages
        video: vmlfb: remove unnecessary pci_set_drvdata()
        ...
      b788769e
    • L
      Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux · 91466574
      Linus Torvalds 提交于
      Pull thermal management updates from Zhang Rui:
       "This time, the biggest change is the work of representing hardware
        thermal properties in device tree infrastructure.
      
        This work includes the introduction of a device tree bindings for
        describing the hardware thermal behavior and limits, and also a parser
        to read and interpret the data, and build thermal zones and thermal
        binding parameters.  It also contains three examples on how to use the
        new representation on sensor devices, using three different drivers to
        accomplish it.  One driver is in thermal subsystem, the TI SoC
        thermal, and the other two drivers are in hwmon subsystem.
      
        Actually, this would be the first step of the complete work because we
        still need to check other potential drivers to be converted and then
        validate the proposed API.  But the reason why I include it in this
        pull request is that, first, this change does not hurt any others
        without using this approach, second, the principle and concept of this
        change would not break after converting the remaining drivers.  BTW,
        as you can see, there are several points in this change that do not
        belong to thermal subsystem.  Because it has been suggested by Guenter
        R that in such cases, it is recommended to send the complete series
        via one single subsystem.
      
        Specifics:
      
         - representing hardware thermal properties in device tree
           infrastructure
      
         - fix a regression that the imx thermal driver breaks system suspend.
      
         - introduce ACPI INT3403 thermal driver to retrieve temperature data
           from the INT3403 ACPI device object present on some systems.
      
         - introduce debug statement for thermal core and step_wise governor.
      
         - assorted fixes and cleanups for thermal core, cpu cooling, exynos
           thrmal, intel powerclamp and imx thermal driver"
      
      * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux: (34 commits)
        thermal: remove const flag from .ops of imx thermal
        Thermal: update thermal zone device after setting emul_temp
        intel_powerclamp: Fix cstate counter detection.
        thermal: imx: add necessary clk operation
        Thermal cpu cooling: return error if no valid cpu frequency entry
        thermal: fix cpu_cooling max_level behavior
        thermal: rcar-thermal: Enable driver compilation with COMPILE_TEST
        thermal: debug: add debug statement for core and step_wise
        thermal: imx_thermal: add module device table
        drivers: thermal: Mark function as static in x86_pkg_temp_thermal.c
        thermal:samsung: fix compilation warning
        thermal: imx: correct suspend/resume flow
        thermal: exynos: fix error return code
        Thermal: ACPI INT3403 thermal driver
        MAINTAINERS: add thermal bindings entry in thermal domain
        arm: dts: make OMAP4460 bandgap node to belong to OCP
        arm: dts: make OMAP443x bandgap node to belong to OCP
        arm: dts: add cooling properties on omap5 cpu node
        arm: dts: add omap5 thermal data
        arm: dts: add omap5 CORE thermal data
        ...
      91466574