[PATCH 1/2] mm,fs: introduce helpers around i_mmap_mutex

2013-10-02 Thread Davidlohr Bueso
Various parts of the kernel acquire and release this mutex, so add i_mmap_lock_write() and immap_unlock_write() helper functions that will encapsulate this logic. The next patch will make use of these. Signed-off-by: Davidlohr Bueso --- include/linux/fs.h | 10 ++ 1 file changed, 10

Re: [PATCH 05/26] omap3isp: Make isp_video_buffer_prepare_user() use get_user_pages_fast()

2013-10-02 Thread Jan Kara
On Wed 02-10-13 21:41:10, Laurent Pinchart wrote: > Hi Jan, > > Thank you for the patch. > > On Wednesday 02 October 2013 16:27:46 Jan Kara wrote: > > CC: Laurent Pinchart > > CC: linux-me...@vger.kernel.org > > Signed-off-by: Jan Kara > > Acked-by: Laurent Pinchart Thanks! > > Could you

Re: [PATCH V3: Add Smp support for Allwinner A20. 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-10-02 Thread Russell King - ARM Linux
On Sat, Sep 28, 2013 at 09:48:11PM +0800, cinifr wrote: > Hi Maxime, > I have test it, but I found it does not work. If using > smp_prepare_cpus, the kernenl cannot find the secondary cpus because > that smp_prepare_cpus semms not be excuted before kernel is booting > secondary cpus. So I

Re: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-02 Thread Scott Wood
On Wed, 2013-10-02 at 11:43 -0700, Christoffer Dall wrote: > On Wed, Oct 02, 2013 at 01:32:38PM -0500, Scott Wood wrote: > > On Wed, 2013-10-02 at 13:25 -0500, Yoder Stuart-B08248 wrote: > > > > > > > -Original Message- > > > > From: Christoffer Dall [mailto:christoffer.d...@linaro.org] >

Re: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-02 Thread Christoffer Dall
On Wed, Oct 02, 2013 at 03:04:15PM -0500, Kim Phillips wrote: > On Wed, 2 Oct 2013 11:43:30 -0700 > Christoffer Dall wrote: > > > On Wed, Oct 02, 2013 at 01:32:38PM -0500, Scott Wood wrote: > > > On Wed, 2013-10-02 at 13:25 -0500, Yoder Stuart-B08248 wrote: > > > > > > > > > -Original

Re: [PATCH 0/3] calxedaxgmac: fixes for xgmac_set_rx_mode

2013-10-02 Thread David Miller
From: Rob Herring Date: Mon, 30 Sep 2013 15:12:14 -0500 > This is a couple of fixes related to xgmac_set_rx_mode. The changes are > necessary for "bridge fdb add" to work correctly. Series applied, thanks Rob. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-02 Thread Kim Phillips
On Wed, 2 Oct 2013 11:43:30 -0700 Christoffer Dall wrote: > On Wed, Oct 02, 2013 at 01:32:38PM -0500, Scott Wood wrote: > > On Wed, 2013-10-02 at 13:25 -0500, Yoder Stuart-B08248 wrote: > > > > > > > -Original Message- > > > > From: Christoffer Dall [mailto:christoffer.d...@linaro.org]

Re: [PATCH] isdn: eicon: free pointer after using it in log msg in divas_um_idi_delete_entity()

2013-10-02 Thread David Miller
From: Jesper Juhl Date: Mon, 30 Sep 2013 21:25:27 +0200 (CEST) > Not really a problem, but nice IMHO; the Coverity static analyzer > complains that we use the pointer 'e' after it has been freed, so move > the freeing below the final use, even if that use is just using the > value of the pointer

Re: [PATCH] UBIFS: fix error return code in ubifs_remount_rw() and ubifs_fill_super()

2013-10-02 Thread Brian Norris
Bump, Artem? I'm cleaning out my old email, and this patch looks obviously correct. On Thu, Jun 6, 2013 at 7:17 PM, Wei Yongjun wrote: > From: Wei Yongjun > > Fix to return -ENOMEM in the kmalloc() and d_make_root() error handling > case instead of 0, as done elsewhere in those functions. > >

Re: [PATCH 1/1] virt/kvm/iommu.c: Add leading zeros to device's BDF notation in debug messages

2013-10-02 Thread Alex Williamson
On Wed, 2013-10-02 at 21:08 +0200, Andre Richter wrote: > 2013/10/2 Alex Williamson : > > On Wed, 2013-10-02 at 13:35 +0300, Gleb Natapov wrote: > >> On Wed, Oct 02, 2013 at 12:23:26PM +0200, Andre Richter wrote: > >> > When KVM (de)assigns PCI(e) devices to VMs, a debug message is printed > >> >

Re: [v2,1/4] watchdog: at91sam9_wdt: better watchdog support

2013-10-02 Thread boris brezillon
On 02/10/2013 21:34, Guenter Roeck wrote: On Wed, Oct 02, 2013 at 09:27:03PM +0200, boris brezillon wrote: Hello Guenter, Thanks for reviewing this patch. On 02/10/2013 18:12, Guenter Roeck wrote: On Fri, Jun 21, 2013 at 03:21:28PM -, Boris BREZILLON wrote: The at91sam9 watchdog timer

Re: [PATCH 06/12] procfs: make /proc/*/stack 0400

2013-10-02 Thread Kees Cook
On Sat, Sep 28, 2013 at 7:35 AM, Djalal Harouni wrote: > On Thu, Sep 26, 2013 at 03:43:24PM -0500, Kees Cook wrote: >> On Wed, Sep 25, 2013 at 3:14 PM, Djalal Harouni wrote: >> > The /proc/*/stack contains sensitive information and currently its mode >> > is 0444. Change this to 0400 so the VFS

Re: [RFC PATCH] regulator: core: Add ability to create a lookup alias for supply

2013-10-02 Thread Mark Brown
On Wed, Oct 02, 2013 at 01:16:59PM +0100, Charles Keepax wrote: > Following our discussions around the Arizona regulator > bindings here is an effort at putting a mechanism into the > regulator core to alias registering of a supply from one > device to another. This seems basically fine, though

Re: [PATCH 06/12] procfs: make /proc/*/stack 0400

2013-10-02 Thread Kees Cook
On Sun, Sep 29, 2013 at 3:37 AM, Djalal Harouni wrote: > On Thu, Sep 26, 2013 at 03:43:24PM -0500, Kees Cook wrote: >> On Wed, Sep 25, 2013 at 3:14 PM, Djalal Harouni wrote: >> > The /proc/*/stack contains sensitive information and currently its mode >> > is 0444. Change this to 0400 so the VFS

Re: [PATCH v2 0/9] procfs: protect /proc//* files with file->f_cred

2013-10-02 Thread Kees Cook
On Wed, Oct 2, 2013 at 11:48 AM, Djalal Harouni wrote: > On Wed, Oct 02, 2013 at 11:35:45AM -0700, Kees Cook wrote: >> On Wed, Oct 2, 2013 at 11:22 AM, Djalal Harouni wrote: >> > On Wed, Oct 02, 2013 at 10:48:55AM -0700, Kees Cook wrote: >> >> On Wed, Oct 2, 2013 at 9:51 AM, Andy Lutomirski >>

Re: [PATCH 05/26] omap3isp: Make isp_video_buffer_prepare_user() use get_user_pages_fast()

2013-10-02 Thread Laurent Pinchart
Hi Jan, Thank you for the patch. On Wednesday 02 October 2013 16:27:46 Jan Kara wrote: > CC: Laurent Pinchart > CC: linux-me...@vger.kernel.org > Signed-off-by: Jan Kara Acked-by: Laurent Pinchart Could you briefly explain where you're headed with this ? The V4L2 subsystem has suffered for

Re: [PATCH RFC] random: introduce get_random_bytes_busy_wait_initialized

2013-10-02 Thread Theodore Ts'o
On Wed, Oct 02, 2013 at 07:18:40PM +0200, Hannes Frederic Sowa wrote: > > I agree. I will look if this is easily possible for secure_seq and > syncookies but depending on the data structure and its size it is a much > harder thing to do. I wanted to try the low-hanging fruits first. ;) To use

[PATCH] drm: Track the proper DPMS mode of connectors

2013-10-02 Thread Thierry Reding
When userspace removes the active framebuffer using DRM_IOCTL_MODE_RMFB, or explicitly disables the CRTC (by calling drmModeSetCrtc(..., NULL) for example), a NULL framebuffer will be passed to the .set_config() implementation of a CRTC. The drm_crtc_helper_set_config() helper will decide to

Re: [PATCH 16/26] mm: Provide get_user_pages_unlocked()

2013-10-02 Thread Jan Kara
On Wed 02-10-13 12:28:11, KOSAKI Motohiro wrote: > (10/2/13 10:27 AM), Jan Kara wrote: > > Provide a wrapper for get_user_pages() which takes care of acquiring and > > releasing mmap_sem. Using this function reduces amount of places in > > which we deal with mmap_sem. > > > > Signed-off-by: Jan

Re: [RFC] perf: mmap2 not covering VM_CLONE regions

2013-10-02 Thread Kees Cook
On Wed, Oct 2, 2013 at 12:00 PM, Peter Zijlstra wrote: > On Wed, Oct 02, 2013 at 11:10:15AM -0700, Kees Cook wrote: >> Seems like a simple enough solution. Surely there must be a catch. :) > > I didn't want to add this to the core mm just for perf.. It seems like it would be pretty inexpensive.

Re: [PATCH v6 5/6] MCS Lock: Restructure the MCS lock defines and locking code into its own file

2013-10-02 Thread Waiman Long
On 10/02/2013 03:30 PM, Jason Low wrote: On Wed, Oct 2, 2013 at 12:19 PM, Waiman Long wrote: On 09/26/2013 06:42 PM, Jason Low wrote: On Thu, 2013-09-26 at 14:41 -0700, Tim Chen wrote: Okay, that would makes sense for consistency because we always first set node->lock = 0 at the top of the

Re: [tpmdd-devel] [PATCH 01/13] tpm: ibmvtpm: Use %zd formatting for size_t format arguments

2013-10-02 Thread Ashley D Lai
On Mon, 2013-09-23 at 12:14 -0600, Jason Gunthorpe wrote: > This suppresses compile warnings on 32 bit builds. > > Signed-off-by: Jason Gunthorpe Looks good to me. Acked-by: Ashley Lai Thanks, --Ashley Lai -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [Suggestion] about calling debug_hotplug_cpu() which enabled by 'allmodconfig' for a x86_64 dual core laptop.

2013-10-02 Thread Toshi Kani
On Thu, 2013-10-03 at 00:41 +0800, Chen Gang F T wrote: > On 10/02/2013 11:28 PM, Toshi Kani wrote: > > On Wed, 2013-10-02 at 03:10 +, Chen Gang wrote: > >> Hello Maintainers: > >> > >> Under my x86_64 dual core laptop, I build kernel next-20130927 with > >> 'allmodconfig', and install it, the

Re: [PATCH 18/26] mm: Convert process_vm_rw_pages() to use get_user_pages_unlocked()

2013-10-02 Thread Jan Kara
On Wed 02-10-13 12:32:33, KOSAKI Motohiro wrote: > (10/2/13 10:27 AM), Jan Kara wrote: > > Signed-off-by: Jan Kara > > --- > > mm/process_vm_access.c | 8 ++-- > > 1 file changed, 2 insertions(+), 6 deletions(-) > > > > diff --git a/mm/process_vm_access.c b/mm/process_vm_access.c > >

Re: [v2,1/4] watchdog: at91sam9_wdt: better watchdog support

2013-10-02 Thread Guenter Roeck
On Wed, Oct 02, 2013 at 09:27:03PM +0200, boris brezillon wrote: > Hello Guenter, > > Thanks for reviewing this patch. > > On 02/10/2013 18:12, Guenter Roeck wrote: > >On Fri, Jun 21, 2013 at 03:21:28PM -, Boris BREZILLON wrote: > >>The at91sam9 watchdog timer can only be configured once,

Re: [PATCH v6 5/6] MCS Lock: Restructure the MCS lock defines and locking code into its own file

2013-10-02 Thread Waiman Long
On 10/02/2013 02:43 PM, Tim Chen wrote: On Tue, 2013-10-01 at 21:25 -0400, Waiman Long wrote: If the lock and unlock functions are done right, there should be no overlap of critical section. So it is job of the lock/unlock functions to make sure that critical section code won't leak out. There

Re: [PATCH RFC 36/77] ipr: Enable MSI-X when IPR_USE_MSIX type is set, not IPR_USE_MSI

2013-10-02 Thread Brian King
On 10/02/2013 05:48 AM, Alexander Gordeev wrote: > Signed-off-by: Alexander Gordeev > --- > drivers/scsi/ipr.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c > index fb57e21..762a93e 100644 > --- a/drivers/scsi/ipr.c > +++

Re: [PATCH v6 5/6] MCS Lock: Restructure the MCS lock defines and locking code into its own file

2013-10-02 Thread Jason Low
On Wed, Oct 2, 2013 at 12:19 PM, Waiman Long wrote: > On 09/26/2013 06:42 PM, Jason Low wrote: >> >> On Thu, 2013-09-26 at 14:41 -0700, Tim Chen wrote: >>> >>> Okay, that would makes sense for consistency because we always >>> first set node->lock = 0 at the top of the function. >>> >>> If we

Re: [v2,1/4] watchdog: at91sam9_wdt: better watchdog support

2013-10-02 Thread boris brezillon
Hello Guenter, Thanks for reviewing this patch. On 02/10/2013 18:12, Guenter Roeck wrote: On Fri, Jun 21, 2013 at 03:21:28PM -, Boris BREZILLON wrote: The at91sam9 watchdog timer can only be configured once, and the current implementation tries to configure it in a static way: - 2 seconds

Re: [PATCH v6 5/6] MCS Lock: Restructure the MCS lock defines and locking code into its own file

2013-10-02 Thread Waiman Long
On 09/26/2013 06:42 PM, Jason Low wrote: On Thu, 2013-09-26 at 14:41 -0700, Tim Chen wrote: Okay, that would makes sense for consistency because we always first set node->lock = 0 at the top of the function. If we prefer to optimize this a bit though, perhaps we can first move the node->lock =

You Have Won £1,000,000.00 Great Britishs Pounds Sterlings.

2013-10-02 Thread 006
-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v2 6/9] clk: msm: Add support for branches/gate clocks

2013-10-02 Thread Stephen Boyd
Signed-off-by: Stephen Boyd --- drivers/clk/msm/Makefile | 1 + drivers/clk/msm/clk-branch.c | 153 +++ drivers/clk/msm/clk-branch.h | 50 ++ 3 files changed, 204 insertions(+) create mode 100644 drivers/clk/msm/clk-branch.c create

[PATCH v2 7/9] clk: msm: Add support for MSM8960's global clock controller (GCC)

2013-10-02 Thread Stephen Boyd
Add a driver for the global clock controller found on MSM8960 based platforms. This should allow most non-multimedia device drivers to probe and control their clocks. TODO: Fill out reset of data and define all clocks Cc: Signed-off-by: Stephen Boyd ---

[PATCH v2 3/9] clk: Add set_rate_and_parent() op

2013-10-02 Thread Stephen Boyd
Some of Qualcomm's clocks can change their parent and rate at the same time with a single register write. Add support for this hardware to the common clock framework by adding a new set_rate_and_parent() op. When the clock framework determines that both the parent and the rate are going to change

[PATCH v2 8/9] clk: msm: Add support for MSM8960's multimedia clock controller (MMCC)

2013-10-02 Thread Stephen Boyd
Add a driver for the multimedia clock controller found on MSM 8960 based platforms. This should allow multimedia device drivers to probe and control their clocks. TODO: Fill out reset of data and define all clocks Cc: Signed-off-by: Stephen Boyd --- .../devicetree/bindings/clock/qcom,mmcc.txt

[PATCH v2 4/9] clk: msm: Add support for phase locked loops (PLLs)

2013-10-02 Thread Stephen Boyd
Add support for MSM's PLLs (phase locked loops). This is sufficient enough to be able to determine the rate the PLL is running at. We can add rate setting support later when it's needed. Signed-off-by: Stephen Boyd --- drivers/clk/Kconfig | 2 + drivers/clk/Makefile | 1 +

[PATCH v2 5/9] clk: msm: Add support for root clock generators (RCGs)

2013-10-02 Thread Stephen Boyd
Add support for the root clock generators on MSM devices. RCGs are highly customizable mux/divider/counter clocks that can be used to generate almost any rate desired given some input source that is faster than the desired rate. Signed-off-by: Stephen Boyd --- drivers/clk/msm/Makefile | 2 +

Re: [PATCH 1/1] virt/kvm/iommu.c: Add leading zeros to device's BDF notation in debug messages

2013-10-02 Thread Andre Richter
2013/10/2 Alex Williamson : > On Wed, 2013-10-02 at 13:35 +0300, Gleb Natapov wrote: >> On Wed, Oct 02, 2013 at 12:23:26PM +0200, Andre Richter wrote: >> > When KVM (de)assigns PCI(e) devices to VMs, a debug message is printed >> > including the BDF notation of the respective device. Currently,

[PATCH v2 0/9] Add support for MSM's mmio clocks

2013-10-02 Thread Stephen Boyd
The first 3 patches are generic clock framework patches. They add support for regmap and for setting the rate and the parent at the same time based on patches from James Hogan's remuxing set_rate series. After that we add MSM clock hardware support and SoC specific drivers. The DT node additions

[PATCH v2 2/9] clk: Add regmap core helpers for enable/disable/is_enabled

2013-10-02 Thread Stephen Boyd
The clock framework already has support for simple gate clocks but if drivers want to use the gate clock functionality they need to wrap the gate clock in another struct and chain the ops by calling the gate ops from their own custom ops. Plus the gate clock implementation only supports MMIO

[PATCH v2 1/9] clk: Allow drivers to pass in a regmap

2013-10-02 Thread Stephen Boyd
Add support to the clock core so that drivers can pass in a regmap. If no regmap is specified try to query the device that's registering the clock for its regmap. This should allow drivers to use the core regmap helpers. Signed-off-by: Stephen Boyd --- drivers/clk/clk.c| 8

Re: Fwd: Potential out-of-bounds in ftrace_regex_release

2013-10-02 Thread Andrey Konovalov
On Wed, Oct 2, 2013 at 10:57 PM, Dave Jones wrote: > And that's the cause. I wonder what was being opened. > Do you happen to have a trinity-child log for that thread ? Unfortunately not. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [RFC PATCH v2 0/1] FPGA subsystem core

2013-10-02 Thread H. Peter Anvin
On 10/02/2013 08:35 AM, Michal Simek wrote: > > Based on my discussion at ELC with Greg KH the new driver should > support firmware interface for loading bitstream. > As I have previously stated, I think this is a mistake simply because the firmware interface is a bad mapping on requirements

[PATCH RFC 01/77] PCI/MSI: Fix return value when populate_msi_sysfs() failed

2013-10-02 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/pci/msi.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index d5f90d6..b43f391 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -719,7 +719,7 @@ static int

Re: [RFC] perf: mmap2 not covering VM_CLONE regions

2013-10-02 Thread Peter Zijlstra
On Wed, Oct 02, 2013 at 11:10:15AM -0700, Kees Cook wrote: > Seems like a simple enough solution. Surely there must be a catch. :) I didn't want to add this to the core mm just for perf.. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH v2 6/9] procfs: add permission checks on the file's opener of /proc/*/stat

2013-10-02 Thread Djalal Harouni
On Wed, Oct 02, 2013 at 05:46:19PM +0100, Andy Lutomirski wrote: > On Wed, Oct 2, 2013 at 4:14 PM, Djalal Harouni wrote: > > On Tue, Oct 01, 2013 at 06:39:00PM -0700, Andy Lutomirski wrote: > >> On 10/01/2013 01:26 PM, Djalal Harouni wrote: > >> > Some fields of the /proc/*/stat are sensitive

Re: Fwd: Potential out-of-bounds in ftrace_regex_release

2013-10-02 Thread Dave Jones
On Wed, Oct 02, 2013 at 10:38:01PM +0400, Andrey Konovalov wrote: > Hi! > > I am working on AddressSanitizer -- a tool that detects use-after-free > and out-of-bounds bugs > (https://code.google.com/p/address-sanitizer/wiki/AddressSanitizerForKernel). > Below is one of the bug reports that

Re: [PATCH] Documentation: "kerneli" typo in description for "Serpent cipher algorithm" Bug #60848

2013-10-02 Thread Rob Landley
On 10/02/2013 01:34:30 PM, Kevin Mulvey wrote: sorry, for possible repost but I think my last email got blocked due to html. It read: do you want me to make another patch that does not touch the url? It looks like the crypto directory has been merged since forever, so the old website is

Re: [RESEND PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-10-02 Thread H. Peter Anvin
On 10/02/2013 11:48 AM, Frantisek Hrbata wrote: > > Ok, I can try to look into this. I just want to point out that some other > archs > like arm are doing it the same way. I simply replaced the generic check > functions > in drivers/char/mem.c with x86 specific ones. > I know. It is a

Status of "kernel crypto services" patch? Re: [PATCH] Documentation: "kerneli" typo in description for "Serpent cipher algorithm" Bug #60848

2013-10-02 Thread Rob Landley
On 10/02/2013 01:22:22 PM, Jussi Kivilinna wrote: On 02.10.2013 21:12, Rob Landley wrote: > On 10/02/2013 11:10:37 AM, Kevin Mulvey wrote: >> change kerneli to kernel as well as kerneli.org to kernel.org >> >> Signed-off-by: Kevin Mulvey > > There's a bug number for this? > > Acked, queued.

Re: [PATCH v2 0/9] procfs: protect /proc//* files with file->f_cred

2013-10-02 Thread Djalal Harouni
On Wed, Oct 02, 2013 at 11:35:45AM -0700, Kees Cook wrote: > On Wed, Oct 2, 2013 at 11:22 AM, Djalal Harouni wrote: > > On Wed, Oct 02, 2013 at 10:48:55AM -0700, Kees Cook wrote: > >> On Wed, Oct 2, 2013 at 9:51 AM, Andy Lutomirski > >> wrote: > >> > On Wed, Oct 2, 2013 at 3:37 PM, Djalal

Re: [RESEND PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-10-02 Thread Frantisek Hrbata
On Wed, Oct 02, 2013 at 11:36:09AM -0700, H. Peter Anvin wrote: > On 10/02/2013 11:31 AM, Frantisek Hrbata wrote: > > On Wed, Oct 02, 2013 at 10:46:35AM -0700, H. Peter Anvin wrote: > >> On 10/02/2013 09:05 AM, Frantisek Hrbata wrote: > >>> + > >>> +int valid_phys_addr_range(phys_addr_t addr,

Re: [PATCH -v2] EFI: Runtime services virtual mapping

2013-10-02 Thread H. Peter Anvin
On 10/02/2013 11:42 AM, Borislav Petkov wrote: > > Yes, so the alignment has to be such that both PA and VA are the same > amount of 4K pages away from the next 2M boundary, to put it bluntly. > > I have a couple of ideas on how to do that. > It's pretty straightforward - just drop the

RE: Drivers: scsi: FLUSH timeout

2013-10-02 Thread KY Srinivasan
> -Original Message- > From: geert.uytterhoe...@gmail.com [mailto:geert.uytterhoe...@gmail.com] > On Behalf Of Geert Uytterhoeven > Sent: Wednesday, September 25, 2013 1:40 AM > To: KY Srinivasan > Cc: Mike Christie; Jack Wang; Greg KH; linux-kernel@vger.kernel.org; >

Re: [PATCH v6 5/6] MCS Lock: Restructure the MCS lock defines and locking code into its own file

2013-10-02 Thread Tim Chen
On Tue, 2013-10-01 at 21:25 -0400, Waiman Long wrote: > On 10/01/2013 05:16 PM, Tim Chen wrote: > > On Tue, 2013-10-01 at 16:01 -0400, Waiman Long wrote: > >>> > >>> The cpu could still be executing out of order load instruction from the > >>> critical section before checking node->locked?

Re: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-02 Thread Christoffer Dall
On Wed, Oct 02, 2013 at 01:32:38PM -0500, Scott Wood wrote: > On Wed, 2013-10-02 at 13:25 -0500, Yoder Stuart-B08248 wrote: > > > > > -Original Message- > > > From: Christoffer Dall [mailto:christoffer.d...@linaro.org] > > > Sent: Wednesday, October 02, 2013 10:14 AM > > > To: Alex

Re: [PATCH -v2] EFI: Runtime services virtual mapping

2013-10-02 Thread Borislav Petkov
On Wed, Oct 02, 2013 at 10:32:19AM -0700, H. Peter Anvin wrote: > So this is a bug in the sense that 2M pages were used when they were > not safe to use (matching alignment is part of the requirement for 2M > pages being allowable.) However, we of course want to use 2M pages, so > see below. Yes,

Re: [PATCH v2 0/9] procfs: protect /proc//* files with file->f_cred

2013-10-02 Thread Djalal Harouni
On Wed, Oct 02, 2013 at 07:26:43PM +0100, Djalal Harouni wrote: > On Wed, Oct 02, 2013 at 11:00:26AM -0700, Andy Lutomirski wrote: > > On Wed, Oct 2, 2013 at 10:48 AM, Kees Cook wrote: > > > I think revoking the fd would be great. Does that mechanism exist? > > > > There's this thing that never

Dear user

2013-10-02 Thread ADMIN
Dear user your email has exceeded 2 GB, which is created by Webmaster, you are currently running at 2.30GB,you cannot Send or receive new messages until you check your account. Complete the form to verify your account. Please complete the details below to confirm your account (1) E-mail:

Re: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-02 Thread Scott Wood
On Wed, 2013-10-02 at 13:25 -0500, Yoder Stuart-B08248 wrote: > > > -Original Message- > > From: Christoffer Dall [mailto:christoffer.d...@linaro.org] > > Sent: Wednesday, October 02, 2013 10:14 AM > > To: Alex Williamson > > Cc: Kim Phillips; gre...@linuxfoundation.org; linux- > >

Fwd: Potential out-of-bounds in ftrace_regex_release

2013-10-02 Thread Andrey Konovalov
Hi! I am working on AddressSanitizer -- a tool that detects use-after-free and out-of-bounds bugs (https://code.google.com/p/address-sanitizer/wiki/AddressSanitizerForKernel). Below is one of the bug reports that I got while running trinity syscall fuzzer. Kernel is built on revision

Re: [RESEND PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-10-02 Thread H. Peter Anvin
On 10/02/2013 11:31 AM, Frantisek Hrbata wrote: > On Wed, Oct 02, 2013 at 10:46:35AM -0700, H. Peter Anvin wrote: >> On 10/02/2013 09:05 AM, Frantisek Hrbata wrote: >>> + >>> +int valid_phys_addr_range(phys_addr_t addr, size_t count) >>> +{ >>> + return addr + count <= __pa(high_memory); >>> +}

Re: [PATCH v2 0/9] procfs: protect /proc//* files with file->f_cred

2013-10-02 Thread Kees Cook
On Wed, Oct 2, 2013 at 11:22 AM, Djalal Harouni wrote: > On Wed, Oct 02, 2013 at 10:48:55AM -0700, Kees Cook wrote: >> On Wed, Oct 2, 2013 at 9:51 AM, Andy Lutomirski wrote: >> > On Wed, Oct 2, 2013 at 3:37 PM, Djalal Harouni wrote: >> >> On Tue, Oct 01, 2013 at 06:40:41PM -0700, Andy

Re: [PATCH] Documentation: "kerneli" typo in description for "Serpent cipher algorithm" Bug #60848

2013-10-02 Thread Kevin Mulvey
sorry, for possible repost but I think my last email got blocked due to html. It read: do you want me to make another patch that does not touch the url? -kevin On Wed, Oct 2, 2013 at 2:22 PM, Jussi Kivilinna wrote: > On 02.10.2013 21:12, Rob Landley wrote: >> On 10/02/2013 11:10:37 AM, Kevin

Re: applesmc oops in 3.10/3.11

2013-10-02 Thread Chris Murphy
On Oct 2, 2013, at 12:02 PM, Guenter Roeck wrote: > On Wed, Oct 02, 2013 at 07:24:10PM +0200, Henrik Rydberg wrote: >> On Wed, Oct 02, 2013 at 09:47:18AM -0700, Guenter Roeck wrote: >>> On Wed, Oct 02, 2013 at 06:34:18PM +0200, Henrik Rydberg wrote: >>> One thing I have seen in all logs is

Re: [RESEND PATCH] x86: add phys addr validity check for /dev/mem mmap

2013-10-02 Thread Frantisek Hrbata
On Wed, Oct 02, 2013 at 10:46:35AM -0700, H. Peter Anvin wrote: > On 10/02/2013 09:05 AM, Frantisek Hrbata wrote: > > + > > +int valid_phys_addr_range(phys_addr_t addr, size_t count) > > +{ > > + return addr + count <= __pa(high_memory); > > +} > > + > > +int valid_mmap_phys_addr_range(unsigned

Re: [PATCH v2 0/9] procfs: protect /proc//* files with file->f_cred

2013-10-02 Thread Djalal Harouni
On Wed, Oct 02, 2013 at 11:00:26AM -0700, Andy Lutomirski wrote: > On Wed, Oct 2, 2013 at 10:48 AM, Kees Cook wrote: > > On Wed, Oct 2, 2013 at 9:51 AM, Andy Lutomirski wrote: > >> On Wed, Oct 2, 2013 at 3:37 PM, Djalal Harouni wrote: > >>> On Tue, Oct 01, 2013 at 06:40:41PM -0700, Andy

RE: RFC: (re-)binding the VFIO platform driver to a platform device

2013-10-02 Thread Yoder Stuart-B08248
> -Original Message- > From: Christoffer Dall [mailto:christoffer.d...@linaro.org] > Sent: Wednesday, October 02, 2013 10:14 AM > To: Alex Williamson > Cc: Kim Phillips; gre...@linuxfoundation.org; linux- > ker...@vger.kernel.org; a.mota...@virtualopensystems.com; ag...@suse.de; > Yoder

[PATCH] Fix generic hugetlb pte check return type.

2013-10-02 Thread David Miller
The include/asm-generic/hugetlb.h stubs that just vector huge_pte_*() calls to the pte_*() implementations won't work in certain situations. x86 and sparc, for example, return "unsigned long" from the bit checks, and just go "return pte_val(pte) & PTE_BIT_FOO;" But since huge_pte_*() returns

Re: [PATCH v2 0/9] procfs: protect /proc//* files with file->f_cred

2013-10-02 Thread Djalal Harouni
On Wed, Oct 02, 2013 at 10:48:55AM -0700, Kees Cook wrote: > On Wed, Oct 2, 2013 at 9:51 AM, Andy Lutomirski wrote: > > On Wed, Oct 2, 2013 at 3:37 PM, Djalal Harouni wrote: > >> On Tue, Oct 01, 2013 at 06:40:41PM -0700, Andy Lutomirski wrote: > >>> On 10/01/2013 01:26 PM, Djalal Harouni wrote:

Re: [PATCH] Documentation: "kerneli" typo in description for "Serpent cipher algorithm" Bug #60848

2013-10-02 Thread Jussi Kivilinna
On 02.10.2013 21:12, Rob Landley wrote: > On 10/02/2013 11:10:37 AM, Kevin Mulvey wrote: >> change kerneli to kernel as well as kerneli.org to kernel.org >> >> Signed-off-by: Kevin Mulvey > > There's a bug number for this? > > Acked, queued. (Although I'm not sure the value of pointing to

Re: [PATCH RFC 04/77] PCI/MSI/s390: Remove superfluous check of MSI type

2013-10-02 Thread Greg KH
On Wed, Oct 02, 2013 at 12:48:20PM +0200, Alexander Gordeev wrote: > arch_setup_msi_irqs() hook can only be called from the generic > MSI code which ensures correct MSI type parameter. > > Signed-off-by: Alexander Gordeev > --- > arch/s390/pci/pci.c |2 -- > 1 files changed, 0

Re: [PATCH] sched_clock: fix postinit no sched_clock function check

2013-10-02 Thread Rob Herring
On Wed, Oct 2, 2013 at 12:42 PM, Stephen Boyd wrote: > On 10/02/13 10:27, Santosh Shilimkar wrote: >> On Wednesday 02 October 2013 01:22 PM, Stephen Boyd wrote: >>> On 10/02/13 10:14, Santosh Shilimkar wrote: On Wednesday 02 October 2013 01:09 PM, Will Deacon wrote: > On Wed, Oct 02,

[PATCH RFC 44/77] lpfc: Make MSI-X initialization routine more readable

2013-10-02 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/scsi/lpfc/lpfc_init.c | 23 +++ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 0ec8008..0cfaf20 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++

Re: [PATCH v4 00/17] 64-bit friendly generic sched_clock()

2013-10-02 Thread Will Deacon
On Wed, Oct 02, 2013 at 07:02:58PM +0100, John Stultz wrote: > On 10/02/2013 10:47 AM, Will Deacon wrote: > > On Fri, Jul 19, 2013 at 12:59:44AM +0100, John Stultz wrote: > >> On 07/18/2013 04:21 PM, Stephen Boyd wrote: > >>> This patchset adds support for 64 bit counters in the generic > >>>

Re: [PATCH] Documentation: "kerneli" typo in description for "Serpent cipher algorithm" Bug #60848

2013-10-02 Thread Rob Landley
On 10/02/2013 11:10:37 AM, Kevin Mulvey wrote: change kerneli to kernel as well as kerneli.org to kernel.org Signed-off-by: Kevin Mulvey There's a bug number for this? Acked, queued. (Although I'm not sure the value of pointing to www.kernel.org for this.) Thanks, Rob -- To

Re: [PATCH v2 0/9] procfs: protect /proc//* files with file->f_cred

2013-10-02 Thread Djalal Harouni
On Wed, Oct 02, 2013 at 05:51:15PM +0100, Andy Lutomirski wrote: > On Wed, Oct 2, 2013 at 3:37 PM, Djalal Harouni wrote: > > On Tue, Oct 01, 2013 at 06:40:41PM -0700, Andy Lutomirski wrote: > >> On 10/01/2013 01:26 PM, Djalal Harouni wrote: > >> > /proc//* entries varies at runtime, appropriate

[PATCH RFC 58/77] qib: Update MSI/MSI-X interrupts enablement code

2013-10-02 Thread Alexander Gordeev
As result of recent re-design of the MSI/MSI-X interrupts enabling pattern this driver has to be updated to use the new technique to obtain a optimal number of MSI/MSI-X interrupts required. Signed-off-by: Alexander Gordeev --- drivers/infiniband/hw/qib/qib_pcie.c |4 1 files changed,

[PATCH RFC 34/77] ioat: Update MSI/MSI-X interrupts enablement code

2013-10-02 Thread Alexander Gordeev
As result of recent re-design of the MSI/MSI-X interrupts enabling pattern this driver has to be updated to use the new technique to obtain a optimal number of MSI/MSI-X interrupts required. Signed-off-by: Alexander Gordeev --- drivers/dma/ioat/dma.c | 10 +++--- 1 files changed, 7

Re: [Query] Stack Overflow in "arch/arm/kernel/unwind.c" while unwinding frame

2013-10-02 Thread Catalin Marinas
On 24 September 2013 07:23, Anurag Aggarwal wrote: > While executing unwind backtrace instructions in ARM, in the function > unwind_exec_insn() > there are chances that SP overflows from stack. > > > For example while executing instruction with opcode 0xAE, vsp can go > beyond stack to area that

[PATCH RFC 11/77] benet: Return -ENOSPC when not enough MSI-Xs available

2013-10-02 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/net/ethernet/emulex/benet/be_main.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 100b528..3e2c834 100644 ---

Re: [RFC] perf: mmap2 not covering VM_CLONE regions

2013-10-02 Thread Kees Cook
On Wed, Oct 2, 2013 at 10:49 AM, Stephane Eranian wrote: > On Wed, Oct 2, 2013 at 7:29 PM, Kees Cook wrote: >> On Wed, Oct 2, 2013 at 10:20 AM, Stephane Eranian wrote: >>> On Wed, Oct 2, 2013 at 7:14 PM, Kees Cook wrote: On Wed, Oct 2, 2013 at 6:37 AM, Peter Zijlstra wrote: >

Re: [PATCH] sched_clock: fix postinit no sched_clock function check

2013-10-02 Thread Santosh Shilimkar
On Wednesday 02 October 2013 01:48 PM, Will Deacon wrote: > On Wed, Oct 02, 2013 at 06:42:40PM +0100, Stephen Boyd wrote: >> On 10/02/13 10:27, Santosh Shilimkar wrote: >>> Really... I have not created patch out of fun. >>> Its broken on my keystone machine at least where the sched_clock is >>>

[PATCH RFC 07/77] PCI/MSI: Re-design MSI/MSI-X interrupts enablement pattern

2013-10-02 Thread Alexander Gordeev
Currently pci_enable_msi_block() and pci_enable_msix() interfaces return a error code in case of failure, 0 in case of success and a positive value which indicates the number of MSI-X/MSI interrupts that could have been allocated. The latter value should be passed to a repeated call to the

Re: [PATCH v2 0/9] procfs: protect /proc//* files with file->f_cred

2013-10-02 Thread Kees Cook
On Wed, Oct 2, 2013 at 11:00 AM, Andy Lutomirski wrote: > On Wed, Oct 2, 2013 at 10:48 AM, Kees Cook wrote: >> On Wed, Oct 2, 2013 at 9:51 AM, Andy Lutomirski wrote: >>> On Wed, Oct 2, 2013 at 3:37 PM, Djalal Harouni wrote: On Tue, Oct 01, 2013 at 06:40:41PM -0700, Andy Lutomirski wrote:

[PATCH RFC 74/77] vmxnet3: Limit number of rx queues to 1 if per-queue MSI-Xs failed

2013-10-02 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/net/vmxnet3/vmxnet3_drv.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c index 3df7f32..00dc0d0 100644 ---

[PATCH RFC 41/77] lpfc: Do not call pci_disable_msix() if pci_enable_msix() failed

2013-10-02 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/scsi/lpfc/lpfc_init.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 647f5bf..0803b84 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++

Re: [PATCH V2] tick: Make sleep length calculation more accurate

2013-10-02 Thread Daniel Lezcano
On 10/02/2013 06:42 PM, Frederic Weisbecker wrote: On Wed, Oct 02, 2013 at 06:22:29PM +0200, Daniel Lezcano wrote: On 10/02/2013 05:57 PM, Frederic Weisbecker wrote: 2013/10/2 Daniel Lezcano : The sleep_length is computed in the tick_nohz_stop_sched_tick function but it is used later in the

Re: [PATCH v4 00/17] 64-bit friendly generic sched_clock()

2013-10-02 Thread John Stultz
On 10/02/2013 10:47 AM, Will Deacon wrote: > On Fri, Jul 19, 2013 at 12:59:44AM +0100, John Stultz wrote: >> On 07/18/2013 04:21 PM, Stephen Boyd wrote: >>> This patchset adds support for 64 bit counters in the generic >>> sched_clock code and converts drivers over to use it. Based >>> on

[PATCH RFC 18/77] cciss: Fallback to single MSI mode in case MSI-X failed

2013-10-02 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/block/cciss.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index bf11540..0eea035 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -4081,7 +4081,7 @@ static

Re: applesmc oops in 3.10/3.11

2013-10-02 Thread Guenter Roeck
On Wed, Oct 02, 2013 at 07:24:10PM +0200, Henrik Rydberg wrote: > On Wed, Oct 02, 2013 at 09:47:18AM -0700, Guenter Roeck wrote: > > On Wed, Oct 02, 2013 at 06:34:18PM +0200, Henrik Rydberg wrote: > > > > >>One thing I have seen in all logs is the earlier "send_byte fail" > > > > >>message, so >

Re: [PATCH RFC 34/77] ioat: Update MSI/MSI-X interrupts enablement code

2013-10-02 Thread Williams, Dan J
On Wed, Oct 2, 2013 at 10:31 AM, Williams, Dan J wrote: > [ dropping all cc's except lkml ] > > On Wed, Oct 2, 2013 at 3:48 AM, Alexander Gordeev wrote: >> As result of recent re-design of the MSI/MSI-X interrupts enabling >> pattern this driver has to be updated to use the new technique to >>

Re: [PATCH v2 0/9] procfs: protect /proc//* files with file->f_cred

2013-10-02 Thread Andy Lutomirski
On Wed, Oct 2, 2013 at 10:48 AM, Kees Cook wrote: > On Wed, Oct 2, 2013 at 9:51 AM, Andy Lutomirski wrote: >> On Wed, Oct 2, 2013 at 3:37 PM, Djalal Harouni wrote: >>> On Tue, Oct 01, 2013 at 06:40:41PM -0700, Andy Lutomirski wrote: On 10/01/2013 01:26 PM, Djalal Harouni wrote: >

[PATCH RFC 73/77] vmxnet3: Return -ENOSPC when not enough MSI-X vectors available

2013-10-02 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/net/vmxnet3/vmxnet3_drv.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c index 3518173..3df7f32 100644 --- a/drivers/net/vmxnet3/vmxnet3_drv.c +++

[PATCH RFC 60/77] qlcnic: Return -ENOSPC when not enough MSI-X vectors available

2013-10-02 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c index c4c5023..c6018bb 100644 ---

[PATCH RFC 48/77] mlx5: Return -ENOSPC when not enough MSI-X vectors available

2013-10-02 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/net/ethernet/mellanox/mlx5/core/main.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c index 3573ba4..5e5c9a3 100644 ---

[PATCH RFC 32/77] hpsa: Fallback to single MSI mode in case MSI-X failed

2013-10-02 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/scsi/hpsa.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index eb17b3d..252b65d 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -4112,7 +4112,7 @@ static void

[PATCH] ARM: dts: AM33XX: add ethernet alias's for am33xx

2013-10-02 Thread Dan Murphy
Set the alias for ethernet0 and ethernet1 so that uBoot can set the MAC address appropriately. Currently uBoot cannot find the alias and there for does not set the MAC address. Signed-off-by: Dan Murphy --- arch/arm/boot/dts/am33xx.dtsi |2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH RFC 76/77] vxge: Sanitize MSI-X allocation routine error codes

2013-10-02 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/net/ethernet/neterion/vxge/vxge-main.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c index 5a20eaf..b81ff8b 100644 ---

[PATCH RFC 35/77] ipr: Do not call pci_disable_msi/msix() if pci_enable_msi/msix() failed

2013-10-02 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/scsi/ipr.c |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index 36ac1c3..fb57e21 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c @@ -9255,10 +9255,8 @@ static int

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