Re: [RFC PATCH v2 02/11] slab: add private memory allocator header for arch/lib

2015-04-17 Thread Christoph Lameter
On Fri, 17 Apr 2015, Richard Weinberger wrote: > SLUB is the unqueued SLAB and SLLB is the library SLAB. :D Good that this convention is now so broadly known that I did not even have to explain what it meant. But I think you can give it any name you want. SLLB was just a way to tersely state how

Re: [PATCH] Bluetooth: Pre-initialize variables in read_local_oob_ext_data_complete()

2015-04-17 Thread Marcel Holtmann
Hi Geert, >>> net/bluetooth/mgmt.c: In function ‘read_local_oob_ext_data_complete’: >>> net/bluetooth/mgmt.c:6474: warning: ‘r256’ may be used uninitialized in >>> this function >>> net/bluetooth/mgmt.c:6474: warning: ‘h256’ may be used uninitialized in >>> this function >>> net/bluetooth/mgmt.c

[PATCH] Bluetooth: hidp: Fix regression with older userspace and flags validation

2015-04-17 Thread Marcel Holtmann
While it is not used by newer userspace anymore, the older userspace was utilizing HIDP_VIRTUAL_CABLE_UNPLUG and HIDP_BOOT_PROTOCOL_MODE flags when adding a new HIDP connection. The flags validation is important, but we can not break older userspace and with that allow providing these flags even i

[PATCH v1 net-next 1/2] igb: add PHY support for Broadcom 5461S

2015-04-17 Thread Jonathan Toppins
From: Alan Liebthal The Quanta LY8 Ethernet management port uses a Broadcom 5461S chip for the PHY layer. This adds support for this PHY to the Intel igb driver. Signed-off-by: Alan Liebthal Signed-off-by: Jonathan Toppins --- drivers/net/ethernet/intel/igb/e1000_82575.c | 20 +- driv

[PATCH v1 net-next 2/2] igb: support SIOCSMIIREG

2015-04-17 Thread Jonathan Toppins
From: Alan Liebthal Support setting the MII register via SIOCSMIIREG. Signed-off-by: Alan Liebthal Signed-off-by: Jonathan Toppins --- drivers/net/ethernet/intel/igb/igb_main.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net

[GIT] Networking

2015-04-17 Thread David Miller
1) Fix verifier memory corruption and other bugs in BPF layer, from Alexei Starovoitov. 2) Add a conservative fix for doing BPF properly in the BPF classifier of the packet scheduler on ingress. Also from Alexei. 3) The SKB scrubber should not clear out the packet MARK and security lab

Re: [PATCHSET] printk, netconsole: implement reliable netconsole

2015-04-17 Thread David Miller
From: Tejun Heo Date: Fri, 17 Apr 2015 15:52:38 -0400 > Hello, > > On Fri, Apr 17, 2015 at 02:55:37PM -0400, David Miller wrote: >> > * The bulk of patches are to pipe extended log messages to console >> > drivers and let netconsole relay them to the receiver (and quite a >> > bit of refacto

Re: [PATCH] Bluetooth: Pre-initialize variables in read_local_oob_ext_data_complete()

2015-04-17 Thread Geert Uytterhoeven
Hi Marcel, On Thu, Apr 16, 2015 at 10:34 PM, Marcel Holtmann wrote: >> net/bluetooth/mgmt.c: In function ‘read_local_oob_ext_data_complete’: >> net/bluetooth/mgmt.c:6474: warning: ‘r256’ may be used uninitialized in this >> function >> net/bluetooth/mgmt.c:6474: warning: ‘h256’ may be used unini

Re: [PATCH v2] net: dsa: use DEVICE_ATTR_RW to declare temp1_max

2015-04-17 Thread David Miller
From: Guenter Roeck Date: Fri, 17 Apr 2015 12:40:06 -0700 > On Fri, Apr 17, 2015 at 03:12:25PM -0400, Vivien Didelot wrote: >> Since commit da4759c (sysfs: Use only return value from is_visible for >> the file mode), it is possible to reduce the permissions of a file. >> >> So declare temp1_max

Re: [PATCH] netns: deinline net_generic()

2015-04-17 Thread David Miller
From: Denys Vlasenko Date: Fri, 17 Apr 2015 19:05:17 +0200 > On 04/16/2015 02:38 PM, Eric Dumazet wrote: >> On Thu, 2015-04-16 at 13:14 +0200, Denys Vlasenko wrote: >> >>> However, without BUG_ONs, function is still a bit big >>> on PREEMPT configs. >> >> Only on allyesconfig builds, that nobod

Re: [PATCHSET] printk, netconsole: implement reliable netconsole

2015-04-17 Thread Tejun Heo
Hello, On Fri, Apr 17, 2015 at 02:55:37PM -0400, David Miller wrote: > > * The bulk of patches are to pipe extended log messages to console > > drivers and let netconsole relay them to the receiver (and quite a > > bit of refactoring in the process), which, regardless of the > > reliability

Re: [PATCH v2] net: dsa: use DEVICE_ATTR_RW to declare temp1_max

2015-04-17 Thread Guenter Roeck
On Fri, Apr 17, 2015 at 03:12:25PM -0400, Vivien Didelot wrote: > Since commit da4759c (sysfs: Use only return value from is_visible for > the file mode), it is possible to reduce the permissions of a file. > > So declare temp1_max with the DEVICE_ATTR_RW macro and remove the write > permission in

Re: [PATCH] netns: remove BUG_ONs from net_generic()

2015-04-17 Thread David Miller
From: Denys Vlasenko Date: Fri, 17 Apr 2015 19:06:30 +0200 > This inline has ~500 callsites. > > On 04/14/2015 08:37 PM, David Miller wrote: >> That BUG_ON() was added 7 years ago, and I don't remember it ever >> triggering or helping us diagnose something, so just remove it and >> keep the func

Re: [PATCH V1 net-next] IB/ipoib: Fix ndo_get_iflink

2015-04-17 Thread David Miller
From: Erez Shitrit Date: Thu, 16 Apr 2015 16:34:34 +0300 > Currently, iflink of the parent interface was always accessed, even > when interface didn't have a parent and hence we crashed there. > > Handle the interface types properly: for a child interface, return > the ifindex of the parent, fo

[PATCH] sfc: Fix memcpy() with const destination compiler warning.

2015-04-17 Thread David Miller
drivers/net/ethernet/sfc/selftest.c: In function ‘efx_iterate_state’: drivers/net/ethernet/sfc/selftest.c:388:9: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-array-qualifiers] This is because the msg[] member of struct efx_loopback_pay

Re: tg3 NIC driver bug in 3.14.x under Xen [and 3 more messages]

2015-04-17 Thread Prashant Sreedharan
On Fri, 2015-04-17 at 15:12 -0400, David Miller wrote: > From: Konrad Rzeszutek Wilk > Date: Fri, 17 Apr 2015 15:04:48 -0400 > > > From 9e417af099e3cee2b219ab28ffc1e96b0564b213 Mon Sep 17 00:00:00 2001 > > From: Konrad Rzeszutek Wilk > > Date: Fri, 17 Apr 2015 14:55:47 -0400 > > Subject: [PATCH]

[PATCH v2] net: dsa: use DEVICE_ATTR_RW to declare temp1_max

2015-04-17 Thread Vivien Didelot
Since commit da4759c (sysfs: Use only return value from is_visible for the file mode), it is possible to reduce the permissions of a file. So declare temp1_max with the DEVICE_ATTR_RW macro and remove the write permission in dsa_hwmon_attrs_visible if set_temp_limit isn't provided. Signed-off-by:

Re: [PATCH 1/1] altera tse: Fix network-delays and -retransmissions after high throughput.

2015-04-17 Thread David Miller
From: Andreas Oetken Date: Thu, 16 Apr 2015 23:48:08 +0200 > From: Andreas Oetken > > Fix bug which occurs when more than packets are available during > napi-poll, leading to "delays" and retransmissions on the network. > > Check for (count < limit) before checking the get_rx_status in > tse

Re: tg3 NIC driver bug in 3.14.x under Xen [and 3 more messages]

2015-04-17 Thread David Miller
From: Konrad Rzeszutek Wilk Date: Fri, 17 Apr 2015 15:04:48 -0400 > From 9e417af099e3cee2b219ab28ffc1e96b0564b213 Mon Sep 17 00:00:00 2001 > From: Konrad Rzeszutek Wilk > Date: Fri, 17 Apr 2015 14:55:47 -0400 > Subject: [PATCH] config: Enable NEED_DMA_MAP_STATE when SWIOTLB is selected > > A hu

Re: tg3 NIC driver bug in 3.14.x under Xen [and 3 more messages]

2015-04-17 Thread Konrad Rzeszutek Wilk
On Fri, Apr 17, 2015 at 10:46:09AM -0700, Michael Chan wrote: > On Fri, 2015-04-17 at 13:19 -0400, David Miller wrote: > > So the gist of the situation is, that NEED_DMA_MAP_STATE can be 'n' in > > situations where we might actually need it to be 'y' based upon kernel > > comman line boot options g

Re: [PATCH] netns: deinline net_generic()

2015-04-17 Thread David Miller
From: Eric Dumazet Date: Fri, 17 Apr 2015 10:42:16 -0700 > On Fri, 2015-04-17 at 19:05 +0200, Denys Vlasenko wrote: > >> How do you expect one to find excessively large inlines, >> if not on allyesconfig build? > > Tuning kernel sources based on allyesconfig build _size_ only is > terrible. We

Re: [PATCHSET] printk, netconsole: implement reliable netconsole

2015-04-17 Thread David Miller
From: Tejun Heo Date: Fri, 17 Apr 2015 13:37:54 -0400 > Hello, David. > > On Fri, Apr 17, 2015 at 01:17:12PM -0400, David Miller wrote: >> If userland cannot run properly, it is almost certain that neither will >> your complex reliability layer logic. > > * The bulk of patches are to pipe exten

Re: [PATCHSET] printk, netconsole: implement reliable netconsole

2015-04-17 Thread Tejun Heo
Hello, On Sat, Apr 18, 2015 at 03:20:41AM +0900, Tetsuo Handa wrote: > I didn't mean to introduce netconsole's own version of metadata. > I meant we don't need to implement in-kernel retry logic. Hmmm? I'm not really following where this discussion is headed. No, we don't have to put it in the

Re: [PATCHSET] printk, netconsole: implement reliable netconsole

2015-04-17 Thread Tetsuo Handa
Tejun Heo wrote: > On Sat, Apr 18, 2015 at 03:03:46AM +0900, Tetsuo Handa wrote: > > packet will be sufficient for finding out whether the packets were lost > > and/or > > reordered in flight. > > > > printk("Hello"); > >=> netconsole sends " Hello" using UDP > > printk("netconsol

[PATCH] pppoe: Lacks DST MAC address check

2015-04-17 Thread Joakim Tjernlund
A pppoe session is identified by its session ID and MAC address. Currently pppoe does not check if the received pkg has the correct MAC address. This is a problem when the eth I/F is in promisc mode as then any DST MAC address is accepted. Signed-off-by: Joakim Tjernlund --- drivers/net/ppp/pppo

Re: [PATCHSET] printk, netconsole: implement reliable netconsole

2015-04-17 Thread Tejun Heo
On Sat, Apr 18, 2015 at 03:03:46AM +0900, Tetsuo Handa wrote: > If you tolerate loss of kernel messages, adding sequence number to each UDP Well, there's a difference between accepting loss when log buffer overflows and when any packets get lost. > packet will be sufficient for finding out whethe

Re: [PATCH] netns: deinline net_generic()

2015-04-17 Thread Denys Vlasenko
On 04/17/2015 07:42 PM, Eric Dumazet wrote: > On Fri, 2015-04-17 at 19:05 +0200, Denys Vlasenko wrote: >> How do you expect one to find excessively large inlines, >> if not on allyesconfig build? > > Tuning kernel sources based on allyesconfig build _size_ only is > terrible. We could build an int

Re: [PATCHSET] printk, netconsole: implement reliable netconsole

2015-04-17 Thread Tejun Heo
Just a bit of addition. On Fri, Apr 17, 2015 at 01:37:54PM -0400, Tejun Heo wrote: > Upto patch 12, it's just the same mechanism transferring extended > messages. It doesn't add any smartness to netconsole per-se except > that it can now emit messages with metadata headers. What do you > think a

Re: [PATCHSET] printk, netconsole: implement reliable netconsole

2015-04-17 Thread Tetsuo Handa
Tejun Heo wrote: > > printk() cannot wait for ack. Trying to wait for ack would break something. > > How can you transmit subsequent kernel messages which failed to enqueue > > due to waiting for ack for previous kernel messages? > > Well, if log buffer overflows and the messages aren't at the log

[PATCH] bnx2x: Alloc 4k fragment for each rx ring buffer element

2015-04-17 Thread Gabriel Krisman Bertazi
The driver allocates one page for each buffer on the rx ring, which is too much on architectures like ppc64 and can cause unexpected allocation failures when the system is under stress. Now, if the architecture's PAGE_SIZE is greater than 4k, we fragment pages and assign each 4k segment to a ring

Re: tg3 NIC driver bug in 3.14.x under Xen [and 3 more messages]

2015-04-17 Thread Michael Chan
On Fri, 2015-04-17 at 13:19 -0400, David Miller wrote: > So the gist of the situation is, that NEED_DMA_MAP_STATE can be 'n' in > situations where we might actually need it to be 'y' based upon kernel > comman line boot options given. > > Right? Yes. > > -- To unsubscribe from this list: send

Re: [PATCHSET] printk, netconsole: implement reliable netconsole

2015-04-17 Thread Tejun Heo
On Sat, Apr 18, 2015 at 02:43:30AM +0900, Tetsuo Handa wrote: > > Upto patch 12, it's just the same mechanism transferring extended > > messages. It doesn't add any smartness to netconsole per-se except > > that it can now emit messages with metadata headers. What do you > > think about them? >

Re: [PATCHSET] printk, netconsole: implement reliable netconsole

2015-04-17 Thread Tetsuo Handa
Tejun Heo wrote: > Hello, David. > > On Fri, Apr 17, 2015 at 01:17:12PM -0400, David Miller wrote: > > If userland cannot run properly, it is almost certain that neither will > > your complex reliability layer logic. > > * The bulk of patches are to pipe extended log messages to console > drive

Re: [PATCH] netns: deinline net_generic()

2015-04-17 Thread Eric Dumazet
On Fri, 2015-04-17 at 19:05 +0200, Denys Vlasenko wrote: > How do you expect one to find excessively large inlines, > if not on allyesconfig build? Tuning kernel sources based on allyesconfig build _size_ only is terrible. We could build an interpreter based kernel and maybe reduce its size by 50

Re: [PATCHSET] printk, netconsole: implement reliable netconsole

2015-04-17 Thread Tejun Heo
Hello, David. On Fri, Apr 17, 2015 at 01:17:12PM -0400, David Miller wrote: > If userland cannot run properly, it is almost certain that neither will > your complex reliability layer logic. * The bulk of patches are to pipe extended log messages to console drivers and let netconsole relay them

Re: [v2] act_mirred: Fix bogus header when redirecting from VLAN

2015-04-17 Thread David Miller
From: Herbert Xu Date: Fri, 17 Apr 2015 13:32:09 +0800 > On Thu, Apr 16, 2015 at 07:40:30PM -0700, Alexei Starovoitov wrote: >> On Fri, Apr 17, 2015 at 10:15:01AM +0800, Herbert Xu wrote: >> > > seems the cleaner fix will be to push skb->mac_len instead? >> > >> > No skb->mac_len is the same as

Re: [PATCH] net: remove unused 'dev' argument from netif_needs_gso()

2015-04-17 Thread David Miller
From: Johannes Berg Date: Fri, 17 Apr 2015 15:45:04 +0200 > From: Johannes Berg > > In commit 04ffcb255f22 ("net: Add ndo_gso_check") Tom originally > added the 'dev' argument to be able to call ndo_gso_check(). > > Then later, when generalizing this in commit 5f35227ea34b > ("net: Generalize

Re: [PATCH net] tcp: tcp_get_info() should fetch socket fields once

2015-04-17 Thread David Miller
From: Eric Dumazet Date: Thu, 16 Apr 2015 16:12:28 -0700 > From: Eric Dumazet > > tcp_get_info() can be called without holding socket lock, > so any socket fields can change under us. > > Use READ_ONCE() to fetch sk_pacing_rate and sk_max_pacing_rate > > Fixes: 977cb0ecf82e ("tcp: add pacing_

Re: [PATCH net] inet_diag: fix access to tcp cc information

2015-04-17 Thread David Miller
From: Eric Dumazet Date: Thu, 16 Apr 2015 18:10:35 -0700 > From: Eric Dumazet > > Two different problems are fixed here : > > 1) inet_sk_diag_fill() might be called without socket lock held. >icsk->icsk_ca_ops can change under us and module be unloaded. >-> Access to freed memory. >

Re: [PATCH net-next] ip: Add color output option

2015-04-17 Thread Daniel Borkmann
On 04/17/2015 06:44 PM, Alexei Starovoitov wrote: On Fri, Apr 17, 2015 at 04:02:02PM +0300, Mathias Nyman wrote: It is hard to quickly find what you are looking for in the output of the ip command. Color helps. This patch adds a '-c' flag to highlight these with individual colors: - interfac

Re: tg3 NIC driver bug in 3.14.x under Xen [and 3 more messages]

2015-04-17 Thread David Miller
From: Ian Jackson Date: Fri, 17 Apr 2015 17:29:28 +0100 > Prashant Sreedharan writes ("Re: tg3 NIC driver bug in 3.14.x under Xen [and > 3 more messages]"): >> Ok this is what is causing the problem, the driver uses >> DEFINE_DMA_UNMAP_ADDR(), dma_unmap_addr_set() to keep a copy of the dma >> "m

Re: [PATCHSET] printk, netconsole: implement reliable netconsole

2015-04-17 Thread David Miller
From: Tejun Heo Date: Fri, 17 Apr 2015 12:28:26 -0400 > On Sat, Apr 18, 2015 at 12:35:06AM +0900, Tetsuo Handa wrote: >> If the sender side can wait for retransmission, why can't we use >> userspace programs (e.g. rsyslogd)? > > Because the system may be oopsing, ooming or threshing excessively

[PATCH] netns: remove BUG_ONs from net_generic()

2015-04-17 Thread Denys Vlasenko
This inline has ~500 callsites. On 04/14/2015 08:37 PM, David Miller wrote: > That BUG_ON() was added 7 years ago, and I don't remember it ever > triggering or helping us diagnose something, so just remove it and > keep the function inlined. On x86 allyesconfig build: text data bss

Re: [PATCH] netns: deinline net_generic()

2015-04-17 Thread Denys Vlasenko
On 04/16/2015 02:38 PM, Eric Dumazet wrote: > On Thu, 2015-04-16 at 13:14 +0200, Denys Vlasenko wrote: > >> However, without BUG_ONs, function is still a bit big >> on PREEMPT configs. > > Only on allyesconfig builds, that nobody use but to prove some points > about code size. How do you expect

Re: [PATCH net-next] ip: Add color output option

2015-04-17 Thread Alexei Starovoitov
On Fri, Apr 17, 2015 at 04:02:02PM +0300, Mathias Nyman wrote: > It is hard to quickly find what you are looking for in the output of the ip > command. Color helps. > > This patch adds a '-c' flag to highlight these with individual colors: > - interface name > - ip addresse > - mac addresse

Re: tg3 NIC driver bug in 3.14.x under Xen [and 3 more messages]

2015-04-17 Thread Ian Jackson
Prashant Sreedharan writes ("Re: tg3 NIC driver bug in 3.14.x under Xen [and 3 more messages]"): > Ok this is what is causing the problem, the driver uses > DEFINE_DMA_UNMAP_ADDR(), dma_unmap_addr_set() to keep a copy of the dma > "mapping" and dma_unmap_addr() to get the "mapping" value. On most

Re: [PATCHSET] printk, netconsole: implement reliable netconsole

2015-04-17 Thread Tejun Heo
Hello, On Sat, Apr 18, 2015 at 12:35:06AM +0900, Tetsuo Handa wrote: > If the sender side can wait for retransmission, why can't we use > userspace programs (e.g. rsyslogd)? Because the system may be oopsing, ooming or threshing excessively rendering the userland inoperable and that's exactly whe

Re: [PATCHSET] printk, netconsole: implement reliable netconsole

2015-04-17 Thread Tetsuo Handa
Tejun Heo wrote: > * Implement netconsole retransmission support. Matching rx socket on > the source port is automatically created for extended targets and > the log receiver can request retransmission by sending reponse > packets. This is completely decoupled from the main write path and >

Re: [RFC PATCH v2 02/11] slab: add private memory allocator header for arch/lib

2015-04-17 Thread Hajime Tazaki
At Fri, 17 Apr 2015 17:08:22 +0200, Richard Weinberger wrote: > add header includion for CONFIG_LIB to wrap kmalloc and co. This will > bring malloc(3) based allocator used by arch/lib. > >>> > >>> Maybe add another allocator insteadl? SLLB which implements memory > >>> management using

Re: [v2] act_mirred: Fix bogus header when redirecting from VLAN

2015-04-17 Thread Alexei Starovoitov
On Fri, Apr 17, 2015 at 01:32:09PM +0800, Herbert Xu wrote: > When you redirect a VLAN device to any device, you end up with > crap in af_packet on the xmit path because hard_header_len is > not equal to skb->mac_len. So the redirected packet contains > four extra bytes at the start which then get

Re: [RFC PATCH v2 02/11] slab: add private memory allocator header for arch/lib

2015-04-17 Thread Richard Weinberger
Am 17.04.2015 um 17:02 schrieb Hajime Tazaki: > > Hi Christoph, Richard, > > At Fri, 17 Apr 2015 14:44:35 +0200, > Richard Weinberger wrote: >> >> Am 17.04.2015 um 14:17 schrieb Christoph Lameter: >>> On Fri, 17 Apr 2015, Hajime Tazaki wrote: >>> add header includion for CONFIG_LIB to wrap k

Re: [RFC PATCH v2 02/11] slab: add private memory allocator header for arch/lib

2015-04-17 Thread Hajime Tazaki
Hi Christoph, Richard, At Fri, 17 Apr 2015 14:44:35 +0200, Richard Weinberger wrote: > > Am 17.04.2015 um 14:17 schrieb Christoph Lameter: > > On Fri, 17 Apr 2015, Hajime Tazaki wrote: > > > >> add header includion for CONFIG_LIB to wrap kmalloc and co. This will > >> bring malloc(3) based allo

Re: [PATCH 2/2] net: dsa: register hwmon for any provided function

2015-04-17 Thread Vivien Didelot
Hi Guenter, > >>> switch (index) { > >>> +case 0: /* temp1_input */ > >>> +if (drv->get_temp) > >>> +mode |= S_IRUGO; > >> > >> This should be mandatory. Sorry, I don't really understand what you > >> are trying to accomplish here. > >> > >

[PATCH] net: remove unused 'dev' argument from netif_needs_gso()

2015-04-17 Thread Johannes Berg
From: Johannes Berg In commit 04ffcb255f22 ("net: Add ndo_gso_check") Tom originally added the 'dev' argument to be able to call ndo_gso_check(). Then later, when generalizing this in commit 5f35227ea34b ("net: Generalize ndo_gso_check to ndo_features_check") Jesse removed the call to ndo_gso_ch

[PATCH net-next] ip: Add color output option

2015-04-17 Thread Mathias Nyman
It is hard to quickly find what you are looking for in the output of the ip command. Color helps. This patch adds a '-c' flag to highlight these with individual colors: - interface name - ip addresse - mac addresse - up/down state --- include/color.h | 17 ip/Makefile

Re: [RFC PATCH v2 02/11] slab: add private memory allocator header for arch/lib

2015-04-17 Thread Richard Weinberger
Am 17.04.2015 um 14:17 schrieb Christoph Lameter: > On Fri, 17 Apr 2015, Hajime Tazaki wrote: > >> add header includion for CONFIG_LIB to wrap kmalloc and co. This will >> bring malloc(3) based allocator used by arch/lib. > > Maybe add another allocator insteadl? SLLB which implements memory > ma

Re: [RFC PATCH v2 02/11] slab: add private memory allocator header for arch/lib

2015-04-17 Thread Christoph Lameter
On Fri, 17 Apr 2015, Hajime Tazaki wrote: > add header includion for CONFIG_LIB to wrap kmalloc and co. This will > bring malloc(3) based allocator used by arch/lib. Maybe add another allocator insteadl? SLLB which implements memory management using malloc()? -- To unsubscribe from this list: sen

Re: [PATCH 3/4] mac80211-hwsim: Pass rate-ctrl flags and tx-power to user-space

2015-04-17 Thread Johannes Berg
On Wed, 2015-04-15 at 09:23 -0700, Ben Greear wrote: > On 04/14/2015 01:15 AM, Johannes Berg wrote: > > On Fri, 2015-04-03 at 14:12 -0700, gree...@candelatech.com wrote: > > > >> +/* Auxilary info to allow user-space to better understand the rate */ > >> +struct hwsim_tx_rate2 { > >> + u16 rc_fla

Patch "tcp: Fix crash in TCP Fast Open" has been added to the 3.14-stable tree

2015-04-17 Thread gregkh
This is a note to let you know that I've just added the patch titled tcp: Fix crash in TCP Fast Open to the 3.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: tcp-fix-crash-in-tcp-fa

[RFC PATCH v2 04/11] lib: memory management (kernel glue code)

2015-04-17 Thread Hajime Tazaki
Signed-off-by: Hajime Tazaki --- arch/lib/slab.c | 203 1 file changed, 203 insertions(+) create mode 100644 arch/lib/slab.c diff --git a/arch/lib/slab.c b/arch/lib/slab.c new file mode 100644 index 000..a08f736 --- /dev/null +++ b/ar

[RFC PATCH v2 09/11] lib: asm-generic files

2015-04-17 Thread Hajime Tazaki
Signed-off-by: Hajime Tazaki --- arch/lib/include/asm/Kbuild | 57 +++ arch/lib/include/asm/atomic.h | 50 ++ arch/lib/include/asm/barrier.h| 8 + arch/lib/include/asm/bitsperlong.h| 12 arch/l

Patch "tcp: Fix crash in TCP Fast Open" has been added to the 3.10-stable tree

2015-04-17 Thread gregkh
This is a note to let you know that I've just added the patch titled tcp: Fix crash in TCP Fast Open to the 3.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: tcp-fix-crash-in-tcp-fa

[RFC PATCH v2 10/11] lib: libos build scripts and documentation

2015-04-17 Thread Hajime Tazaki
Signed-off-by: Hajime Tazaki Signed-off-by: Ryo Nakamura --- Documentation/virtual/libos-howto.txt | 144 MAINTAINERS | 9 + arch/lib/.gitignore | 8 + arch/lib/Kconfig | 121 +++ arch/lib/Makefile

[RFC PATCH v2 07/11] lib: sysctl handling (kernel glue code)

2015-04-17 Thread Hajime Tazaki
This interacts with fs/proc_fs.c for sysctl-like interface accessed via lib_init() API. Signed-off-by: Hajime Tazaki --- arch/lib/sysctl.c | 270 ++ 1 file changed, 270 insertions(+) create mode 100644 arch/lib/sysctl.c diff --git a/arch/lib/

[RFC PATCH v2 08/11] lib: other kernel glue layer code

2015-04-17 Thread Hajime Tazaki
These files are used to provide the same function calls so that other network stack code keeps untouched. Signed-off-by: Hajime Tazaki Signed-off-by: Christoph Paasch --- arch/lib/capability.c | 47 + arch/lib/filemap.c| 32 ++ arch/lib/fs.c | 70 + arch/l

[RFC PATCH v2 05/11] lib: time handling (kernel glue code)

2015-04-17 Thread Hajime Tazaki
Signed-off-by: Hajime Tazaki --- arch/lib/hrtimer.c | 122 +++ arch/lib/tasklet-hrtimer.c | 57 +++ arch/lib/time.c| 144 +++ arch/lib/timer.c | 238 + 4 files changed, 5

[RFC PATCH v2 11/11] lib: tools used for test scripts

2015-04-17 Thread Hajime Tazaki
These auxiliary files are used for make test ARCH=lib. Signed-off-by: Hajime Tazaki --- tools/testing/libos/.gitignore | 6 + tools/testing/libos/Makefile | 38 +++ tools/testing/libos/README | 15 +++ tools/testing/libos/bisect.sh| 10 +++

[RFC PATCH v2 06/11] lib: context and scheduling handling (kernel glue code)

2015-04-17 Thread Hajime Tazaki
Signed-off-by: Hajime Tazaki --- arch/lib/sched.c | 406 +++ arch/lib/softirq.c | 108 ++ arch/lib/tasklet.c | 76 ++ arch/lib/workqueue.c | 242 ++ 4 files changed, 832 insertions(+) create

Re: [PATCH stable 3.10-3.16] tcp: Fix crash in TCP Fast Open

2015-04-17 Thread Greg KH
On Wed, Apr 15, 2015 at 07:00:32PM +0100, Ben Hutchings wrote: > Commit 355a901e6cf1 ("tcp: make connect() mem charging friendly") > changed tcp_send_syn_data() to perform an open-coded copy of the 'syn' > skb rather than using skb_copy_expand(). > > The open-coded copy does not cover the skb_shar

[RFC PATCH v2 02/11] slab: add private memory allocator header for arch/lib

2015-04-17 Thread Hajime Tazaki
add header includion for CONFIG_LIB to wrap kmalloc and co. This will bring malloc(3) based allocator used by arch/lib. Signed-off-by: Hajime Tazaki --- include/linux/slab.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/slab.h b/include/linux/slab.h index 9a139b

[RFC PATCH v2 03/11] lib: public headers and API implementations for userspace programs

2015-04-17 Thread Hajime Tazaki
userspace programs access via public API, lib_init(), with passed arguments struct SimImported and struct SimExported. Signed-off-by: Hajime Tazaki Signed-off-by: Ryo Nakamura --- arch/lib/include/sim-assert.h | 23 +++ arch/lib/include/sim-init.h | 134 ++ arch/lib/include/sim-p

[RFC PATCH v2 01/11] sysctl: make some functions unstatic to access by arch/lib

2015-04-17 Thread Hajime Tazaki
libos (arch/lib) emulates a sysctl-like interface by a function call of userspace by enumerating sysctl tree from sysctl_table_root. It requires to be publicly accessible to this symbol and related functions. Signed-off-by: Hajime Tazaki --- fs/proc/proc_sysctl.c | 36 +++

[RFC PATCH v2 00/11] an introduction of library operating system for Linux (LibOS)

2015-04-17 Thread Hajime Tazaki
changes from v1: - Patch 01/11 ("sysctl: make some functions unstatic to access by arch/lib"): * add prefix ctl_table_ to newly publiced functions (commented by Joe Perches) - Patch 08/11 ("lib: other kernel glue layer code"): * significantly reduce glue codes (stubs) (commented by Richard Weinberg

Re: [PATCH net] inet_diag: fix access to tcp cc information

2015-04-17 Thread Daniel Borkmann
On 04/17/2015 03:10 AM, Eric Dumazet wrote: From: Eric Dumazet Two different problems are fixed here : 1) inet_sk_diag_fill() might be called without socket lock held. icsk->icsk_ca_ops can change under us and module be unloaded. -> Access to freed memory. Fix this using rcu_read_l

Re: [PATCH] neighbour.c: Avoid GC directly after state change

2015-04-17 Thread Ulf Samuelsson
On 04/16/2015 07:16 AM, YOSHIFUJI Hideaki wrote: Hi, Ulf Samuelsson wrote: The desired functionality is that if communication stops, you want to send out ARP probes, before the entry is deleted. The current (pseudo) code of the neigh timer is: if (state & NUD_REACHABLE) { if (

Re: ioremap_uc() followed by set_memory_wc() - burrying MTRR

2015-04-17 Thread Hyong-Youb Kim
On Thu, Apr 16, 2015 at 08:54:26PM +0200, Luis R. Rodriguez wrote: > > Without WC, descriptors would end up as multiple 4B or 8B MWr packets > > to the NIC, which has a pretty big performance impact on this > > particular NIC. > > How big are the descriptors? Some are 64B (a batch of eight 8B des

[PATCH V6 05/10] audit: log creation and deletion of namespace instances

2015-04-17 Thread Richard Guy Briggs
Log the creation and deletion of namespace instances in all 6 types of namespaces. Twelve new audit message types have been introduced: AUDIT_NS_INIT_MNT 1330/* Record mount namespace instance creation */ AUDIT_NS_INIT_UTS 1331/* Record UTS namespace instance creation */ AUDIT_

Re: [PATCH V1 net-next] IB/ipoib: Fix ndo_get_iflink

2015-04-17 Thread Nicolas Dichtel
Le 16/04/2015 15:34, Erez Shitrit a écrit : Currently, iflink of the parent interface was always accessed, even when interface didn't have a parent and hence we crashed there. Handle the interface types properly: for a child interface, return the ifindex of the parent, for parent interface, retu