[RFC][PATCH 12/30] ACPI / hotplug / PCI: Drop sun field from struct acpiphp_slot

2013-07-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If the slot unique number is passed as an additional argument to acpiphp_register_hotplug_slot(), the slot field in struct acpiphp_slot is not necessary and may be dropped, so make that happen. Signed-off-by: Rafael J. Wysocki --- drivers/pci/hotplug/acpiphp.h |

[RFC][PATCH 10/30] ACPI / hotplug / PCI: Refactor slot allocation code in register_slot()

2013-07-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki To make the code in register_slot() a bit easier to follow, change the way the slot allocation part is organized. Drop one local variable that's not used any more after that modification. This code change should not lead to any changes in behavior. Signed-off-by:

[RFC][PATCH 7/30] ACPI / hotplug / PCI: Pass hotplug context objects to event handlers

2013-07-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Modify handle_hotplug_event() to pass the entire context object (instead of its fields individually) to work functions started by it. This change makes the subsequent consolidation of the event handling work functions a bit more straightforward. Signed-off-by: Rafael J.

[RFC][PATCH 6/30] ACPI / hotplug / PCI: Rework acpiphp_handle_to_bridge()

2013-07-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Subject: Using the hotplug context objects introduced previously rework the ACPI-based PCI hotplug (ACPIPHP) core code to get to acpiphp_bridge objects associated with hotplug bridges from those context objects rather than from the global list of hotplug bridges.

[RFC][PATCH 8/30] ACPI / hotplug / PCI: Merge hotplug event handling functions

2013-07-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki There are separate handling event functions for hotplug bridges and for hotplug functions, but they may be combined into one common hotplug event handling function which simplifies the code slightly. That also allows a theoretical bug to be dealt with which in principle

[RFC][PATCH 4/30] ACPI / hotplug / PCI: Hotplug context objects for bridges and functions

2013-07-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki When either a new hotplug bridge or a new hotplug function is added by the ACPI-based PCI hotplug (ACPIPHP) code, attach a context object to its ACPI handle to store hotplug-related information in it. To start with, put the handle's bridge and function pointers into that

Re: [PATCH V2] pci: exynos: split into two parts such as Synopsys part and Exynos part

2013-07-11 Thread Jingoo Han
On Thursday, July 11, 2013 5:55 PM, Kishon Vijay Abraham I wrote: > On Thursday 11 July 2013 11:19 AM, Jingoo Han wrote: > > Exynos PCIe IP consists of Synopsys specific part and Exynos > > specific part. Only core block is a Synopsys designware part; > > other parts are Exynos specific. > > Also,

[RFC][PATCH 5/30] ACPI / hotplug / PCI: Unified notify handler for hotplug events

2013-07-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Using the hotplug context objects introduced previously rework the ACPI-based PCI hotplug (ACPIPHP) core code so that all notifications for ACPI device objects corresponding to the hotplug PCI devices are handled by one function, handle_hotplug_event(), which recognizes

[RFC][PATCH 3/30] ACPI / hotplug / PCI: Always return success after adding a function

2013-07-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki When a new ACPIPHP function is added by register_slot() and the notify handler cannot be installed for it, register_slot() returns an error status without cleaning up, which causes the entire namespace walk in acpiphp_enumerate_slots() to be aborted, although it still may

[RFC][PATCH 1/30] ACPI / PCI: Make bus registration and unregistration symmetric

2013-07-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since acpi_pci_slot_enumerate() and acpiphp_enumerate_slots() can get the ACPI device handle they need from bus->bridge, it is not necessary to pass that handle to them as an argument. Drop the second argument of acpi_pci_slot_enumerate() and acpiphp_enumerate_slots(),

[RFC][PATCH 2/30] ACPI / hotplug / PCI: Consolidate acpiphp_enumerate_slots()

2013-07-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The acpiphp_enumerate_slots() function is now split into two parts, acpiphp_enumerate_slots() proper and init_bridge_misc() which is only called by the former. If these functions are combined, it is possible to make the code easier to follow and to clean up the error

[RFC][PATCH 20/30] ACPI / hotplug / PCI: Drop redundant checks from check_hotplug_bridge()

2013-07-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Two checks in check_hotplug_bridge() are redundant (they have been done by the caller already), so drop them. Signed-off-by: Rafael J. Wysocki --- drivers/pci/hotplug/acpiphp_glue.c |6 -- 1 file changed, 6 deletions(-) Index:

[RFC][PATCH 11/30] ACPI / hotplug / PCI: Register all devices under the given bridge

2013-07-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Rework register_slot() to create a struct acpiphp_func object for every function it is called for and to create acpiphp slots for all of them. Although acpiphp_register_hotplug_slot() is only called for the slots whose functions are identified as "ejectable", so that

[RFC][PATCH 0/30] ACPI / hotplug / PCI: Major rework + Thunderbolt workarounds

2013-07-11 Thread Rafael J. Wysocki
Hi, I've made some progress with my ACPIPHP rework since I posted the series last time and here goes an update. First off, the previous series was somewhat racy, which should be fixed now. Apart from this there's quite some new material on top of the patches I posted last time (or rather on top

[RFC][PATCH 21/30] ACPI / hotplug / PCI: Consolidate slot disabling and ejecting

2013-07-11 Thread Rafael J. Wysocki
From: Mika Westerberg Both acpiphp_disable_slot() and acpiphp_eject_slot() are always called together so instead of calling each separately we can consolidate them into one function acpiphp_disable_and_eject_slot() that does both (but it will return success on _EJ0 failures that were ignored in

Re: [PATCH V3 1/3] dts: change Marvell prefix to 'marvell'

2013-07-11 Thread Haojian Zhuang
On Thu, Jul 11, 2013 at 5:50 AM, Jason Cooper wrote: > On Wed, Jul 10, 2013 at 10:08:50PM +0800, Haojian Zhuang wrote: >> On Wed, Jul 10, 2013 at 8:24 PM, Jason Cooper wrote: >> > On Wed, Jul 10, 2013 at 04:19:46PM +0800, Haojian Zhuang wrote: >> >> On Tue, Jul 9, 2013 at 8:49 PM, Jason Cooper

[GIT PULL] please pull infiniband.git

2013-07-11 Thread Roland Dreier
Hi Linus, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband.git tags/rdma-for-linus Main (updated) batch of InfiniBand/RDMA changes for 3.11 merge window: - AF_IB (native IB addressing) for

Re: [PATCH] kernel: trace: remove __init from race_selftest_startup_function() and trace_selftest_startup_function_graph()

2013-07-11 Thread Chen Gang
On 07/12/2013 12:47 AM, Steven Rostedt wrote: > On Thu, 2013-07-11 at 08:31 +0800, Chen Gang wrote: >> Like other trace_selftest_startup_*, trace_selftest_startup_function() >> and trace_selftest_startup_function_graph() need in normal section, or >> may cause section mismatch. >> >> The related

Re: [PATCH V3 2/3] clocksource: mmp: support CLOCKSOURCE OF DECLARE

2013-07-11 Thread Haojian Zhuang
On Thu, Jul 11, 2013 at 7:23 PM, Neil Zhang wrote: > Haojian, > > >> -Original Message- >> From: Haojian Zhuang [mailto:haojian.zhu...@gmail.com] >> Sent: 2013年7月10日 13:59 >> To: Arnd Bergmann >> Cc: Thomas Petazzoni; Neil Zhang; Grant Likely; >> devicetree-disc...@lists.ozlabs.org;

Re: [PATCH] kernel/params.c: print failure information instead of 'KOBJ_ADD' to user space, when sysfs_create_file() fails.

2013-07-11 Thread Chen Gang
On 07/10/2013 11:01 AM, Chen Gang F T wrote: > >> > Hmm..., do we need call kobject_get() before kobject_put() in failure >> > processing block ? >> > > Oh, sorry for what I said for kobject_get/put() items above, it is > incorrect. > > What about the diff below for kobject_get() ? > >

[PATCH] pnp: convert pnp driver bus legacy pm_ops to dev_pm_ops

2013-07-11 Thread Shuah Khan
Convert drivers/pnp/driver.c bus legacy pm_ops to dev_pm_ops using existing suspend and resume routines. Added freeze interface to handle PM_EVENT_FREEZE correctly with dev_pm_ops. pm_op() looks for freeze interface when the event is PM_EVENT_FREEZE. Signed-off-by: Shuah Khan ---

Re: [PATCH V2] pci: exynos: split into two parts such as Synopsys part and Exynos part

2013-07-11 Thread Jingoo Han
On Friday, July 12, 2013 12:41 AM, Thierry Reding wrote: > On Thu, Jul 11, 2013 at 02:49:43PM +0900, Jingoo Han wrote: > [...] > > diff --git a/drivers/pci/host/Makefile b/drivers/pci/host/Makefile > [...] > > obj-$(CONFIG_PCI_MVEBU) += pci-mvebu.o > > obj-$(CONFIG_PCIE_DW) += pcie-designware.o

Re: Thermal: CPU Package temperature thermal

2013-07-11 Thread Srinivas Pandruvada
On 07/11/2013 04:08 PM, Dave Jones wrote: > +static int sys_get_curr_temp(struct thermal_zone_device *tzd, unsigned long *temp) > +static int sys_get_trip_temp(struct thermal_zone_device *tzd, > +int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, > +static int

Re: linux-next: rebase of the jdelvare-hwmon quilt series

2013-07-11 Thread Paul Gortmaker
On Thu, Jul 11, 2013 at 3:39 AM, Jean Delvare wrote: > On Thu, 11 Jul 2013 16:53:43 +1000, Stephen Rothwell wrote: >> On Thu, 11 Jul 2013 07:57:00 +0200 Jean Delvare wrote: >> > On Thu, 11 Jul 2013 10:27:24 +1000, Stephen Rothwell wrote: >> > > Why have you just rebased the jdelvare-hwmon series

Re: Thermal: CPU Package temperature thermal

2013-07-11 Thread Dave Jones
> +static int sys_get_curr_temp(struct thermal_zone_device *tzd, unsigned long > *temp) > +static int sys_get_trip_temp(struct thermal_zone_device *tzd, > +int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, > +static int sys_get_trip_type(struct thermal_zone_device *thermal,

Re: [PATCH 1/2 v3] x86: introduce int3-based instruction patching

2013-07-11 Thread Joe Perches
On Thu, 2013-07-11 at 22:26 +0200, Jiri Kosina wrote: > Introduce a method for run-time instrucntion patching on a live SMP kernel Some of the typos anyway. s/instrunction/instruction [] > v2 -> v3: > + fixed few typos (Joe Perches) [] > + /* we are not interested in non-int3 faults

21 stable powerpc patches showing up in 3.11-rc1?

2013-07-11 Thread Greg KH
Ben, Why do I have 21 patches from you marked for -stable trees in the 3.11-rc1 merge window, like the one quoted below? All of these look serious enough that they should have gone into the 3.10-rc releases, especially as the date of when they were submitted gave you plenty of time to get them

Re: [PATCH RESEND 0/1] AHCI: Optimize interrupt processing

2013-07-11 Thread Nicholas A. Bellinger
On Thu, 2013-07-11 at 12:26 +0200, Alexander Gordeev wrote: > On Wed, May 22, 2013 at 07:03:05PM +0200, Jens Axboe wrote: > > On Wed, May 22 2013, Alexander Gordeev wrote: > > > On Wed, May 22, 2013 at 08:50:03AM +0900, Tejun Heo wrote: > > > > Hmm. I'd normally apply this patch but block

Re: [PATCH] mm: mempolicy: turn vma_set_policy() into vma_dup_policy()

2013-07-11 Thread David Rientjes
On Thu, 11 Jul 2013, Andrew Morton wrote: > > PTR_ERR() may not imply IS_ERR(), > > Well why not. Are we saying that code can legitimately convert the > PTR_ERR() return value back into a pointer? If so that sounds nuts. > ERR_PTR() is just delivering a payload that can be interpreted by

Re: [PATCH 2/2] Bluetooth: hidp: remove wrong send_report at init

2013-07-11 Thread Jiri Kosina
On Thu, 11 Jul 2013, Benjamin Tissoires wrote: > The USB hid implementation does retrieve the reports during the start. > However, this implementation does not call the HID command GET_REPORT > (which would fetch the current status of each report), but use the > DATA command, which is an Output

Re: [PATCH 1/2] Bluetooth: hidp: implement hidinput_input_event callback

2013-07-11 Thread Jiri Kosina
On Thu, 11 Jul 2013, Benjamin Tissoires wrote: > We can re-enable hidinput_input_event to allow the leds of bluetooth > keyboards to be set. > Now the callbacks uses hid core to retrieve the right HID report to > send, so this version is safer. > > Signed-off-by: Benjamin Tissoires Acked-by:

[PATCH] ARM: kexec: validate CPU hotplug support

2013-07-11 Thread Stephen Warren
From: Stephen Warren Architectures should fully validate whether kexec is possible as part of machine_kexec_prepare(), so that user-space's kexec_load() operation can report any problems. Performing validation in machine_kexec() itself is too late, since it is not allowed to return. Prior to

Re: [ 00/19] 3.10.1-stable review

2013-07-11 Thread Greg Kroah-Hartman
On Thu, Jul 11, 2013 at 06:29:35PM -0400, Dave Jones wrote: > On Thu, Jul 11, 2013 at 03:01:17PM -0700, Greg Kroah-Hartman wrote: > > > > I'm sitting on top of over 170 more patches that have been marked for > > the stable releases right now that are not included in this set of > >

Re: [PATCH 9/9] clocksource: dw_apb_timer: special variant for rockchip rk3188 timers

2013-07-11 Thread Ulrich Prinz
Hey guys, according the dw_apb_timer I need your statement... Am 06.07.2013 23:00, schrieb Thomas Gleixner: > Ulrich, > > On Sat, 6 Jul 2013, Ulrich Prinz wrote: > >> I got the message. With modifying the existing driver to support more >> function pointers in its system struct and assigning

Re: WARNING: at drivers/iommu/dmar.c:484 warn_invalid_dmar with Intel Motherboard

2013-07-11 Thread Chris Wright
* Guenter Roeck (li...@roeck-us.net) wrote: > On Thu, Jul 11, 2013 at 12:00:54PM -0700, Chris Wright wrote: > > * Guenter Roeck (li...@roeck-us.net) wrote: > > > On Tue, Jul 09, 2013 at 04:22:52PM -0700, Chris Wright wrote: > > > > One thing I've seen is the BIOS zeroing the base register address

Re: [PATCH] mm: mempolicy: turn vma_set_policy() into vma_dup_policy()

2013-07-11 Thread Andrew Morton
On Thu, 11 Jul 2013 15:27:46 -0700 (PDT) David Rientjes wrote: > On Thu, 11 Jul 2013, Andrew Morton wrote: > > > On Thu, 11 Jul 2013 15:13:03 -0700 (PDT) David Rientjes > > wrote: > > > > > > +int vma_dup_policy(struct vm_area_struct *src, struct vm_area_struct > > > > *dst) > > > > +{ > >

[PATCH, RESEND] x86/tlb_info: detect more tlb configuration

2013-07-11 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Software Developer’s Manual covers two more TLB configurations: 63H Data TLB: 1 GByte pages, 4-way set associative, 4 entries 76H Instruction TLB: 2M/4M pages, fully associative, 8 entries Let's detect them as well. Signed-off-by: Kirill A. Shutemov Acked-by: Alex

Re: [PATCH 1/2 v3] x86: introduce int3-based instruction patching

2013-07-11 Thread Jiri Kosina
On Thu, 11 Jul 2013, H. Peter Anvin wrote: > > synchronization after replacing "all but first" instructions should not > > be necessary (on Intel hardware), as the syncing after the subsequent > > patching of the first byte provides enough safety. > > But there's not only Intel HW out there, and

[PATCH 3/8] cpufreq: Add helper to perform alloc/free of policy structure

2013-07-11 Thread Srivatsa S. Bhat
Separate out the allocation of the cpufreq policy structure (along with its error handling) to a helper function. This makes the code easier to read and also helps with some upcoming code reorganization. Signed-off-by: Srivatsa S. Bhat --- drivers/cpufreq/cpufreq.c | 50

[ 00/15] 3.9.10-stable review

2013-07-11 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.9.10 release. There are 15 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 Sat Jul 13 22:11:24 UTC 2013. Anything

Re: [ 00/19] 3.10.1-stable review

2013-07-11 Thread Dave Jones
On Thu, Jul 11, 2013 at 03:01:17PM -0700, Greg Kroah-Hartman wrote: > > I'm sitting on top of over 170 more patches that have been marked for > the stable releases right now that are not included in this set of > releases. The fact that there are this many patches for stable stuff >

[ 05/15] charger-manager: Ensure event is not used as format string

2013-07-11 Thread Greg Kroah-Hartman
3.9-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit 3594f4c0d7bc51e3a7e6d73c44e368ae079e42f3 upstream. The exposed interface for cm_notify_event() could result in the event msg string being parsed as a format string. Make sure

[ 07/15] block: do not pass disk names as format strings

2013-07-11 Thread Greg Kroah-Hartman
3.9-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit ffc8b30866879ed9ba62bd0a86fecdbd51cd3d19 upstream. Disk names may contain arbitrary strings, so they must not be interpreted as format strings. It seems that only md allows

Re: [PATCH] mm: mempolicy: turn vma_set_policy() into vma_dup_policy()

2013-07-11 Thread David Rientjes
On Thu, 11 Jul 2013, Andrew Morton wrote: > On Thu, 11 Jul 2013 15:13:03 -0700 (PDT) David Rientjes > wrote: > > > > +int vma_dup_policy(struct vm_area_struct *src, struct vm_area_struct > > > *dst) > > > +{ > > > + struct mempolicy *pol = mpol_dup(vma_policy(src)); > > > + > > > + if

[ 08/15] crypto: sanitize argument for format string

2013-07-11 Thread Greg Kroah-Hartman
3.9-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit 1c8fca1d92e14859159a82b8a380d220139b7344 upstream. The template lookup interface does not provide a way to use format strings, so make sure that the interface cannot be abused

Re: [PATCH 0/8] Cpufreq, cpu hotplug, suspend/resume related fixes

2013-07-11 Thread Srivatsa S. Bhat
On 07/12/2013 04:03 AM, Rafael J. Wysocki wrote: > On Friday, July 12, 2013 03:45:17 AM Srivatsa S. Bhat wrote: >> >> Hi, > > Hi, > >> Commit a66b2e (cpufreq: Preserve sysfs files across suspend/resume) caused >> some subtle regressions in the cpufreq subsystem during suspend/resume. >> This

[ 09/15] MAINTAINERS: add stable_kernel_rules.txt to stable maintainer information

2013-07-11 Thread Greg Kroah-Hartman
3.9-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman commit 7b175c46720f8e6b92801bb634c93d1016f80c62 upstream. This hopefully will help point developers to the proper way that patches should be submitted for inclusion in the

[ 03/15] drivers/cdrom/cdrom.c: use kzalloc() for failing hardware

2013-07-11 Thread Greg Kroah-Hartman
3.9-stable review patch. If anyone has any objections, please let me know. -- From: Jonathan Salwan commit 542db01579fbb7ea7d1f7bb9ddcef1559df660b2 upstream. In drivers/cdrom/cdrom.c mmc_ioctl_cdrom_read_data() allocates a memory area with kmalloc in line 2885. 2885

[ 02/15] ceph: fix sleeping function called from invalid context.

2013-07-11 Thread Greg Kroah-Hartman
3.9-stable review patch. If anyone has any objections, please let me know. -- From: majianpeng commit a1dc1937337a93e699eaa56968b7de6e1a9e77cf upstream. [ 1121.231883] BUG: sleeping function called from invalid context at kernel/rwsem.c:20 [ 1121.231935] in_atomic(): 1,

RE: [PATCH 0/8] Cpufreq, cpu hotplug, suspend/resume related fixes

2013-07-11 Thread Jarzmik, Robert
-Original Message- From: Srivatsa S. Bhat [mailto:srivatsa.b...@linux.vnet.ibm.com] Sent: Friday, July 12, 2013 00:15 > Robert, Durgadoss, it would be great if you could try it out and > see if it works well for your usecase. I tested it locally and > cpufreq related files did retain

[ 11/15] Revert "serial: 8250_pci: add support for another kind of NetMos Technology PCI 9835 Multi-I/O Controller"

2013-07-11 Thread Greg Kroah-Hartman
3.9-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman commit 828c6a102b1f2b8583fadc0e779c46b31d448f0b upstream. This reverts commit 8d2f8cd424ca0b99001f3ff4f5db87c4e525f366. As reported by Stefan, this device already works

[ 10/15] futex: Take hugepages into account when generating futex_key

2013-07-11 Thread Greg Kroah-Hartman
3.9-stable review patch. If anyone has any objections, please let me know. -- From: Zhang Yi commit 13d60f4b6ab5b702dc8d2ee20999f98a93728aec upstream. The futex_keys of process shared futexes are generated from the page offset, the mapping host and the mapping index of the

[PATCH 4/8] cpufreq: Extract non-interface related stuff from cpufreq_add_dev_interface

2013-07-11 Thread Srivatsa S. Bhat
cpufreq_add_dev_interface() includes the work of exposing the interface to the device, as well as a lot of unrelated stuff. Move the latter to cpufreq_add_dev(), where it is more appropriate. Signed-off-by: Srivatsa S. Bhat --- drivers/cpufreq/cpufreq.c | 43

[ 12/15] nfsd4: fix decoding of compounds across page boundaries

2013-07-11 Thread Greg Kroah-Hartman
3.9-stable review patch. If anyone has any objections, please let me know. -- From: "J. Bruce Fields" commit 247500820ebd02ad87525db5d9b199e5b66f6636 upstream. A freebsd NFSv4.0 client was getting rare IO errors expanding a tarball. A network trace showed the server returning

[ 14/15] SCSI: sd: Fix parsing of temporary cache mode prefix

2013-07-11 Thread Greg Kroah-Hartman
3.9-stable review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings commit 2ee3e26c673e75c05ef8b914f54fadee3d7b9c88 upstream. Commit 39c60a0948cc '[SCSI] sd: fix array cache flushing bug causing performance problems' added temp as a pointer to

Re: [PATCH 0/8] Cpufreq, cpu hotplug, suspend/resume related fixes

2013-07-11 Thread Rafael J. Wysocki
On Friday, July 12, 2013 03:45:17 AM Srivatsa S. Bhat wrote: > > Hi, Hi, > Commit a66b2e (cpufreq: Preserve sysfs files across suspend/resume) caused > some subtle regressions in the cpufreq subsystem during suspend/resume. > This patchset is aimed at rectifying those problems, by fixing the

[ 13/15] KVM: VMX: mark unusable segment as nonpresent

2013-07-11 Thread Greg Kroah-Hartman
3.9-stable review patch. If anyone has any objections, please let me know. -- From: Gleb Natapov commit 03617c188f41eeeb4223c919ee7e66e5a114f2c6 upstream. Some userspaces do not preserve unusable property. Since usable segment has to be present according to VMX spec we can

Re: [PATCH] mm: mempolicy: turn vma_set_policy() into vma_dup_policy()

2013-07-11 Thread Andrew Morton
On Thu, 11 Jul 2013 15:13:03 -0700 (PDT) David Rientjes wrote: > > +int vma_dup_policy(struct vm_area_struct *src, struct vm_area_struct *dst) > > +{ > > + struct mempolicy *pol = mpol_dup(vma_policy(src)); > > + > > + if (IS_ERR(pol)) > > + return PTR_ERR(pol); > > PTR_ERR()

[ 5/8] crypto: sanitize argument for format string

2013-07-11 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit 1c8fca1d92e14859159a82b8a380d220139b7344 upstream. The template lookup interface does not provide a way to use format strings, so make sure that the interface cannot be abused

[ 06/15] hpfs: better test for errors

2013-07-11 Thread Greg Kroah-Hartman
3.9-stable review patch. If anyone has any objections, please let me know. -- From: Mikulas Patocka commit 3ebacb05044f82c5f0bb456a894eb9dc57d0ed90 upstream. The test if bitmap access is out of bound could errorneously pass if the device size is divisible by 16384 sectors and

[ 3/8] hpfs: better test for errors

2013-07-11 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Mikulas Patocka commit 3ebacb05044f82c5f0bb456a894eb9dc57d0ed90 upstream. The test if bitmap access is out of bound could errorneously pass if the device size is divisible by 16384 sectors and

[ 6/8] MAINTAINERS: add stable_kernel_rules.txt to stable maintainer information

2013-07-11 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman commit 7b175c46720f8e6b92801bb634c93d1016f80c62 upstream. This hopefully will help point developers to the proper way that patches should be submitted for inclusion in the

[ 7/8] nfsd4: fix decoding of compounds across page boundaries

2013-07-11 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: "J. Bruce Fields" commit 247500820ebd02ad87525db5d9b199e5b66f6636 upstream. A freebsd NFSv4.0 client was getting rare IO errors expanding a tarball. A network trace showed the server returning

[PATCH 8/8] cpufreq: Perform light-weight init/teardown during suspend/resume

2013-07-11 Thread Srivatsa S. Bhat
Now that we have the infrastructure to perform a light-weight init/tear-down, use that in the cpufreq CPU hotplug notifier when invoked from the suspend/resume path. This also ensures that the file permissions of the cpufreq sysfs files are preserved across suspend/resume, something which commit

[ 1/8] libceph: Fix NULL pointer dereference in auth client code

2013-07-11 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Tyler Hicks commit 2cb33cac622afde897aa02d3dcd9fbba8bae839e upstream. A malicious monitor can craft an auth reply message that could cause a NULL function pointer dereference in the client's

[ 8/8] SCSI: sd: Fix parsing of temporary cache mode prefix

2013-07-11 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings commit 2ee3e26c673e75c05ef8b914f54fadee3d7b9c88 upstream. Commit 39c60a0948cc '[SCSI] sd: fix array cache flushing bug causing performance problems' added temp as a pointer to

[ 2/8] drivers/cdrom/cdrom.c: use kzalloc() for failing hardware

2013-07-11 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Jonathan Salwan commit 542db01579fbb7ea7d1f7bb9ddcef1559df660b2 upstream. In drivers/cdrom/cdrom.c mmc_ioctl_cdrom_read_data() allocates a memory area with kmalloc in line 2885. 2885

[PATCH 6/8] cpufreq: Introduce a flag ('frozen') to separate full vs temporary init/teardown

2013-07-11 Thread Srivatsa S. Bhat
During suspend/resume we would like to do a light-weight init/teardown of CPUs in the cpufreq subsystem and preserve certain things such as sysfs files etc across suspend/resume transitions. Add a flag called 'frozen' to help distinguish the full init/teardown sequence from the light-weight one.

[ 4/8] block: do not pass disk names as format strings

2013-07-11 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit ffc8b30866879ed9ba62bd0a86fecdbd51cd3d19 upstream. Disk names may contain arbitrary strings, so they must not be interpreted as format strings. It seems that only md allows

[PATCH 5/8] cpufreq: Extract the handover of policy cpu to a helper function

2013-07-11 Thread Srivatsa S. Bhat
During cpu offline, when the policy->cpu is going down, some other CPU present in the policy->cpus mask is nominated as the new policy->cpu. Extract this functionality from __cpufreq_remove_dev() and implement it in a helper function. This helps in upcoming code reorganization. Signed-off-by:

[PATCH 7/8] cpufreq: Preserve policy structure across suspend/resume

2013-07-11 Thread Srivatsa S. Bhat
To perform light-weight cpu-init and teardown in the cpufreq subsystem during suspend/resume, we need to separate out the 2 main functionalities of the cpufreq CPU hotplug callbacks, as outlined below: 1. Init/tear-down of core cpufreq and CPU-specific components, which are critical to the

[ 0/8] 3.0.86-stable review

2013-07-11 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.0.86 release. There are 8 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 Sat Jul 13 22:18:05 UTC 2013. Anything

[ 04/15] module: do percpu allocation after uniqueness check. No, really!

2013-07-11 Thread Greg Kroah-Hartman
3.9-stable review patch. If anyone has any objections, please let me know. -- From: Rusty Russell commit 8d8022e8aba85192e937f1f0f7450e256d66ae5c upstream. v3.8-rc1-5-g1fb9341 was supposed to stop parallel kvm loads exhausting percpu memory on large machines: Now we have

[ 01/15] libceph: Fix NULL pointer dereference in auth client code

2013-07-11 Thread Greg Kroah-Hartman
3.9-stable review patch. If anyone has any objections, please let me know. -- From: Tyler Hicks commit 2cb33cac622afde897aa02d3dcd9fbba8bae839e upstream. A malicious monitor can craft an auth reply message that could cause a NULL function pointer dereference in the client's

[ 15/15] Revert "memcg: avoid dangling reference count in creation failure"

2013-07-11 Thread Greg Kroah-Hartman
3.9-stable review patch. If anyone has any objections, please let me know. -- From: Michal Hocko commit fa460c2d37870e0a6f94c70e8b76d05ca11b6db0 upstream. This reverts commit e4715f01be697a. mem_cgroup_put is hierarchy aware so mem_cgroup_put(memcg) already drops an

[PATCH 2/8] cpufreq: Fix misplaced call to cpufreq_update_policy()

2013-07-11 Thread Srivatsa S. Bhat
The call to cpufreq_update_policy() is placed in the CPU hotplug callback of cpufreq_stats, which has a higher priority than the CPU hotplug callback of cpufreq-core. As a result, during CPU_ONLINE/CPU_ONLINE_FROZEN, we end up calling cpufreq_update_policy() *before* calling cpufreq_add_dev() !

[PATCH 1/8] cpufreq: Revert commit a66b2e to fix cpufreq regression during suspend/resume

2013-07-11 Thread Srivatsa S. Bhat
commit a66b2e (cpufreq: Preserve sysfs files across suspend/resume) has unfortunately caused several things in the cpufreq subsystem to break subtly after a suspend/resume cycle. The intention of that patch was to retain the file permissions of the cpufreq related sysfs files across

[PATCH 0/8] Cpufreq, cpu hotplug, suspend/resume related fixes

2013-07-11 Thread Srivatsa S. Bhat
Hi, Commit a66b2e (cpufreq: Preserve sysfs files across suspend/resume) caused some subtle regressions in the cpufreq subsystem during suspend/resume. This patchset is aimed at rectifying those problems, by fixing the regression as well as achieving the original goal of that commit in a proper

Re: [PATCH -v2 1/3] PCI: introduce PCIe Device Serial Number Capability support

2013-07-11 Thread Don Dutile
On 07/11/2013 04:09 PM, Bjorn Helgaas wrote: On Thu, Jul 11, 2013 at 3:51 AM, Don Dutile wrote: On 07/11/2013 05:43 AM, Yijing Wang wrote: Introduce PCIe Ext Capability Device Serial Number support, so we can use the unique device serial number to identify the physical device. During system

Re: [PATCH] madvise: fix checkpatch errors

2013-07-11 Thread David Rientjes
On Thu, 11 Jul 2013, Vladimir Cernov wrote: > This fixes following errors: > - ERROR: "(foo*)" should be "(foo *)" > - ERROR: "foo ** bar" should be "foo **bar" > > Signed-off-by: Vladimir Cernov Acked-by: David Rientjes -- To unsubscribe from this list: send the line "unsubscribe

Re: [ 00/19] 3.10.1-stable review

2013-07-11 Thread Josh Boyer
On Thu, Jul 11, 2013 at 6:01 PM, Greg Kroah-Hartman wrote: > > I'm sitting on top of over 170 more patches that have been marked for > the stable releases right now that are not included in this set of > releases. The fact that there are this many patches for stable stuff > that are

[ 00/11] 3.4.53-stable review

2013-07-11 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.4.53 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 Sat Jul 13 22:04:03 UTC 2013. Anything

[ 04/11] hpfs: better test for errors

2013-07-11 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Mikulas Patocka commit 3ebacb05044f82c5f0bb456a894eb9dc57d0ed90 upstream. The test if bitmap access is out of bound could errorneously pass if the device size is divisible by 16384 sectors and

[ 06/11] crypto: sanitize argument for format string

2013-07-11 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit 1c8fca1d92e14859159a82b8a380d220139b7344 upstream. The template lookup interface does not provide a way to use format strings, so make sure that the interface cannot be abused

Re: [PATCH] mm: mempolicy: turn vma_set_policy() into vma_dup_policy()

2013-07-11 Thread David Rientjes
On Wed, 10 Jul 2013, Oleg Nesterov wrote: > Simple cleanup. Every user of vma_set_policy() does the same work, > this looks a bit annoying imho. And the new trivial helper which > does mpol_dup() + vma_set_policy() to simplify the callers. > Good idea, just a few simple issues to fix. > diff

[ 07/11] MAINTAINERS: add stable_kernel_rules.txt to stable maintainer information

2013-07-11 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman commit 7b175c46720f8e6b92801bb634c93d1016f80c62 upstream. This hopefully will help point developers to the proper way that patches should be submitted for inclusion in the

[ 08/11] Revert "serial: 8250_pci: add support for another kind of NetMos Technology PCI 9835 Multi-I/O Controller"

2013-07-11 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman commit 828c6a102b1f2b8583fadc0e779c46b31d448f0b upstream. This reverts commit 8d2f8cd424ca0b99001f3ff4f5db87c4e525f366. As reported by Stefan, this device already works

[ 03/11] charger-manager: Ensure event is not used as format string

2013-07-11 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit 3594f4c0d7bc51e3a7e6d73c44e368ae079e42f3 upstream. The exposed interface for cm_notify_event() could result in the event msg string being parsed as a format string. Make sure

[ 02/11] drivers/cdrom/cdrom.c: use kzalloc() for failing hardware

2013-07-11 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Jonathan Salwan commit 542db01579fbb7ea7d1f7bb9ddcef1559df660b2 upstream. In drivers/cdrom/cdrom.c mmc_ioctl_cdrom_read_data() allocates a memory area with kmalloc in line 2885. 2885

[ 11/11] Revert "sched: Add missing call to calc_load_exit_idle()"

2013-07-11 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman This reverts commit 48f0f14ffb6ff4852922994d11fbda418d40100e which was commit 749c8814f08f12baa4a9c2812a7c6ede7d69507d upstream. It seems to be misapplied, and not needed

[ 10/11] SCSI: sd: Fix parsing of temporary cache mode prefix

2013-07-11 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings commit 2ee3e26c673e75c05ef8b914f54fadee3d7b9c88 upstream. Commit 39c60a0948cc '[SCSI] sd: fix array cache flushing bug causing performance problems' added temp as a pointer to

[ 09/11] nfsd4: fix decoding of compounds across page boundaries

2013-07-11 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: "J. Bruce Fields" commit 247500820ebd02ad87525db5d9b199e5b66f6636 upstream. A freebsd NFSv4.0 client was getting rare IO errors expanding a tarball. A network trace showed the server returning

[ 01/11] libceph: Fix NULL pointer dereference in auth client code

2013-07-11 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Tyler Hicks commit 2cb33cac622afde897aa02d3dcd9fbba8bae839e upstream. A malicious monitor can craft an auth reply message that could cause a NULL function pointer dereference in the client's

[ 05/11] block: do not pass disk names as format strings

2013-07-11 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit ffc8b30866879ed9ba62bd0a86fecdbd51cd3d19 upstream. Disk names may contain arbitrary strings, so they must not be interpreted as format strings. It seems that only md allows

Re: fanotify: fix support of large files

2013-07-11 Thread Justin Maggard
On Mon, Apr 22, 2013 at 11:49 AM, Heinrich Schuchardt wrote: > > Hello Justin, > > I downloaded the example, > http://www.lanedo.com/~aleksander/fanotify/fanotify-example.c > compiled it without modification > $ gcc fanotify-example.c -o fanotify-example > and started the executable. In a

[ 00/19] 3.10.1-stable review

2013-07-11 Thread Greg Kroah-Hartman
I'm sitting on top of over 170 more patches that have been marked for the stable releases right now that are not included in this set of releases. The fact that there are this many patches for stable stuff that are waiting to be merged through the main -rc1 merge window cycle is

[ 02/19] ceph: fix sleeping function called from invalid context.

2013-07-11 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: majianpeng commit a1dc1937337a93e699eaa56968b7de6e1a9e77cf upstream. [ 1121.231883] BUG: sleeping function called from invalid context at kernel/rwsem.c:20 [ 1121.231935] in_atomic(): 1,

[ 06/19] charger-manager: Ensure event is not used as format string

2013-07-11 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit 3594f4c0d7bc51e3a7e6d73c44e368ae079e42f3 upstream. The exposed interface for cm_notify_event() could result in the event msg string being parsed as a format string. Make sure

[ 01/19] libceph: Fix NULL pointer dereference in auth client code

2013-07-11 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Tyler Hicks commit 2cb33cac622afde897aa02d3dcd9fbba8bae839e upstream. A malicious monitor can craft an auth reply message that could cause a NULL function pointer dereference in the client's

[ 07/19] hpfs: better test for errors

2013-07-11 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Mikulas Patocka commit 3ebacb05044f82c5f0bb456a894eb9dc57d0ed90 upstream. The test if bitmap access is out of bound could errorneously pass if the device size is divisible by 16384 sectors

<    1   2   3   4   5   6   7   8   9   10   >