[PATCH net-next] tcp: Enable TFO without a cookie on a per-socket basis

2017-10-16 Thread Christoph Paasch
We already allow to enable TFO without a cookie by using the fastopen-sysctl and setting it to TFO_SERVER_COOKIE_NOT_REQD (0x200). This is safe to do in certain environments where we know that there isn't a malicous host (aka., data-centers). A server however might be talking to both sides (public

Re: [net-next 4/9] i40e: Enable 'channel' mode in mqprio for TC configs

2017-10-16 Thread Yunsheng Lin
Hi, Nambiar On 2017/10/17 0:03, Nambiar, Amritha wrote: > On 10/16/2017 1:53 AM, Yunsheng Lin wrote: >> Hi, Jeff >> >> On 2017/10/14 5:52, Jeff Kirsher wrote: >>> From: Amritha Nambiar >>> >>> The i40e driver is modified to enable the new mqprio hardware >>> offload mode and factor the TCs and qu

[PATCH v2 net-next] net: hns3: Add mqprio hardware offload support in hns3 driver

2017-10-16 Thread Yunsheng Lin
When using tc qdisc, dcb_ops->setup_tc is used to tell hclge_dcb module to do the tm related setup. Only TC_MQPRIO_MODE_CHANNEL offload mode is supported. Signed-off-by: Yunsheng Lin --- V2: 1. Add HCLGE_FLAG_MQPRIO_ENABLE to indicate offlaoding the mqprio. 2. Change to su

Re: Linux 4.12+ memory leak on router with i40e NICs

2017-10-16 Thread Vitezslav Samel
On Tue, Oct 17, 2017 at 01:34:29AM +0200, Paweł Staszewski wrote: > W dniu 2017-10-16 o 18:26, Paweł Staszewski pisze: > > W dniu 2017-10-16 o 13:20, Pavlos Parissis pisze: > > > On 15/10/2017 02:58 πμ, Alexander Duyck wrote: > > > > Hi Pawel, > > > > > > > > To clarify is that Dave Miller's tree

Re: pull-request: mac80211 2017-10-16

2017-10-16 Thread Johannes Berg
On Tue, 2017-10-17 at 01:30 +0200, Jason A. Donenfeld wrote: > Mobile phone right now, so not able to write patch, but you probably > should be using crypto_memneq for comparing those two keys, not > memcmp. I know that's a gut instinct, but I really don't see the point. If you actually get this

[PATCH net] sock_diag: request _diag module only when the family or proto has been registered

2017-10-16 Thread Xin Long
Now when using 'ss' in iproute, kernel would try to load all _diag modules. It causes the corresponding family or proto modules to be loaded as well. Like after 'ss -a', sctp, dccp, af_packet(if it works as a moudle) will be loaded. As these family or proto modules are loaded unexpectly, this mig

Re: [PATCH] bpf: devmap: Check attr->max_entries more carefully

2017-10-16 Thread John Fastabend
On 10/15/2017 03:13 PM, Richard Weinberger wrote: > Am Montag, 16. Oktober 2017, 00:00:20 CEST schrieb Richard Weinberger: >> max_entries is user controlled and used as input for __alloc_percpu(). >> This function expects that the allocation size is a power of two and >> less than PCPU_MIN_UNIT_SIZ

Re: [PATCH net-next] tcp: Check daddr_cache before use in tracepoint

2017-10-16 Thread Eric Dumazet
On Mon, 2017-10-16 at 14:29 -0700, David Ahern wrote: > Running perf in one window to capture tcp_retransmit_skb tracepoint: > $ perf record -e tcp:tcp_retransmit_skb -a > > And causing a retransmission on an active TCP session (e.g., dropping > packets in the receiver, changing MTU on the int

Re: [PATCH net-next] virtio_net: implement VIRTIO_CONFIG_S_NEEDS_RESET

2017-10-16 Thread Michael S. Tsirkin
On Tue, Oct 17, 2017 at 11:05:07AM +0800, Jason Wang wrote: > > > On 2017年10月17日 06:34, Willem de Bruijn wrote: > > On Mon, Oct 16, 2017 at 12:38 PM, Michael S. Tsirkin > > wrote: > > > On Mon, Oct 16, 2017 at 12:04:57PM -0400, Willem de Bruijn wrote: > > > > On Mon, Oct 16, 2017 at 11:31 AM, M

Re: [PATCH net-next] virtio_net: implement VIRTIO_CONFIG_S_NEEDS_RESET

2017-10-16 Thread Jason Wang
On 2017年10月17日 06:34, Willem de Bruijn wrote: On Mon, Oct 16, 2017 at 12:38 PM, Michael S. Tsirkin wrote: On Mon, Oct 16, 2017 at 12:04:57PM -0400, Willem de Bruijn wrote: On Mon, Oct 16, 2017 at 11:31 AM, Michael S. Tsirkin wrote: On Mon, Oct 16, 2017 at 11:03:18AM -0400, Willem de Bruijn

[net-next PATCH] macvlan/macvtap: Add support for L2 forwarding offloads with macvtap

2017-10-16 Thread Alexander Duyck
This patch reverts earlier commit b13ba1b83f52 ("macvlan: forbid L2 fowarding offload for macvtap"). The reason for reverting this is because the original patch no longer fixes what it previously did as the underlying structure has changed for macvtap. Specifically macvtap originally pulled packets

[PATCH net-next] tcp: fix tcp_xmit_retransmit_queue() after rbtree introduction

2017-10-16 Thread Eric Dumazet
From: Eric Dumazet I tried to hard avoiding a call to rb_first() (via tcp_rtx_queue_head) in tcp_xmit_retransmit_queue(). But this was probably too bold. Quoting Yuchung : We might miss re-arming the RTO if tp->retransmit_skb_hint is not NULL. This can happen when RACK marks the first packet lo

Re: [PATCH v3] net: ftgmac100: Request clock and set speed

2017-10-16 Thread Andrew Jeffery
On Fri, 2017-10-13 at 12:16 +0800, Joel Stanley wrote: > According to the ASPEED datasheet, gigabit speeds require a clock of > 100MHz or higher. Other speeds require 25MHz or higher. This patch > configures a 100MHz clock if the system has a direct-attached > PHY, or 25MHz if the system is running

Re: [iproute2] regression in ss output

2017-10-16 Thread Eric Dumazet
On Mon, 2017-10-16 at 14:28 -0700, Stephen Hemminger wrote: > On Mon, 16 Oct 2017 20:44:07 + > Humberto Alves wrote: > > > Yes, just get rid of this 'if statement'. > > in6addr_any should be represented as '::', not '*'. Otherwise it's > > impossible to distinguish IPv4 listening addresses f

Hello

2017-10-16 Thread Mrs. AmiraaWilliams
Hello Dear, Please forgive me for stressing you with my predicaments as I know that this letter may come to you as big surprise. Actually, I came across your E-mail from my personal search afterward I decided to email you directly believing that you will be honest to fulfill my final wish before i

Re: RFC(v2): Audit Kernel Container IDs

2017-10-16 Thread Steve Grubb
On Monday, October 16, 2017 8:33:40 PM EDT Richard Guy Briggs wrote: > On 2017-10-12 16:33, Casey Schaufler wrote: > > On 10/12/2017 7:14 AM, Richard Guy Briggs wrote: > > > Containers are a userspace concept. The kernel knows nothing of them. > > > > > > The Linux audit system needs a way to be

Re: net-next: WARNING: CPU: 0 PID: 1544 at net/ipv4/tcp_input.c:889

2017-10-16 Thread Eric Dumazet
On Mon, Oct 16, 2017 at 4:11 PM, Andrei Vagin wrote: > Hi Eric, > > Could you take a look at this warning? It may be related with your > recent patches. First time we saw this warning 7 days ago > (net-next/master) and now we see it regularly. > > I printed tp->fackets_out and state->reord before

[patch net v3 4/4] selftests: Introduce a new test case to tc testsuite

2017-10-16 Thread Chris Mi
In this patchset, we fixed a tc bug. This patch adds the test case that reproduces the bug. To run this test case, user should specify an existing NIC device: # sudo ./tdc.py -d enp4s0f0 This test case belongs to category "flower". If user doesn't specify a NIC device, the test cases belong to "

[patch net v3 3/4] selftests: Introduce a new script to generate tc batch file

2017-10-16 Thread Chris Mi
# ./tdc_batch.py -h usage: tdc_batch.py [-h] [-n NUMBER] [-o] [-s] [-p] device file TC batch file generator positional arguments: devicedevice name file batch file name optional arguments: -h, --helpshow this help message and exi

[patch net v3 2/4] net/sched: Use action array instead of action list as parameter

2017-10-16 Thread Chris Mi
When destroying filters, actions should be destroyed first. The pointers of each action are saved in an array. TC doesn't use the array directly, but put all actions in a doubly linked list and use that list as parameter. There is no problem if each filter has its own actions. But if some filters

[patch net v3 1/4] net/sched: Change tc_action refcnt and bindcnt to atomic

2017-10-16 Thread Chris Mi
If many filters share the same action. That action's refcnt and bindcnt could be manipulated by many RCU callbacks at the same time. This patch makes these operations atomic. Fixes commit in pre-git era. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Chris Mi Acked-by: Jamal Hadi Salim

[patch net v3 0/4] net/sched: Fix a system panic when deleting filters

2017-10-16 Thread Chris Mi
If some filters share the same action, when deleting these filters, it is possible to create a system panic. This is because deletions could be manipulated by many RCU callbacks at the same time. This patch set fixes these issues. To reproduce the issue run selftests in patch 3 and 4. To test if t

RE: [patch net v2 1/4] net/sched: Change tc_action refcnt and bindcnt to atomic

2017-10-16 Thread Chris Mi
> -Original Message- > From: Cong Wang [mailto:xiyou.wangc...@gmail.com] > Sent: Tuesday, October 17, 2017 1:06 AM > To: Chris Mi > Cc: Linux Kernel Network Developers ; Jamal Hadi > Salim ; Lucas Bates ; Jiri Pirko > ; David Miller > Subject: Re: [patch net v2 1/4] net/sched: Change tc

Re: RFC(v2): Audit Kernel Container IDs

2017-10-16 Thread Casey Schaufler
On 10/16/2017 5:33 PM, Richard Guy Briggs wrote: > On 2017-10-12 16:33, Casey Schaufler wrote: >> On 10/12/2017 7:14 AM, Richard Guy Briggs wrote: >>> Containers are a userspace concept. The kernel knows nothing of them. >>> >>> The Linux audit system needs a way to be able to track the container

homepage of iptuils-tracepth ?

2017-10-16 Thread shirish शिरीष
Dear all, Please CC me as I'm not subscribed to the list. I recently came across iptuils-tracepath . I tried to find the upstream homepage for it and saw http://www.skbuff.net/iputils/ but it shows an older version while Debian seems to have the later/latest [$] apt-cache policy iputils-tracepath

RE: [patch net v2 4/4] selftests: Introduce a new test case to tc testsuite

2017-10-16 Thread Chris Mi
> -Original Message- > From: Lucas Bates [mailto:luc...@mojatatu.com] > Sent: Tuesday, October 17, 2017 12:25 AM > To: Chris Mi > Cc: netdev@vger.kernel.org; Jamal Hadi Salim ; Cong > Wang ; Jiri Pirko ; > da...@davemloft.net > Subject: Re: [patch net v2 4/4] selftests: Introduce a new t

[next-queue PATCH v9 2/6] net/sched: Change behavior of mq select_queue()

2017-10-16 Thread Vinicius Costa Gomes
From: Jesus Sanchez-Palencia Currently, the class_ops select_queue() implementation on sch_mq returns a pointer to netdev_queue #0 when it receives and invalid qdisc id. That can be misleading since all of mq's inner qdiscs are attached to a valid netdev_queue. Here we fix that by returning NULL

[next-queue PATCH v9 6/6] igb: Add support for CBS offload

2017-10-16 Thread Vinicius Costa Gomes
From: Andre Guedes This patch adds support for Credit-Based Shaper (CBS) qdisc offload from Traffic Control system. This support enable us to leverage the Forwarding and Queuing for Time-Sensitive Streams (FQTSS) features from Intel i210 Ethernet Controller. FQTSS is the former 802.1Qav standard

[next-queue PATCH v9 3/6] net/sched: Add select_queue() class_ops for mqprio

2017-10-16 Thread Vinicius Costa Gomes
From: Jesus Sanchez-Palencia When replacing a child qdisc from mqprio, tc_modify_qdisc() must fetch the netdev_queue pointer that the current child qdisc is associated with before creating the new qdisc. Currently, when using mqprio as root qdisc, the kernel will end up getting the queue #0 poin

[next-queue PATCH v9 4/6] net/sched: Introduce Credit Based Shaper (CBS) qdisc

2017-10-16 Thread Vinicius Costa Gomes
This queueing discipline implements the shaper algorithm defined by the 802.1Q-2014 Section 8.6.8.2 and detailed in Annex L. It's primary usage is to apply some bandwidth reservation to user defined traffic classes, which are mapped to different queues via the mqprio qdisc. Only a simple software

[next-queue PATCH v9 5/6] net/sched: Add support for HW offloading for CBS

2017-10-16 Thread Vinicius Costa Gomes
This adds support for offloading the CBS algorithm to the controller, if supported. Drivers wanting to support CBS offload must implement the .ndo_setup_tc callback and handle the TC_SETUP_CBS (introduced here) type. Signed-off-by: Vinicius Costa Gomes --- include/linux/netdevice.h | 1 + incl

[next-queue PATCH v9 0/6] TSN: Add qdisc based config interface for CBS

2017-10-16 Thread Vinicius Costa Gomes
Hi, Changes from v8: - Add an explicit padding field to the tc_cbs_qopt struct, as pointed out by David Laight; Changes from v7: - Fixed comments from Eric Dumazet and Ivan Khoronzhuk; Changes since v6: - Fixed compilation for 32bit arches; - Aligned the behaviour of .select_queue() of th

[next-queue PATCH v9 1/6] net/sched: Check for null dev_queue on create flow

2017-10-16 Thread Vinicius Costa Gomes
From: Jesus Sanchez-Palencia In qdisc_alloc() the dev_queue pointer was used without any checks being performed. If qdisc_create() gets a null dev_queue pointer, it just passes it along to qdisc_alloc(), leading to a crash. That happens if a root qdisc implements select_queue() and returns a null

Re: WARNING in tcp_update_reordering

2017-10-16 Thread David Ahern
[ cc Andrei who reported a similar trace ] On 10/16/17 6:50 PM, Yuchung Cheng wrote: > On Mon, Oct 16, 2017 at 3:38 PM, David Ahern wrote: >> I need to throw this one over the fence. I triggered the trace below >> testing changes to the tcp tracepoint. It is not readily reproducible >> and does n

[PATCH 50/58] net: hns: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Switches test of .data field to .function, since .data will be going away. Cc: Yisen Zhuang Cc: Salil Mehta

[PATCH 31/58] isdn/gigaset: Use kzalloc instead of open-coded field zeroing

2017-10-16 Thread Kees Cook
This replaces a kmalloc followed by a bunch of per-field zeroing with a single kzalloc call, reducing the lines of code. Cc: Paul Bolle Cc: Karsten Keil Cc: "David S. Miller" Cc: Johan Hovold Cc: gigaset307x-com...@lists.sourceforge.net Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook ---

[PATCH 57/58] ipv4: timewait: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "David S. Miller" Cc: Alexey Kuznetsov Cc: Hideaki YOSHIFUJI Cc: netdev@vger.kernel.org Signed-off-by

Re: WARNING in tcp_update_reordering

2017-10-16 Thread Yuchung Cheng
On Mon, Oct 16, 2017 at 3:38 PM, David Ahern wrote: > > I need to throw this one over the fence. I triggered the trace below > testing changes to the tcp tracepoint. It is not readily reproducible > and does not appear to be correlated to the perf session. We're seeing this internally at Google a

[PATCH 58/58] sunrpc: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Trond Myklebust Cc: Anna Schumaker Cc: "J. Bruce Fields" Cc: Jeff Layton Cc: "David S. Miller" Cc:

[PATCH 55/58] net: fs_enet: Remove unused timer

2017-10-16 Thread Kees Cook
Removes unused timer and its old initialization call. Cc: Pantelis Antoniou Cc: Vitaly Bordug Cc: linuxppc-...@lists.ozlabs.org Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook --- drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 2 -- drivers/net/ethernet/freescale/fs_enet/fs_enet.h

[PATCH 29/58] forcedeth: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "David S. Miller" Cc: Zhu Yanjun Cc: Philippe Reynes Cc: netdev@vger.kernel.org Signed-off-by: Kees C

[PATCH 24/58] chelsio: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "David S. Miller" Cc: Johannes Berg Cc: Eric Dumazet Cc: netdev@vger.kernel.org Signed-off-by: Kees C

[PATCH 54/58] net/xen-netback: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Wei Liu Cc: Paul Durrant Cc: xen-de...@lists.xenproject.org Cc: netdev@vger.kernel.org Signed-off-by:

[PATCH 17/58] net/cw1200: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Solomon Peachy Cc: Kalle Valo Cc: linux-wirel...@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off

[PATCH 56/58] um: net: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. (Note that this timer is actually disabled.) Cc: Jeff Dike Cc: Richard Weinberger Cc: "David S. Miller" C

[PATCH 26/58] bna: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Rasesh Mody Cc: Sudarsana Kalluru Cc: dept-gelinuxnic...@cavium.com Cc: netdev@vger.kernel.org Signed-

[PATCH 27/58] net: dl2k: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "David S. Miller" Cc: Jarod Wilson Cc: Tobias Klauser Cc: Philippe Reynes Cc: netdev@vger.kernel.org

[PATCH 18/58] net: vxge: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Jon Mason Cc: "David S. Miller" Cc: Miroslav Lichvar Cc: Jarod Wilson Cc: Eric Dumazet Cc: stephen

[PATCH 19/58] drivers/atm/suni: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Passes NULL timer when doing non- timer call. Cc: Chas Williams <3ch...@gmail.com> Cc: linux-atm-gene...@lis

[PATCH 25/58] net: amd8111e: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jarod Wilson Cc: Philippe Reynes Cc: netdev@vger.kernel.org S

Re: Linux 4.12+ memory leak on router with i40e NICs

2017-10-16 Thread Paweł Staszewski
W dniu 2017-10-17 o 01:56, Alexander Duyck pisze: On Mon, Oct 16, 2017 at 4:34 PM, Paweł Staszewski wrote: W dniu 2017-10-16 o 18:26, Paweł Staszewski pisze: W dniu 2017-10-16 o 13:20, Pavlos Parissis pisze: On 15/10/2017 02:58 πμ, Alexander Duyck wrote: Hi Pawel, To clarify is that Da

[PATCH 04/58] net/irda-usb: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. This requires adding a pointer to hold the timer's target URB, as there won't be a way to pass this in the fu

[PATCH 02/58] net/lapb: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "David S. Miller" Cc: Hans Liljestrand Cc: "Reshetova, Elena" Cc: linux-...@vger.kernel.org Cc: netde

[PATCH 00/58] networking: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
This is the current set of outstanding networking patches to perform conversions to the new timer interface (rebased to -next). This is not all expected conversions, but it contains everything needed in networking to eliminate init_timer(), and all the non-standard setup_*_timer() uses. Thanks, -

[PATCH 03/58] net/rose: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Ralf Baechle Cc: "David S. Miller" Cc: linux-h...@vger.kernel.org Cc: netdev@vger.kernel.org Signed-of

[PATCH 16/58] net: ethernet: stmmac: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook Acked-by:

[PATCH 38/58] hdlc: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. This adds a pointer back to the net_device, and drops needless open-coded resetting of the .function and .dat

[PATCH 39/58] appletalk: Remove unneeded synchronization

2017-10-16 Thread Kees Cook
The use of del_timer_sync() will make sure a timer is not rescheduled. As such, there is no need to add external signals to kill timers. In preparation for switching the timer callback argument to the timer pointer, this drops the .data argument since it doesn't serve a meaningful purpose here. Cc

[PATCH 37/58] net/core: Collapse redundant sk_timer callback data assignments

2017-10-16 Thread Kees Cook
The core sk_timer initializer can provide the common .data assignment instead of it being set separately in users. Cc: "David S. Miller" Cc: Ralf Baechle Cc: Andrew Hendry Cc: Eric Dumazet Cc: Paolo Abeni Cc: David Howells Cc: Colin Ian King Cc: Ingo Molnar Cc: linzhang Cc: netdev@vger.ke

[PATCH 36/58] inet: frags: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Alexander Aring Cc: Stefan Schmidt Cc: "David S. Miller" Cc: Alexey Kuznetsov Cc: Hideaki YOSHIFUJI

[PATCH 35/58] inet/connection_sock: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "David S. Miller" Cc: Gerrit Renker Cc: Alexey Kuznetsov Cc: Hideaki YOSHIFUJI Cc: netdev@vger.kerne

[PATCH 41/58] net/atm/mpc: Stop using open-coded timer .data field

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using an explicit static variable to hold additional expiration details. Cc: "David S. Miller" Cc: Andrew Morton Cc: Alexey Dobriyan Cc: "Reshetova, Elena" Cc: netdev@vger.kernel.org Sign

[PATCH 32/58] isdn/gigaset: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Paul Bolle Cc: Karsten Keil Cc: "David S. Miller" Cc: Johan Hovold Cc: gigaset307x-com...@lists.sour

[PATCH 33/58] net: sched: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Add pointer back to Qdisc. Cc: Jamal Hadi Salim Cc: Cong Wang Cc: Jiri Pirko Cc: "David S. Miller" Cc: n

[PATCH 44/58] net: ethernet: sun: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "David S. Miller" Cc: Philippe Reynes Cc: Jarod Wilson Cc: Shannon Nelson Cc: Rob Herring Cc: chris

[PATCH 28/58] net: ksz884x: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "David S. Miller" Cc: Johannes Berg Cc: Jarod Wilson Cc: Masahiro Yamada Cc: Philippe Reynes Cc: ne

[PATCH 52/58] net/core: Convert sk_timer users to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly for all users of sk_timer. Cc: "David S. Miller" Cc: Ralf Baechle Cc: Andrew Hendry Cc: Eric Dumazet Cc:

[PATCH 40/58] drivers/net/appletalk: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Adds a static variable to hold the polled net_device. Cc: David Howells Cc: netdev@vger.kernel.org Signed-o

[PATCH 34/58] netfilter: ipset: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. This introduces a pointer back to the struct ip_set, which is used instead of the struct timer_list .data fie

[PATCH 21/58] net: tulip: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "David S. Miller" Cc: David Howells Cc: Jarod Wilson Cc: Stephen Hemminger Cc: Johannes Berg Cc: Er

[PATCH 46/58] hamradio/scc: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Joerg Reuter Cc: linux-h...@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook --- d

[PATCH 22/58] net: can: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Oliver Hartkopp Cc: Marc Kleine-Budde Cc: "David S. Miller" Cc: linux-...@vger.kernel.org Cc: netdev@

[PATCH 47/58] net/ethernet/sgi: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Ralf Baechle Cc: linux-m...@linux-mips.org Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook --- dr

[PATCH 45/58] net: seeq: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Russell King Cc: linux-arm-ker...@lists.infradead.org Cc: netdev@vger.kernel.org Signed-off-by: Kees Co

[PATCH 10/58] isdn/hisax: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Karsten Keil Cc: Geliang Tang Cc: "David S. Miller" Cc: netdev@vger.kernel.org Signed-off-by: Kees Co

[PATCH 11/58] net/hamradio/6pack: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Andreas Koensgen Cc: linux-h...@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook --

[PATCH 05/58] net/irda/bfin_sir: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Samuel Ortiz Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook --- drivers/staging/irda/drivers/bfi

[PATCH 12/58] xfrm: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() helper to pass the timer pointer explicitly. Cc: Steffen Klassert Cc: Herbert Xu Cc: "David S. Miller" Cc: netdev@vger.kernel.org Signed-off-by

[PATCH 09/58] net/irda: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Samuel Ortiz Cc: "David S. Miller" Cc: Stephen Hemminger Cc: Johannes Berg Cc: Ingo Molnar Cc: netd

[PATCH 13/58] ethernet/broadcom: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() helper to pass the timer pointer explicitly. Cc: Florian Fainelli Cc: bcm-kernel-feedback-l...@broadcom.com Cc: "David S. Miller" Cc: Arnd Bergm

[PATCH 08/58] net/wireless/ray_cs: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Kalle Valo Cc: linux-wirel...@vger.kernel.org Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook ---

[PATCH 14/58] net: tulip: de2104x: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "David S. Miller" Cc: "yuval.sh...@oracle.com" Cc: Tobias Klauser Cc: Jarod Wilson Cc: Philippe Reyn

[PATCH 06/58] net/ti/tlan: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Samuel Chessman Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook --- drivers/net/ethernet/ti/tlan.

[PATCH 15/58] pcmcia/electra_cf: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Michael Ellerman Cc: linux-pcm...@lists.infradead.org Signed-off-by: Kees Cook --- drivers/pcmcia/ele

[PATCH 07/58] net/usb/usbnet: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Since the callback is called from both a timer and a tasklet, adjust the tasklet to pass the timer address to

Re: RFC(v2): Audit Kernel Container IDs

2017-10-16 Thread Richard Guy Briggs
On 2017-10-12 16:33, Casey Schaufler wrote: > On 10/12/2017 7:14 AM, Richard Guy Briggs wrote: > > Containers are a userspace concept. The kernel knows nothing of them. > > > > The Linux audit system needs a way to be able to track the container > > provenance of events and actions. Audit needs t

[PATCH 20/58] atm: idt77252: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. This required adding a pointer back to vc_map, and adjusting the locking around removal a bit. Cc: Chas Will

[PATCH 23/58] drivers/net/3com: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Steffen Klassert Cc: "David S. Miller" Cc: Jarod Wilson Cc: netdev@vger.kernel.org Signed-off-by: Kee

[PATCH 42/58] isdnloop: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Added missing initialization for rb_timer. Cc: Karsten Keil Cc: "David S. Miller" Cc: Al Viro Cc: Stephen

[PATCH 53/58] net: atm: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Also drops a redundant initialization that is already set up by DEFINE_TIMER. Cc: "David S. Miller" Cc: Han

[PATCH 51/58] ethernet/intel: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Switches test of .data field to .function, since .data will be going away. Cc: Jeff Kirsher Cc: intel-wired

[PATCH 43/58] net: ethernet: apple: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "David S. Miller" Cc: Johannes Berg Cc: Jarod Wilson Cc: Rob Herring Cc: netdev@vger.kernel.org Sign

[PATCH 48/58] net: usb: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Woojung Huh Cc: Microchip Linux Driver Support Cc: "David S. Miller" Cc: Ben Hutchings Cc: Philippe

[PATCH 49/58] net: neterion: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Jon Mason Cc: netdev@vger.kernel.org Signed-off-by: Kees Cook --- drivers/net/ethernet/neterion/s2io.

[PATCH 30/58] mISDN: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: Karsten Keil Cc: Geliang Tang Cc: "David S. Miller" Cc: Masahiro Yamada Cc: Andrew Morton Cc: Anton

[PATCH 01/58] net/decnet: Convert timers to use timer_setup()

2017-10-16 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Cc: "David S. Miller" Cc: Johannes Berg Cc: David Ahern Cc: linux-decnet-u...@lists.sourceforge.net Cc: n

Re: [PATCH v2 09/15] ACPI: configfs: make config_item_type const

2017-10-16 Thread Rafael J. Wysocki
On Monday, October 16, 2017 5:18:48 PM CEST Bhumika Goyal wrote: > Make these structures const as they are either passed to the functions > having the argument as const or stored as a reference in the "ci_type" > const field of a config_item structure. > > Done using Coccienlle. > > Signed-off-by

[net-next PATCH] net/mqprio: Fix build error due to non-exported symbol

2017-10-16 Thread Alexander Duyck
From: Alexander Duyck I overlooked the fact that netdev_txq_to_tc was not an exported symbol. To fix that I am providing the export for the symbol in order to avoid breaking builds where mqprio is not built into the kernel. Signed-off-by: Alexander Duyck --- net/core/dev.c |1 + 1 file cha

Re: Linux 4.12+ memory leak on router with i40e NICs

2017-10-16 Thread Alexander Duyck
On Mon, Oct 16, 2017 at 4:34 PM, Paweł Staszewski wrote: > > > W dniu 2017-10-16 o 18:26, Paweł Staszewski pisze: > >> >> >> W dniu 2017-10-16 o 13:20, Pavlos Parissis pisze: >>> >>> On 15/10/2017 02:58 πμ, Alexander Duyck wrote: Hi Pawel, To clarify is that Dave Miller's tree

[PATCH net-next 3/4] bpf: move knowledge about post-translation offsets out of verifier

2017-10-16 Thread Jakub Kicinski
Use the fact that verifier ops are now separate from program ops to define a separate set of callbacks for verification of already translated programs. Since we expect the analyzer ops to be defined only for a small subset of all program types initialize their array by hand (don't use linux/bpf_ty

  1   2   3   4   >