Re: [PATCH bluetooth-next] 6lowpan: fix debugfs interface entry name

2015-12-19 Thread Marcel Holtmann
Hi Alex, > This patches moves the debugfs interface related register after > netdevice register. The function lowpan_dev_debugfs_init will use > "dev->name" which can be before register_netdevice a format string. > The function register_netdevice will evaluate the format string if > necessary and

Re: [PATCH] bluetooth:Fix variable assignment for internal function returns in the function l2cap_bredr_sig_cmd

2015-12-19 Thread Marcel Holtmann
Hi Nick, > This makes all internal functions that can return a error code to > properly signal this to the caller of the function l2cap_bredr_sig_cmd > by making their return value equal to the variable err before returning > to the caller of the function l2cap_bredr_sig_cmd with this value > as t

Re: [PATCH 01/14] Bluetooth: use list_for_each_entry*

2015-12-19 Thread Marcel Holtmann
Hi Geliang, > Use list_for_each_entry*() instead of list_for_each*() to simplify > the code. > > Signed-off-by: Geliang Tang > --- > net/bluetooth/af_bluetooth.c | 12 ++-- > net/bluetooth/cmtp/capi.c| 8 ++-- > net/bluetooth/hci_core.c | 8 +++- > net/bluetooth/rfcomm/cor

Re: [PATCH 1/2] can: sja1000: add documentation for Technologic Systems version

2015-12-19 Thread Rob Herring
On Fri, Dec 18, 2015 at 03:17:24PM -0500, Damien Riegel wrote: > This commit adds documentation for the Technologic Systems version of > SJA1000. The difference with the NXP version is in the way the registers > are accessed. > > Signed-off-by: Damien Riegel > --- > Documentation/devicetree/bind

[no subject]

2015-12-19 Thread Vitaly Davidovich
subscribe netdev Sent from my iPhone -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] sh_eth: fix 16-bit descriptor field access endianness too

2015-12-19 Thread Sergei Shtylyov
Commit 1299653affa4 ("sh_eth: fix descriptor access endianness") only addressed the 32-bit buffer address field byte-swapping but the driver still accesses 16-bit frame/buffer length descriptor fields without the necessary byte-swapping -- which should affect the big-endian kernels. In order to be

Re: [PATCH] veth: don’t modify ip_summed; doing so treats packets with bad checksums as good.

2015-12-19 Thread Cong Wang
On Fri, Dec 18, 2015 at 11:34 AM, Vijay Pandurangan wrote: > Packets that arrive from real hardware devices have ip_summed == > CHECKSUM_UNNECESSARY if the hardware verified the checksums, or > CHECKSUM_NONE if the packet is bad or it was unable to verify it. The > current version of veth will rep

Re: [PATCH] veth: don't modify ip-summed; doing so treats packets with bad checksums as good.

2015-12-19 Thread Cong Wang
On Sat, Dec 19, 2015 at 1:01 PM, Cong Wang wrote: > On Fri, Dec 18, 2015 at 11:42 AM, Vijay Pandurangan wrote: >> Evan and I have demonstrated this bug on Kubernetes as well, so it's >> not just a problem in Mesos. (See >> https://github.com/kubernetes/kubernetes/issues/18898) >> > > Interesting.

Re: [PATCH] veth: don't modify ip-summed; doing so treats packets with bad checksums as good.

2015-12-19 Thread Cong Wang
On Fri, Dec 18, 2015 at 11:42 AM, Vijay Pandurangan wrote: > Evan and I have demonstrated this bug on Kubernetes as well, so it's > not just a problem in Mesos. (See > https://github.com/kubernetes/kubernetes/issues/18898) > Interesting... then this problem is much more serious than I thought. L

[PATCH v2] RDS: don't pretend to use cpu notifiers

2015-12-19 Thread Santosh Shilimkar
From: Sebastian Andrzej Siewior It looks like an attempt to use CPU notifier here which was never completed. Nobody tried to wire it up completely since 2k9. So I unwind this code and get rid of everything not required. Oh look! 19 lines were removed while code still does the same thing. Acked-b

Re: net, ipv6: out of bounds access in secret_stable

2015-12-19 Thread Cong Wang
On Fri, Dec 18, 2015 at 5:13 PM, Sasha Levin wrote: > Hi Hannes, > > I've hit the following out of bounds access while fuzzing on the latest -next > kernel. > > This code was added in 3d1bec9932 ("ipv6: introduce secret_stable to > ipv6_devconf"). > > [ 459.553655] BUG: KASAN: stack-out-of-boun

Merry Christmas

2015-12-19 Thread xpp74
外贸客户开发轻松入门; 软件针对外贸行业的客户开发系统,具有惊人的客户搜索速度和非常好的推广效果。 可以利用你们的产品的“关键词”搜索出你们行业的所有的经销商,进口商,OEM商等所有的联系方式,直击终端客户。 完全避开B2B的价格战,展会的成本高,主动出击迅速找到真正对你们产品感兴趣的客户。 加Q--Q:2036-019519免费为您演示软件功能以及效果。

Re: [PATCH v2] natsemi: add checks for dma mapping errors

2015-12-19 Thread David Miller
From: Alexey Khoroshilov Date: Sat, 19 Dec 2015 15:13:49 +0300 > refill_rx() and start_tx() do not check if mapping dma memory succeed. > The patch adds the checks and failure handling. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov Ap

Re: [PATCH] natsemi: add checks for dma mapping errors

2015-12-19 Thread David Miller
From: Alexey Khoroshilov Date: Sat, 19 Dec 2015 15:06:45 +0300 > On 19.12.2015 05:36, David Miller wrote: >> From: Alexey Khoroshilov >> Date: Sat, 19 Dec 2015 00:55:37 +0300 >> >>> @@ -2093,6 +2099,10 @@ static netdev_tx_t start_tx(struct sk_buff > *skb, struct net_device *dev) >>> np->tx_s

[PATCH 2/2] [iproute2] tc/q_htb.c: rename b4 buffer to b3 to make its name more consistent

2015-12-19 Thread Dmitrii Shcherbakov
b3 buffer has been deleted previously so b2 is followed by b4 which is not consistent Signed-off-by: Dmitrii Shcherbakov Acked-by: Jesper Dangaard Brouer Acked-by: Phil Sutter --- tc/q_htb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tc/q_htb.c b/tc/q_htb.c index

[PATCH 1/2] [iproute2] tc/q_htb.c: remove printing of a deprecated overhead value previously encoded as a part of mpu field

2015-12-19 Thread Dmitrii Shcherbakov
Remove printing according to the previously used encoding of mpu and overhead values within the tc_ratespec's mpu field. This encoding is no longer being used as a separate 'overhead' field in the ratespec structure has been introduced. Signed-off-by: Dmitrii Shcherbakov Acked-by: Jesper Danga

[PATCH] rsi: consolidate kmalloc/memset 0 calls to kzalloc

2015-12-19 Thread Nicholas Mc Guire
This is an API consolidation only. The use of kmalloc + memset to 0 is equivalent to kzalloc. Signed-off-by: Nicholas Mc Guire --- Found by coccinelle script (relaxed version of scripts/coccinelle/api/alloc/kzalloc-simple.cocci) Patch was compile tested with: x86_64_defconfig + CONFIG_RSI_91X=m

[PATCH] rsi: bool tests do not need comparison

2015-12-19 Thread Nicholas Mc Guire
This is an API consolidation only. Bool initializations should use true and false thus bool tests don't need an explicit comparison. Signed-off-by: Nicholas Mc Guire --- Found by coccinelle: scripts/coccinelle/misc/boolinit.cocci Patch was compile tested with: x86_64_defconfig + CONFIG_RSI_91X

[RFC PATCH] can: sja1000: of: add per-compatible init hook

2015-12-19 Thread Damien Riegel
This commit adds the capability to allocate and init private data embedded in the sja1000_priv structure on a per-compatible basis. The device node is passed as a parameter of the init callback to allow parsing of custom device tree properties. Signed-off-by: Damien Riegel --- Hi Marc, I am sen

Migrate all elements from net_device_stats

2015-12-19 Thread Corcodel Marian
Hi This is not patch .On net_device structure only 2 elements from old structure net_device_stats exists rx_dropped and tx_dropped why please put alls elements from net_device_stats for bee ready for atomic operations. /include/linux/netdevice.h -- Corcodel Marian -- To unsubscribe from this lis

Re: [PATCH 03/14 v2] ipv4, ipv6: use list_for_each_entry*

2015-12-19 Thread Julia Lawall
On Sat, 19 Dec 2015, Geliang Tang wrote: > Use list_for_each_entry*() instead of list_for_each*() to simplify > the code. Is the code really simpler? At least in the case of net/ipv6/addrconf.c, I have the impression that there can be an access from a pointer that is not really pointing to the

[PATCH 03/14 v2] ipv4, ipv6: use list_for_each_entry*

2015-12-19 Thread Geliang Tang
Use list_for_each_entry*() instead of list_for_each*() to simplify the code. Signed-off-by: Geliang Tang --- Changes in v2: - bugfix for inet6_register_protosw in v1. --- net/ipv4/af_inet.c| 11 --- net/ipv4/tcp_output.c | 6 ++ net/ipv6/addrconf.c | 8 +++- net/ipv6/af_

[PATCH v2] natsemi: add checks for dma mapping errors

2015-12-19 Thread Alexey Khoroshilov
refill_rx() and start_tx() do not check if mapping dma memory succeed. The patch adds the checks and failure handling. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/net/ethernet/natsemi/natsemi.c | 12 1 file changed, 1

Re: [PATCH] natsemi: add checks for dma mapping errors

2015-12-19 Thread Alexey Khoroshilov
On 19.12.2015 05:36, David Miller wrote: > From: Alexey Khoroshilov > Date: Sat, 19 Dec 2015 00:55:37 +0300 > >> @@ -2093,6 +2099,10 @@ static netdev_tx_t start_tx(struct sk_buff *skb, struct net_device *dev) >> np->tx_skbuff[entry] = skb; >> np->tx_dma[entry] = pci_map_single(np->pci_de