Re: [PATCH RFC 2/2] virtio_ring: support packed ring

2018-03-16 Thread Tiwei Bie
On Fri, Mar 16, 2018 at 12:03:25PM +0800, Jason Wang wrote: > On 2018年02月23日 19:18, Tiwei Bie wrote: > > Signed-off-by: Tiwei Bie > > --- > > drivers/virtio/virtio_ring.c | 699 > > +-- > > include/linux/virtio_ring.h | 8 +- > >

Re: [PATCH net-next] tuntap: XDP_TX can use native XDP

2018-03-16 Thread Jason Wang
On 2018年03月15日 21:32, Michael S. Tsirkin wrote: On Thu, Mar 15, 2018 at 04:39:25PM +0800, Jason Wang wrote: On 2018年03月14日 11:37, Michael S. Tsirkin wrote: return NULL; case XDP_TX: - xdp_xmit = true; - /*

Re: linux-next: manual merge of the net-next tree with the rdma-fixes tree

2018-03-16 Thread Saeed Mahameed
On Thu, 2018-03-15 at 21:18 -0400, Doug Ledford wrote: > On Fri, 2018-03-16 at 11:56 +1100, Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the net-next tree got a conflict in: > > > > drivers/infiniband/hw/mlx5/main.c > > > > between commit: > > > > 42cea83f9524

CONTACT DHL OFFICE IMMEDIATELY FOR DELIVERY OF YOUR ATM MASTERCARD

2018-03-16 Thread MR Paul Ogie
Attention; Beneficiary, This is to official inform you that we have been having meetings for the past three (3) weeks which ended two days ago with MR. JIM YONG KIM the Former world bank president and other seven continent presidents on the congress we treated on solution to scam victim

Re: [PATCH RFC 2/2] virtio_ring: support packed ring

2018-03-16 Thread Jason Wang
On 2018年03月16日 14:10, Tiwei Bie wrote: On Fri, Mar 16, 2018 at 12:03:25PM +0800, Jason Wang wrote: On 2018年02月23日 19:18, Tiwei Bie wrote: Signed-off-by: Tiwei Bie --- drivers/virtio/virtio_ring.c | 699 +--

Re: Fw: [Bug 199121] New: Packet header is incorrect when following through an IPsec tunnel after upgrade kernel to 4.15

2018-03-16 Thread Steffen Klassert
Ccing the reporter of this bug. On Thu, Mar 15, 2018 at 07:59:51AM -0700, Stephen Hemminger wrote: > > > Begin forwarded message: > > Date: Thu, 15 Mar 2018 06:37:27 + > From: bugzilla-dae...@bugzilla.kernel.org > To: step...@networkplumber.org > Subject: [Bug 199121] New: Packet header is

Re: [PATCH v4 2/2] Remove false-positive VLAs when using max()

2018-03-16 Thread Nikolay Borisov
On 15.03.2018 21:47, Kees Cook wrote: > As part of removing VLAs from the kernel[1], we want to build with -Wvla, > but it is overly pessimistic and only accepts constant expressions for > stack array sizes, instead of also constant values. The max() macro > triggers the warning, so this

[PATCH bpf-next 3/4] tools: bpf: cleanup PHONY target

2018-03-16 Thread Jakub Kicinski
There is no FORCE target in the Makefile and some of the PHONY targets are missing, update the list. Signed-off-by: Jakub Kicinski --- tools/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bpf/Makefile b/tools/bpf/Makefile

[PATCH bpf-next 0/4] tools: bpf: minor build improvements

2018-03-16 Thread Jakub Kicinski
Hi! As promised this series addresses nits and minor issues in tools/bpf build infra. One GCC-7 warning which is nice to get rid of. Dependencies when built with OUTPUT are fixed. make clean will now remove the FEATURE-DUMP.* files. PHONY target is also updated to match reality. Jakub

[PATCH bpf-next 4/4] tools: bpf: remove feature detection output

2018-03-16 Thread Jakub Kicinski
bpf tools use feature detection for libbfd dependency, clean up the output files on make clean. Signed-off-by: Jakub Kicinski --- tools/bpf/Makefile | 2 ++ tools/bpf/bpftool/Makefile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tools/bpf/Makefile

[PATCH bpf-next 2/4] tools: bpftool: fix potential format truncation

2018-03-16 Thread Jakub Kicinski
GCC 7 complains: xlated_dumper.c: In function ‘print_call’: xlated_dumper.c:179:10: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 249 and 253 [-Wformat-truncation=] "%+d#%s", insn->off, sym->name); Add a bit more space to the buffer

[PATCH bpf-next 1/4] tools: bpftool: fix dependency file path

2018-03-16 Thread Jakub Kicinski
Auto-generated dependency files are in the OUTPUT directory, we need to include them from there. This fixes object files not being rebuilt after header changes. Signed-off-by: Jakub Kicinski --- tools/bpf/bpftool/Makefile | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH RFC 2/2] virtio_ring: support packed ring

2018-03-16 Thread Tiwei Bie
On Fri, Mar 16, 2018 at 02:44:12PM +0800, Jason Wang wrote: > On 2018年03月16日 14:10, Tiwei Bie wrote: > > On Fri, Mar 16, 2018 at 12:03:25PM +0800, Jason Wang wrote: > > > On 2018年02月23日 19:18, Tiwei Bie wrote: > > > > Signed-off-by: Tiwei Bie > > > > --- > > > >

Re: [PATCH RFC 2/2] virtio_ring: support packed ring

2018-03-16 Thread Tiwei Bie
On Fri, Mar 16, 2018 at 04:34:28PM +0800, Jason Wang wrote: > On 2018年03月16日 15:40, Tiwei Bie wrote: > > On Fri, Mar 16, 2018 at 02:44:12PM +0800, Jason Wang wrote: > > > On 2018年03月16日 14:10, Tiwei Bie wrote: > > > > On Fri, Mar 16, 2018 at 12:03:25PM +0800, Jason Wang wrote: > > > > > On

Re: [bug, bisected] pfifo_fast causes packet reordering

2018-03-16 Thread Jakob Unterwurzacher
On 15.03.18 23:30, John Fastabend wrote: I have reproduced it using two USB network cards connected to each other. The test tool sends UDP packets containing a counter and listens on the other interface, it is available at https://github.com/jakob-tsd/pfifo_stress/blob/master/pfifo_stress.py

[PATCH net-next 09/10] arm64: dts: marvell: 8040-db: set the 10G interfaces management to in-band

2018-03-16 Thread Antoine Tenart
This patch sets the 10G interfaces (cp0_eth0, cp1_eth0) management to in-band. This is needed for the PPv2 driver to handle such ports, with its conversion to phylink. Signed-off-by: Antoine Tenart --- arch/arm64/boot/dts/marvell/armada-8040-db.dts | 2 ++ 1 file

[PATCH net-next 10/10] arm64: dts: marvell: mcbin: enable the fourth network interface

2018-03-16 Thread Antoine Tenart
This patch enables the fourth network interface on the Marvell Macchiatobin. It is configured in the 2500Base-X PHY mode. Signed-off-by: Antoine Tenart --- arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts | 11 +++ 1 file changed, 11 insertions(+) diff

[PATCH net-next 03/10] net: mvpp2: phylink support

2018-03-16 Thread Antoine Tenart
Convert the PPv2 driver to implement phylink helpers, and use phylink in DT mode. The other mode supported is ACPI, which will need further work in order to be entirely compatible with phylink. The MAC and GoP configuration functions were completely moved to fit into the phylink helpers. When a

[PATCH net-next 07/10] net: mvpp2: 2500baseX support

2018-03-16 Thread Antoine Tenart
This patch adds the 2500Base-X PHY mode support in the Marvell PPv2 driver. 2500Base-X is quite close to 1000Base-X and SGMII modes and uses nearly the same code path. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvpp2.c | 51

[PATCH net-next 06/10] net: mvpp2: 1000baseX support

2018-03-16 Thread Antoine Tenart
This patch adds the 1000Base-X PHY mode support in the Marvell PPv2 driver. 1000Base-X is quite close the SGMII and uses nearly the same code path. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvpp2.c | 74 +--- 1

[PATCH net-next 08/10] arm64: dts: marvell: 7040-db: set the 10G interface management to in-band

2018-03-16 Thread Antoine Tenart
This patch sets the 10G interface (cp0_eth0) management to in-band. This is needed for the PPv2 driver to handle such ports, with its conversion to phylink. Signed-off-by: Antoine Tenart --- arch/arm64/boot/dts/marvell/armada-7040-db.dts | 1 + 1 file changed, 1

[PATCH net-next 05/10] phy: cp110-comphy: 2.5G SGMII mode

2018-03-16 Thread Antoine Tenart
This patch allow the CP100 comphy to configure some lanes in the 2.5G SGMII mode. This mode is quite close to SGMII and uses nearly the same code path. Signed-off-by: Antoine Tenart --- drivers/phy/marvell/phy-mvebu-cp110-comphy.c | 17 ++--- 1 file

[PATCH net-next 04/10] phy: add 2.5G SGMII mode to the phy_mode enum

2018-03-16 Thread Antoine Tenart
This patch adds one more generic PHY mode to the phy_mode enum, to allow configuring generic PHYs to the 2.5G SGMII mode by using the set_mode callback. Signed-off-by: Antoine Tenart --- include/linux/phy/phy.h | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH net-next 02/10] net: phy: phylink: allow 10GKR interface to use in-band negotiation

2018-03-16 Thread Antoine Tenart
The PHY mode 10GKR can use in-band negotiation. This patches allows this mode to be used with MLO_AN_INBAND in phylink. Signed-off-by: Antoine Tenart --- drivers/net/phy/phylink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH net-next 00/10] net: mvpp2: phylink conversion

2018-03-16 Thread Antoine Tenart
Hi Dave, Russell, This series convert the Marvell PPv2 driver to phylink (models the MAC to PHY link). The series is a respin of a patch[1] and a series[2] sent a while ago. All these patches have been heavily reworked, this is why this series isn't a new version of the previous work. I still

[PATCH net-next 01/10] net: mvpp2: align the ethtool ops definition

2018-03-16 Thread Antoine Tenart
Cosmetic patch to align the ethtool functions to ops definitions. This patch does not change in any way the driver's behaviour. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvpp2.c | 24 1 file changed, 12 insertions(+), 12

[PATCH net 1/7] net: aquantia: Fix hardware reset when SPI may rarely hangup

2018-03-16 Thread Igor Russkikh
Under some circumstances (notably using thunderbolt interface) SPI on chip reset may be in active transaction. Here we forcibly cleanup SPI to prevent possible hangups. Signed-off-by: Igor Russkikh --- .../ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c | 20

[PATCH net 7/7] net: aquantia: driver version bump

2018-03-16 Thread Igor Russkikh
Signed-off-by: Igor Russkikh --- drivers/net/ethernet/aquantia/atlantic/ver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/aquantia/atlantic/ver.h b/drivers/net/ethernet/aquantia/atlantic/ver.h index 5265b93..a445de6 100644

[PATCH net 6/7] net: aquantia: Implement pci shutdown callback

2018-03-16 Thread Igor Russkikh
We should close link and all NIC operations during shutdown. On some systems graceful reboot never closes NIC interface on its own, but only indicates pci device shutdown. Without explicit handler, NIC rx rings continued to transfer DMA data into prepared buffers while CPU rebooted already. That

[PATCH net 3/7] net: aquantia: Change inefficient wait loop on fw data reads

2018-03-16 Thread Igor Russkikh
B1 hardware changes behavior of mailbox interface, it has busy bit always raised. Data ready condition should be detected by increment of address register. Old code has empty `for` loop, and that caused cpu overloads on B1 hardware. aq_nic_service_timer_cb consumed ~100ms because of that.

[PATCH net 2/7] net: aquantia: Fix a regression with reset on old firmware

2018-03-16 Thread Igor Russkikh
FW 1.5.58 and below needs a fixed delay even after 0x18 register is filled. Otherwise, setting MPI_INIT state too fast causes traffic hang. Signed-off-by: Igor Russkikh --- drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c | 4 1 file changed, 4

[PATCH net 4/7] net: aquantia: Add aq_tx_clean_budget and valid budget handling logic

2018-03-16 Thread Igor Russkikh
We should report to napi full budget only when we have more job to do. Before this fix, on any tx queue cleanup we forced napi to do poll again. Thats a waste of cpu resources and caused storming with napi polls when there was at least one tx on each interrupt. With this fix we report full budget

[PATCH net 0/7] Aquantia atlantic hot fixes 03-2018

2018-03-16 Thread Igor Russkikh
This is a set of atlantic driver hot fixes for various areas: Some rare issues with hardware reset covered, Fixed napi_poll flood happening on some traffic conditions, Allow system to change MAC address on live device, Add pci shutdown handler. Igor Russkikh (7): net: aquantia: Fix hardware

[PATCH net 5/7] net: aquantia: Allow live mac address changes

2018-03-16 Thread Igor Russkikh
There is nothing prevents us from changing MAC on the running interface. Allow this with ndev priv flag. Signed-off-by: Igor Russkikh --- drivers/net/ethernet/aquantia/atlantic/aq_nic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH v6 0/6] staging: Introduce DPAA2 Ethernet Switch driver

2018-03-16 Thread Laurentiu Tudor
Hi Dan, On 03/15/2018 12:56 PM, Dan Carpenter wrote: > On Thu, Mar 15, 2018 at 12:44:37AM +0100, Andrew Lunn wrote: >> On Wed, Mar 14, 2018 at 10:55:52AM -0500, Razvan Stefanescu wrote: >>> This patchset introduces the Ethernet Switch Driver for Freescale/NXP SoCs >>> with DPAA2 (DataPath

Re: [PATCH net 2/5] net/sched: fix NULL dereference in the error path of tcf_csum_init()

2018-03-16 Thread Jiri Pirko
Fri, Mar 16, 2018 at 12:00:54AM CET, dcara...@redhat.com wrote: >when the following command > > # tc action add action csum udp continue index 100 > >is run for the first time, and tcf_csum_init() fails allocating struct >tcf_csum, tcf_csum_cleanup() calls kfree_rcu(NULL,...). This causes the

Re: [PATCH net 5/5] net/sched: fix NULL dereference on the error path of tcf_skbmod_init()

2018-03-16 Thread Jiri Pirko
Fri, Mar 16, 2018 at 12:00:57AM CET, dcara...@redhat.com wrote: >when the following command > > # tc action replace action skbmod swap mac index 100 > >is run for the first time, and tcf_skbmod_init() fails to allocate struct >tcf_skbmod_params, tcf_skbmod_cleanup() calls kfree_rcu(NULL), thus

Re: [PATCH net 3/5] net/sched: fix NULL dereference in the error path of tunnel_key_init()

2018-03-16 Thread Jiri Pirko
Fri, Mar 16, 2018 at 12:00:55AM CET, dcara...@redhat.com wrote: >when the following command > > # tc action add action tunnel_key unset index 100 > >is run for the first time, and tunnel_key_init() fails to allocate struct >tcf_tunnel_key_params, tunnel_key_release() dereferences NULL pointers.

Re: [PATCH net 4/5] net/sched: fix NULL dereference in the error path of tcf_sample_init()

2018-03-16 Thread Jiri Pirko
Fri, Mar 16, 2018 at 12:00:56AM CET, dcara...@redhat.com wrote: >when the following command > > # tc action add action sample rate 100 group 100 index 100 > >is run for the first time, and psample_group_get(100) fails to create a >new group, tcf_sample_cleanup() calls psample_group_put(NULL), thus

Re: [PATCH bpf-next 0/4] tools: bpf: minor build improvements

2018-03-16 Thread Daniel Borkmann
On 03/16/2018 07:26 AM, Jakub Kicinski wrote: > Hi! > > As promised this series addresses nits and minor issues in tools/bpf > build infra. One GCC-7 warning which is nice to get rid of. Dependencies > when built with OUTPUT are fixed. make clean will now remove the > FEATURE-DUMP.* files.

[PATCH net-next] cxgb4: notify fatal error to uld drivers

2018-03-16 Thread Ganesh Goudar
notify uld drivers if the adapter encounters fatal error. Signed-off-by: Ganesh Goudar --- drivers/infiniband/hw/cxgb4/device.c| 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 10 ++

Re: [bpf-next V3 PATCH 00/15] XDP redirect memory return API

2018-03-16 Thread Jason Wang
On 2018年03月10日 04:55, Jesper Dangaard Brouer wrote: This patchset works towards supporting different XDP RX-ring memory allocators. As this will be needed by the AF_XDP zero-copy mode. The patchset uses mlx5 as the sample driver, which gets implemented XDP_REDIRECT RX-mode, but not

[RFC PATCH ghak32 V2 00/13] audit: implement container id

2018-03-16 Thread Richard Guy Briggs
Implement audit kernel container ID. This patchset is a second RFC based on the proposal document (V3) posted: https://www.redhat.com/archives/linux-audit/2018-January/msg00014.html The first patch implements the proc fs write to set the audit container ID of a process, emitting an

[RFC PATCH ghak32 V2 02/13] audit: check children and threading before allowing containerid

2018-03-16 Thread Richard Guy Briggs
Check if a task has existing children or co-threads and refuse to set the container ID if either are present. Failure to check this could permit games where a child scratches its parent's back to work around inheritance and double-setting policy. Signed-off-by: Richard Guy Briggs

[PATCH ghau40 v2 5/5] start normalization containerid support

2018-03-16 Thread Richard Guy Briggs
Signed-off-by: Richard Guy Briggs --- auparse/normalize_record_map.h | 1 + 1 file changed, 1 insertion(+) diff --git a/auparse/normalize_record_map.h b/auparse/normalize_record_map.h index 1507bb5..c529e2e 100644 --- a/auparse/normalize_record_map.h +++

[PATCH ghau40 v2 4/5] add ausearch containerid support

2018-03-16 Thread Richard Guy Briggs
Add support to ausearch for searching on the containerid field in records. Signed-off-by: Richard Guy Briggs --- src/aureport-options.c | 1 + src/ausearch-llist.c | 2 + src/ausearch-llist.h | 1 + src/ausearch-match.c | 3 + src/ausearch-options.c | 46

Re: [BUG/Q] can_pernet_exit() leaves devices on dead net

2018-03-16 Thread Kirill Tkhai
On 06.03.2018 13:26, Oliver Hartkopp wrote: > - DaveM > > Hi Kirill, > > On 03/05/2018 04:22 PM, Kirill Tkhai wrote: > >> Thanks for the explanation, and module unloading should be nice. Just to >> clarify, >> I worry not about rules, but about netdevices. >> >> unshare -n ip link add

Re: netns: send uevent messages

2018-03-16 Thread Kirill Tkhai
On 16.03.2018 02:46, Christian Brauner wrote: > On Thu, Mar 15, 2018 at 05:14:13PM +0300, Kirill Tkhai wrote: >> On 15.03.2018 16:39, Christian Brauner wrote: >>> On Thu, Mar 15, 2018 at 12:47:30PM +0300, Kirill Tkhai wrote: CC Andrey Vagin >>> >>> Hey Kirill, >>> >>> Thanks for CCing Andrey.

Re: [PATCH RFC 2/2] virtio_ring: support packed ring

2018-03-16 Thread Jason Wang
On 2018年03月16日 15:40, Tiwei Bie wrote: On Fri, Mar 16, 2018 at 02:44:12PM +0800, Jason Wang wrote: On 2018年03月16日 14:10, Tiwei Bie wrote: On Fri, Mar 16, 2018 at 12:03:25PM +0800, Jason Wang wrote: On 2018年02月23日 19:18, Tiwei Bie wrote: Signed-off-by: Tiwei Bie ---

[RFC PATCH ghak32 V2 09/13] audit: add containerid support for config/feature/user records

2018-03-16 Thread Richard Guy Briggs
Add container ID auxiliary records to configuration change, feature set change and user generated standalone records. Signed-off-by: Richard Guy Briggs --- kernel/audit.c | 50 -- kernel/auditfilter.c | 5 - 2 files

[RFC PATCH ghak32 V2 08/13] audit: add containerid support for tty_audit

2018-03-16 Thread Richard Guy Briggs
Add container ID auxiliary record to tty logging rule event standalone records. Signed-off-by: Richard Guy Briggs --- drivers/tty/tty_audit.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/tty/tty_audit.c b/drivers/tty/tty_audit.c index

[RFC PATCH ghak32 V2 11/13] audit: add support for containerid to network namespaces

2018-03-16 Thread Richard Guy Briggs
Audit events could happen in a network namespace outside of a task context due to packets received from the net that trigger an auditing rule prior to being associated with a running task. The network namespace could in use by multiple containers by association to the tasks in that network

[RFC PATCH ghak32 V2 10/13] audit: add containerid support for seccomp and anom_abend records

2018-03-16 Thread Richard Guy Briggs
Add container ID auxiliary records to secure computing and abnormal end standalone records. Signed-off-by: Richard Guy Briggs --- kernel/auditsc.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/kernel/auditsc.c b/kernel/auditsc.c index

[RFC PATCH ghak32 V2 07/13] audit: add container aux record to watch/tree/mark

2018-03-16 Thread Richard Guy Briggs
Add container ID auxiliary record to mark, watch and tree rule configuration standalone records. Signed-off-by: Richard Guy Briggs --- kernel/audit_fsnotify.c | 5 - kernel/audit_tree.c | 5 - kernel/audit_watch.c| 33 +++-- 3 files

[RFC PATCH ghak32 V2 01/13] audit: add container id

2018-03-16 Thread Richard Guy Briggs
Implement the proc fs write to set the audit container ID of a process, emitting an AUDIT_CONTAINER record to document the event. This is a write from the container orchestrator task to a proc entry of the form /proc/PID/containerid where PID is the process ID of the newly created task that is to

[RFC PATCH ghak32 V2 03/13] audit: log container info of syscalls

2018-03-16 Thread Richard Guy Briggs
Create a new audit record AUDIT_CONTAINER_INFO to document the container ID of a process if it is present. Called from audit_log_exit(), syscalls are covered. A sample raw event: type=SYSCALL msg=audit(1519924845.499:257): arch=c03e syscall=257 success=yes exit=3 a0=ff9c a1=56374e1cef30

[RFC PATCH ghak32 V2 05/13] audit: add containerid support for ptrace and signals

2018-03-16 Thread Richard Guy Briggs
Add container ID support to ptrace and signals. In particular, the "op" field provides a way to label the auxiliary record to which it is associated. Signed-off-by: Richard Guy Briggs --- include/linux/audit.h | 16 +++- kernel/audit.c| 12

[RFC PATCH ghak32 V2 06/13] audit: add support for non-syscall auxiliary records

2018-03-16 Thread Richard Guy Briggs
Standalone audit records have the timestamp and serial number generated on the fly and as such are unique, making them standalone. This new function audit_alloc_local() generates a local audit context that will be used only for a standalone record and its auxiliary record(s). The context is

[PATCH ghau40 v2 1/5] AUDIT_CONTAINER message type basic support

2018-03-16 Thread Richard Guy Briggs
This defines the message number for the container ID registration record should the kernel headers not be up to date, gives the record number a name for printing and allows the record to be interpreted since it is in the 1000 range like AUDIT_LOGIN. Signed-off-by: Richard Guy Briggs

[PATCH ghau40 v2 0/5] add support for audit container ID

2018-03-16 Thread Richard Guy Briggs
Add support for audit kernel container IDs to userspace tools. See: https://github.com/linux-audit/audit-userspace/issues/40 See: https://github.com/linux-audit/audit-kernel/issues/32 See: https://github.com/linux-audit/audit-testsuite/issues/64 Richard Guy Briggs (5): AUDIT_CONTAINER message

Re: [bpf-next V2 PATCH 02/15] xdp: introduce xdp_return_frame API and use in cpumap

2018-03-16 Thread Jason Wang
On 2018年03月10日 00:05, Jesper Dangaard Brouer wrote: On Fri, 9 Mar 2018 21:04:23 +0800 Jason Wang wrote: On 2018年03月09日 17:35, Jesper Dangaard Brouer wrote: On Fri, 9 Mar 2018 15:24:10 +0800 Jason Wang wrote: On 2018年03月08日 21:07, Jesper

Re: [bpf-next V2 PATCH 10/15] xdp: rhashtable with allocator ID to pointer mapping

2018-03-16 Thread Jason Wang
On 2018年03月10日 00:07, Jesper Dangaard Brouer wrote: On Fri, 9 Mar 2018 21:07:36 +0800 Jason Wang wrote: Use the IDA infrastructure for getting a cyclic increasing ID number, that is used for keeping track of each registered allocator per RX-queue xdp_rxq_info.

[RFC PATCH ghak32 V2 12/13] audit: NETFILTER_PKT: record each container ID associated with a netNS

2018-03-16 Thread Richard Guy Briggs
Add container ID auxiliary record(s) to NETFILTER_PKT event standalone records. Iterate through all potential container IDs associated with a network namespace. Signed-off-by: Richard Guy Briggs --- kernel/audit.c | 1 + kernel/auditsc.c | 2 ++

[RFC PATCH ghak32 V2 04/13] audit: add containerid filtering

2018-03-16 Thread Richard Guy Briggs
Implement container ID filtering using the AUDIT_CONTAINERID field name to send an 8-character string representing a u64 since the value field is only u32. Sending it as two u32 was considered, but gathering and comparing two fields was more complex. The feature indicator is

[RFC PATCH ghak32 V2 13/13] debug audit: read container ID of a process

2018-03-16 Thread Richard Guy Briggs
Add support for reading the container ID from the proc filesystem. This is a read from the proc entry of the form /proc/PID/containerid where PID is the process ID of the task whose container ID is sought. The read expects up to a u64 value (unset: 18446744073709551615). Signed-off-by: Richard

[PATCH ghau40 v2 2/5] AUDIT_CONTAINER_INFO message type basic support

2018-03-16 Thread Richard Guy Briggs
This defines the message number for the container ID info record should the kernel headers not be up to date and gives the record number a name for printing. Signed-off-by: Richard Guy Briggs --- lib/libaudit.h| 4 lib/msg_typetab.h | 1 + 2 files changed, 5

[PATCH ghau40 v2 3/5] auditctl: add support for containerid filter

2018-03-16 Thread Richard Guy Briggs
A u64 container identifier has been added to the kernel view of tasks. This allows container orchestrators to label tasks with a unique tamperproof identifier that gets inherited by its children to be able to track the provenance of actions by a container. Add support to libaudit and auditctl for

[PATCH v11 crypto 04/12] cxgb4: LLD driver changes to support TLS

2018-03-16 Thread Atul Gupta
Read the Inline TLS capability from firmware. Determine the area reserved for storing the keys Dump the Inline TLS tx and rx records count. Signed-off-by: Atul Gupta --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 32 +---

Re: [PATCH net 0/2] qed: iWARP related fixes

2018-03-16 Thread David Miller
From: Michal Kalderon Date: Wed, 14 Mar 2018 14:49:26 +0200 > This series contains two fixes related to iWARP flow. Series applied, and queued up for -stable.

[PATCH v3 18/18] infiniband: cxgb4: Eliminate duplicate barriers on weakly-ordered archs

2018-03-16 Thread Sinan Kaya
Code includes wmb() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Since code already has an explicit barrier call, changing writel() to writel_relaxed().

Re: [PATCH net] qede: Fix qedr link update

2018-03-16 Thread David Miller
From: Michal Kalderon Date: Wed, 14 Mar 2018 14:56:53 +0200 > Link updates were not reported to qedr correctly. > Leading to cases where a link could be down, but qedr > would see it as up. > In addition, once qede was loaded, link state would be up, > regardless of

Re: [virtio-dev] [pci PATCH v7 2/5] virtio_pci: Add support for unmanaged SR-IOV on virtio_pci devices

2018-03-16 Thread Michael S. Tsirkin
On Thu, Mar 15, 2018 at 11:42:41AM -0700, Alexander Duyck wrote: > From: Alexander Duyck > > Hardware-realized virtio_pci devices can implement SR-IOV, so this > patch enables its use. The device in question is an upcoming Intel > NIC that implements both a

Re: [virtio-dev] [pci PATCH v7 2/5] virtio_pci: Add support for unmanaged SR-IOV on virtio_pci devices

2018-03-16 Thread Alexander Duyck
On Fri, Mar 16, 2018 at 9:34 AM, Michael S. Tsirkin wrote: > On Thu, Mar 15, 2018 at 11:42:41AM -0700, Alexander Duyck wrote: >> From: Alexander Duyck >> >> Hardware-realized virtio_pci devices can implement SR-IOV, so this >> patch enables its use.

Re: [PATCH net-next 1/2] net/ipv6: Handle onlink flag with multipath routes

2018-03-16 Thread David Miller
From: David Ahern Date: Fri, 16 Mar 2018 08:45:10 -0700 > On 3/16/18 8:40 AM, David Miller wrote: >> Hmmm, this actually "accumulates" the flag rather than sets it. >> >> Have you thought about what should happen if the cfg has RTNH_F_ONLINK >> set? > > yes, that's why the

Re: [PATCH net-next v3 1/7] ibmvnic: Generalize TX pool structure

2018-03-16 Thread David Miller
From: Thomas Falcon Date: Thu, 15 Mar 2018 11:02:37 -0500 > Remove some unused fields in the structure and include values > describing the individual buffer size and number of buffers in > a TX pool. This allows us to use these fields for TX pool buffer > accounting

[PATCH -next 07/22] net: socket: add __sys_listen() helper; remove in-kernel call to syscall

2018-03-16 Thread Dominik Brodowski
Using the net-internal helper __sys_listen() allows us to avoid the internal calls to the sys_listen() syscall. Cc: David S. Miller Cc: netdev@vger.kernel.org Signed-off-by: Dominik Brodowski --- include/linux/socket.h | 1 + net/compat.c

[PATCH -next 06/22] net: socket: add __sys_connect() helper; remove in-kernel call to syscall

2018-03-16 Thread Dominik Brodowski
Using the net-internal helper __sys_connect() allows us to avoid the internal calls to the sys_connect() syscall. Cc: David S. Miller Cc: netdev@vger.kernel.org Signed-off-by: Dominik Brodowski --- include/linux/socket.h | 2 ++ net/compat.c

[PATCH -next 11/22] net: socket: add __sys_shutdown() helper; remove in-kernel call to syscall

2018-03-16 Thread Dominik Brodowski
Using the net-internal helper __sys_shutdown() allows us to avoid the internal calls to the sys_shutdown() syscall. Cc: David S. Miller Cc: netdev@vger.kernel.org Signed-off-by: Dominik Brodowski --- include/linux/socket.h | 1 + net/compat.c

[PATCH -next 16/22] net: socket: replace calls to sys_send() with __sys_sendto()

2018-03-16 Thread Dominik Brodowski
sys_send() merely expands the parameters to __sys_sendto() by NULL and 0. Open-code this in the two places which used sys_send() as a wrapper to __sys_sendto(). Cc: David S. Miller Cc: netdev@vger.kernel.org Signed-off-by: Dominik Brodowski ---

[PATCH -next 21/22] net: socket: add __compat_sys_recvmmsg() helper; remove in-kernel call to compat syscall

2018-03-16 Thread Dominik Brodowski
Using the net-internal helper __compat_sys_recvmmsg() allows us to avoid the internal calls to the compat_sys_recvmmsg() syscall. Cc: David S. Miller Cc: netdev@vger.kernel.org Signed-off-by: Dominik Brodowski --- net/compat.c | 17

Re: [Intel-wired-lan] [next-queue PATCH v4 6/8] igb: Add MAC address support for ethtool nftuple filters

2018-03-16 Thread Alexander Duyck
On Tue, Mar 13, 2018 at 8:04 PM, Brown, Aaron F wrote: >> From: Intel-wired-lan [mailto:intel-wired-lan-boun...@osuosl.org] On >> Behalf Of Vinicius Costa Gomes >> Sent: Wednesday, March 7, 2018 4:37 PM >> To: intel-wired-...@lists.osuosl.org >> Cc:

RE: [PATCH v5 0/2] Remove false-positive VLAs when using max()

2018-03-16 Thread David Laight
From: Linus Torvalds > Sent: 16 March 2018 17:29 > On Fri, Mar 16, 2018 at 4:47 AM, Florian Weimer wrote: > > > > If you want to catch stack frames which have unbounded size, > > -Werror=stack-usage=1000 or -Werror=vla-larger-than=1000 (with the constant > > adjusted as

[PATCH v11 crypto 05/12] crypto: chcr - Inline TLS Key Macros

2018-03-16 Thread Atul Gupta
Define macro for programming the TLS Key context Signed-off-by: Atul Gupta --- drivers/crypto/chelsio/chcr_algo.h | 42 + drivers/crypto/chelsio/chcr_core.h | 55 +- 2 files changed, 96 insertions(+), 1

[PATCH v3 00/18] Eliminate duplicate barriers on weakly-ordered archs

2018-03-16 Thread Sinan Kaya
Code includes wmb() followed by writel() in multiple places. writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Since code already has an explicit barrier call, changing writel() to

Re: [PATCH 00/30] Netfilter/IPVS updates for net-next

2018-03-16 Thread David Miller
From: Pablo Neira Ayuso Date: Wed, 14 Mar 2018 19:38:48 +0100 > Just for the record, this is a summary of what we have discussed so > far: ... > Note that this batch was coming with a patch to reduce cache footprint > of the flowtable entries, so there is already

[PATCH v3 10/18] net: qla3xxx: Eliminate duplicate barriers on weakly-ordered archs

2018-03-16 Thread Sinan Kaya
Code includes wmb() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Since code already has an explicit barrier call, changing writel() to writel_relaxed().

Re: [PATCH net] netlink: avoid a double skb free in genlmsg_mcast()

2018-03-16 Thread David Miller
From: Nicolas Dichtel Date: Wed, 14 Mar 2018 21:10:23 +0100 > nlmsg_multicast() consumes always the skb, thus the original skb must be > freed only when this function is called with a clone. > > Fixes: cb9f7a9a5c96 ("netlink: ensure to loop over all netns in >

Re: [bpf-next PATCH v2 05/18] bpf: create tcp_bpf_ulp allowing BPF to monitor socket TX/RX data

2018-03-16 Thread John Fastabend
On 03/15/2018 05:37 PM, Daniel Borkmann wrote: > On 03/16/2018 12:06 AM, Alexei Starovoitov wrote: >> On Thu, Mar 15, 2018 at 11:55:39PM +0100, Daniel Borkmann wrote: >>> On 03/15/2018 11:20 PM, Alexei Starovoitov wrote: On Thu, Mar 15, 2018 at 11:17:12PM +0100, Daniel Borkmann wrote: >

HW question: i210 vs. BCM5461S over SGMII: no response from PHY to MDIO requests?

2018-03-16 Thread Frantisek Rysanek
Dear polite inhabitants of the "netdev" mailing list, this is for a skunkworks project at the fringe of my job... More of a DIY hobby thing :-) I'm tinkering and having fun. The wizards from linux-ptp have taught me how to use the i210 for precise timestamping, which works fine at all copper

[PATCH -next 09/22] net: socket: add __sys_getpeername() helper; remove in-kernel call to syscall

2018-03-16 Thread Dominik Brodowski
Using the net-internal helper __sys_getpeername() allows us to avoid the internal calls to the sys_getpeername() syscall. Cc: David S. Miller Cc: netdev@vger.kernel.org Signed-off-by: Dominik Brodowski --- include/linux/socket.h | 2 ++

[PATCH -next 20/22] net: socket: add __compat_sys_getsockopt() helper; remove in-kernel call to compat syscall

2018-03-16 Thread Dominik Brodowski
Using the net-internal helper __compat_sys_getsockopt() allows us to avoid the internal calls to the compat_sys_getsockopt() syscall. Cc: David S. Miller Cc: netdev@vger.kernel.org Signed-off-by: Dominik Brodowski --- net/compat.c | 16

[PATCH -next 00/22] remove in-kernel syscall invocations (part 2 == netdev)

2018-03-16 Thread Dominik Brodowski
Here is another series of patches which reduce the number of syscall invocations from within the kernel. This series is focused solely on the net/ part of the kernel and get rids of syscall and compat_syscall invocations from within the kernel completely. It is also available at

[PATCH -next 05/22] net: socket: add __sys_bind() helper; remove in-kernel call to syscall

2018-03-16 Thread Dominik Brodowski
Using the net-internal helper __sys_bind() allows us to avoid the internal calls to the sys_bind() syscall. Cc: David S. Miller Cc: netdev@vger.kernel.org Signed-off-by: Dominik Brodowski --- include/linux/socket.h | 1 + net/compat.c

[PATCH -next 14/22] net: socket: add do_sys_recvmmsg() helper; remove in-kernel call to syscall

2018-03-16 Thread Dominik Brodowski
Using the net-internal helper do_sys_recvmmsg() allows us to avoid the internal calls to the sys_getsockopt() syscall. Cc: David S. Miller Cc: netdev@vger.kernel.org Signed-off-by: Dominik Brodowski --- net/socket.c | 17 - 1

[PATCH -next 18/22] net: socket: add __compat_sys_recvfrom() helper; remove in-kernel call to compat syscall

2018-03-16 Thread Dominik Brodowski
Using the net-internal helper __compat_sys_recvfrom() allows us to avoid the internal calls to the compat_sys_recvfrom() syscall. Cc: David S. Miller Cc: netdev@vger.kernel.org Signed-off-by: Dominik Brodowski --- net/compat.c | 23

[PATCH -next 12/22] net: socket: add __sys_setsockopt() helper; remove in-kernel call to syscall

2018-03-16 Thread Dominik Brodowski
Using the net-internal helper __sys_setsockopt() allows us to avoid the internal calls to the sys_setsockopt() syscall. Cc: David S. Miller Cc: netdev@vger.kernel.org Signed-off-by: Dominik Brodowski --- include/linux/socket.h | 1 +

Re: [PATCH 0/2] net: phy: relax error checking when creating sysfs link netdev->phydev

2018-03-16 Thread Florian Fainelli
On 03/16/2018 10:22 AM, Andrew Lunn wrote: > On Wed, Mar 14, 2018 at 05:26:22PM -0500, Grygorii Strashko wrote: >> Some ethernet drivers (like TI CPSW) may connect and manage >1 Net PHYs per >> one netdevice, as result such drivers will produce warning during system >> boot and fail to connect

[PATCH net-next v3 0/1] skbuff: Fix applications not being woken for errors

2018-03-16 Thread Vinicius Costa Gomes
Hi, Changes from v2: - As the skbuff fix got applied into the net tree, removing from this series (didn't change the subject to avoid causing any more confusion); Changes from v1: - Fixed comments from Willem de Bruijn, about the order of the options passed to getopt(); - Added Reviewed-by

[PATCH net-next v3 1/1] selftests/txtimestamp: Add more configurable parameters

2018-03-16 Thread Vinicius Costa Gomes
Add a way to configure if poll() should wait forever for an event, the number of packets that should be sent for each and if there should be any delay between packets. Signed-off-by: Vinicius Costa Gomes --- .../selftests/networking/timestamping/txtimestamp.c | 21

Re: [PATCH RFC RFC] rds: Use NETDEV_UNREGISTER in rds_tcp_dev_event() (then kill NETDEV_UNREGISTER_FINAL)

2018-03-16 Thread Sowmini Varadhan
On (03/16/18 15:38), Kirill Tkhai wrote: > > 467fa15356acf by Sowmini Varadhan added NETDEV_UNREGISTER_FINAL dependence > with the commentary: > > /* rds-tcp registers as a pernet subys, so the ->exit will only >* get invoked after network acitivity has quiesced. We need to >

  1   2   3   4   >