[PATCH RFC] mm,vmscan: only evict file pages when we have plenty

2012-10-30 Thread Rik van Riel
If we have more inactive file pages than active file pages, we skip scanning the active file pages alltogether, with the idea that we do not want to evict the working set when there is plenty of streaming IO in the cache. However, the code forgot to also skip scanning anonymous pages in that situa

[PATCH 0/2] Removing the use of VLAIS from netfilter

2012-10-30 Thread Behan Webster
The use of variable length arrays in structs (VLAIS) in the Linux Kernel code precludes the use of compilers which don't implement VLAIS (for instance the Clang compiler). The LLVMLinux Project is working towards the ability of providing the Linux kernel developer the choice of using the Clang comp

[PATCH 1/2] Helper macros used for replacing the use of VLAIS

2012-10-30 Thread Behan Webster
The use of variable length arrays in structs (VLAIS) in the Linux Kernel code precludes the use of compilers which don't implement VLAIS (for instance the Clang compiler). This new header file contains macros which can be used to calculate the size and offset of variables in an allocated buffer of

[PATCH 2/2] Remove VLAIS usage from netfilter

2012-10-30 Thread Behan Webster
From: Jan-Simon Möller The use of variable length arrays in structs (VLAIS) in the Linux Kernel code precludes the use of compilers which don't implement VLAIS (for instance the Clang compiler). This patch instead calculates offsets into the kmalloc-ed memory buffer using macros from valign.h. P

[PATCH] Remove VLAIS usage from libcrc32c.c

2012-10-30 Thread Behan Webster
From: Jan-Simon Möller The use of variable length arrays in structs (VLAIS) in the Linux Kernel code precludes the use of compilers which don't implement VLAIS (for instance the Clang compiler). This patch instead allocates the appropriate amount of memory using an char array. Patch from series

Re: [PATCH 2/2] irq_work: Fix racy IRQ_WORK_BUSY flag setting

2012-10-30 Thread Steven Rostedt
On Wed, 2012-10-31 at 03:33 +0900, anish kumar wrote: > > CPU 0 CPU 1 > > > > data = something flags = IRQ_WORK_BUSY > > smp_mb() (implicit with cmpxchg smp_mb() > > on flags in claim) execute_work (sees data from CPU > >

Re: [PATCH] i2c-EEPROM: Export memory accessor

2012-10-30 Thread David Daney
On 10/31/2012 08:56 AM, Pantelis Antoniou wrote: Various platforms need access to the EEPROM in other places besides their platform registration callbacks. Export the memory accessor to the i2c_client i2c_clients are *not* intrinsically memory, so adding this to the generic i2c_client structur

[PATCH v8 01/16] hashtable: introduce a small and naive hashtable

2012-10-30 Thread Sasha Levin
This hashtable implementation is using hlist buckets to provide a simple hashtable to prevent it from getting reimplemented all over the kernel. Signed-off-by: Sasha Levin --- Changes from v8: - Addressed comments from Tejun Heo and Mathieu Desnoyers. include/linux/hashtable.h | 196 +++

[PATCH v8 03/16] mm,ksm: use new hashtable implementation

2012-10-30 Thread Sasha Levin
Switch ksm to use the new hashtable implementation. This reduces the amount of generic unrelated code in the ksm module. Signed-off-by: Sasha Levin --- mm/ksm.c | 31 +-- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/mm/ksm.c b/mm/ksm.c index 31ae5ea

[PATCH v8 04/16] workqueue: use new hashtable implementation

2012-10-30 Thread Sasha Levin
Switch workqueues to use the new hashtable implementation. This reduces the amount of generic unrelated code in the workqueues. Signed-off-by: Sasha Levin --- kernel/workqueue.c | 86 ++ 1 file changed, 15 insertions(+), 71 deletions(-) diff -

[PATCH v8 06/16] tracepoint: use new hashtable implementation

2012-10-30 Thread Sasha Levin
Switch tracepoints to use the new hashtable implementation. This reduces the amount of generic unrelated code in the tracepoints. Signed-off-by: Sasha Levin --- kernel/tracepoint.c | 25 + 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/kernel/tracepoint.c

[PATCH v8 07/16] net,9p: use new hashtable implementation

2012-10-30 Thread Sasha Levin
Switch 9p error table to use the new hashtable implementation. This reduces the amount of generic unrelated code in 9p. Signed-off-by: Sasha Levin --- net/9p/error.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/net/9p/error.c b/net/9p/error.c index 2

[PATCH v8 08/16] block,elevator: use new hashtable implementation

2012-10-30 Thread Sasha Levin
Switch elevator to use the new hashtable implementation. This reduces the amount of generic unrelated code in the elevator. This also removes the dymanic allocation of the hash table. The size of the table is constant so there's no point in paying the price of an extra dereference when accessing

[PATCH v8 09/16] SUNRPC/cache: use new hashtable implementation

2012-10-30 Thread Sasha Levin
Switch cache to use the new hashtable implementation. This reduces the amount of generic unrelated code in the cache implementation. Signed-off-by: Sasha Levin --- net/sunrpc/cache.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/net/sunrpc/cache.c b/net/

[PATCH v8 10/16] dlm: use new hashtable implementation

2012-10-30 Thread Sasha Levin
Switch dlm to use the new hashtable implementation. This reduces the amount of generic unrelated code in the dlm. Signed-off-by: Sasha Levin --- fs/dlm/lowcomms.c | 53 ++--- 1 file changed, 18 insertions(+), 35 deletions(-) diff --git a/fs/dlm/lo

[PATCH v8 11/16] net,l2tp: use new hashtable implementation

2012-10-30 Thread Sasha Levin
Switch l2tp to use the new hashtable implementation. This reduces the amount of generic unrelated code in l2tp. Signed-off-by: Sasha Levin --- net/l2tp/l2tp_core.c| 140 +++- net/l2tp/l2tp_core.h| 15 -- net/l2tp/l2tp_debugfs.c | 19 +++--

[PATCH v8 12/16] dm: use new hashtable implementation

2012-10-30 Thread Sasha Levin
Switch dm to use the new hashtable implementation. This reduces the amount of generic unrelated code in the dm. Signed-off-by: Sasha Levin --- drivers/md/dm-snap.c | 24 + drivers/md/persistent-data/dm-block-manager.c | 1 - .../persistent-data

[PATCH v8 02/16] userns: use new hashtable implementation

2012-10-30 Thread Sasha Levin
Switch to using the new hashtable implementation to store user structs. This reduces the amount of generic unrelated code in kernel/user.c. Signed-off-by: Sasha Levin --- kernel/user.c | 33 - 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/kernel/

[PATCH v8 14/16] net,rds: use new hashtable implementation

2012-10-30 Thread Sasha Levin
Switch rds to use the new hashtable implementation. This reduces the amount of generic unrelated code in rds. Signed-off-by: Sasha Levin --- net/rds/bind.c | 20 +-- net/rds/connection.c | 100 ++- 2 files changed, 53 insertions(+),

[PATCH v8 16/16] tracing output: use new hashtable implementation

2012-10-30 Thread Sasha Levin
Switch tracing to use the new hashtable implementation. This reduces the amount of generic unrelated code in the tracing module. Signed-off-by: Sasha Levin --- kernel/trace/trace_output.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/kernel/trace/trace_o

[PATCH v8 15/16] openvswitch: use new hashtable implementation

2012-10-30 Thread Sasha Levin
Switch openvswitch to use the new hashtable implementation. This reduces the amount of generic unrelated code in openvswitch. Signed-off-by: Sasha Levin --- net/openvswitch/vport.c | 35 --- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/net/openv

[PATCH v8 13/16] lockd: use new hashtable implementation

2012-10-30 Thread Sasha Levin
Switch lockd to use the new hashtable implementation. This reduces the amount of generic unrelated code in lockd. Signed-off-by: Sasha Levin --- fs/lockd/svcsubs.c | 58 ++ 1 file changed, 28 insertions(+), 30 deletions(-) diff --git a/fs/lock

Re: [PATCH] i2c-EEPROM: Export memory accessor

2012-10-30 Thread Pantelis Antoniou
Hi David, On Oct 30, 2012, at 8:46 PM, David Daney wrote: > On 10/31/2012 08:56 AM, Pantelis Antoniou wrote: >> Various platforms need access to the EEPROM in other >> places besides their platform registration callbacks. >> Export the memory accessor to the i2c_client > > i2c_clients are *not*

[PATCH v8 05/16] mm/huge_memory: use new hashtable implementation

2012-10-30 Thread Sasha Levin
Switch hugemem to use the new hashtable implementation. This reduces the amount of generic unrelated code in the hugemem. This also removes the dymanic allocation of the hash table. The size of the table is constant so there's no point in paying the price of an extra dereference when accessing i

Re: [PATCH 0/2] fix and improvements for percpu-rw-semaphores (was: brw_mutex: big read-write mutex)

2012-10-30 Thread Oleg Nesterov
On 10/22, Mikulas Patocka wrote: > > > > Ooooh. And I just noticed include/linux/percpu-rwsem.h which does > > > something similar. Certainly it was not in my tree when I started > > > this patch... percpu_down_write() doesn't allow multiple writers, > > > but the main problem it uses msleep(1). It

Re: [PATCH 2/2] zram: permit sleeping while in pool zs_malloc()

2012-10-30 Thread Sergey Senozhatsky
On (10/30/12 11:04), Greg Kroah-Hartman wrote: > On Tue, Oct 30, 2012 at 12:03:19PM +0300, Sergey Senozhatsky wrote: > > zram: permit sleeping while in pool zs_malloc() > > 2/2? Huh? Where is 1/2? > > I have a raft of patches from you, all out of order, and full of > responses from Nitin, a

Re: urandom is too slow

2012-10-30 Thread Theodore Ts'o
On Tue, Oct 30, 2012 at 04:55:22PM +0200, Lasse Kärkkäinen wrote: > Apparently there has been little or no development on urandom even > though the device is in widespread use for disk shredding and such > use. The device emits data at rather slow rate of 19 MB/s even on > modern hardware where oth

Re: [PATCHv2] Input: omap4-keypad: Add pinctrl support

2012-10-30 Thread Felipe Balbi
Hi, On Tue, Oct 30, 2012 at 11:20:07AM -0700, Dmitry Torokhov wrote: > On Tue, Oct 30, 2012 at 07:25:13PM +0200, Felipe Balbi wrote: > > On Tue, Oct 30, 2012 at 03:58:21PM +, Mark Brown wrote: > > > > > > But then this comes round to the mindless code that ought to be factored > > > out :) O

Re: [PATCH RFC] mm,vmscan: only evict file pages when we have plenty

2012-10-30 Thread Andrew Morton
On Tue, 30 Oct 2012 14:42:04 -0400 Rik van Riel wrote: > If we have more inactive file pages than active file pages, we > skip scanning the active file pages alltogether, with the idea > that we do not want to evict the working set when there is > plenty of streaming IO in the cache. Yes, I've n

Re: [PATCH 09/32] nohz/cpuset: Restart tick when nohz flag is cleared on cpuset

2012-10-30 Thread Steven Rostedt
On Mon, 2012-10-29 at 16:27 -0400, Steven Rostedt wrote: > plain text document attachment > (0009-nohz-cpuset-Restart-tick-when-nohz-flag-is-cleared-o.patch) > From: Frederic Weisbecker > > Issue an IPI to restart the tick on a CPU that belongs > to a cpuset when its nohz flag gets cleared. > >

Re: [Xen-devel] [PATCH] xen PVonHVM: require at least Xen 3.4 as dom0

2012-10-30 Thread Pasi Kärkkäinen
On Tue, Oct 30, 2012 at 05:05:05PM +0100, Olaf Hering wrote: > The XenPVHVM extensions have not been tested much on very old > hypervisors. At least Xen 3.4 gets some testing with the pvops kernel. > > Require at least Xen 3.4 for the PVonHVM extensions. If an older > hypervisor is detected the ex

[PATCH 0/2] zram decompress_page and zram_sysfs patch seriess

2012-10-30 Thread Sergey Senozhatsky
Hello Greg, I'm gonna send you 2 zram patches shortly, reviewed by Nitin. [PATCH 1/2] zram: factor-out zram_decompress_page() function [PATCH 2/2] zram: handle mem suffixes in disk size zram_sysfs parameter Thanks, -ss -- To unsubscribe from this list: send the line "unsu

[RFC 0/7] Capebus; a bus for SoCs using simple expansion connectors

2012-10-30 Thread Pantelis Antoniou
Capebus is created to address the problem of many SoCs that can provide a multitude of hardware interfaces but in order to keep costs down the main boards only support a limited number of them. The rest are typically brought out to pin connectors on to which other boards, named capes are connected

[RFC 2/7] capebus: Add beaglebone board support

2012-10-30 Thread Pantelis Antoniou
Introduce beaglebone capebus board support. This patch creates the beaglebone's board cape bus controller. The board controller is responsible for the probing of capes at the well defined I2C address for capes, parsing the EEPROM info and matching them to specific cape drivers. On top of that, a

[RFC 1/7] capebus: Core capebus support

2012-10-30 Thread Pantelis Antoniou
Introducing capebus; a bus that allows small boards (capes) to connect to a complex SoC using simple expansion connectors. Up to now to support these kind of boards, one had to hack the board files, and do all sort of gymnastics to handle all the different cases of conflict resolution. Capebus pr

[RFC 5/7] capebus: Beaglebone capebus DT update

2012-10-30 Thread Pantelis Antoniou
Update the common beaglebone's DTS with the required DT entries for all known working capes as of now. Signed-off-by: Pantelis Antoniou --- arch/arm/boot/dts/am335x-bone-common.dtsi | 689 -- 1 file changed, 659 insertions(+), 30 deletions(-) diff --git a/arch/arm/bo

[RFC 7/7] capebus: Documentation; capebus-summary

2012-10-30 Thread Pantelis Antoniou
Small summary of capebus. Signed-off-by: Pantelis Antoniou --- Documentation/capebus/capebus-summary | 40 +++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/capebus/capebus-summary diff --git a/Documentation/capebus/capebus-summary b/Documen

Re: [PATCH] i2c: pinctrl-ify i2c-omap.c

2012-10-30 Thread Felipe Balbi
Hi, On Wed, Oct 31, 2012 at 05:55:30PM +0200, Pantelis Antoniou wrote: > Enable pinctrl for i2c-omap. > > Signed-off-by: Pantelis Antoniou > --- > drivers/i2c/busses/i2c-omap.c | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/buss

Re: [PATCH] i2c: pinctrl-ify i2c-omap.c

2012-10-30 Thread Pantelis Antoniou
Hi Felipe, On Oct 30, 2012, at 8:53 PM, Felipe Balbi wrote: > Hi, > > On Wed, Oct 31, 2012 at 05:55:30PM +0200, Pantelis Antoniou wrote: >> Enable pinctrl for i2c-omap. >> >> Signed-off-by: Pantelis Antoniou >> --- >> drivers/i2c/busses/i2c-omap.c | 10 ++ >> 1 file changed, 10 insertio

[RFC 6/7] capebus: Document DT bindings

2012-10-30 Thread Pantelis Antoniou
Describe capebus DT bindings in detail. Signed-off-by: Pantelis Antoniou --- .../capebus/bone-capebus-slot-override.txt | 28 +++ .../devicetree/bindings/capebus/bone-capebus.txt | 50 +++ .../bindings/capebus/bone-geiger-cape.txt | 78 + .../bindin

[RFC 4/7] capebus: Beaglebone geiger cape support

2012-10-30 Thread Pantelis Antoniou
Support beaglebone's geiger cape. The geiger cape allows you to measure the amount of ionising radiation in your area, and as an example of how to create a complex non-generic cape driver. Signed-off-by: Pantelis Antoniou --- drivers/capebus/capes/Kconfig| 7 + drivers/capebus/cap

[PATCH 1/2] zram: factor-out zram_decompress_page() function

2012-10-30 Thread Sergey Senozhatsky
zram: factor-out zram_decompress_page() function zram_bvec_read() shared decompress functionality with zram_read_before_write() function. Factor-out and make commonly used zram_decompress_page() function, which also simplified error handling in zram_bvec_read(). Signed-off-by: Sergey

Re: [PATCH 10/32] nohz/cpuset: Restart the tick if printk needs it

2012-10-30 Thread Steven Rostedt
On Mon, 2012-10-29 at 16:27 -0400, Steven Rostedt wrote: > plain text document attachment > (0010-nohz-cpuset-Restart-the-tick-if-printk-needs-it.patch) > From: Frederic Weisbecker > > If we are in nohz adaptive mode and printk is called, the tick is > missing to wake up the logger. We need to re

[RFC 3/7] capebus: Beaglebone generic cape support

2012-10-30 Thread Pantelis Antoniou
Introducing beaglebone generic cape support. With this you can create almost any kind of cape driver that doesn't require complex interconnection of the parts. Most beaglebone capes can be created with this, including all the display capes (DVI/VGA/LCD) with touchscreen or not, capes that only us

[PATCH 2/2] zram: handle mem suffixes in disk size zram_sysfs parameter

2012-10-30 Thread Sergey Senozhatsky
zram: handle mem suffixes in disk size zram_sysfs parameter Use memparse() to allow mem suffixes in disksize sysfs number. Examples: echo 256K > /sys/block/zram0/disksize echo 512M > /sys/block/zram0/disksize echo 1G > /sys/block/zram0/disksize Signed-off-by: Sergey S

Re: [PATCH]Documentation: Chinese translation of Documentation/arm/kernel_user_helpers.txt

2012-10-30 Thread Theodore Ts'o
On Wed, Oct 31, 2012 at 12:20:04AM +0800, Tekkaman Ninja wrote: > This is a Chinese translated version of > Documentation/arm/kernel_user_helpers.txt > > Signed-off-by: Fu Wei I wonder if it woiuld be a good idea to note the git commit id of the kernel version that was used as the source documen

Re: [rfc net-next v6 0/3] Multiqueue virtio-net

2012-10-30 Thread Rick Jones
On 10/30/2012 03:03 AM, Jason Wang wrote: Hi all: This series is an update version of multiqueue virtio-net driver based on Krishna Kumar's work to let virtio-net use multiple rx/tx queues to do the packets reception and transmission. Please review and comments. Changes from v5: - Align the imp

Re: [PATCH RFC] mm,vmscan: only evict file pages when we have plenty

2012-10-30 Thread Rik van Riel
On 10/30/2012 02:54 PM, Andrew Morton wrote: On Tue, 30 Oct 2012 14:42:04 -0400 Rik van Riel wrote: If we have more inactive file pages than active file pages, we skip scanning the active file pages alltogether, with the idea that we do not want to evict the working set when there is plenty of

Re: [PATCH v2 2/3] pppoatm: fix race condition with destroying of vcc

2012-10-30 Thread Krzysztof Mazur
On Tue, Oct 30, 2012 at 09:37:48AM +, David Woodhouse wrote: > > Should we be locking it earlier, so that the atm_may_send() call is also > covered by the lock? Yes, but only to protect against concurent vcc_sendmsg(). > > Either way, it's an obvious improvement on what we had before ??? an

Re: [PATCH] leds-ot200: Fix error caused by shifted mask

2012-10-30 Thread Christian Gmeiner
2012/10/12 Christian Gmeiner : > 2012/10/1 Greg KH : >> On Mon, Oct 01, 2012 at 02:50:40PM +0200, Christian Gmeiner wrote: >>> During the development of this driver an in-house register >>> documentation was used. The last weeks some integration tests >>> were done and this problem was found. It tu

Re: [PATCH] i2c-EEPROM: Export memory accessor

2012-10-30 Thread David Daney
On 10/30/2012 11:51 AM, Pantelis Antoniou wrote: Hi David, On Oct 30, 2012, at 8:46 PM, David Daney wrote: On 10/31/2012 08:56 AM, Pantelis Antoniou wrote: Various platforms need access to the EEPROM in other places besides their platform registration callbacks. Export the memory accessor to

Re: [PATCH] i2c: pinctrl-ify i2c-omap.c

2012-10-30 Thread Porter, Matt
On Oct 30, 2012, at 2:53 PM, Felipe Balbi wrote: > Hi, > > On Wed, Oct 31, 2012 at 05:55:30PM +0200, Pantelis Antoniou wrote: >> Enable pinctrl for i2c-omap. >> >> Signed-off-by: Pantelis Antoniou >> --- >> drivers/i2c/busses/i2c-omap.c | 10 ++ >> 1 file changed, 10 insertions(+) >> >

[PATCH] x86, add hypervisor name to dump_stack() [v3]

2012-10-30 Thread Prarit Bhargava
Debugging crash, panics, stack trace WARN_ONs, etc., from both virtual and bare-metal boots can get difficult very quickly. While there are ways to decipher the output and determine if the output is from a virtual guest, the in-kernel hypervisors now have a single registration point and set x86_hy

Re: [PATCH] x86, add hypervisor name to dump_stack() [v3]

2012-10-30 Thread Prarit Bhargava
On 10/30/2012 03:14 PM, Prarit Bhargava wrote: > Debugging crash, panics, stack trace WARN_ONs, etc., from both virtual and > bare-metal boots can get difficult very quickly. While there are ways to > decipher the output and determine if the output is from a virtual guest, > the in-kernel hyperv

Re: [PATCH 2/2] zram: permit sleeping while in pool zs_malloc()

2012-10-30 Thread Greg Kroah-Hartman
On Tue, Oct 30, 2012 at 09:49:11PM +0300, Sergey Senozhatsky wrote: > On (10/30/12 11:04), Greg Kroah-Hartman wrote: > > On Tue, Oct 30, 2012 at 12:03:19PM +0300, Sergey Senozhatsky wrote: > > > zram: permit sleeping while in pool zs_malloc() > > > > 2/2? Huh? Where is 1/2? > > > > I have a

Re: kswapd0: excessive CPU usage

2012-10-30 Thread Mel Gorman
On Mon, Oct 29, 2012 at 11:52:03AM +0100, Thorsten Leemhuis wrote: > Hi! > > On 15.10.2012 13:09, Mel Gorman wrote: > >On Mon, Oct 15, 2012 at 11:54:13AM +0200, Jiri Slaby wrote: > >>On 10/12/2012 03:57 PM, Mel Gorman wrote: > >>>mm: vmscan: scale number of pages reclaimed by reclaim/compaction on

Re: [PATCH 1/2] zram: factor-out zram_decompress_page() function

2012-10-30 Thread Greg Kroah-Hartman
On Tue, Oct 30, 2012 at 09:58:42PM +0300, Sergey Senozhatsky wrote: > zram: factor-out zram_decompress_page() function What's with the indentation? And including the Subject: again here? > > zram_bvec_read() shared decompress functionality with > zram_read_before_write() function. > Fact

Re: [PATCH v4 9/9] bug.h: Convert BUILD_BUG{,_ON} to use BUILD_BUG_ON_MSG

2012-10-30 Thread Borislav Petkov
On Sun, Oct 28, 2012 at 03:57:15PM -0500, danielfsan...@att.net wrote: > Remove duplicate code by converting BUILD_BUG and BUILD_BUG_ON to just > call BUILD_BUG_ON_MSG. This not only reduces source code bloat, but > also prevents the possibility of code being changed for one macro and > not for th

Re: [PATCH v8 01/16] hashtable: introduce a small and naive hashtable

2012-10-30 Thread Mathieu Desnoyers
* Sasha Levin (levinsasha...@gmail.com) wrote: > This hashtable implementation is using hlist buckets to provide a simple > hashtable to prevent it from getting reimplemented all over the kernel. > > Signed-off-by: Sasha Levin Reviewed-by: Mathieu Desnoyers > --- > > Changes from v8: > > -

[PATCH 01/23] KEYS: Rename public key parameter name arrays

2012-10-30 Thread David Howells
Rename the arrays of public key parameters (public key algorithm names, hash algorithm names and ID type names) so that the array name ends in "_name". Signed-off-by: David Howells --- crypto/asymmetric_keys/public_key.c | 14 +++--- crypto/asymmetric_keys/x509_public_key.c |

[PATCH 02/23] KEYS: Move the algorithm pointer array from x509 to public_key.c

2012-10-30 Thread David Howells
Move the public-key algorithm pointer array from x509_public_key.c to public_key.c as it isn't X.509 specific. Signed-off-by: David Howells --- crypto/asymmetric_keys/public_key.c |8 crypto/asymmetric_keys/x509_public_key.c | 11 +-- include/crypto/public_key.h

Re: [PATCH v8 06/16] tracepoint: use new hashtable implementation

2012-10-30 Thread Mathieu Desnoyers
* Sasha Levin (levinsasha...@gmail.com) wrote: > Switch tracepoints to use the new hashtable implementation. This reduces the > amount of generic unrelated code in the tracepoints. > > Signed-off-by: Sasha Levin Reviewed-by: Mathieu Desnoyers > --- > kernel/tracepoint.c | 25 +

[PATCH 06/23] x509: struct x509_certificate needs struct tm declaring

2012-10-30 Thread David Howells
struct x509_certificate needs struct tm declaring by #inclusion of linux/time.h prior to its definition. Signed-off-by: David Howells --- crypto/asymmetric_keys/x509_parser.h |1 + 1 file changed, 1 insertion(+) diff --git a/crypto/asymmetric_keys/x509_parser.h b/crypto/asymmetric_keys/x

[PATCH 09/23] X.509: Handle certificates that lack an authorityKeyIdentifier field

2012-10-30 Thread David Howells
Handle certificates that lack an authorityKeyIdentifier field by assuming they're self-signed and checking their signatures against themselves. Signed-off-by: David Howells --- crypto/asymmetric_keys/x509_public_key.c |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --gi

[PATCH 07/23] X.509: Add bits needed for PKCS#7

2012-10-30 Thread David Howells
PKCS#7 validation requires access to the serial number and the raw names in an X.509 certificate. Signed-off-by: David Howells --- crypto/asymmetric_keys/x509.asn1 |2 +- crypto/asymmetric_keys/x509_cert_parser.c | 17 + crypto/asymmetric_keys/x509_parser.h |

[PATCH 08/23] X.509: Embed public_key_signature struct and create filler function

2012-10-30 Thread David Howells
Embed a public_key_signature struct in struct x509_certificate, eliminating now unnecessary fields, and split x509_check_signature() to create a filler function for it that attaches a digest of the signed data and an MPI that represents the signature data. x509_free_certificate() is then modified

[PATCH 12/23] PKCS#7: Digest the data in a signed-data message

2012-10-30 Thread David Howells
Digest the data in a PKCS#7 signed-data message and attach to the public_key_signature struct contained in the pkcs7_message struct. Signed-off-by: David Howells --- crypto/asymmetric_keys/Makefile |3 + crypto/asymmetric_keys/pkcs7_verify.c | 130 + 2

[PATCH 13/23] PKCS#7: Find the right key in the PKCS#7 key list and verify the signature

2012-10-30 Thread David Howells
Find the appropriate key in the PKCS#7 key list and verify the signature with it. There may be several keys in there forming a chain. Any link in that chain or the root of that chain may be in our keyrings. Signed-off-by: David Howells --- crypto/asymmetric_keys/pkcs7_verify.c | 61

[PATCH 15/23] Provide PE binary definitions

2012-10-30 Thread David Howells
Provide some PE binary structural and constant definitions as taken from the pesign package sources. Signed-off-by: David Howells --- include/linux/pe.h | 448 1 file changed, 448 insertions(+) create mode 100644 include/linux/pe.h diff -

[PATCH 17/23] pefile: Strip the wrapper off of the cert data block

2012-10-30 Thread David Howells
The certificate data block in a PE binary has a wrapper around the PKCS#7 signature we actually want to get at. Strip this off and check that we've got something that appears to be a PKCS#7 signature. Signed-off-by: David Howells --- crypto/asymmetric_keys/pefile_parser.c | 60 ++

[PATCH 03/23] KEYS: Store public key algo ID in public_key struct

2012-10-30 Thread David Howells
Store public key algo ID in public_key struct for reference purposes. This allows it to be removed from the x509_certificate struct and used to find a default in public_key_verify_signature(). Signed-off-by: David Howells --- crypto/asymmetric_keys/x509_cert_parser.c |5 +++-- crypto/asymm

[PATCH 04/23] KEYS: Split public_key_verify_signature() and make available

2012-10-30 Thread David Howells
Modify public_key_verify_signature() so that it now takes a public_key struct rather than a key struct and supply a wrapper that takes a key struct. The wrapper is then used by the asymmetric key subtype and the modified function is used by X.509 self-signature checking and can be used by PKCS#7 a

Re: [PATCH 1/2] Helper macros used for replacing the use of VLAIS

2012-10-30 Thread Greg KH
On Tue, Oct 30, 2012 at 02:25:19PM -0400, Behan Webster wrote: > The use of variable length arrays in structs (VLAIS) in the Linux Kernel code > precludes the use of compilers which don't implement VLAIS (for instance the > Clang compiler). This new header file contains macros which can be used to

[PATCH 16/23] pefile: Parse a PE binary to find a key and a signature contained therein

2012-10-30 Thread David Howells
Parse a PE binary to find a key and a signature contained therein. Later patches will check the signature and add the key if the signature checks out. Signed-off-by: David Howells --- crypto/asymmetric_keys/Kconfig | 10 ++ crypto/asymmetric_keys/Makefile|8 + crypto/asym

[PATCH 18/23] pefile: Parse the presumed PKCS#7 content of the certificate blob

2012-10-30 Thread David Howells
Parse the content of the certificate blob, presuming it to be PKCS#7 format. Signed-off-by: David Howells --- crypto/asymmetric_keys/pefile_parser.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/crypto/asymmetric_keys/pefile_parser.c b/crypto/asymmet

[PATCH 11/23] PKCS#7: Implement a parser [RFC 2315]

2012-10-30 Thread David Howells
Implement a parser for a PKCS#7 signed-data message as described in part of RFC 2315. Signed-off-by: David Howells --- crypto/asymmetric_keys/Kconfig|9 + crypto/asymmetric_keys/Makefile | 13 + crypto/asymmetric_keys/pkcs7.asn1 | 127 + crypto/asymmetric_ke

[PATCH 14/23] PKCS#7: Verify internal certificate chain

2012-10-30 Thread David Howells
Verify certificate chain in the X.509 certificates contained within the PKCS#7 message as far as possible. If any signature that we should be able to verify fails, we reject the whole lot. Signed-off-by: David Howells --- crypto/asymmetric_keys/pkcs7_verify.c | 67 +++

[PATCH 21/23] PKCS#7: Find intersection between PKCS#7 message and known, trusted keys

2012-10-30 Thread David Howells
Find the intersection between the X.509 certificate chain contained in a PKCS#7 message and a set of keys that we already know and trust. Signed-off-by: David Howells --- crypto/asymmetric_keys/Makefile|1 crypto/asymmetric_keys/pefile_parser.c |6 + crypto/asymmetric_keys/pkcs

[PATCH 22/23] PEFILE: Load the contained key if we consider the container to be validly signed

2012-10-30 Thread David Howells
Load the key contained in the PE binary if the signature on the container can be verified by following the chain of X.509 certificates in the PKCS#7 message to a key that we already trust. Typically, the trusted key will be acquired from a source outside of the kernel, such as the UEFI database.

[PATCH 23/23] KEYS: Add a 'trusted' flag and a 'trusted only' flag

2012-10-30 Thread David Howells
Add KEY_FLAG_TRUSTED to indicate that a key either comes from a trusted source or had a cryptographic signature chain that led back to a trusted key the kernel already possessed. Add KEY_FLAGS_TRUSTED_ONLY to indicate that a keyring will only accept links to keys marked with KEY_FLAGS_TRUSTED. Si

[PATCH 19/23] pefile: Parse the "Microsoft individual code signing" data blob

2012-10-30 Thread David Howells
The PKCS#7 certificate should contain a "Microsoft individual code signing" data blob as its signed content. This blob contains a digest of the signed content of the PE binary and the OID of the digest algorithm used (typically SHA256). Signed-off-by: David Howells --- crypto/asymmetric_keys/M

Re: [PATCH v8 16/16] tracing output: use new hashtable implementation

2012-10-30 Thread Steven Rostedt
On Tue, 2012-10-30 at 14:46 -0400, Sasha Levin wrote: > Switch tracing to use the new hashtable implementation. This reduces the > amount of generic unrelated code in the tracing module. > > Signed-off-by: Sasha Levin Acked-by: Steven Rostedt -- Steve -- To unsubscribe from this list: send

[PATCH 20/23] pefile: Digest the PE binary and compare to the PKCS#7 data

2012-10-30 Thread David Howells
Digest the signed parts of the PE binary, canonicalising the section table before we need it, and then compare the the resulting digest to the one in the PKCS#7 signed content. Signed-off-by: David Howells --- crypto/asymmetric_keys/pefile_parser.c | 198 1 fil

[PATCH 10/23] X.509: Export certificate parse and free functions

2012-10-30 Thread David Howells
Export certificate parse and free functions for use by modules. Signed-off-by: David Howells --- crypto/asymmetric_keys/x509_cert_parser.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/crypto/asymmetric_keys/x509_cert_parser.c b/crypto/asymmetric_keys/x509_cert_parser.c index 931f

Re: [PATCH 26/31] sched, numa, mm: Add fault driven placement and migration policy

2012-10-30 Thread Rik van Riel
On 10/25/2012 08:16 AM, Peter Zijlstra wrote: +/* + * Drive the periodic memory faults.. + */ +void task_tick_numa(struct rq *rq, struct task_struct *curr) +{ + struct callback_head *work = &curr->numa_work; + u64 period, now; + + /* +* We don't care about NUMA placement

Re: [PATCH v2 3/3] pppoatm: protect against freeing of vcc

2012-10-30 Thread Krzysztof Mazur
On Tue, Oct 30, 2012 at 09:39:22AM +, David Woodhouse wrote: > On Mon, 2012-10-22 at 19:14 +0200, Krzysztof Mazur wrote: > > The pppoatm gets a reference to atmvcc, but does not increment vcc > > usage count. The vcc uses vcc->sk socket for reference counting, > > so sock_hold() and sock_put()

[PATCH 05/23] KEYS: Store public key algo ID in public_key_signature struct

2012-10-30 Thread David Howells
Store public key algorithm ID in public_key_signature struct for reference purposes. This allows a public_key_signature struct to be embedded in struct x509_certificate and struct pkcs7_message more easily. Signed-off-by: David Howells --- include/crypto/public_key.h |1 + 1 file changed,

[RFC][PATCH 00/23] Load keys from signed PE binaries

2012-10-30 Thread David Howells
Hi Rusty, Here's a set of patches to load a key out of a signed PE format binary: http://git.kernel.org/?p=linux/kernel/git/dhowells/linux-modsign.git;a=shortlog;h=refs/heads/devel-pekey The problem (as I understand it) these patches aim to solve is that Microsoft will only sign PE bin

Re: [PATCH v8 11/32] vfs: make do_unlinkat retry on ESTALE errors

2012-10-30 Thread J. Bruce Fields
On Tue, Oct 30, 2012 at 12:33:55PM -0400, Jeff Layton wrote: > On Tue, 30 Oct 2012 12:14:29 -0400 > "J. Bruce Fields" wrote: > > > On Sat, Oct 27, 2012 at 08:33:18AM -0400, Jeff Layton wrote: > > > Signed-off-by: Jeff Layton > > > --- > > > fs/namei.c | 12 ++-- > > > 1 file changed, 10

Re: [PATCH V3 07/10] Secure boot: Add a dummy kernel parameter that will switch on Secure Boot mode

2012-10-30 Thread joeyli
於 二,2012-10-30 於 13:48 -0400,Josh Boyer 提到: > On Mon, Oct 29, 2012 at 05:00:06PM +0800, joeyli wrote: > > Hi Josh, > > Tahashi has a good idea for use strtobool to allow > > 'secureboot_enable=yes' works. Please consider the following change. > > > > > > Thanks a lot! > > Joey Lee > > > > >From

Re: [PATCH] [trivial] usb: Fix typo in drivers/usb

2012-10-30 Thread Greg KH
On Fri, Oct 26, 2012 at 11:43:19PM +0900, Masanari Iida wrote: > Correct spelling typo in debug message within drivers/usb. > > Signed-off-by: Masanari Iida This no longer applies, please redo it against the latest linux-next tree. thanks, greg k-h -- To unsubscribe from this list: send the li

Re: [alsa-devel] [PATCH 5/5] snd-ice1712: Fix resume on ice1724

2012-10-30 Thread Ondrej Zary
On Wednesday 17 October 2012 08:57:39 Takashi Iwai wrote: > At Sun, 14 Oct 2012 21:09:23 +0200, > > Ondrej Zary wrote: > > set_pro_rate() is called from hw_params() but not from prepare(), > > breaking running PCM on suspend/resume. Call it from prepare() if PCM was > > suspended to fix the problem

Re: [PATCH 1/2] Helper macros used for replacing the use of VLAIS

2012-10-30 Thread Behan Webster
On 12-10-30 03:20 PM, Greg KH wrote: On Tue, Oct 30, 2012 at 02:25:19PM -0400, Behan Webster wrote: The use of variable length arrays in structs (VLAIS) in the Linux Kernel code precludes the use of compilers which don't implement VLAIS (for instance the Clang compiler). This new header file con

Re: [RFC 2/7] capebus: Add beaglebone board support

2012-10-30 Thread Tony Lindgren
* Pantelis Antoniou [121030 12:00]: > +#include > +#include We already have queued patches to make omap_device.h private to arch/arm/mach-omap2. Then plat/clock.h will be gone with the common clock framework patches. Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe l

Re: [PATCH 2/2] zram: permit sleeping while in pool zs_malloc()

2012-10-30 Thread Sergey Senozhatsky
On (10/30/12 12:18), Greg Kroah-Hartman wrote: > > the first one: > > > > [PATCH 1/2] zram: factor-out zram_decompress_page() function > > [PATCH 2/2] zram: handle mem suffixes in disk size zram_sysfs parameter > > > > ACKed by Nitin. > > > > the second one > > > > [PATCH 2/2] zram: permit sle

Re: [RFC 2/7] capebus: Add beaglebone board support

2012-10-30 Thread Tony Lindgren
* Pantelis Antoniou [121030 12:00]: > + > + priv->lcdc_oh = omap_hwmod_lookup("lcdc"); > + if (priv->lcdc_oh == NULL) { > + dev_err(&pdev->dev, "Failed to lookup omap_hwmod lcdc\n"); > + return -ENODEV; > + } > + > + priv->lcdc_pdev = omap_device_build("da8x

Re: [PATCH] bonding: fix bond 6 mode change MAC of arp reply from vif to cause Domu's network unreachable intermittently

2012-10-30 Thread Jay Vosburgh
Zheng Li wrote: >This is a fix for a bug in bond_alb.c >Rate of reproduced:100% >Scenario: set Dom0 to bond 6 mode, Domu communicate with Dom0 through vif which >is in bridge mode. The Dom0's bridge of xenbr0 contains vif and bond0, bond0 >contains eth0 and eth1. You can just need to ping a host

Re: [PATCH 1/2] Helper macros used for replacing the use of VLAIS

2012-10-30 Thread Greg KH
On Tue, Oct 30, 2012 at 03:35:24PM -0400, Behan Webster wrote: > On 12-10-30 03:20 PM, Greg KH wrote: > >On Tue, Oct 30, 2012 at 02:25:19PM -0400, Behan Webster wrote: > >>The use of variable length arrays in structs (VLAIS) in the Linux Kernel > >>code > >>precludes the use of compilers which don

[PATCH 1/2] zram: factor-out zram_decompress_page() function (resend)

2012-10-30 Thread Sergey Senozhatsky
zram_bvec_read() shared decompress functionality with zram_read_before_write() function. Factor-out and make commonly used zram_decompress_page() function, which also simplified error handling in zram_bvec_read(). Signed-off-by: Sergey Senozhatsky Reviewed-by: Nitin Gupta --- drivers/stagin

Re: [Pv-drivers] [PATCH 00/12] VMCI for Linux upstreaming

2012-10-30 Thread Dmitry Torokhov
On Tue, Oct 30, 2012 at 09:27:23AM -0700, Greg KH wrote: > On Tue, Oct 30, 2012 at 09:18:07AM -0700, Dmitry Torokhov wrote: > > > > I think that even if we had a special directory for vmci having network > > > > drivers in Dave's realm and pvscsi in James's is best option, so the new > > > > direct

<    1   2   3   4   5   6   7   8   9   >