[PATCH 11/19] linux/kernel.h: Remove duplicate trace_printk declaration

2012-11-02 Thread Steven Rostedt
From: Michal Hocko !CONFIG_TRACING both declares and defines (empty) trace_printk. The first one is not redundant so it can be removed. Link: http://lkml.kernel.org/r/1351172511-18125-1-git-send-email-mho...@suse.cz Signed-off-by: Michal Hocko Signed-off-by: Steven Rostedt --- include/linux/

[PATCH 17/19] tracing: Remove deprecated tracing_enabled file

2012-11-02 Thread Steven Rostedt
From: Steven Rostedt The tracing_enabled file was used as a quick way to stop tracers, and try to bring down overhead for things like the latency tracers (irqsoff, wakeup, etc). But it didn't work that well. The tracing_on file was created as a really fast way to stop recording into the ftrace r

[PATCH 18/19] tracing: Use irq_work for wake ups and remove *_nowake_*() functions

2012-11-02 Thread Steven Rostedt
From: Steven Rostedt Have the ring buffer commit function use the irq_work infrastructure to wake up any waiters waiting on the ring buffer for new data. The irq_work was created for such a purpose, where doing the actual wake up at the time of adding data is too dangerous, as an event or functio

[PATCH 01/19] tracing: Replace strict_strto* with kstrto*

2012-11-02 Thread Steven Rostedt
From: Daniel Walter * remove old string conversions with kstrto* Link: http://lkml.kernel.org/r/20120926200838.gc1...@0x90.at Signed-off-by: Daniel Walter Signed-off-by: Steven Rostedt --- kernel/trace/ftrace.c |2 +- kernel/trace/trace.c |2 +- kernel/tra

[PATCH 15/19] tracing: Remove unused function unregister_tracer()

2012-11-02 Thread Steven Rostedt
From: Steven Rostedt The function register_tracer() is only used by kernel core code, that never needs to remove the tracer. As trace_events have become the main way to add new tracing to the kernel, the need to unregister a tracer has diminished. Remove the unused function unregister_tracer(). I

[PATCH 16/19] tracing: Make tracing_enabled be equal to tracing_on

2012-11-02 Thread Steven Rostedt
From: Steven Rostedt The tracing_enabled file has been deprecated as it never was able to serve its purpose well. The tracing_on file has taken over. Instead of having code to keep tracing_enabled, have the tracing_enabled file just set tracing_on, and remove the tracing_enabled variable. This a

Re: [PATCH v2 6/9] rcu: use __this_cpu_read helper instead of per_cpu_ptr(p, raw_smp_processor_id())

2012-11-02 Thread Paul E. McKenney
On Sat, Nov 03, 2012 at 12:01:47AM +0800, Shan Wei wrote: > From: Shan Wei > > Signed-off-by: Shan Wei > --- > kernel/rcutree.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/kernel/rcutree.c b/kernel/rcutree.c > index 74df86b..441b945 100644 > --- a/kernel/rcut

[PATCH v2 0/1] percpu_rw_semaphore: reimplement to not block the readers unnecessarily

2012-11-02 Thread Oleg Nesterov
On 11/01, Linus Torvalds wrote: > > On Wed, Oct 31, 2012 at 12:41 PM, Oleg Nesterov wrote: > > > > With this patch down_read/up_read does synchronize_sched() twice and > > down_read/up_read are still possible during this time, just they use > > the slow path. > > The changelog is wrong (it's the w

[PATCH v2 1/1] percpu_rw_semaphore: reimplement to not block the readers unnecessarily

2012-11-02 Thread Oleg Nesterov
Currently the writer does msleep() plus synchronize_sched() 3 times to acquire/release the semaphore, and during this time the readers are blocked completely. Even if the "write" section was not actually started or if it was already finished. With this patch down_write/up_write does synchronize_sc

Re: [RFC] Second attempt at kernel secure boot support

2012-11-02 Thread Matthew Garrett
On Fri, Nov 02, 2012 at 05:57:38PM +, James Bottomley wrote: > On Fri, 2012-11-02 at 17:54 +, Matthew Garrett wrote: > > ? That's the message generated by the Windows access control mechanism > > when you run a binary that requests elevated privileges. > > So that's a windows attack vecto

Re: [B.A.T.M.A.N.] [PATCH v2 9/9] net: batman-adv: use per_cpu_add helper

2012-11-02 Thread Sven Eckelmann
On Saturday 03 November 2012 00:02:06 Shan Wei wrote: > From: Shan Wei > > As Christoph Lameter said: > > In addition, following usage of per_cpu_ptr can be replaced by > > this_cpu_read. > > > > cpu=get_cpu() > > > > *per_cpu_ptr(p,cpu) > > > > > > put_cpu() > > Right. > > Sign

Re: [RFC] Second attempt at kernel secure boot support

2012-11-02 Thread James Bottomley
On Fri, 2012-11-02 at 17:54 +, Matthew Garrett wrote: > On Fri, Nov 02, 2012 at 05:48:31PM +, James Bottomley wrote: > > On Fri, 2012-11-02 at 16:54 +, Matthew Garrett wrote: > > > On Fri, Nov 02, 2012 at 04:52:44PM +, James Bottomley wrote: > > > > > > > The first question is how

Re: [RFC] Second attempt at kernel secure boot support

2012-11-02 Thread Matthew Garrett
On Fri, Nov 02, 2012 at 05:48:31PM +, James Bottomley wrote: > On Fri, 2012-11-02 at 16:54 +, Matthew Garrett wrote: > > On Fri, Nov 02, 2012 at 04:52:44PM +, James Bottomley wrote: > > > > > The first question is how many compromises do you need. Without > > > co-operation from windo

Re: setting up CDB filters in udev (was Re: [PATCH v2 0/3] block: add queue-private command filter, editable via sysfs)

2012-11-02 Thread Tejun Heo
Hello, Paolo. On Fri, Nov 02, 2012 at 06:49:43PM +0100, Paolo Bonzini wrote: > > No rule is really absolute. To me, it seems the suggested in-kernel > > per-device command code filter is both too big for the given problem > > Is it? 150 lines of code? The per-class filters would share the firs

Re: [PATCH 8/9] trace: use this_cpu_ptr per-cpu helper

2012-11-02 Thread Christoph Lameter
On Fri, 2 Nov 2012, Shan Wei wrote: > Christoph Lameter said, at 2012/11/1 1:50: > >> > >> - buffer = per_cpu_ptr(percpu_buffer, smp_processor_id()); > >> + buffer = this_cpu_ptr(percpu_buffer); > >> > >>return buffer->buffer; > > > > > > Just do a > > > > return this_cpu_read(percpu_buf

Re: [PATCH] of/address: sparc: Declare of_address_to_resource() as an extern function for sparc again

2012-11-02 Thread Sam Ravnborg
Hi Andreas. On Fri, Nov 02, 2012 at 12:03:56PM +0100, Andreas Larsson wrote: > This bug-fix makes sure that of_address_to_resource is defined extern for > sparc > so that the sparc-specific implementation of of_address_to_resource() is once > again used when including include/linux/of_address.h in

Re: setting up CDB filters in udev (was Re: [PATCH v2 0/3] block: add queue-private command filter, editable via sysfs)

2012-11-02 Thread Paolo Bonzini
Il 02/11/2012 17:51, Tejun Heo ha scritto: >>> > > What disturbs me is that it's a completely new interface to userland >>> > > and at the same a very limited one at that. So, yeah, it's >>> > > bothersome. I personally would prefer SCM_RIGHTS behavior change + >>> > > hard coded filters per devi

Re: [PATCH] xfs: silence GCC warning

2012-11-02 Thread Paul Bolle
On Fri, 2012-11-02 at 09:07 -0400, Christoph Hellwig wrote: > Looks good, Dave has actually sent it a tidbit earlier as part > of his series with fixes for 3.7-rc I see, thanks. Paul Bolle -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to maj

Re: [PATCH 0/9 v2] use efficient this_cpu_* helper

2012-11-02 Thread Christoph Lameter
On Sat, 3 Nov 2012, Shan Wei wrote: > this_cpu_ptr is faster than per_cpu_ptr(p, smp_processor_id()) > and can reduce memory accesses. > The latter helper needs to find the offset for current cpu, > and needs more assembler instructions which objdump shows in following. > > per_cpu_ptr(p, smp_pro

Re: [RFC] Second attempt at kernel secure boot support

2012-11-02 Thread James Bottomley
On Fri, 2012-11-02 at 16:54 +, Matthew Garrett wrote: > On Fri, Nov 02, 2012 at 04:52:44PM +, James Bottomley wrote: > > > The first question is how many compromises do you need. Without > > co-operation from windows, you don't get to install something in the > > boot system, so if you're

Re: [PATCH v2 9/9] net: batman-adv: use per_cpu_add helper

2012-11-02 Thread Christoph Lameter
On Sat, 3 Nov 2012, Shan Wei wrote: > diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h > index 897ba6a..3aef5b2 100644 > --- a/net/batman-adv/main.h > +++ b/net/batman-adv/main.h > @@ -263,9 +263,7 @@ static inline bool batadv_has_timed_out(unsigned long > timestamp, > static inline vo

[PATCH REPOST 0/3] mfd: tps6586x: Convert to irq domain

2012-11-02 Thread Laxman Dewangan
This patch series convert the irq implementation to use the irq domain. Accordingly, gpio driver and rtc registration is updated. Reposting the series and adding the reviwed by Mark and acked by Linus W for the respective patches. Laxman Dewangan (3): mfd: Convert tps6586x to irq_domain mfd:

Re: [PATCH v2 7/9] trace: use this_cpu_ptr per-cpu helper

2012-11-02 Thread Christoph Lameter
On Sat, 3 Nov 2012, Shan Wei wrote: > diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c > index 31e4f55..81ae35b 100644 > --- a/kernel/trace/trace.c > +++ b/kernel/trace/trace.c > @@ -1513,7 +1513,7 @@ static char *get_trace_buf(void) > if (!percpu_buffer) > return NULL;

Re: [PATCH v2 6/9] rcu: use __this_cpu_read helper instead of per_cpu_ptr(p, raw_smp_processor_id())

2012-11-02 Thread Christoph Lameter
On Sat, 3 Nov 2012, Shan Wei wrote: > > /* Funnel through hierarchy to reduce memory contention. */ > - rnp = per_cpu_ptr(rsp->rda, raw_smp_processor_id())->mynode; > + rnp = __this_cpu_read(rsp->rda->mynode); > for (; rnp != NULL; rnp = rnp->parent) { Reviewed-by: Christoph L

Re: [PATCH 4/9] net: openvswitch: use this_cpu_ptr per-cpu helper

2012-11-02 Thread Christoph Lameter
On Sat, 3 Nov 2012, Shan Wei wrote: > +++ b/net/openvswitch/datapath.c > @@ -208,7 +208,7 @@ void ovs_dp_process_received_packet(struct vport *p, > struct sk_buff *skb) > int error; > int key_len; > > - stats = per_cpu_ptr(dp->stats_percpu, smp_processor_id()); > + stats = thi

[PATCH 3/3] mfd: tps6586x: implement gpio_to_irq

2012-11-02 Thread Laxman Dewangan
The TPS6586x adds the interrupt of this device using linear mapping on irq domain. Hence, implement gpio_to_irq to get the irq number corresponding to TPS6586x GPIOs which is created dynamically. Signed-off-by: Laxman Dewangan Reviewed-by: Mark Brown Acked-by: Linus Walleij --- Reposting in cas

[PATCH REPOST 2/3] mfd: tps6586x: add irq io-resource for rtc sub driver

2012-11-02 Thread Laxman Dewangan
Add IRQ IORESOURCE for rtc sub driver of this device. The rtc driver can get the irq by calling platform_get_irq(). Signed-off-by: Laxman Dewangan Reviewed-by: Mark Brown --- Reposting in case of patch missed. Also added Reviewed by Mark as he already reviewed the patches. drivers/mfd/tps6586x

Re: [PATCH v2 5/9] kernel: padata : use this_cpu_read per-cpu helper

2012-11-02 Thread Christoph Lameter
On Sat, 3 Nov 2012, Shan Wei wrote: > - queue = per_cpu_ptr(pd->pqueue, smp_processor_id()); > - if (queue->cpu_index == next_queue->cpu_index) { > + if (this_cpu_read(pd->pqueue->cpu_index) == next_queue->cpu_index) { > padata = ERR_PTR(-ENODATA); Reviewed-by: Christoph

[PATCH v3] staging: ste_rmi4: Convert to Type-B support

2012-11-02 Thread Alexandra Chin
Hi Henrik and all, This patch converts to MT-B because Synaptics touch devices are capable of tracking identifiable fingers This patch was tested on pandaboard, except input_mt_sync_frame(), which is a quite new function. I changed to use sylpheed as my mail client. Please let me know if there is

[PATCH REPOST 1/3] mfd: Convert tps6586x to irq_domain

2012-11-02 Thread Laxman Dewangan
Allocate the irq base if it base is not porvided i.e. in case of device tree invocation of this driver. Convert the tps6586x driver to irq domain, using a legacy IRQ mapping if an irq_base is specified in platform data or dynamically allocated and otherwise using a linear mapping. Signed-off-by: L

Re: [PATCH v2 1/9] net: core: use this_cpu_ptr per-cpu helper

2012-11-02 Thread Christoph Lameter
On Sat, 3 Nov 2012, Shan Wei wrote: > +++ b/net/core/flow.c > @@ -327,11 +327,9 @@ static void flow_cache_flush_tasklet(unsigned long data) > static void flow_cache_flush_per_cpu(void *data) > { > struct flow_flush_info *info = data; > - int cpu; > struct tasklet_struct *tasklet;

[PATCH 2/2] irq_work: Fix racy check on work pending flag

2012-11-02 Thread Frederic Weisbecker
Work claiming wants to be SMP-safe. And by the time we try to claim a work, if it is already executing concurrently on another CPU, we want to succeed the claiming and queue the work again because the other CPU may have missed the data we wanted to handle in our work if it's about to complete ther

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

2012-11-02 Thread Frederic Weisbecker
The IRQ_WORK_BUSY flag is set right before we execute the work. Once this flag value is set, the work enters a claimable state again. So if we have specific data to compute in our work, we ensure it's either handled by another CPU or locally by enqueuing the work again. This state machine is guanr

[PATCH 0/2] irq_work: A couple fixes v2

2012-11-02 Thread Frederic Weisbecker
Hey, After some discussion with Steve, this is a respin with changelogs and comments sanitized. The code itself hasn't changed. Thanks. Frederic Weisbecker (2): irq_work: Fix racy IRQ_WORK_BUSY flag setting irq_work: Fix racy check on work pending flag kernel/irq_work.c | 21

[PATCH V3 4/4] mfd: tps65910: pass irq_domain when adding mfd sub devices

2012-11-02 Thread Laxman Dewangan
When adding the sub device "tps65910-rtc", is it passed the IO resource IRQ for the interrupt number. This interrupt needs to map in the device irq domain. Pass the irq domain of device in mfd_add_devices() so that proper irq mapping can be done when adding the sub device RTC. Signed-off-by: Laxma

[PATCH V3 1/4] mfd: tps65910: Initialize mfd devices after all initialization done

2012-11-02 Thread Laxman Dewangan
Add sub devices of tps65910 after all initialization like interrupt, clock etc. is done. This will make sure that require data gets initialized properly before sub devices probe's get called. Signed-off-by: Laxman Dewangan Reviewed-by: Mark Brown --- Changes from V: - Rearrange patches so that t

[PATCH V3 0/4] mfd: tps65910: use regmap irq framework for interrupt

2012-11-02 Thread Laxman Dewangan
This patch series has following change: - Use regmap irq framework for interrupt registration. Corrected the register bit definition for interrupts. - Move the irq table to tps65910.c and get rid of tps65910-irq.c. - Raarrange the init sequence of different sub moduled of tps65910 like irq, clo

[PATCH V3 3/4] mfd: tps65910: move interrupt implementation code to mfd file

2012-11-02 Thread Laxman Dewangan
In place of implementing the irq support in separate file, moving implementation to main mfd file. The irq files only contains the table and init steps only and does not need extra file to have this only for this purpose. Signed-off-by: Laxman Dewangan Reviewed-by: Mark Brown --- No change from

[PATCH V3 2/4] mfd: tps65910: use regmap irq framework for interrupt support

2012-11-02 Thread Laxman Dewangan
Implement irq support of tps65910 with regmap irq framework in place of implementing locally. This reduces the code size significantly and easy to maintain. Signed-off-by: Laxman Dewangan Reviewed-by: Mark Brown --- No change from V1, just rearrange this patch. It was already reviwed by Mark and

Re: [PATCH 3/3, v2] x86/xor: make virtualization friendly

2012-11-02 Thread H. Peter Anvin
Aren't we actually talking just about PV here? If so the test is wrong. Jan Beulich wrote: >In virtualized environments, the CR0.TS management needed here can be a >lot slower than anticipated by the original authors of this code, which >particularly means that in such cases forcing the use of

Re: setting up CDB filters in udev (was Re: [PATCH v2 0/3] block: add queue-private command filter, editable via sysfs)

2012-11-02 Thread Tejun Heo
Hey, Alan. On Fri, Nov 02, 2012 at 05:21:45PM +, Alan Cox wrote: > That also means that a normal app running as superuser for some reason > would set its user filter and any accidentally inherited descriptors will > be less dangerous as the are today. It also means a CAP_SYS_RAWIO capable > ap

Re: [RFC] Second attempt at kernel secure boot support

2012-11-02 Thread Vivek Goyal
On Thu, Nov 01, 2012 at 01:50:08PM -0400, Eric Paris wrote: [..] > I've talked with and > worked with a public cloud operator who wants to prevent even a > malicious root user from being able to run code in ring 0 inside their > VM. The hope in that case was that in doing so they can indirectly >

[GIT PULL] FRV fixes

2012-11-02 Thread David Howells
are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-frv.git tags/frv-fixes-20121102 for you to fetch changes up to 1d72d9f83df057e71c7951def41138a0230bf737: frv: fix the broken preempt (2012-11-02 12:08:25

Re: setting up CDB filters in udev (was Re: [PATCH v2 0/3] block: add queue-private command filter, editable via sysfs)

2012-11-02 Thread Alan Cox
> > Not a good model. Any removal of filters and passing them to a task > > should be explicit. The behaviour really ought to be to permit the > > intentional setting of explicit filters then passing them, not touch the > > default behaviour. > > Yeah, well, then I guess it'll have to be a separat

[ 05/11] floppy: do put_disk on current dr if blk_init_queue fails

2012-11-02 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Herton Ronaldo Krzesinski commit 238ab78469c6ab7845b43d5061cd3c92331b2452 upstream. If blk_init_queue fails, we do not call put_disk on the current dr (dr is decremented first in the error hand

[ 06/11] b43: Fix oops on unload when firmware not found

2012-11-02 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Larry Finger commit f89ff6441df06abc2d95f3ef67525923032d6283 upstream. When b43 fails to find firmware when loaded, a subsequent unload will oops due to calling ieee80211_unregister_hw() when t

[ 07/11] target: Fix double-free of se_cmd in target_complete_tmr_failure

2012-11-02 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Bellinger commit e13d5fef88c40b87c8430f8274c3a9ca32ef90bc upstream. Fabric drivers currently expect to internally release se_cmd in the event of a TMR failure during target_submit_tmr(

[ 08/11] HID: microsoft: fix invalid rdesc for 3k kbd

2012-11-02 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Jiri Slaby commit 3ccc60f9d8c39180c205dba1a020735bda1b2491 upstream. Microsoft Digital Media Keyboard 3000 has two interfaces, and the second one has a report descriptor with a bug. The second

[ 09/11] drm/nouveau: silence modesetting spam on pre-gf8 chipsets

2012-11-02 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Ben Skeggs commit cee59f15a60cc6269a25e3f6fbf1a577d6ab8115 upstream. Signed-off-by: Ben Skeggs Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/nouveau/nv04_dac.c |8 driv

[ 10/11] drm/nouveau: fix suspend/resume when in headless mode

2012-11-02 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Ben Skeggs Backport of fixes from upstream commit: 9430738d80223a1cd791a2baa74fa170d3df1262 Signed-off-by: Ben Skeggs Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/nouveau/nouveau_d

[ 04/24] gpiolib: Dont return -EPROBE_DEFER to sysfs, or for invalid gpios

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit ad2fab36d7922401c4576fb7ea9b21a47a29a17f upstream. gpios requested with invalid numbers, or gpios requested from userspace via sysfs should not try to be deferred on failu

[ 11/11] drm/nouveau: headless mode by default if pci class != vga display

2012-11-02 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Ben Skeggs This is to prevent nouveau from taking over the console on headless boards such as Tesla. Backport of upstream commit: e412e95a268fa8544858ebfe066826b290430d51 Signed-off-by: Ben Sk

[ 04/11] md/raid1: Fix assembling of arrays containing Replacements.

2012-11-02 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit 02b898f2f04e418094f0093a3ad0b415bcdbe8eb upstream. setup_conf in raid1.c uses conf->raid_disks before assigning a value. It is used when including 'Replacement' devices. The

[ 02/11] gpio-timberdale: fix a potential wrapping issue

2012-11-02 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit d79550a7bc35c16476ebdc27c78378d8093390ec upstream. ->last_ier is an unsigned long but the high bits can't be used int the original code because the shift wraps. Signed-off

[ 03/24] gpio-timberdale: fix a potential wrapping issue

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit d79550a7bc35c16476ebdc27c78378d8093390ec upstream. ->last_ier is an unsigned long but the high bits can't be used int the original code because the shift wraps. Signed-off

[ 02/24] blkcg: Fix use-after-free of q->root_blkg and q->root_rl.blkg

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Jun'ichi Nomura commit 65635cbc37e011e71b208257a25e7c1078cd039b upstream. blk_put_rl() does not call blkg_put() for q->root_rl because we don't take request list reference on q->root_blkg. Howe

[ 00/24] 3.6.6-stable review

2012-11-02 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.6.6 release. There are 24 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sun Nov 4 17:02:39 UTC 2012. Anything received

[ 05/24] md/raid1: Fix assembling of arrays containing Replacements.

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit 02b898f2f04e418094f0093a3ad0b415bcdbe8eb upstream. setup_conf in raid1.c uses conf->raid_disks before assigning a value. It is used when including 'Replacement' devices. The

[ 06/24] floppy: dont call alloc_ordered_workqueue inside the alloc_disk loop

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Herton Ronaldo Krzesinski commit b54e1f88897bcacc2cd359f48ea3b39eaf55f084 upstream. Since commit 070ad7e ("floppy: convert to delayed work and single-thread wq"), we end up calling alloc_ordere

[ 12/24] ceph: Fix oops when handling mdsmap that decreases max_mds

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: "Yan, Zheng" commit 3e8f43a089f06279c5f76a9ccd42578eebf7bfa5 upstream. When i >= newmap->m_max_mds, ceph_mdsmap_get_addr(newmap, i) return NULL. Passing NULL to memcmp() triggers oops. Signed-

[ 14/24] ceph: avoid 32-bit page index overflow

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Alex Elder commit 6285bc231277419255f3498d3eb5ddc9f8e7fe79 upstream. A pgoff_t is defined (by default) to have type (unsigned long). On architectures such as i686 that's a 32-bit type. The ce

[ 16/24] USB: iuu_phoenix: fix backported patches

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold Fix two memory leaks involving dbgbuf that were introduced in port-probe error paths when backporting the following port-data fixes from v3.7 (which doesn't have dbgbuf): 0978c94 U

[ 11/24] ceph: fix dentry reference leak in encode_fh()

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: David Zafman commit 52eb5a900a9863a8b77a895f770e5d825c8e02c6 upstream. Call to d_find_alias() needs a corresponding dput() This fixes http://tracker.newdream.net/issues/3271 Signed-off-by: Da

[ 10/24] libceph: avoid NULL kref_put when osd reset races with alloc_msg

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit 9bd952615a42d7e2ce3fa2c632e808e804637a1a upstream. The ceph_on_in_msg_alloc() method drops con->mutex while it allocates a message. If that races with a timeout that resends a

[ 09/24] rbd: reset BACKOFF if unable to re-queue

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Alex Elder commit 588377d6199034c36d335e7df5818b731fea072c upstream. If ceph_fault() is unable to queue work after a delay, it sets the BACKOFF connection flag so con_work() will attempt to do

[ 01/24] ext4: fix unjournaled inode bitmap modification

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Eric Sandeen commit ffb5387e85d528fb6d0d924abfa3fbf0fc484071 upstream. commit 119c0d4460b001e44b41dcf73dc6ee794b98bd31 changed ext4_new_inode() such that the inode bitmap was being modified out

[ 19/24] target: reintroduce some obsolete SCSI-2 commands

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Bernhard Kohl commit 1a1ff38c4cebf23be8bf0009a76b082a13bd25cb upstream. With kernel 3.6 some obsolete SCSI-2 commands including SEEK_10 have have been removed by commit 1fd032ee10d2816c947f5d5b

[ 18/24] qla2xxx: Update target lookup session tables when a target session changes

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Roland Dreier commit c8292d1da53fa60c7516ab03a9d83f7ea266d335 upstream. It is possible for the target code to change the loop_id or s_id of a target session in reaction to an FC fabric change.

[ 20/24] target: Fix double-free of se_cmd in target_complete_tmr_failure

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Bellinger commit e13d5fef88c40b87c8430f8274c3a9ca32ef90bc upstream. Fabric drivers currently expect to internally release se_cmd in the event of a TMR failure during target_submit_tmr(

[ 21/24] HID: microsoft: fix invalid rdesc for 3k kbd

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Jiri Slaby commit 3ccc60f9d8c39180c205dba1a020735bda1b2491 upstream. Microsoft Digital Media Keyboard 3000 has two interfaces, and the second one has a report descriptor with a bug. The second

[ 22/24] drm/nouveau: silence modesetting spam on pre-gf8 chipsets

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Ben Skeggs commit cee59f15a60cc6269a25e3f6fbf1a577d6ab8115 upstream. Signed-off-by: Ben Skeggs Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/nouveau/nv04_dac.c |8 driv

[ 13/24] libceph: check for invalid mapping

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Sage Weil commit d63b77f4c552cc3a20506871046ab0fcbc332609 upstream. If we encounter an invalid (e.g., zeroed) mapping, return an error and avoid a divide by zero. Signed-off-by: Sage Weil Rev

[ 08/24] floppy: properly handle failure on add_disk loop

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Herton Ronaldo Krzesinski commit d60e7ec18c3fb2cbf90969ccd42889eb2d03aef9 upstream. On floppy initialization, if something failed inside the loop we call add_disk, there was no cleanup of previ

[ 07/24] floppy: do put_disk on current dr if blk_init_queue fails

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Herton Ronaldo Krzesinski commit 238ab78469c6ab7845b43d5061cd3c92331b2452 upstream. If blk_init_queue fails, we do not call put_disk on the current dr (dr is decremented first in the error hand

[ 15/24] USB: mos7840: fix port-data memory leak

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 80c00750f0c9867a65b30a17880939b6bc660a77 upstream. Fix port-data memory leak by moving port data allocation and deallocation to port_probe and port_remove. Since commit 099

[ 24/24] drm/nouveau: headless mode by default if pci class != vga display

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Ben Skeggs This is to prevent nouveau from taking over the console on headless boards such as Tesla. Backport of upstream commit: e412e95a268fa8544858ebfe066826b290430d51 Signed-off-by: Ben Sk

[ 23/24] drm/nouveau: fix suspend/resume when in headless mode

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Ben Skeggs Backport of fixes from upstream commit: 9430738d80223a1cd791a2baa74fa170d3df1262 Signed-off-by: Ben Skeggs Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/nouveau/nouveau_d

[ 17/24] USB: io_edgeport: remove unused variable

2012-11-02 Thread Greg Kroah-Hartman
3.6-stable review patch. If anyone has any objections, please let me know. -- From: Paul Bolle The stable commit 12ddc74e8e25107eda81aceb74e3311c1480b381 ("USB: io_edgeport: fix port-data memory leak") left one variable unused: drivers/usb/serial/io_edgeport.c: In function

[ 03/11] gpiolib: Dont return -EPROBE_DEFER to sysfs, or for invalid gpios

2012-11-02 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit ad2fab36d7922401c4576fb7ea9b21a47a29a17f upstream. gpios requested with invalid numbers, or gpios requested from userspace via sysfs should not try to be deferred on failu

[ 01/11] ext4: fix unjournaled inode bitmap modification

2012-11-02 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Eric Sandeen commit ffb5387e85d528fb6d0d924abfa3fbf0fc484071 upstream. commit 119c0d4460b001e44b41dcf73dc6ee794b98bd31 changed ext4_new_inode() such that the inode bitmap was being modified out

[ 00/11] 3.4.18-stable review

2012-11-02 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.4.18 release. There are 11 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sun Nov 4 17:03:08 UTC 2012. Anything receive

[ 4/4] drm/nouveau: silence modesetting spam on pre-gf8 chipsets

2012-11-02 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Ben Skeggs commit cee59f15a60cc6269a25e3f6fbf1a577d6ab8115 upstream. Signed-off-by: Ben Skeggs Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/nouveau/nv04_dac.c |8 driv

[ 3/4] mm: fix XFS oops due to dirty pages without buffers on s390

2012-11-02 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit ef5d437f71afdf4afdbab99213add99f4b1318fd upstream. On s390 any write to a page (even from kernel itself) sets architecture specific page dirty bit. Thus when a page is written

[ 1/4] floppy: do put_disk on current dr if blk_init_queue fails

2012-11-02 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Herton Ronaldo Krzesinski commit 238ab78469c6ab7845b43d5061cd3c92331b2452 upstream. If blk_init_queue fails, we do not call put_disk on the current dr (dr is decremented first in the error hand

[ 0/4] 3.0.51-stable review

2012-11-02 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.0.51 release. There are 4 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sun Nov 4 17:03:28 UTC 2012. Anything received

Re: [PATCH] xen-blk: persistent-grants fixes

2012-11-02 Thread Konrad Rzeszutek Wilk
On Fri, Nov 02, 2012 at 04:43:04PM +0100, Roger Pau Monne wrote: > This patch contains fixes for persistent grants implementation v2: > > * handle == 0 is a valid handle, so initialize grants in blkback >setting the handle to BLKBACK_INVALID_HANDLE instead of 0. Reported >by Konrad Rzeszu

Re: [RFC] Second attempt at kernel secure boot support

2012-11-02 Thread Vivek Goyal
On Fri, Nov 02, 2012 at 10:54:50AM -0600, Chris Friesen wrote: > On 11/02/2012 09:48 AM, Vivek Goyal wrote: > >On Thu, Nov 01, 2012 at 03:02:25PM -0600, Chris Friesen wrote: > > >>With secure boot enabled, then the kernel should refuse to let an > >>unsigned kexec load new images, and kexec itself

Re: [ANNOUNCE] 3.6.5-rt14

2012-11-02 Thread Paul Gortmaker
[[ANNOUNCE] 3.6.5-rt14] On 01/11/2012 (Thu 21:57) Thomas Gleixner wrote: > Dear RT Folks, > > I'm pleased to announce the 3.6.5-rt14 release. 3.6.4-rt12 is an > intermediate release with a few changes. 3.6.5-rt13 is an update to > 3.6.5 and 3.6.5-rt14 has a fix for my stupidity to release from th

Re: Kdump with signed images

2012-11-02 Thread Khalid Aziz
On Thu, 2012-11-01 at 16:23 +, Matthew Garrett wrote: > On Thu, Nov 01, 2012 at 09:10:56AM -0600, Khalid Aziz wrote: > > How would a customer go about getting that userspace binary signed and > > re-signed every time they update their app? There is the option of > > turning the whole SecureBo

Re: [PATCH 1/2] xen/hypercall: fix hypercall fallback code for very old hypervisors

2012-11-02 Thread Jan Beulich
>>> On 02.11.12 at 17:44, Konrad Rzeszutek Wilk wrote: > --- a/arch/x86/include/asm/xen/hypercall.h > +++ b/arch/x86/include/asm/xen/hypercall.h > @@ -359,18 +359,14 @@ HYPERVISOR_update_va_mapping(unsigned long va, pte_t > new_val, > return _hypercall4(int, update_va_mapping, va, >

Re: [RFC] Second attempt at kernel secure boot support

2012-11-02 Thread Chris Friesen
On 11/02/2012 09:48 AM, Vivek Goyal wrote: On Thu, Nov 01, 2012 at 03:02:25PM -0600, Chris Friesen wrote: With secure boot enabled, then the kernel should refuse to let an unsigned kexec load new images, and kexec itself should refuse to load unsigned images. Yep, good in theory. Now that ba

Re: [RFC] Second attempt at kernel secure boot support

2012-11-02 Thread Matthew Garrett
On Fri, Nov 02, 2012 at 04:52:44PM +, James Bottomley wrote: > The first question is how many compromises do you need. Without > co-operation from windows, you don't get to install something in the > boot system, so if you're looking for a single compromise vector, the > only realistic attack

Re: [BUGFIX 2/2] PCI/PM: Resume device before shutdown

2012-11-02 Thread Bjorn Helgaas
On Wed, Oct 24, 2012 at 12:54 AM, Huang Ying wrote: > Some actions during shutdown need device to be in D0 state, such as > MSI shutdown etc, so resume device before shutdown. Is there a problem report or bugzilla for this issue? What are the symptoms by which a user could figure out that he nee

Re: [RFC] Second attempt at kernel secure boot support

2012-11-02 Thread James Bottomley
On Fri, 2012-11-02 at 17:33 +0100, Pavel Machek wrote: > On Thu 2012-11-01 15:02:25, Chris Friesen wrote: > > On 11/01/2012 02:27 PM, Pavel Machek wrote: > > > > >Could someone write down exact requirements for Linux kernel to be signed > > >by Microsoft? > > >Because thats apparently what you wa

[PATCH] acpi: add missing newline to printk

2012-11-02 Thread Cesar Eduardo Barros
The missing newline causes messages like this on dmesg: [2.578212] ACPI: Invalid Power Resource to register!<5>[2.578456] ... Cc: Lin Ming Cc: Len Brown Signed-off-by: Cesar Eduardo Barros --- drivers/acpi/power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

Re: setting up CDB filters in udev (was Re: [PATCH v2 0/3] block: add queue-private command filter, editable via sysfs)

2012-11-02 Thread Tejun Heo
Hey, Paolo. On Fri, Nov 02, 2012 at 03:49:02PM +0100, Paolo Bonzini wrote: > > Yeah, I get that it's a behavior change, but would that be a problem? > > Worse, it's a potential security hole because previously you'd get > filtering and now you wouldn't. > > Considering that SCM_RIGHTS is usually

Re: [BUGFIX 1/2] PCI/PM: Fix deadlock when unbind device if its parent in D3cold

2012-11-02 Thread Bjorn Helgaas
On Wed, Oct 24, 2012 at 12:54 AM, Huang Ying wrote: > If a PCI device and its parents are put into D3cold, unbinding the > device will trigger deadlock as follow: > > - driver_unbind > - device_release_driver > - device_lock(dev) <--- previous lock here > - __dev

Re: [Xen-devel] [PATCH 1/2] Xen acpi pad implement

2012-11-02 Thread Konrad Rzeszutek Wilk
On Thu, Nov 01, 2012 at 06:34:45AM +, Liu, Jinsong wrote: > Thanks! updated as attached. > > Jinsong > > = > >From f514b97628945cfac00efb0d456f133d44754c9d Mon Sep 17 00:00:00 2001 > From: Liu, Jinsong > Date: Thu, 1 Nov 2012 21:02:36 +0800 > Subject: [PATCH 1/2] Xen acpi

Re: setting up CDB filters in udev (was Re: [PATCH v2 0/3] block: add queue-private command filter, editable via sysfs)

2012-11-02 Thread Tejun Heo
Hey, Alan, Paolo. On Fri, Nov 02, 2012 at 03:35:30PM +, Alan Cox wrote: > > >> That would be a change with respect to what we have now. After > > >> transferring a root-opened (better: CAP_SYS_RAWIO-opened) file > > >> descriptor to an unprivileged process your SG_IO commands get > > >> filte

Re: [PATCH RFT RESEND linux-next] hexagon: dma-mapping: support debug_dma_mapping_error

2012-11-02 Thread Shuah Khan
On Fri, 2012-10-26 at 09:43 -0600, Shuah Khan wrote: > Add support for debug_dma_mapping_error() call to avoid warning from > debug_dma_unmap() interface when it checks for mapping error checked > status. Without this patch, device driver failed to check map error > warning is generated. > > Signe

<    1   2   3   4   5   6   >