Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
303216e
batman-adv: Avoid uninitialized chaddr when handling DHCP
ecsv Jul 22, 2020
d8bf0c0
batman-adv: Fix own OGM check in aggregated OGMs
T-X Jul 23, 2020
279e89b
batman-adv: bla: use netif_rx_ni when not in interrupt context
Aug 18, 2020
cc5453a
netfilter: conntrack: allow sctp hearbeat after connection re-use
Aug 18, 2020
fce2ff7
nl80211: fix NL80211_ATTR_HE_6GHZ_CAPABILITY usage
jmberg-intel Aug 5, 2020
68528d9
rxrpc: Keep the ACK serial in a var in rxrpc_input_ack()
dhowells Aug 20, 2020
4700c4d
rxrpc: Fix loss of RTT samples due to interposed ACK
dhowells Aug 19, 2020
1d4adfa
rxrpc: Make rxrpc_kernel_get_srtt() indicate validity
dhowells Aug 20, 2020
4f4c2c0
afs: Remove afs_vlserver->probe.have_result
dhowells Aug 19, 2020
fb72cd3
afs: Expose information from afs_vlserver through /proc for debugging
dhowells Aug 20, 2020
b95b309
afs: Don't use VL probe running state to make decisions outside probe…
dhowells Aug 19, 2020
e4686c7
afs: Fix error handling in VL server rotation
dhowells Aug 20, 2020
226a88d
netfilter: nft_set_rbtree: Handle outcomes of tree rotations in overl…
sbrivio-rh Aug 19, 2020
0726763
netfilter: nft_set_rbtree: Detect partial overlap with start endpoint…
sbrivio-rh Aug 19, 2020
6f03bf4
netfilter: nf_tables: add NFTA_SET_USERDATA if not null
ummakynes Aug 20, 2020
da9125d
netfilter: nf_tables: incorrect enum nft_list_attributes definition
ummakynes Aug 20, 2020
1e105e6
netfilter: nf_tables: fix destination register zeroing
Aug 20, 2020
100e334
net: hns: Fix memleak in hns_nic_dev_probe
dinghaoliu Aug 24, 2020
7ef1fc5
net: systemport: Fix memleak in bcm_sysport_probe
dinghaoliu Aug 24, 2020
a26aea2
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf
davem330 Aug 24, 2020
3622adb
ipv6: ndisc: adjust ndisc_ifinfo_sysctl_change prototype
tklauser Aug 24, 2020
1838d6c
ravb: Fixed to be able to unload modules
y-ashiduka Aug 20, 2020
3106ecb
sctp: not disable bh in the whole sctp_get_port_local()
lxin Aug 21, 2020
d3b990b
netlabel: fix problems with mapping removal
pcmoore Aug 21, 2020
1ee39c1
drivers/net/wan/lapbether: Added needed_tailroom
Aug 21, 2020
be769db
net: Get rid of consume_skb when tracing is off
herbertx Aug 21, 2020
5978fac
net: dsa: sja1105: Do not use address of compatible member in sja1105…
nathanchance Aug 21, 2020
d0cac91
MAINTAINERS: GENET: Add missing platform data file
ffainelli Aug 22, 2020
9fac261
MAINTAINERS: B53: Add DT binding file
ffainelli Aug 22, 2020
f69ccc5
MAINTAINERS: GENET: Add DT binding file
ffainelli Aug 22, 2020
ccaab4d
MAINTAINERS: GENET: Add UniMAC MDIO controller files
ffainelli Aug 22, 2020
e063713
MAINTAINERS: Add entry for Broadcom Ethernet PHY drivers
ffainelli Aug 22, 2020
3ad1b1e
MAINTAINERS: Remove self from PHY LIBRARY
ffainelli Aug 22, 2020
799b871
Merge branch 'MAINTAINERS-Remove-self-from-PHY-LIBRARY'
davem330 Aug 24, 2020
f97c04c
NFC: st95hf: Fix memleak in st95hf_in_send_cmd
dinghaoliu Aug 23, 2020
e2d79cd
net: arc_emac: Fix memleak in arc_mdio_probe
dinghaoliu Aug 23, 2020
15ac5cd
firestream: Fix memleak in fs_open
dinghaoliu Aug 23, 2020
4341b7d
dt-bindings: net: dsa: Fix typo
shifty91 Aug 23, 2020
59ebb43
net: ocelot: Add of_node_put() before return statement
Sylfrena Aug 23, 2020
966b826
sfc: fix boolreturn.cocci warning and rename function
ecree-solarflare Aug 24, 2020
99408c4
Merge tag 'batadv-net-for-davem-20200824' of git://git.open-mesh.org/…
davem330 Aug 25, 2020
b474959
bpf: Fix a buffer out-of-bound access when filling raw_tp link_info
yonghong-song Aug 21, 2020
2b10af3
selftests/bpf: Fix test_progs-flavor run getting number of tests
netoptimizer Aug 24, 2020
7787b6f
bpf, sysctl: Let bpf_stats_handler take a kernel pointer buffer
tklauser Aug 24, 2020
b274e47
gtp: add GTPA_LINK info to msg sent to userspace
NicolasDichtel Aug 25, 2020
8e4efd4
net: dsa: mt7530: Add of_node_put() before break and return statements
Sylfrena Aug 24, 2020
e104684
net: caif: fix error code handling
lzto Aug 24, 2020
99d469f
net: ethernet: ti: cpsw: fix clean up of vlan mc entries for host port
Aug 24, 2020
2c6500e
net: ethernet: ti: cpsw_new: fix clean up of vlan mc entries for host…
Aug 24, 2020
9f13457
ibmvnic fix NULL tx_pools and rx_tools issue at do_reset
Aug 25, 2020
2e1ec86
net: dp83869: Fix RGMII internal delay configuration
Aug 26, 2020
c1c2d77
bnxt_en: Don't query FW when netif_running() is false.
pavanchebbi Aug 26, 2020
dbbfa96
bnxt_en: Check for zero dir entries in NVRAM.
Aug 26, 2020
7de6514
bnxt_en: Fix ethtool -S statitics with XDP or TCs enabled.
Aug 26, 2020
df3875e
bnxt_en: Fix PCI AER error recovery flow
Aug 26, 2020
b148bb2
bnxt_en: Fix possible crash in bnxt_fw_reset_task().
Aug 26, 2020
12cce90
bnxt_en: fix HWRM error when querying VF temperature
Aug 26, 2020
5fa6552
bnxt_en: init RSS table for Minimal-Static VF reservation
Aug 26, 2020
b43b9f5
bnxt_en: Setup default RSS map in all scenarios.
Aug 26, 2020
0a3445b
Merge branch 'bnxt_en-Bug-fixes'
davem330 Aug 26, 2020
a156998
net: hns3: Fix for geneve tx checksum bug
cybertan Aug 26, 2020
5fd99b5
net: cdc_ncm: Fix build error
Aug 26, 2020
09e31cf
taprio: Fix using wrong queues in gate mask
vcgomes Aug 25, 2020
1cec170
mptcp: free acked data before waiting for more memory
Aug 25, 2020
91244d1
drivers/net/wan/lapbether: Set network_header before transmitting
Aug 26, 2020
7f6f32b
ipv4: Silence suspicious RCU usage warning
idosch Aug 26, 2020
96e97bc
net: disable netpoll on fresh napis
kuba-moo Aug 26, 2020
96ecdcc
bnxt: don't enable NAPI until rings are ready
kuba-moo Aug 26, 2020
5875568
Merge branch 'net-fix-netpoll-crash-with-bnxt'
davem330 Aug 26, 2020
8ed37e7
mac80211: use rate provided via status->rate on ieee80211_tx_status_e…
nbd168 Aug 21, 2020
43cd72c
mac80211: factor out code to look up the average packet length durati…
nbd168 Aug 21, 2020
f01cfba
mac80211: improve AQL aggregation estimation for low data rates
nbd168 Aug 21, 2020
3579994
wireless: fix wrong 160/80+80 MHz setting
shaydevel Aug 26, 2020
47caf68
cfg80211: regulatory: reject invalid hints
jmberg-intel Aug 19, 2020
47df8e0
mac80211: reduce packet loss event false positives
nbd168 Aug 8, 2020
2d9b555
cfg80211: Adjust 6 GHz frequency to channel conversion
Jun 19, 2020
a092b72
net: usb: Fix uninit-was-stored issue in asix_read_phy_addr()
himadrics Aug 27, 2020
645f089
net: Fix some comments
MiaoheLin Aug 27, 2020
af8ea11
net: ethernet: ti: cpsw_new: fix error handling in cpsw_ndo_vlan_rx_k…
Aug 27, 2020
8d73a73
Merge tag 'rxrpc-fixes-20200820' of git://git.kernel.org/pub/scm/linu…
davem330 Aug 27, 2020
b43c75a
rxrpc: Fix memory leak in rxkad_verify_response()
dinghaoliu Aug 27, 2020
fa45056
selftests/bpf: Fix massive output from test_maps
netoptimizer Aug 26, 2020
51458c9
Merge tag 'mac80211-for-davem-2020-08-28' of git://git.kernel.org/pub…
davem330 Aug 28, 2020
174bce3
netlink: fix a data race in netlink_rcv_wake()
Aug 26, 2020
f272285
net: dsa: mt7530: fix advertising unsupported 1000baseT_Half
Aug 27, 2020
5438dd4
net_sched: fix error path in red_init()
congwang Aug 27, 2020
c8146fe
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
davem330 Aug 28, 2020
3168c15
libbpf: Fix build failure from uninitialized variable warning
guidosarducci Aug 31, 2020
1eb832a
tools/bpf: build: Make sure resolve_btfids cleans up after itself
tohojo Sep 1, 2020
21e9ba5
libbpf: Remove arch-specific include path in Makefile
rnav Sep 2, 2020
dc0988b
bpf: Do not use bucket_lock for hashmap iterator
yonghong-song Sep 2, 2020
4daab71
selftests/bpf: Add bpf_{update, delete}_map_elem in hashmap iter program
yonghong-song Sep 2, 2020
e6135df
Merge branch 'hashmap_iter_bucket_lock_fix'
Sep 4, 2020
e6a18d3
bpf: Fix clobbering of r2 in bpf_gen_ld_abs
borkmann Sep 7, 2020
746f534
tools/libbpf: Avoid counting local symbols in ABI check
guidosarducci Sep 5, 2020
fde6ded
docs/bpf: Fix ringbuf documentation
anakryiko Sep 10, 2020
2b1667e
xsk: Fix number of pinned pages/umem size discrepancy
Sep 10, 2020
65dce59
docs/bpf: Remove source code links
anakryiko Sep 15, 2020
1f352f0
adding ci files
kernel-patches-bot Sep 15, 2020
eb7ad51
Running the eBPF test_verifier leads to random errors looking like this:
apalos Sep 15, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
sudo: required
language: bash
dist: bionic
services:
- docker

env:
global:
- PROJECT_NAME='libbpf'
- AUTHOR_EMAIL="$(git log -1 --pretty=\"%aE\")"
- REPO_ROOT="$TRAVIS_BUILD_DIR"
- CI_ROOT="$REPO_ROOT/travis-ci"
- VMTEST_ROOT="$CI_ROOT/vmtest"

addons:
apt:
packages:
- qemu-kvm
- zstd
- binutils-dev
- elfutils
- libcap-dev
- libelf-dev
- libdw-dev
- python3-docutils

jobs:
include:
- stage: Builds & Tests
name: Kernel LATEST + selftests
language: bash
env: KERNEL=LATEST
script: $CI_ROOT/vmtest/run_vmtest.sh || travis_terminate 1
5 changes: 1 addition & 4 deletions Documentation/bpf/ringbuf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,6 @@ in the order of reservations, but only after all previous records where
already committed. It is thus possible for slow producers to temporarily hold
off submitted records, that were reserved later.

Reservation/commit/consumer protocol is verified by litmus tests in
Documentation/litmus_tests/bpf-rb/_.

One interesting implementation bit, that significantly simplifies (and thus
speeds up as well) implementation of both producers and consumers is how data
area is mapped twice contiguously back-to-back in the virtual memory. This
Expand All @@ -200,7 +197,7 @@ a self-pacing notifications of new data being availability.
being available after commit only if consumer has already caught up right up to
the record being committed. If not, consumer still has to catch up and thus
will see new data anyways without needing an extra poll notification.
Benchmarks (see tools/testing/selftests/bpf/benchs/bench_ringbuf.c_) show that
Benchmarks (see tools/testing/selftests/bpf/benchs/bench_ringbufs.c) show that
this allows to achieve a very high throughput without having to resort to
tricks like "notify only every Nth sample", which are necessary with perf
buffer. For extreme cases, when BPF program wants more manual control of
Expand Down
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/net/dsa/dsa.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Distributed Switch Architecture Device Tree Bindings
----------------------------------------------------

See Documentation/devicetree/bindings/net/dsa/dsa.yaml for the documenation.
See Documentation/devicetree/bindings/net/dsa/dsa.yaml for the documentation.
17 changes: 16 additions & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -3388,6 +3388,7 @@ M: Florian Fainelli <[email protected]>
L: [email protected]
L: [email protected] (subscribers-only)
S: Supported
F: Documentation/devicetree/bindings/net/dsa/b53.txt
F: drivers/net/dsa/b53/*
F: include/linux/platform_data/b53.h

Expand Down Expand Up @@ -3573,13 +3574,28 @@ L: [email protected]
S: Maintained
F: drivers/phy/broadcom/phy-brcm-usb*

BROADCOM ETHERNET PHY DRIVERS
M: Florian Fainelli <[email protected]>
L: [email protected]
L: [email protected]
S: Supported
F: Documentation/devicetree/bindings/net/broadcom-bcm87xx.txt
F: drivers/net/phy/bcm*.[ch]
F: drivers/net/phy/broadcom.c
F: include/linux/brcmphy.h

BROADCOM GENET ETHERNET DRIVER
M: Doug Berger <[email protected]>
M: Florian Fainelli <[email protected]>
L: [email protected]
L: [email protected]
S: Supported
F: Documentation/devicetree/bindings/net/brcm,bcmgenet.txt
F: Documentation/devicetree/bindings/net/brcm,unimac-mdio.txt
F: drivers/net/ethernet/broadcom/genet/
F: drivers/net/mdio/mdio-bcm-unimac.c
F: include/linux/platform_data/bcmgenet.h
F: include/linux/platform_data/mdio-bcm-unimac.h

BROADCOM IPROC ARM ARCHITECTURE
M: Ray Jui <[email protected]>
Expand Down Expand Up @@ -6494,7 +6510,6 @@ F: net/bridge/

ETHERNET PHY LIBRARY
M: Andrew Lunn <[email protected]>
M: Florian Fainelli <[email protected]>
M: Heiner Kallweit <[email protected]>
R: Russell King <[email protected]>
L: [email protected]
Expand Down
28 changes: 20 additions & 8 deletions arch/arm64/net/bpf_jit_comp.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,13 @@ static inline void emit_addr_mov_i64(const int reg, const u64 val,
}
}

static inline int bpf2a64_offset(int bpf_to, int bpf_from,
static inline int bpf2a64_offset(int bpf_insn, int off,
const struct jit_ctx *ctx)
{
/* arm64 offset is relative to the branch instruction */
int bpf_from = bpf_insn + 1;
/* BPF JMP offset is relative to the next instruction */
int bpf_to = bpf_insn + off + 1;
int to = ctx->offset[bpf_to];
/* -1 to account for the Branch instruction */
int from = ctx->offset[bpf_from] - 1;
Expand Down Expand Up @@ -642,7 +646,7 @@ static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx,

/* JUMP off */
case BPF_JMP | BPF_JA:
jmp_offset = bpf2a64_offset(i + off, i, ctx);
jmp_offset = bpf2a64_offset(i, off, ctx);
check_imm26(jmp_offset);
emit(A64_B(jmp_offset), ctx);
break;
Expand All @@ -669,7 +673,7 @@ static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx,
case BPF_JMP32 | BPF_JSLE | BPF_X:
emit(A64_CMP(is64, dst, src), ctx);
emit_cond_jmp:
jmp_offset = bpf2a64_offset(i + off, i, ctx);
jmp_offset = bpf2a64_offset(i, off, ctx);
check_imm19(jmp_offset);
switch (BPF_OP(code)) {
case BPF_JEQ:
Expand Down Expand Up @@ -912,18 +916,26 @@ static int build_body(struct jit_ctx *ctx, bool extra_pass)
const struct bpf_insn *insn = &prog->insnsi[i];
int ret;

/*
* offset[0] offset of the end of prologue, start of the
* first insn.
* offset[x] - offset of the end of x insn.
*/
if (ctx->image == NULL)
ctx->offset[i] = ctx->idx;

ret = build_insn(insn, ctx, extra_pass);
if (ret > 0) {
i++;
if (ctx->image == NULL)
ctx->offset[i] = ctx->idx;
ctx->offset[i] = ctx->offset[i - 1];
continue;
}
if (ctx->image == NULL)
ctx->offset[i] = ctx->idx;
if (ret)
return ret;
}
if (ctx->image == NULL)
ctx->offset[i] = ctx->idx;

return 0;
}
Expand Down Expand Up @@ -1002,7 +1014,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
memset(&ctx, 0, sizeof(ctx));
ctx.prog = prog;

ctx.offset = kcalloc(prog->len, sizeof(int), GFP_KERNEL);
ctx.offset = kcalloc(prog->len + 1, sizeof(int), GFP_KERNEL);
if (ctx.offset == NULL) {
prog = orig_prog;
goto out_off;
Expand Down Expand Up @@ -1089,7 +1101,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
prog->jited_len = prog_size;

if (!prog->is_func || extra_pass) {
bpf_prog_fill_jited_linfo(prog, ctx.offset);
bpf_prog_fill_jited_linfo(prog, ctx.offset + 1);
out_off:
kfree(ctx.offset);
kfree(jit_data);
Expand Down
1 change: 1 addition & 0 deletions drivers/atm/firestream.c
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,7 @@ static int fs_open(struct atm_vcc *atm_vcc)
error = make_rate (pcr, r, &tmc0, NULL);
if (error) {
kfree(tc);
kfree(vcc);
return error;
}
}
Expand Down
7 changes: 5 additions & 2 deletions drivers/net/dsa/mt7530.c
Original file line number Diff line number Diff line change
Expand Up @@ -1326,14 +1326,17 @@ mt7530_setup(struct dsa_switch *ds)

if (phy_node->parent == priv->dev->of_node->parent) {
ret = of_get_phy_mode(mac_np, &interface);
if (ret && ret != -ENODEV)
if (ret && ret != -ENODEV) {
of_node_put(mac_np);
return ret;
}
id = of_mdio_parse_addr(ds->dev, phy_node);
if (id == 0)
priv->p5_intf_sel = P5_INTF_SEL_PHY_P0;
if (id == 4)
priv->p5_intf_sel = P5_INTF_SEL_PHY_P4;
}
of_node_put(mac_np);
of_node_put(phy_node);
break;
}
Expand Down Expand Up @@ -1501,7 +1504,7 @@ static void mt7530_phylink_validate(struct dsa_switch *ds, int port,
phylink_set(mask, 100baseT_Full);

if (state->interface != PHY_INTERFACE_MODE_MII) {
phylink_set(mask, 1000baseT_Half);
/* This switch only supports 1G full-duplex. */
phylink_set(mask, 1000baseT_Full);
if (port == 5)
phylink_set(mask, 1000baseX_Full);
Expand Down
1 change: 1 addition & 0 deletions drivers/net/dsa/ocelot/felix.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ static int felix_parse_ports_node(struct felix *felix,
if (err < 0) {
dev_err(dev, "Unsupported PHY mode %s on port %d\n",
phy_modes(phy_mode), port);
of_node_put(child);
return err;
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/dsa/sja1105/sja1105_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3415,7 +3415,7 @@ static int sja1105_check_device_id(struct sja1105_private *priv)

sja1105_unpack(prod_id, &part_no, 19, 4, SJA1105_SIZE_DEVICE_ID);

for (match = sja1105_dt_ids; match->compatible; match++) {
for (match = sja1105_dt_ids; match->compatible[0]; match++) {
const struct sja1105_info *info = match->data;

/* Is what's been probed in our match table at all? */
Expand Down
1 change: 1 addition & 0 deletions drivers/net/ethernet/arc/emac_mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ int arc_mdio_probe(struct arc_emac_priv *priv)
if (IS_ERR(data->reset_gpio)) {
error = PTR_ERR(data->reset_gpio);
dev_err(priv->dev, "Failed to request gpio: %d\n", error);
mdiobus_free(bus);
return error;
}

Expand Down
6 changes: 4 additions & 2 deletions drivers/net/ethernet/broadcom/bcmsysport.c
Original file line number Diff line number Diff line change
Expand Up @@ -2491,8 +2491,10 @@ static int bcm_sysport_probe(struct platform_device *pdev)
priv->tx_rings = devm_kcalloc(&pdev->dev, txq,
sizeof(struct bcm_sysport_tx_ring),
GFP_KERNEL);
if (!priv->tx_rings)
return -ENOMEM;
if (!priv->tx_rings) {
ret = -ENOMEM;
goto err_free_netdev;
}

priv->is_lite = params->is_lite;
priv->num_rx_desc_words = params->num_rx_desc_words;
Expand Down
Loading