[PATCH net-next v4 6/9] inet: split syncookie keys for ipv4 and ipv6 and initialize with net_get_random_once

2013-10-19 Thread Hannes Frederic Sowa
This patch splits the secret key for syncookies for ipv4 and ipv6 and initializes them with net_get_random_once. This change was the reason I did this series. I think the initialization of the syncookie_secret is way to early. Cc: Florian Westphal Cc: Eric Dumazet Cc: "David S. Miller" Signed-o

[PATCH net-next v4 4/9] x86/jump_label: expect default_nop if static_key gets enabled on boot-up

2013-10-19 Thread Hannes Frederic Sowa
net_get_random_once(intrduced in the next patch) uses static_keys in a way that they get enabled on boot-up instead of replaced with an ideal_nop. So check for default_nop on initial enabling. Other architectures don't check for this. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc

Re: [PATCH v2] videobuf2: Add missing lock held on vb2_fop_relase

2013-10-19 Thread Ricardo Ribalda Delgado
Hello Sylwester On Sat, Oct 19, 2013 at 8:27 PM, Sylwester Nawrocki wrote: > On 10/19/2013 06:07 PM, Ricardo Ribalda wrote: > [...] >> >> --- >> drivers/media/platform/exynos4-is/fimc-capture.c | 2 +- >> drivers/media/platform/exynos4-is/fimc-lite.c| 2 +- >> drivers/media/usb/em28xx/

[PATCH] x86: remove duplicate includes

2013-10-19 Thread Michael Opdenacker
Found by running "make includecheck" Signed-off-by: Michael Opdenacker --- arch/x86/kernel/cpu/intel_cacheinfo.c | 1 - arch/x86/kernel/smpboot.c | 2 -- arch/x86/platform/ce4100/ce4100.c | 1 - 3 files changed, 4 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_cacheinfo.c

[GIT PULL] parisc fixes for v3.12

2013-10-19 Thread Helge Deller
Hi Linus, Please pull the latest parisc fixes from git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-3.12 There are just two small fixes in here: - Revert a commit which exported the flush_cache_page function. This was noticed by Christoph Hellwig. - Enable the D

adjust /proc/PID/oom_score_adj with CAP_SYS_RESOURCE

2013-10-19 Thread Azat Khuzhin
Recently I needed in adjusting /proc/PID/oom_score_adj to disable oom killer, but I didn't want to add suid/or run from root that binary. I decided to use CAP_SYS_RESOURCE. However it didn't work. I gdb/strace/printk a lot, and finally found the reason, the process can't open this file for writin

Re: [PATCH 2/2 v4] usb: ohci: remove ep93xx bus glue platform driver

2013-10-19 Thread Greg KH
On Thu, Oct 17, 2013 at 05:11:54PM -0400, Alan Stern wrote: > On Thu, 17 Oct 2013, H Hartley Sweeten wrote: > > > Convert ep93xx to use the OHCI platform driver and remove the > > ohci-ep93xx bus glue driver. > > > > Enable CONFIG_OHCI_HCD_PLATFORM in the ep93xx_defconfig so that USB > > is still

Re: [PATCH 2/2 v4] usb: ohci: remove ep93xx bus glue platform driver

2013-10-19 Thread Greg KH
On Thu, Oct 17, 2013 at 01:29:11PM -0700, H Hartley Sweeten wrote: > Convert ep93xx to use the OHCI platform driver and remove the > ohci-ep93xx bus glue driver. > > Enable CONFIG_OHCI_HCD_PLATFORM in the ep93xx_defconfig so that USB > is still enabled by default on the EP93xx platform. > > Signe

Re: [PATCH] vsprintf: add Bluetooth UUID %pU[rR] format specifier

2013-10-19 Thread Joe Perches
On Sat, 2013-10-19 at 09:25 -0700, Marcel Holtmann wrote: > The Bluetooth UUID is used in big endian reversed order. Add new > modifier to print a UUID in big endian, but where the input byte > stream is actually in reversed order. > This is similar to %pMR that allows to print a MAC address in > r

Re: [PATCH v3 0/3] New descriptor-based GPIO interface

2013-10-19 Thread Linus Walleij
On Fri, Oct 18, 2013 at 7:37 PM, Alexandre Courbot wrote: > On Fri, Oct 18, 2013 at 4:23 AM, Linus Walleij > wrote: >> We might have to take this as the first thing after the merge >> window and targeted for v3.14. > > No particular pressure from my side to get this in 3.13. Do for the > best,

Re: [PATCH 2/6] x86: allow to call text_poke_bp during boot

2013-10-19 Thread Paul E. McKenney
On Sat, Oct 19, 2013 at 03:19:19PM -0400, Steven Rostedt wrote: > > [ Added Paul because he'll understand this ] > > On Sat, 19 Oct 2013 15:16:58 -0400 > Steven Rostedt wrote: > > > On Sun, 20 Oct 2013 00:02:32 +0900 > > Masami Hiramatsu wrote: > > > > > (2013/10/18 23:27), Petr Mladek wrote:

Re: [PATCH v2 5/5] gpiolib / ACPI: document the GPIO descriptor based interface

2013-10-19 Thread Linus Walleij
On Thu, Oct 10, 2013 at 10:01 AM, Mika Westerberg wrote: > In addition to the existing ACPI specific GPIO interface, document the new > descriptor based GPIO interface in Documentation/acpi/enumeration.txt, so > it is clear that this new interface is preferred over the ACPI specific > version. >

[PATCH] sched/fair.c: remove kernel-doc warning

2013-10-19 Thread Randy Dunlap
From: Randy Dunlap Remove @balance parameter that is no longer used in the function to remove a kernel-doc warning. Warning(kernel/sched/fair.c:4704): Excess function parameter 'balance' description in 'update_sd_lb_stats' Signed-off-by: Randy Dunlap --- kernel/sched/fair.c |1 - 1 file

[PATCH] fs/namei.c: fix new kernel-doc warning

2013-10-19 Thread Randy Dunlap
From: Randy Dunlap Add @path parameter to fix kernel-doc warning. Also fix a spello/typo. Warning(fs/namei.c:2304): No description found for parameter 'path' Signed-off-by: Randy Dunlap --- fs/namei.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- lnx-312-rc6.orig/fs/namei.c

[PATCH] vfs: fix new kernel-doc warnings

2013-10-19 Thread Randy Dunlap
From: Randy Dunlap Move kernel-doc notation to immediately before its function to eliminate kernel-doc warnings. (from commit db14fc3ab: vfs: add d_walk()) Warning(fs/dcache.c:1343): No description found for parameter 'data' Warning(fs/dcache.c:1343): No description found for parameter 'dentry'

Re: [PATCH 2/6] x86: allow to call text_poke_bp during boot

2013-10-19 Thread Steven Rostedt
On Sat, 19 Oct 2013 14:33:50 -0700 "Paul E. McKenney" wrote: > > /* Ideally we would like to run on zero CPUS! */ > > if (num_online_cpus() < 2) > > To be really safe, shouldn't you use complex numbers? Just in case > you end up running on a system with 5i-3 CPUs or something. ;-) >

Re: [PATCH 2/6] x86: allow to call text_poke_bp during boot

2013-10-19 Thread Steven Rostedt
On Sat, 19 Oct 2013 14:33:50 -0700 "Paul E. McKenney" wrote: > > > It's used to convert the calls to mcount to nops. But maybe a better > > > thing to do is to check if we only have a single CPU: > > > > > > static void run_sync(void) > > > { > > > if (num_online_cpus() != 1) > > > > Hmm, t

[kconfig] update: results of some syntactical checks

2013-10-19 Thread Martin Walch
This is an update to the syntactic results that I sent, back in July. With kernel 3.12 nearing completion, I would like to point to new sections in Kconfig files with potential problems: drivers/media/common/siano/Kconfig:21-26 > config SMS_SIANO_DEBUGFS > bool "Enable debugfs for smsdvb" >

[PATCH] using kfree_skb() instead of kfree() to free sk_buff

2013-10-19 Thread Salil Kapur
--- drivers/nfc/mei_phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/mei_phy.c b/drivers/nfc/mei_phy.c index 606bf55..bc30081 100644 --- a/drivers/nfc/mei_phy.c +++ b/drivers/nfc/mei_phy.c @@ -127,7 +127,7 @@ void nfc_mei_event_cb(struct mei_cl_device *device,

Re: [PATCH] vsprintf: add Bluetooth UUID %pU[rR] format specifier

2013-10-19 Thread Marcel Holtmann
Hi Joe, >> The Bluetooth UUID is used in big endian reversed order. Add new >> modifier to print a UUID in big endian, but where the input byte >> stream is actually in reversed order. >> This is similar to %pMR that allows to print a MAC address in >> reversed order since that is how the Bluetoot

Re: [PATCH] crypto: n2_core: insert '!err' condition in else scope

2013-10-19 Thread David Miller
From: "Geyslan G. Bem" Date: Sat, 19 Oct 2013 10:09:31 -0300 > This patch moves the '!err' condition into the above else scope, > what is more obvious and has the secondary goal of avoid false-positives > in statical analyze tools. > > Signed-off-by: Geyslan G. Bem I do not think patches shoul

Re: [PATCH v2 00/15] slab: overload struct slab over struct page to reduce memory usage

2013-10-19 Thread Andi Kleen
Andrew Morton writes: > > One example is mm/memory-failure.c:memory_failure(). It starts with a > raw pfn, uses that to get at the `struct page', then starts playing > around with it. Will that code still work correctly when some of the > page's fields have been overlayed with slab-specific cont

Re: [PATCH v2 00/15] slab: overload struct slab over struct page to reduce memory usage

2013-10-19 Thread Andi Kleen
Joonsoo Kim writes: > There is two main topics in this patchset. One is to reduce memory usage > and the other is to change a management method of free objects of a slab. I did a quick read over the whole patchset and it looks good to me. I especially like how much code you remove. And of course

Re: [PATCH] crypto: n2_core: insert '!err' condition in else scope

2013-10-19 Thread Geyslan Gregório Bem
2013/10/19 David Miller : > From: "Geyslan G. Bem" > Date: Sat, 19 Oct 2013 10:09:31 -0300 > >> This patch moves the '!err' condition into the above else scope, >> what is more obvious and has the secondary goal of avoid false-positives >> in statical analyze tools. >> >> Signed-off-by: Geyslan G.

Re: [PATCH] vsprintf: add Bluetooth UUID %pU[rR] format specifier

2013-10-19 Thread Joe Perches
On Sun, 2013-10-20 at 00:30 +0200, Marcel Holtmann wrote: > Hi Joe, Hi Marcel > > Could there ever be a little endian reversed UUID? > I honestly do not know. I looked at the little endian one and it > looked a bit heavy misplaced if we would use a reversed stream of > bytes. > > Might it be usef

Re: [PATCH] crypto: n2_core: insert '!err' condition in else scope

2013-10-19 Thread David Miller
From: Geyslan Gregório Bem Date: Sat, 19 Oct 2013 19:42:35 -0300 > 2013/10/19 David Miller : >> From: "Geyslan G. Bem" >> Date: Sat, 19 Oct 2013 10:09:31 -0300 >> >>> This patch moves the '!err' condition into the above else scope, >>> what is more obvious and has the secondary goal of avoid fal

Re: [PATCH v3] net: sctp: fix a cacc_saw_newack missetting issue

2013-10-19 Thread David Miller
From: Chang Xiangzhong Date: Wed, 16 Oct 2013 09:22:11 +0200 > For for each TSN t being newly acked (Not only cumulatively, > but also SELECTIVELY) cacc_saw_newack should be set to 1. > > Signed-off-by: Xiangzhong Chang SCTP folks, can you please review this patch? Thanks. -- To unsubscribe f

[PATCH] Revert "bridge: only expire the mdb entry when query is received"

2013-10-19 Thread Linus Lüssing
While this commit was a good attempt to fix issues occuring when no multicast querier is present, this commit still has two more issues: 1) There are cases where mdb entries do not expire even if there is a querier present. The bridge will unnecessarily continue flooding multicast packets on the a

Re: [PATCH 0/4] net: Remove extern from function prototypes

2013-10-19 Thread David Miller
From: Joe Perches Date: Fri, 18 Oct 2013 13:48:21 -0700 > Remove the remainder of extern function prototypes from net/.../*.h files. Series applied, thanks a lot Joe. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org

Re: [PATCH] crypto: n2_core: insert '!err' condition in else scope

2013-10-19 Thread Geyslan Gregório Bem
2013/10/19 David Miller : > From: Geyslan Gregório Bem > Date: Sat, 19 Oct 2013 19:42:35 -0300 > >> 2013/10/19 David Miller : >>> From: "Geyslan G. Bem" >>> Date: Sat, 19 Oct 2013 10:09:31 -0300 >>> This patch moves the '!err' condition into the above else scope, what is more obvious an

Re: linux-next: manual merge of the userns tree

2013-10-19 Thread Eric W. Biederman
Mark Brown writes: > Today's linux-next merge of the userns tree got a conflict in > fs/fuse/dir.c between 3c70b8eed (fuse: don't check_submounts_and_drop() > in RCU walk) in the fuse tree and 40216baa0 (vfs: Lazily remove mounts > on unlinked files and directories. v2) in the userns tree. > > I

Re: [PATCH net-next v4 0/9] Introduce support to lazy initialize mostly static keys

2013-10-19 Thread David Miller
From: Hannes Frederic Sowa Date: Sat, 19 Oct 2013 21:48:50 +0200 > This series implements support for delaying the initialization of secret > keys, e.g. used for hashing, for as long as possible. This functionality > is implemented by a new macro, net_get_random_bytes. > > I already used it to p

[PATCH] cpufreq, highbank: enable ECME thermal notifications

2013-10-19 Thread Mark Langsdorf
The ECME sends thermal messages with a maximum and minimum allowed frequency when the SoC status reaches certain trip points known to the ECME. Use a notifier function to capture those messages and pass them to a work-queued function that can trigger a policy re-evaluation by cpufreq, capping the a

Re: [PATCH v2 2/4] perf: streamline append_chain() function

2013-10-19 Thread Andi Kleen
Waiman Long writes: > as well as > using ?: statement which can be more efficient than the regular if > statement in some architectures. I don't think that's true, the compiler does if conversion anyways for both. But change seems reasonable. -Andi -- a...@linux.intel.com -- Speaking for my

[PATCHv2] x86: add kconfig options for newer 64-bit processors

2013-10-19 Thread Austin S Hemmelgarn
From: Austin S. Hemmelgarn This patch adds options to specifically optimize for a number of newer 64-bit microarchitectures; specifically, Intel's Nehalem, Westmere, Ivy Bridge, and Sandy Bridge, and AMD's Family 10h, Bobcat, Jaguar, Bulldozer, Piledriver, and Steamroller. This serves primari

[PATCH] net: remove function sk_reset_txq()

2013-10-19 Thread ZHAO Gang
What sk_reset_txq() does is just calls function sk_tx_queue_reset(), and sk_reset_txq() is used only in sock.c, by dst_negative_advice(). Let dst_negative_advice() calls sk_tx_queue_reset() directly so we can remove unneeded sk_reset_txq(). Signed-off-by: ZHAO Gang --- include/net/sock.h | 4 +--

[PATCH v2] net: remove function sk_reset_txq()

2013-10-19 Thread ZHAO Gang
What sk_reset_txq() does is just calls function sk_tx_queue_reset(), and sk_reset_txq() is used only in sock.h, by dst_negative_advice(). Let dst_negative_advice() calls sk_tx_queue_reset() directly so we can remove unneeded sk_reset_txq(). Signed-off-by: ZHAO Gang change a typo in patch descript

Re: [PATCH net-next v4 0/9] Introduce support to lazy initialize mostly static keys

2013-10-19 Thread Hannes Frederic Sowa
On Sat, Oct 19, 2013 at 07:46:35PM -0400, David Miller wrote: > From: Hannes Frederic Sowa > Date: Sat, 19 Oct 2013 21:48:50 +0200 > > > This series implements support for delaying the initialization of secret > > keys, e.g. used for hashing, for as long as possible. This functionality > > is imp

[PATCH] cpufreq: intel_pstate: fix possible integer overflow

2013-10-19 Thread Geyslan G. Bem
The expression 'pstate << 8' is evaluated using 32-bit arithmetic while 'val' expects an expression of type u64. Signed-off-by: Geyslan G. Bem --- drivers/cpufreq/intel_pstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/i

Re: [userns-always-map-user-v136] BUG: unable to handle kernel NULL pointer dereference at (null)

2013-10-19 Thread Eric W. Biederman
Fengguang Wu writes: > Hi Eric, > > It's beyond me why this trivial patch will lead to kernel panic. But > the NULL pointer dereference bug is 100% reproducible since this > commit. My mistake apparently I failed to boot test that patch. The problem crash is because kthreadd_task == NULL. kth

[PATCH net-next] net: fix build warnings because of net_get_random_once merge

2013-10-19 Thread Hannes Frederic Sowa
This patch fixes the following warning: In file included from include/linux/skbuff.h:27:0, from include/linux/netfilter.h:5, from include/net/netns/netfilter.h:5, from include/net/net_namespace.h:20, from include/li

[PATCH] iwlwifi: remove duplicate includes

2013-10-19 Thread Michael Opdenacker
Reported by "make includecheck" Tested that the corresponding sources still compile well on x86 Signed-off-by: Michael Opdenacker --- drivers/net/wireless/iwlwifi/iwl-io.c | 1 - drivers/net/wireless/iwlwifi/mvm/mvm.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/net/wireless/iw

nf_tables*.h: Remove extern from function prototypes

2013-10-19 Thread Joe Perches
There are a mix of function prototypes with and without extern in the kernel sources. Standardize on not using extern for function prototypes. Function prototypes don't need to be written with extern. extern is assumed by the compiler. Its use is as unnecessary as using auto to declare automatic

[PATCH] cgxb4: remove duplicate include in cxgb4.h

2013-10-19 Thread Michael Opdenacker
Reported by "make includecheck" Tested that C sources including this file still compile well on x86 Signed-off-by: Michael Opdenacker --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ether

[PATCH] ethernet: moxa: remove duplicate includes

2013-10-19 Thread Michael Opdenacker
Reported by "make includecheck" Tested that drivers/net/ethernet/moxa/moxart_ether.c still compiles well on ARM Signed-off-by: Michael Opdenacker --- drivers/net/ethernet/moxa/moxart_ether.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drivers/n

RE: [PATCH] iwlwifi: remove duplicate includes

2013-10-19 Thread Grumbach, Emmanuel
> Subject: [PATCH] iwlwifi: remove duplicate includes > > Reported by "make includecheck" > > Tested that the corresponding sources still compile well on x86 > > Signed-off-by: Michael Opdenacker electrons.com> > --- Picked up. Thanks. -- To unsubscribe from this list: send the line "unsubscri

[PATCH] mac80211: document IEEE80211_HW_SUPPORTS_HT_CCK_RATES

2013-10-19 Thread Michael Opdenacker
This patch documents the IEEE80211_HW_SUPPORTS_HT_CCK_RATES flag in ieee80211_hw_flags. Without this, you get countless warnings in "make htmldocs". Signed-off-by: Michael Opdenacker --- include/net/mac80211.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/net/mac80211.h b/inclu

<    1   2