1. 28 Feb, 2018 3 commits
    • Lorenzo Bianconi's avatar
      mt76x2: remove warnings in mt76x2_mac_write_txwi() · 09e93f28
      Lorenzo Bianconi authored
      Fix following sparse warnings in mt76x2_mac_write_txwi:
      - drivers/net/wireless/mediatek/mt76/mt76x2_mac.c:201:26: warning:
        incorrect type in assignment (different base types)
      - drivers/net/wireless/mediatek/mt76/mt76x2_mac.c:201:26: expected
        restricted __le32 [usertype] iv
      - drivers/net/wireless/mediatek/mt76/mt76x2_mac.c:201:26: got unsigned
        int [unsigned] [usertype] <noident>
      - drivers/net/wireless/mediatek/mt76/mt76x2_mac.c:202:27: warning:
        incorrect type in assignment (different base types)
      - drivers/net/wireless/mediatek/mt76/mt76x2_mac.c:202:27: expected
        restricted __le32 [usertype] eiv
      - drivers/net/wireless/mediatek/mt76/mt76x2_mac.c:202:27: got unsigned
        int [unsigned] [usertype] <noident>
      
      Fixes: 23405236 ("mt76: fix transmission of encrypted management frames")
      Signed-off-by: default avatarLorenzo Bianconi <lorenzo.bianconi@redhat.com>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      09e93f28
    • Matt Redfearn's avatar
      ssb: Prevent build of PCI host features in module · 882164a4
      Matt Redfearn authored
      Attempting to build ssb.ko with CONFIG_SSB_DRIVER_PCICORE=y results in
      a build error due to use of symbols not exported from vmlinux:
      
      ERROR: "pcibios_enable_device" [drivers/ssb/ssb.ko] undefined!
      ERROR: "register_pci_controller" [drivers/ssb/ssb.ko] undefined!
      make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1
      
      To prevent this, don't allow the host mode feature to be built if
      CONFIG_SSB=m
      Signed-off-by: default avatarMatt Redfearn <matt.redfearn@mips.com>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      882164a4
    • Denis 'GNUtoo' Carikli's avatar
      bcma: add HP Stream Notebook · 985324a1
      Denis 'GNUtoo' Carikli authored
      In this laptop we have the following PCI device:
      02:00.0 Network controller [0280]: Broadcom Limited BCM43142 802.11b/g/n [14e4:4365] (rev 01)
      	Subsystem: Hewlett-Packard Company BCM43142 802.11b/g/n [103c:804a]
      	[...]
      	Region 0: Memory at 91000000 (64-bit, non-prefetchable) [size=32K]
      	[...]
      
      With this patch, we can now see its WiFi chip:
        bcma: bus0: Found chip with id 43142, rev 0x01 and package 0x08
        bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x28, class 0x0)
        bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x21, class 0x0)
        bcma: bus0: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x16, class 0x0)
        bcma: bus0: Core 3 found: UNKNOWN (manuf 0x43B, id 0x368, rev 0x00, class 0x0)
        bcma: bus0: Found rev 15 PMU (capabilities 0x518C5E0F)
        bcma: bus0: SPROM offset 0x840
        bcma: bus0: Found SPROM revision 10
        bcma: bus0: Workarounds unknown or not needed for device 0xA886
        bcma: bus0: Bus registered
      
      But it not yet supported by brcmsmac so it won't work for now:
        brcmsmac bcma0:1: brcms_b_attach wl0: vendor 0x14e4 device 0x4365
        brcmsmac: unknown device id 4365
      Signed-off-by: default avatarDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      985324a1
  2. 27 Feb, 2018 34 commits
  3. 24 Feb, 2018 1 commit
  4. 23 Feb, 2018 2 commits
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 9cb9c07d
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) Fix TTL offset calculation in mac80211 mesh code, from Peter Oh.
      
       2) Fix races with procfs in ipt_CLUSTERIP, from Cong Wang.
      
       3) Memory leak fix in lpm_trie BPF map code, from Yonghong Song.
      
       4) Need to use GFP_ATOMIC in BPF cpumap allocations, from Jason Wang.
      
       5) Fix potential deadlocks in netfilter getsockopt() code paths, from
          Paolo Abeni.
      
       6) Netfilter stackpointer size checks really are needed to validate
          user input, from Florian Westphal.
      
       7) Missing timer init in x_tables, from Paolo Abeni.
      
       8) Don't use WQ_MEM_RECLAIM in mac80211 hwsim, from Johannes Berg.
      
       9) When an ibmvnic device is brought down then back up again, it can be
          sent queue entries from a previous session, handle this properly
          instead of crashing. From Thomas Falcon.
      
      10) Fix TCP checksum on LRO buffers in mlx5e, from Gal Pressman.
      
      11) When we are dumping filters in cls_api, the output SKB is empty, and
          the filter we are dumping is too large for the space in the SKB, we
          should return -EMSGSIZE like other netlink dump operations do.
          Otherwise userland has no signal that is needs to increase the size
          of its read buffer. From Roman Kapl.
      
      12) Several XDP fixes for virtio_net, from Jesper Dangaard Brouer.
      
      13) Module refcount leak in netlink when a dump start fails, from Jason
          Donenfeld.
      
      14) Handle sub-optimal GSO sizes better in TCP BBR congestion control,
          from Eric Dumazet.
      
      15) Releasing bpf per-cpu arraymaps can take a long time, add a
          condtional scheduling point. From Eric Dumazet.
      
      16) Implement retpolines for tail calls in x64 and arm64 bpf JITs. From
          Daniel Borkmann.
      
      17) Fix page leak in gianfar driver, from Andy Spencer.
      
      18) Missed clearing of estimator scratch buffer, from Eric Dumazet.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (76 commits)
        net_sched: gen_estimator: fix broken estimators based on percpu stats
        gianfar: simplify FCS handling and fix memory leak
        ipv6 sit: work around bogus gcc-8 -Wrestrict warning
        macvlan: fix use-after-free in macvlan_common_newlink()
        bpf, arm64: fix out of bounds access in tail call
        bpf, x64: implement retpoline for tail call
        rxrpc: Fix send in rxrpc_send_data_packet()
        net: aquantia: Fix error handling in aq_pci_probe()
        bpf: fix rcu lockdep warning for lpm_trie map_free callback
        bpf: add schedule points in percpu arrays management
        regulatory: add NUL to request alpha2
        ibmvnic: Fix early release of login buffer
        net/smc9194: Remove bogus CONFIG_MAC reference
        net: ipv4: Set addr_type in hash_keys for forwarded case
        tcp_bbr: better deal with suboptimal GSO
        smsc75xx: fix smsc75xx_set_features()
        netlink: put module reference if dump start fails
        selftests/bpf/test_maps: exit child process without error in ENOMEM case
        selftests/bpf: update gitignore with test_libbpf_open
        selftests/bpf: tcpbpf_kern: use in6_* macros from glibc
        ..
      9cb9c07d
    • Linus Torvalds's avatar
      Merge branch 'fixes-v4.16-rc3' of... · 2eb02aa9
      Linus Torvalds authored
      Merge branch 'fixes-v4.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
      
      Pull security subsystem fixes from James Morris:
      
       - keys fixes via David Howells:
            "A collection of fixes for Linux keyrings, mostly thanks to Eric
             Biggers:
      
              - Fix some PKCS#7 verification issues.
      
              - Fix handling of unsupported crypto in X.509.
      
              - Fix too-large allocation in big_key"
      
       - Seccomp updates via Kees Cook:
            "These are fixes for the get_metadata interface that landed during
             -rc1. While the new selftest is strictly not a bug fix, I think
             it's in the same spirit of avoiding bugs"
      
       - an IMA build fix from Randy Dunlap
      
      * 'fixes-v4.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
        integrity/security: fix digsig.c build error with header file
        KEYS: Use individual pages in big_key for crypto buffers
        X.509: fix NULL dereference when restricting key with unsupported_sig
        X.509: fix BUG_ON() when hash algorithm is unsupported
        PKCS#7: fix direct verification of SignerInfo signature
        PKCS#7: fix certificate blacklisting
        PKCS#7: fix certificate chain verification
        seccomp: add a selftest for get_metadata
        ptrace, seccomp: tweak get_metadata behavior slightly
        seccomp, ptrace: switch get_metadata types to arch independent
      2eb02aa9