flushing uninitialized work item in radeon init failure path

2013-04-04 Thread Tejun Heo
Hello, The following happens on my test machine which has an on-board VGA which is not connected. The failure is expected but, in the failure path, it calls radeon_irq_kms_fini() which flushes @rdev-*_work when @rdev seemingly hasn't gone through radeon_irq_kms_init(), ending up trying to flush

Re: next-20130325 - INFO: trying to register non-static key.

2013-04-04 Thread Tejun Heo
Hello, Valdis. On Tue, Mar 26, 2013 at 02:06:03PM -0400, Valdis Kletnieks wrote: Seen in the dmesg for next-20130325, but looks like it's been doing it since at least next-20130218. [ 50.162584] dell_wmi: Received unknown WMI event (0x11) [ 51.167629] INFO: trying to register non-static

Re: [PATCH v2 2/3] mutex: add support for reservation style locks, v2

2013-04-04 Thread Peter Zijlstra
On Thu, 2013-04-04 at 15:31 +0200, Daniel Vetter wrote: Well, it was a good read and I'm rather happy that we agree on the ww_ctx thing (whatever it's called in the end), even though we have slightly different reasons for it. Yeah, I tried various weirdness to get out from under it, but the

Re: [PATCH v2 2/4] x86, kdump: Retore crashkernel= to allocate low

2013-04-04 Thread Yinghai Lu
On Thu, Apr 4, 2013 at 7:16 AM, Vivek Goyal vgo...@redhat.com wrote: + crashkernel_high=size[KMG] + [KNL, x86_64] range could be above 4G. Allow kernel + to allocate physical memory region from top, so could + be above 4G if

Re: [PATCH v2 2/3] mutex: add support for reservation style locks, v2

2013-04-04 Thread Daniel Vetter
On Thu, Apr 4, 2013 at 3:31 PM, Daniel Vetter dan...@ffwll.ch wrote: In this case when O blocks Y isn't actually blocked, so our TASK_DEADLOCK wakeup doesn't actually achieve anything. This means we also have to track (task) state so that once Y tries to acquire A (creating the actual

Re: [PATCH v2 2/3] mutex: add support for reservation style locks, v2

2013-04-04 Thread Daniel Vetter
On Thu, Apr 4, 2013 at 6:38 PM, Peter Zijlstra pet...@infradead.org wrote: On Thu, 2013-04-04 at 15:31 +0200, Daniel Vetter wrote: Hm, I guess your aim with the TASK_DEADLOCK wakeup is to bound the wait times of older task. No, imagine the following: struct ww_mutex A, B; struct mutex C;

Re: [PATCH 4/6] Hexagon: check to if we will overflow the signal stack

2013-04-04 Thread Richard Kuo
On 04/04/2013 11:25 AM, Linas Vepstas wrote: On 3 April 2013 19:02, Richard Kuo r...@codeaurora.org wrote: + /* check if we would overflow the alt stack */ + if (on_sig_stack(sp) !likely(on_sig_stack(sp - frame_size))) + return (void __user __force *)-1UL; I found

[GIT PULL] at91: DT changes for 3.10 #3

2013-04-04 Thread Nicolas Ferre
Arnd, Olof, Here is the refreshed pull-request for AT91 that is dedicated to Device Tree modifications. It is stacked on the material that you already have for 3.10 in your arm-soc/at91/dt branch. Following our discussion with Arnd, I added the non-urgent patches that I already proposed too late

Re: [PATCH 0/5 v3] USB: Kconfig cleanups

2013-04-04 Thread Alan Stern
On Thu, 4 Apr 2013, Florian Fainelli wrote: These 5 patches contain my Kconfig cleanup on which I based the removal of the USB_ARCH_HAS_* patches. They have been suggested by Alan Stern as part of an earlier conversations. Let me know what you think about it so I can post subsequent work

Re: [PATCH v3] ARM: at91: add Acme Systems Aria G25 board

2013-04-04 Thread Douglas Gilbert
On 13-04-04 11:42 AM, Nicolas Ferre wrote: From: Douglas Gilbert dgilb...@interlog.com Signed-off-by: Douglas Gilbert dgilb...@interlog.com Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com --- Hi all, Here is the third revision of this patch. I plan to include it in a pull-request

user mode linux: trinity syscall madvise triggers quickly BUG: Bad page map

2013-04-04 Thread Toralf Förster
if SLUB is used (SLAB works fine till now with this syscall). What I get with the this trinity command line $ trinity --children 2 -c madvise for a 32 bit Gentoo Linux (both as host and as guest) and host kernel 3.8.5 and guest kernel 3.9-rc5 is the following : 2013-04-04T19:00:29.220+02:00

Re: [PATCH Resend v5] sched: fix init NOHZ_IDLE flag

2013-04-04 Thread Frederic Weisbecker
2013/4/3 Vincent Guittot vincent.guit...@linaro.org: On my smp platform which is made of 5 cores in 2 clusters, I have the nr_busy_cpu field of sched_group_power struct that is not null when the platform is fully idle. The root cause is: During the boot sequence, some CPUs reach the idle loop

Re: [PATCH resend] fs/proc: Move kfree outside pde_unload_lock

2013-04-04 Thread Nathan Zimmer
On 04/04/2013 11:11 AM, Al Viro wrote: On Thu, Apr 04, 2013 at 10:53:39AM -0500, Nathan Zimmer wrote: This moves a kfree outside a spinlock to help scaling on larger (512 core) systems. This should be some relief until we can move the section to use the rcu. Umm... That'll get wrecked as

RE: [PATCHv2 1/3] thermal: introduce thermal_zone_get_zone_by_name helper function

2013-04-04 Thread R, Durgadoss
-Original Message- From: Eduardo Valentin [mailto:eduardo.valen...@ti.com] Sent: Thursday, April 04, 2013 3:43 AM To: Zhang, Rui Cc: linux...@vger.kernel.org; linux-kernel@vger.kernel.org; R, Durgadoss; Eduardo Valentin Subject: [PATCHv2 1/3] thermal: introduce

RE: [PATCHv2 2/3] thermal: expose thermal_zone_get_temp API

2013-04-04 Thread R, Durgadoss
-Original Message- From: linux-pm-ow...@vger.kernel.org [mailto:linux-pm- ow...@vger.kernel.org] On Behalf Of Eduardo Valentin Sent: Thursday, April 04, 2013 3:43 AM To: Zhang, Rui Cc: linux...@vger.kernel.org; linux-kernel@vger.kernel.org; R, Durgadoss; Eduardo Valentin Subject:

RE: scanning for LUNs

2013-04-04 Thread KY Srinivasan
-Original Message- From: James Bottomley [mailto:jbottom...@parallels.com] Sent: Thursday, April 04, 2013 11:15 AM To: KY Srinivasan Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; oher...@suse.com; h...@infradead.org; linux-

Re: [PATCH v2] irq: add quirk for broken interrupt remapping on 55XX chipsets

2013-04-04 Thread Bjorn Helgaas
On Thu, Apr 4, 2013 at 9:39 AM, Neil Horman nhor...@tuxdriver.com wrote: On Thu, Apr 04, 2013 at 08:57:06AM -0600, Bjorn Helgaas wrote: On Thu, Apr 4, 2013 at 8:50 AM, Neil Horman nhor...@tuxdriver.com wrote: On Thu, Apr 04, 2013 at 03:27:29PM +0100, David Woodhouse wrote: On Wed, 2013-04-03

Re: [PATCH 1/5 v3] USB: regroup all depends on USB within an if USB block

2013-04-04 Thread Felipe Balbi
Hi, On Thu, Apr 04, 2013 at 05:57:24PM +0200, Florian Fainelli wrote: diff --git a/drivers/usb/misc/sisusbvga/Kconfig b/drivers/usb/misc/sisusbvga/Kconfig index 30ea7ca..0d03a52 100644 --- a/drivers/usb/misc/sisusbvga/Kconfig +++ b/drivers/usb/misc/sisusbvga/Kconfig @@ -1,7 +1,7 @@

Re: [PATCH V4 1/2] cpufreq: ondemand: allow custom powersave_bias_target handler to be registered

2013-04-04 Thread Jacob Shin
On Thu, Apr 04, 2013 at 10:06:35PM +0530, Viresh Kumar wrote: On 4 April 2013 21:49, Jacob Shin jacob.s...@amd.com wrote: diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c +static void od_set_powersave_bias(unsigned int powersave_bias) +{ +

Re: [GIT PULL] at91: DT changes for 3.10 #2

2013-04-04 Thread Olof Johansson
On Thu, Apr 4, 2013 at 2:37 AM, Nicolas Ferre nicolas.fe...@atmel.com wrote: On 04/03/2013 09:45 AM, Nicolas Ferre : On 04/02/2013 08:49 PM, Olof Johansson : On Fri, Mar 29, 2013 at 03:59:39PM +0100, Nicolas Ferre wrote: Arnd, Olof, Here is a pull-request for AT91 that is dedicated to Device

Re: [PATCH v4] irq: add quirk for broken interrupt remapping on 55XX chipsets

2013-04-04 Thread Don Dutile
On 04/04/2013 12:16 PM, Yinghai Lu wrote: On Thu, Apr 4, 2013 at 8:08 AM, Neil Hormannhor...@tuxdriver.com wrote: A few years back intel published a spec update: http://www.intel.com/content/dam/doc/specification-update/5520-and-5500-chipset-ioh-specification-update.pdf For the 5520 and 5500

Re: [PATCH Resend v5] sched: fix init NOHZ_IDLE flag

2013-04-04 Thread Vincent Guittot
On 4 April 2013 19:07, Frederic Weisbecker fweis...@gmail.com wrote: 2013/4/3 Vincent Guittot vincent.guit...@linaro.org: On my smp platform which is made of 5 cores in 2 clusters, I have the nr_busy_cpu field of sched_group_power struct that is not null when the platform is fully idle. The

Re: [PATCH v2 4/4] x86, kdump: Change crashkernel_high/low= to crashkernel=;high/low

2013-04-04 Thread Yinghai Lu
On Wed, Apr 3, 2013 at 11:55 PM, HATAYAMA Daisuke d.hatay...@jp.fujitsu.com wrote: (2013/04/04 9:38), Yinghai Lu wrote: Index: linux-2.6/kernel/kexec.c === --- linux-2.6.orig/kernel/kexec.c +++ linux-2.6/kernel/kexec.c @@

[PATCH] cpufreq/intel_pstate: Set timer timeout correctly

2013-04-04 Thread dirk . brandewie
From: Dirk Brandewie dirk.brande...@gmail.com The current calculation of the delay time is wrong and a cut and paste error from a previous experimental driver. This can result in the timeout being set to jiffies + 1 which setup the driver to race with it's self if the apic timer interrupt happen

Re: [PATCH] Kbuild: Avoid DTB rebuilds if source files are untouched

2013-04-04 Thread Stephen Warren
On 04/03/2013 11:30 PM, Vineet Gupta wrote: On 04/03/2013 09:48 PM, Stephen Warren wrote: On 04/03/2013 01:14 AM, Vineet Gupta wrote: forgot to CC linux-arch On 04/03/2013 12:42 PM, Vineet Gupta wrote: Currently, for every ARC kernel build I see the following:

Re: [PATCH v2 03/20] x86, ACPI, mm: Kill max_low_pfn_mapped

2013-04-04 Thread Tejun Heo
Hello, On Sat, Mar 09, 2013 at 10:44:30PM -0800, Yinghai Lu wrote: Now we have arch_pfn_mapped array, and max_low_pfn_mapped should not be used anymore. User should use arch_pfn_mapped or just 1UL(32-PAGE_SHIFT) instead. Only user is ACPI_INITRD_TABLE_OVERRIDE, and it should not use that,

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-04 Thread John Stultz
On 04/03/2013 11:55 PM, Minchan Kim wrote: On Wed, Apr 03, 2013 at 04:52:19PM -0700, John Stultz wrote: Next we introduce a parallel fvrange() syscall for creating volatile ranges directly against files. Okay. It seems you want to replace ashmem interface with fvrange. I dobut we have to eat a

sched/cputime: sig-prev_stime underflow

2013-04-04 Thread Dave Hansen
With the 3.9-rcs (and probably much earlier) I'm seeing some weird top output where the cpu time spent is millions of hours: 445 root 20 0 000 S0 0.0 5124095h kworker/45:1 404 root 20 0 000 S0 0.0 5124095h kworker/4:1 I see it mostly with kernel

Re: [PATCH v4] irq: add quirk for broken interrupt remapping on 55XX chipsets

2013-04-04 Thread Yinghai Lu
On Thu, Apr 4, 2013 at 10:27 AM, Don Dutile ddut...@redhat.com wrote: You need to move the quirk to early_quirk to append nointremap to avoid extra rebooting. The pci-dev's of all the (minimally, root, 5500-chipset) pci-dev's are known/scanned/created by that time? in

Re: [PATCH 1/5 v3] USB: regroup all depends on USB within an if USB block

2013-04-04 Thread Alan Stern
On Thu, 4 Apr 2013, Felipe Balbi wrote: Hi, On Thu, Apr 04, 2013 at 05:57:24PM +0200, Florian Fainelli wrote: diff --git a/drivers/usb/misc/sisusbvga/Kconfig b/drivers/usb/misc/sisusbvga/Kconfig index 30ea7ca..0d03a52 100644 --- a/drivers/usb/misc/sisusbvga/Kconfig +++

RE: [PATCH] mei: Fix typo in drivers/misc/mei

2013-04-04 Thread Winkler, Tomas
Subject: [PATCH] mei: Fix typo in drivers/misc/mei Correct spelling typos in comments Signed-off-by: Masanari Iida standby2...@gmail.com Ack --- drivers/misc/mei/amthif.c| 6 +++--- drivers/misc/mei/client.c| 24 drivers/misc/mei/hbm.c | 9

Re: [PATCH v3 6/7] NFSv4: Add O_DENY* open flags support

2013-04-04 Thread Pavel Shilovsky
2013/4/4 Jeff Layton jlay...@redhat.com: I'd probably still stick with a FS_* flag for this... That sort of mechanism would work (for now) but sounds like the sort of subtle behavior that's difficult for filesystem authors to get right. It would also be subject to subtle breakage later.

Re: [PATCH v2 02/20] x86, microcode: Use common get_ramdisk_image()

2013-04-04 Thread Tejun Heo
On Sat, Mar 09, 2013 at 10:44:29PM -0800, Yinghai Lu wrote: Use common get_ramdisk_image() to get ramdisk start phys address. We need this to get correct ramdisk adress for 64bit bzImage that initrd can be loaded above 4G by kexec-tools. Is this a bug fix? Can it actually happen?

[PATCH v9b 10/14] ARM: tegra: Define Tegra114 CAR binding

2013-04-04 Thread Peter De Schrijver
The device tree binding models Tegra114 CAR (Clock And Reset) as a single monolithic clock provider. -- Mike, This is a small binding doc update only. Hence I didn't make an entire new patch series, but just an updated version of this patch. Please apply this instead of '[PATCH v9 10/14] ARM:

Re: [PATCH v2 04/20] x86, ACPI: Increase override tables number limit

2013-04-04 Thread Tejun Heo
On Sat, Mar 09, 2013 at 10:44:31PM -0800, Yinghai Lu wrote: Current acpi tables in initrd is limited to 10, that is too small. 64 should be good enough as we have 35 sigs and could have several SSDT. Two problems in current code prevent us from increasing limit: 1. that cpio file info array

Re: [PATCH v2] irq: add quirk for broken interrupt remapping on 55XX chipsets

2013-04-04 Thread Neil Horman
On Thu, Apr 04, 2013 at 11:14:30AM -0600, Bjorn Helgaas wrote: On Thu, Apr 4, 2013 at 9:39 AM, Neil Horman nhor...@tuxdriver.com wrote: On Thu, Apr 04, 2013 at 08:57:06AM -0600, Bjorn Helgaas wrote: On Thu, Apr 4, 2013 at 8:50 AM, Neil Horman nhor...@tuxdriver.com wrote: On Thu, Apr 04,

Re: [PATCH v7 00/12] Tegra114 clockframework

2013-04-04 Thread Peter De Schrijver
Hi Mike, Quoting Stephen Warren (2013-02-19 10:39:35) On 02/15/2013 05:36 AM, Peter De Schrijver wrote: This is the seventh version of the Tegra114 clockframework. It is based on the for-next branch of git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra.git and

Re: [PATCH v9b 10/14] ARM: tegra: Define Tegra114 CAR binding

2013-04-04 Thread Stephen Warren
On 04/04/2013 11:48 AM, Peter De Schrijver wrote: The device tree binding models Tegra114 CAR (Clock And Reset) as a single monolithic clock provider. -- Mike, This is a small binding doc update only. Hence I didn't make an entire new patch series, but just an updated version of this

Re: [PATCH v2 02/20] x86, microcode: Use common get_ramdisk_image()

2013-04-04 Thread Yinghai Lu
On Thu, Apr 4, 2013 at 10:48 AM, Tejun Heo t...@kernel.org wrote: On Sat, Mar 09, 2013 at 10:44:29PM -0800, Yinghai Lu wrote: Use common get_ramdisk_image() to get ramdisk start phys address. We need this to get correct ramdisk adress for 64bit bzImage that initrd can be loaded above 4G by

[PATCH 2/2] MIPS: implement pcibios_get_phb_of_node

2013-04-04 Thread Gabor Juhos
The of_node field of the device assigned to a PCI bus is used during scanning of the PCI bus. However on MIPS, the of_node field is assigned only after the bus has been scanned. Implement the architecture specific version of 'pcibios_get_phb_of_node'. Which ensures that the PCI driver core will

[PATCH 1/2] pci/of: remove weak annotation of pcibios_get_phb_of_node

2013-04-04 Thread Gabor Juhos
Due to the __weak annotation in the forward declaration of the 'pcibios_get_phb_of_node' function GCC will emit a weak symbol for this functions even if the actual implementation does not use the weak attribute. If an architecture tries to override the function by providing its own implementation

Re: [PATCH v2 2/7] ARM: tegra: update device trees for USB binding rework

2013-04-04 Thread Stephen Warren
On 04/04/2013 07:01 AM, Venu Byravarasu wrote: -Original Message- From: Stephen Warren [mailto:swar...@wwwdotorg.org] Sent: Thursday, April 04, 2013 12:47 AM To: Venu Byravarasu Cc: gre...@linuxfoundation.org; ba...@ti.com; st...@rowland.harvard.edu; linux-te...@vger.kernel.org;

Re: [PATCH 1/5 v3] USB: regroup all depends on USB within an if USB block

2013-04-04 Thread Felipe Balbi
Hi, On Thu, Apr 04, 2013 at 01:42:18PM -0400, Alan Stern wrote: diff --git a/drivers/usb/misc/sisusbvga/Kconfig b/drivers/usb/misc/sisusbvga/Kconfig index 30ea7ca..0d03a52 100644 --- a/drivers/usb/misc/sisusbvga/Kconfig +++ b/drivers/usb/misc/sisusbvga/Kconfig @@ -1,7 +1,7 @@

af_unix udev startup regression

2013-04-04 Thread Linus Torvalds
[ Fixed odd legacy subject line that has nothing to do with the actual bug ] Hmm. Can you double-check and verify that reverting that commit makes things work again for you? Also, what's your distribution and setup? I'd like this to get verified, just to see that it's not some timing-dependent

Re: [PATCH v2 04/20] x86, ACPI: Increase override tables number limit

2013-04-04 Thread Yinghai Lu
On Thu, Apr 4, 2013 at 10:50 AM, Tejun Heo t...@kernel.org wrote: On Sat, Mar 09, 2013 at 10:44:31PM -0800, Yinghai Lu wrote: @@ -648,14 +647,14 @@ void __init acpi_initrd_override(void *data, size_t size) memblock_reserve(acpi_tables_addr, acpi_tables_addr + all_tables_size);

Re: [PATCH 2/3] PCI: Handle device quirks when accessing sysfs resourceN entries

2013-04-04 Thread Bjorn Helgaas
On Thu, Mar 21, 2013 at 6:51 PM, Robert Hancock hancock...@gmail.com wrote: On 03/20/2013 10:35 PM, Myron Stowe wrote: Sysfs includes entries to memory regions that back a PCI device's BARs. The pci-sysfs entries backing I/O Port BARs can be accessed by userspace, providing direct access to

Re: [PATCH v2 05/20] x86, ACPI: Split acpi_initrd_override to find/copy two functions

2013-04-04 Thread Tejun Heo
On Sat, Mar 09, 2013 at 10:44:32PM -0800, Yinghai Lu wrote: To parse srat early, we need to move acpi table probing early. acpi_initrd_table_override is before acpi table probing. So we need to move it early too. Current code acpi_initrd_table_override is after init_mem_mapping and

Re: af_unix udev startup regression

2013-04-04 Thread David Miller
From: Linus Torvalds torva...@linux-foundation.org Date: Thu, 4 Apr 2013 11:03:28 -0700 [ Fixed odd legacy subject line that has nothing to do with the actual bug ] Hmm. Can you double-check and verify that reverting that commit makes things work again for you? Also, what's your

Re: [PATCH] clk: tegra: Fix cdev1 and cdev2 IDs

2013-04-04 Thread Stephen Warren
On 04/04/2013 03:05 AM, Prashant Gaikwad wrote: Correct IDs for cdev1 and cdev2 are 94 and 93 respectively. This looks OK, but needs to be split up before I can apply it. The binding change and driver changes will be applied to Tegra's for-3.10/clk branch, since that's where clk changes are

Re: [PATCH v4] Quirk for buggy dma source tags with Intel IOMMU.

2013-04-04 Thread Bjorn Helgaas
On Thu, Mar 7, 2013 at 7:35 PM, Andrew Cooks aco...@gmail.com wrote: This patch creates a quirk to allow the Intel IOMMU to be enabled for devices that use incorrect tags during DMA. It is similar to the quirk for Ricoh devices, but allows mapping multiple functions and mapping of 'ghost'

PING^3 Re: [PATCH v2 00/14] Corrections and customization of the SG_IO command whitelist (CVE-2012-4542)

2013-04-04 Thread Paolo Bonzini
Il 22/03/2013 23:30, Paolo Bonzini ha scritto: Il 20/02/2013 17:12, Paolo Bonzini ha scritto: Il 06/02/2013 16:15, Paolo Bonzini ha scritto: This series regards the whitelist that is used for the SG_IO ioctl. This whitelist has three problems: * the bitmap of allowed commands is designed

Re: [PATCH] clk: tegra: Add missing cdev1 and cdev2 clocks

2013-04-04 Thread Stephen Warren
On 04/04/2013 03:05 AM, Prashant Gaikwad wrote: Register cdev1 and cdev2 peripheral clocks. Can you please explain the relationship between the following clocks: cdev1 extern1 clk_out1 The latter two clocks already exist in this driver. I think that clk_out1 is meant to represent cdev1

Re: [PATCH] clk: tegra: Use common of_clk_init() function

2013-04-04 Thread Stephen Warren
On 04/04/2013 03:05 AM, Prashant Gaikwad wrote: Use common of_clk_init() function for clocks initialization. Signed-off-by: Prashant Gaikwad pgaik...@nvidia.com --- Stephen, if T114 clock series is not going to make in 3.10 then I would like Mike to take this patch. If T114 clock series

Re: [PATCH v2 03/20] x86, ACPI, mm: Kill max_low_pfn_mapped

2013-04-04 Thread Yinghai Lu
On Thu, Apr 4, 2013 at 10:36 AM, Tejun Heo t...@kernel.org wrote: Hello, On Sat, Mar 09, 2013 at 10:44:30PM -0800, Yinghai Lu wrote: Now we have arch_pfn_mapped array, and max_low_pfn_mapped should not be used anymore. User should use arch_pfn_mapped or just 1UL(32-PAGE_SHIFT) instead.

Re: [RFC GIT PULL] nohz: Kconfig layout improvements

2013-04-04 Thread Christoph Lameter
It seems that nohz still has no effect. 3.9-rc5 + patches. Affinity of init set to 0,1 so no tasks are running on 9. The latencytest used here is part of my lldiag-0.15 toolkit. First test without any special kernel parameters. nohz off right? $ nice -5 taskset -c 9 latencytest CPUs:

Carrefour: memory traffic management for NUMA multicore systems

2013-04-04 Thread Fabien Gaud
Hello everyone, We are researchers from Simon Fraser Unviversity (Canada) and CNRS/INP Grenoble/Universite Joseph Fourier (France). We are working on memory traffic management for NUMA multicore architectures. We published a paper at ASPLOS (http://asplos13.rice.edu/) on that subject and we think

Re: [PATCH] [libata] Fix HDIO_DRIVE_CMD ioctl sense data check

2013-04-04 Thread Gwendal Grignou
Thank you. Gwendal. On Wed, Apr 3, 2013 at 4:49 PM, Jeff Garzik jgar...@pobox.com wrote: On 03/29/2013 01:56 AM, Gwendal Grignou wrote: commit 84a9a8cd9d0aa93c17e5815ab8a9cc4c0a765c63 changed the sense key used for returning task registers, but HDIO_DRIVE_CMD ioctl was not changed

Re: [PATCH 0/4] PCI/PM: D3cold support for system suspend

2013-04-04 Thread Bjorn Helgaas
On Mon, Jan 28, 2013 at 9:34 PM, Huang Ying ying.hu...@intel.com wrote: [PATCH 1/4] PCI/ACPI: Add target state as parameter to pci_platform_pm_ops-run_wake [PATCH 2/4] PCI: Rename pci_dev-runtime_d3cold to pci_dev-set_d3cold [PATCH 3/4] PCI/PM: Set pci_dev-set_d3cold in pci_set_power_state

Re: [PATCH v2 06/20] x86, ACPI: Store override acpi tables phys addr in cpio files info array

2013-04-04 Thread Tejun Heo
On Sat, Mar 09, 2013 at 10:44:33PM -0800, Yinghai Lu wrote: In 32bit we will find table with phys address during 32bit flat mode in head_32.S, because at that time we don't need set page table to access initrd. For copying we could use early_ioremap() with phys directly before mem mapping

Re: [PATCH v2 06/20] x86, ACPI: Store override acpi tables phys addr in cpio files info array

2013-04-04 Thread Tejun Heo
On Thu, Apr 04, 2013 at 11:27:42AM -0700, Tejun Heo wrote: + /* +* have to use unsigned long, otherwise 32bit spit warning +* and it is ok to unsigned long, as bootloader would not +* load initrd above 4G for 32bit kernel. +*/ +

[PATCH] mm: prevent mmap_cache race in find_vma()

2013-04-04 Thread Hugh Dickins
From: Jan Stancek jstan...@redhat.com find_vma() can be called by multiple threads with read lock held on mm-mmap_sem and any of them can update mm-mmap_cache. Prevent compiler from re-fetching mm-mmap_cache, because other readers could update it in the meantime: thread 1

Re: [PATCH v2 07/20] x86, ACPI: Make acpi_initrd_override_find work with 32bit flat mode

2013-04-04 Thread Tejun Heo
Hello, On Sat, Mar 09, 2013 at 10:44:34PM -0800, Yinghai Lu wrote: For finding with 32bit, it would be easy to access initrd in 32bit flat mode, as we don't need to set page table. That is from head_32.S, and microcode updating already use this trick. Need to change

Re: [PATCH v2] irq: add quirk for broken interrupt remapping on 55XX chipsets

2013-04-04 Thread Bjorn Helgaas
On Thu, Apr 4, 2013 at 11:51 AM, Neil Horman nhor...@tuxdriver.com wrote: Oh, you want the bug report that I'm fixing this against? Sure, I can do that. I thought you wanted me to include a url in the WARN_TAINT, with which user could report occurances of this bug. Yeah, the bug that this

Re: [PATCH] mm: prevent mmap_cache race in find_vma()

2013-04-04 Thread Linus Torvalds
On Thu, Apr 4, 2013 at 11:35 AM, Hugh Dickins hu...@google.com wrote: find_vma() can be called by multiple threads with read lock held on mm-mmap_sem and any of them can update mm-mmap_cache. Prevent compiler from re-fetching mm-mmap_cache, because other readers could update it in the

Re: linux-next: Tree for Apr 4 (usb/gadget/configfs)

2013-04-04 Thread Randy Dunlap
On 04/04/13 00:22, Stephen Rothwell wrote: Hi all, Changes since 20130403: on x86_64, when CONFIG_BUG is not enabled: CC [M] drivers/usb/gadget/configfs.o drivers/usb/gadget/configfs.c: In function 'config_usb_cfg_unlink': drivers/usb/gadget/configfs.c:442:2: error: implicit

Re: [Drbd-dev] [PATCH -next] drbd: fix error return code in drbd_init()

2013-04-04 Thread Lars Ellenberg
On Thu, Apr 04, 2013 at 02:17:09PM +0800, Wei Yongjun wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return a negative error code from the error handling case instead of 0, as returned elsewhere in this function. We used to have an err = -ENOMEM; just in case... How about

Re: [PATCH] mm: prevent mmap_cache race in find_vma()

2013-04-04 Thread Hugh Dickins
On Thu, 4 Apr 2013, Linus Torvalds wrote: On Thu, Apr 4, 2013 at 11:35 AM, Hugh Dickins hu...@google.com wrote: find_vma() can be called by multiple threads with read lock held on mm-mmap_sem and any of them can update mm-mmap_cache. Prevent compiler from re-fetching mm-mmap_cache,

[PATCH] merge_config.sh: Avoid creating unnessary source softlinks

2013-04-04 Thread John Stultz
Viresh noticed when using merge_config.sh that a source softlink was being created even when he didn't specify the -O option. The problem arises due to the previous commit 409f117e2d6b which added the -O option. Basically if -O is not specified, we still pass '-O=.' to the make command, which

Re: [PATCH] x86, amd, mce: Prevent potential cpu-online oops

2013-04-04 Thread Borislav Petkov
On Thu, Apr 04, 2013 at 08:05:46PM +0200, Steffen Persvold wrote: It made more sense (to me) to skip the creation of MC4 all together if you can't find the matching northbridge since you can't reliably do the dec_and_test() reference counting on the shared bank when you don't have the common

Re: [PATCH] mm: prevent mmap_cache race in find_vma()

2013-04-04 Thread Linus Torvalds
On Thu, Apr 4, 2013 at 12:01 PM, Hugh Dickins hu...@google.com wrote: When Paul reminded us of it yesterday, I came to wonder if actually every use of ACCESS_ONCE in the read form should strictly be matched by ACCESS_ONCE whenever modifying the location. My uneducated guess is that strictly

Re: [PATCH V4 1/2] cpufreq: ondemand: allow custom powersave_bias_target handler to be registered

2013-04-04 Thread Borislav Petkov
On Thu, Apr 04, 2013 at 12:18:04PM -0500, Jacob Shin wrote: @@ -574,6 +577,45 @@ static struct common_dbs_data od_dbs_cdata = { .exit = od_exit, }; +static void od_set_powersave_bias(unsigned int powersave_bias) +{ + struct cpufreq_policy *policy; + struct dbs_data

[RFC] drivers/staging/silicom/bp_proc.c removal

2013-04-04 Thread Al Viro
It's all ifdefed out (on BYPASS_SUPPORT), severely bitrotten (try to remove the ifdef and watch what happens on attempt to build) and, AFAICS, it's a duplicate of the stuff in bp_mod.c. Is there any reason to keep it around? IOW, how about git rm drivers/staging/silicom/bp_proc.c

Re: [PATCH] x86, amd, mce: Prevent potential cpu-online oops

2013-04-04 Thread Steffen Persvold
On 4/4/2013 6:13 PM, Borislav Petkov wrote: On Thu, Apr 04, 2013 at 11:52:00PM +0800, Daniel J Blueman wrote: On platforms where all Northbridges may not be visible (due to routing, eg on NumaConnect systems), prevent oopsing due to stale pointer access when offlining cores. Signed-off-by:

Re: [PATCH V4 2/2] cpufreq: AMD frequency sensitivity feedback powersave bias for ondemand governor

2013-04-04 Thread Borislav Petkov
On Thu, Apr 04, 2013 at 11:19:04AM -0500, Jacob Shin wrote: Future AMD processors, starting with Family 16h, can provide software with feedback on how the workload may respond to frequency change -- memory-bound workloads will not benefit from higher frequency, where as compute-bound workloads

Re: [PATCH v2 05/20] x86, ACPI: Split acpi_initrd_override to find/copy two functions

2013-04-04 Thread Yinghai Lu
On Thu, Apr 4, 2013 at 11:07 AM, Tejun Heo t...@kernel.org wrote: Also move down two functions declaration to avoid #ifdef in setup.c ACPI_INITRD_TABLE_OVERRIDE depends one ACPI and BLK_DEV_INITRD. So could move declaration out from #ifdef CONFIG_ACPI protection. Heh, I couldn't really

Strange trace in dmesg on kernel 3.8.5

2013-04-04 Thread Eric Valette
Hi, When booting a brand new machine freshly installed I notice in the dmesg output always the same worrying trace: PS copy me I'm not subscribed. ata2.00: ATA-9: Samsung SSD 840 Series, DXT07B0Q, max UDMA/133 ata2.00: 234441648 sectors, multi 16: LBA48 NCQ (depth 31/32), AA [

[PATCH] MFD: rtsx_pcr, fix probe fail path

2013-04-04 Thread Jiri Slaby
When rtsx_pci_acquire_irq fails in rtsx_pci_probe, we forget to disable an MSI (if we enabled it). This results in this warning on the next attempt to load the module: WARNING: at drivers/pci/msi.c:834 pci_enable_msi_block+0x2a4/0x2b0() Hardware name: HP EliteBook 840 G1 Modules linked in:

Re: [PATCH v2 06/20] x86, ACPI: Store override acpi tables phys addr in cpio files info array

2013-04-04 Thread Yinghai Lu
On Thu, Apr 4, 2013 at 11:30 AM, Tejun Heo t...@kernel.org wrote: Also the comment contradicts with what you wrote in the next patch. Boot loader could load initrd above max_low_pfn. It does not contradict: this patch: bootloader would not load initrd above 4G for 32bit kernel max_low_pfn

Re: [PATCH 1/5 v3] USB: regroup all depends on USB within an if USB block

2013-04-04 Thread Arnd Bergmann
On Thursday 04 April 2013, Felipe Balbi wrote: On Thu, Apr 04, 2013 at 01:42:18PM -0400, Alan Stern wrote: diff --git a/drivers/usb/misc/sisusbvga/Kconfig b/drivers/usb/misc/sisusbvga/Kconfig index 30ea7ca..0d03a52 100644 --- a/drivers/usb/misc/sisusbvga/Kconfig +++

Re: linux-next: build failure after merge of the final tree (wireless-next tree related)

2013-04-04 Thread Larry Finger
On 04/04/2013 02:10 AM, Stephen Rothwell wrote: Hi all, After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/net/wireless/rtlwifi/rtl8188ee/built-in.o: In function `.rtl92c_phy_ap_calibrate': (.text+0x21d14): multiple definition of

Re: Strange trace in dmesg on kernel 3.8.5

2013-04-04 Thread Borislav Petkov
+ linux-ide. On Thu, Apr 04, 2013 at 09:23:27PM +0200, Eric Valette wrote: Hi, When booting a brand new machine freshly installed I notice in the dmesg output always the same worrying trace: PS copy me I'm not subscribed. ata2.00: ATA-9: Samsung SSD 840 Series, DXT07B0Q, max UDMA/133

Re: [RFC GIT PULL] nohz: Kconfig layout improvements

2013-04-04 Thread Gilad Ben-Yossef
Hi, [ Sorry for dropping LKML on my previous email. It was caused by replying from my smartphone. Adding everyone back now ] On Thu, Apr 4, 2013 at 9:23 PM, Christoph Lameter c...@linux.com wrote: On Thu, 4 Apr 2013, Gilad Ben-Yossef wrote: The vmstat work item leaving a timer running on

Re: [PATCH V2 1/3] seccomp: add generic code for jitted seccomp filters.

2013-04-04 Thread Will Drewry
On Mon, Apr 1, 2013 at 4:53 PM, Kees Cook keesc...@chromium.org wrote: On Mon, Mar 18, 2013 at 7:50 AM, Nicolas Schichan nschic...@freebox.fr wrote: Architecture must select HAVE_SECCOMP_FILTER_JIT and implement seccomp_jit_compile() and seccomp_jit_free() if they intend to support jitted

Re: [PATCH] x86, amd, mce: Prevent potential cpu-online oops

2013-04-04 Thread Steffen Persvold
On 4/4/2013 9:07 PM, Borislav Petkov wrote: On Thu, Apr 04, 2013 at 08:05:46PM +0200, Steffen Persvold wrote: It made more sense (to me) to skip the creation of MC4 all together if you can't find the matching northbridge since you can't reliably do the dec_and_test() reference counting on the

Re: [PATCH v2] irq: add quirk for broken interrupt remapping on 55XX chipsets

2013-04-04 Thread Neil Horman
On Thu, Apr 04, 2013 at 12:41:27PM -0600, Bjorn Helgaas wrote: On Thu, Apr 4, 2013 at 11:51 AM, Neil Horman nhor...@tuxdriver.com wrote: Oh, you want the bug report that I'm fixing this against? Sure, I can do that. I thought you wanted me to include a url in the WARN_TAINT, with which

Re: [PATCH v2 06/20] x86, ACPI: Store override acpi tables phys addr in cpio files info array

2013-04-04 Thread Yinghai Lu
On Thu, Apr 4, 2013 at 11:27 AM, Tejun Heo t...@kernel.org wrote: for (no = 0; no ACPI_OVERRIDE_TABLES; no++) { + /* + * have to use unsigned long, otherwise 32bit spit warning + * and it is ok to unsigned long, as bootloader would not +

Re: [PATCH v4] irq: add quirk for broken interrupt remapping on 55XX chipsets

2013-04-04 Thread Neil Horman
On Thu, Apr 04, 2013 at 10:40:07AM -0700, Yinghai Lu wrote: On Thu, Apr 4, 2013 at 10:27 AM, Don Dutile ddut...@redhat.com wrote: You need to move the quirk to early_quirk to append nointremap to avoid extra rebooting. The pci-dev's of all the (minimally, root, 5500-chipset) pci-dev's are

[PATCH 0/3] kernel ASLR

2013-04-04 Thread Kees Cook
Hello, This patch series implements per-boot kernel base offset ASLR. It is based on work by Dan Rosenberg, Neill Clift, Michael Davidson, and myself. Since Dan's original thread[1], this code has been improved to work on 64-bit, among other things. This is presently in use at Google, and is

[PATCH 2/3] x86: build reloc tool for both 64 and 32 bit

2013-04-04 Thread Kees Cook
Add logic for 64-bit kernel relocations. Since there is no need to handle 32 and 64 bit at the same time, refactor away most of the 32/64 bit ELF differences and split the build into producing two separate binaries. Additionally switches to using realloc instead of a two-pass approach. Heavily

[PATCH 1/3] x86: routines to choose random kernel base offset

2013-04-04 Thread Kees Cook
This provides routines for selecting a randomized kernel base offset, bounded by e820 details. It tries to use RDRAND and falls back to RDTSC. If noaslr is on the kernel command line, no offset will be used. Heavily based on work by Dan Rosenberg and Neill Clift. Signed-off-by: Kees Cook

[PATCH 3/3] x86: kernel base offset ASLR

2013-04-04 Thread Kees Cook
This creates CONFIG_RANDOMIZE_BASE, so that the base offset of the kernel can be randomized at boot. This makes kernel vulnerabilities harder to reliably exploit, especially from remote attacks and local processes in seccomp containers. Keeping the location of kernel addresses secret becomes very

Re: [RFC GIT PULL] nohz: Kconfig layout improvements

2013-04-04 Thread Christoph Lameter
On Thu, 4 Apr 2013, Gilad Ben-Yossef wrote: Here is the last version I posted over a year ago. You were CCed and provided very useful feedback: http://lkml.indiana.edu/hypermail/linux/kernel/1205.0/01291.html Ah. yes I remember now. Based on your feedback I re-spun them but never gotten

Re: [PATCH 0/4] PCI/PM: D3cold support for system suspend

2013-04-04 Thread Rafael J. Wysocki
On Thursday, April 04, 2013 12:26:52 PM Bjorn Helgaas wrote: On Mon, Jan 28, 2013 at 9:34 PM, Huang Ying ying.hu...@intel.com wrote: [PATCH 1/4] PCI/ACPI: Add target state as parameter to pci_platform_pm_ops-run_wake [PATCH 2/4] PCI: Rename pci_dev-runtime_d3cold to pci_dev-set_d3cold

Re: [PATCH 3/3] x86: kernel base offset ASLR

2013-04-04 Thread H. Peter Anvin
On 04/04/2013 01:07 PM, Kees Cook wrote: However, the benefits of this feature in certain environments exceed the perceived weaknesses[2]. Could you clarify? -hpa -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH 3/3] x86: kernel base offset ASLR

2013-04-04 Thread Julien Tinnes
On Thu, Apr 4, 2013 at 1:12 PM, H. Peter Anvin h...@zytor.com wrote: On 04/04/2013 01:07 PM, Kees Cook wrote: However, the benefits of this feature in certain environments exceed the perceived weaknesses[2]. Could you clarify? I think privilege reduction in general, and sandboxing in

Re: [PATCH 3/3] x86: kernel base offset ASLR

2013-04-04 Thread H. Peter Anvin
I have to admit to being somewhat skeptical toward KASLR with only 8 bits of randomness. There are at least two potential ways of dramatically increasing the available randomness: 1. actually compose the kernel of multiple independently relocatable pieces (maybe chunk it on 2M boundaries or

Re: [PATCHv2 1/3] thermal: introduce thermal_zone_get_zone_by_name helper function

2013-04-04 Thread Eduardo Valentin
On 04-04-2013 13:12, R, Durgadoss wrote: -Original Message- From: Eduardo Valentin [mailto:eduardo.valen...@ti.com] Sent: Thursday, April 04, 2013 3:43 AM To: Zhang, Rui Cc: linux...@vger.kernel.org; linux-kernel@vger.kernel.org; R, Durgadoss; Eduardo Valentin Subject: [PATCHv2 1/3]

Re: [PATCH v2 07/20] x86, ACPI: Make acpi_initrd_override_find work with 32bit flat mode

2013-04-04 Thread Yinghai Lu
On Thu, Apr 4, 2013 at 11:35 AM, Tejun Heo t...@kernel.org wrote: It'd be nice if the error message can be stored somewhere and then printed out after the system is in proper address mode if that isn't too complex to achieve. If it gets too messy, no need to bother. Maybe not necessary. As

Re: [PATCH 3/3] x86: kernel base offset ASLR

2013-04-04 Thread Julien Tinnes
On Thu, Apr 4, 2013 at 1:19 PM, Julien Tinnes j...@google.com wrote: On Thu, Apr 4, 2013 at 1:12 PM, H. Peter Anvin h...@zytor.com wrote: On 04/04/2013 01:07 PM, Kees Cook wrote: However, the benefits of this feature in certain environments exceed the perceived weaknesses[2]. Could you

Re: [PATCH V2 1/3] Thermal: rename thermal_sys.c to thermal_core.c

2013-04-04 Thread Eduardo Valentin
On 29-03-2013 10:26, Zhang Rui wrote: this is the preparation work to build all the thermal core framework source file, like governors, cpu cooling, etc, into one module. No functional change in this patch. Signed-off-by: Zhang Rui rui.zh...@intel.com Durga and me have already reviewed and

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