Re: [PATCH] x86/mm: fix regression with huge pages on PAE

2015-11-12 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > On Thu, Nov 12, 2015 at 08:48:54AM +0100, Ingo Molnar wrote: > > > > * Borislav Petkov wrote: > > > > > --- a/arch/x86/include/asm/pgtable_types.h > > > +++ b/arch/x86/include/asm/pgtable_types.h > > > @@ -279,17 +279,14 @@ static inline pmdval_t native_pmd_val(p

Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference

2015-11-12 Thread Frans Klaver
Hi, On Thu, Nov 12, 2015 at 8:46 AM, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later. Did you actually run into this? It seems to me that this driver is only probed if and only if we have a match and that therefore of_match_device will a

Re: [PATCH 2/2] thermal: rcar_thermal: use pm_runtime_put_sync()

2015-11-12 Thread Ulf Hansson
On 12 November 2015 at 02:06, Rafael J. Wysocki wrote: > On Wednesday, November 11, 2015 12:03:52 PM Ulf Hansson wrote: >> On 11 November 2015 at 00:57, Rafael J. Wysocki wrote: >> > On Tuesday, November 10, 2015 02:00:38 PM Ulf Hansson wrote: >> >> +Rafael, Alan >> >> >> >> On 10 November 2015 a

Re: [PATCH v2] of: Check for overlap in reserved memory regions

2015-11-12 Thread Michael Ellerman
On Tue, 2015-09-15 at 18:30 -0700, Mitchel Humpherys wrote: > Any overlap in the reserved memory regions (those specified in the > reserved-memory DT node) is a bug. These bugs might go undetected as > long as the contested region isn't used simultaneously by multiple > software agents, which mak

Re: [PATCH] i2c: rcar: fix a possible NULL dereference

2015-11-12 Thread Uwe Kleine-König
Hello Wolfram, On Thu, Nov 12, 2015 at 08:52:38AM +0100, Wolfram Sang wrote: > On Thu, Nov 12, 2015 at 08:44:47AM +0100, Uwe Kleine-König wrote: > > Other than that, the NULL pointer dereference should only happen if the > > device was bound using the driver name. That might be worth to point out

Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference

2015-11-12 Thread Uwe Kleine-König
Hello Corentin, On Thu, Nov 12, 2015 at 08:46:55AM +0100, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later. > > Signed-off-by: LABBE Corentin > --- > drivers/mtd/nand/mxc_nand.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(

Re: [PATCH v2 0/4] KVM: VMX: enable LBR virtualization

2015-11-12 Thread Jian Zhou
On 2015/11/11 23:23, Paolo Bonzini wrote: On 23/10/2015 11:15, Jian Zhou wrote: Changelog in v2: (1) move the implementation into vmx.c (2) migraton is supported (3) add arrays in kvm_vcpu_arch struct to save/restore LBR MSRs at vm exit/entry time. (4) add a parameter of k

Re: [PATCH v2 4/4] x86/entry/64: Bypass enter_from_user_mode on non-context-tracking boots

2015-11-12 Thread Ingo Molnar
* Andy Lutomirski wrote: > On CONFIG_CONTEXT_TRACKING kernels that have context tracking > disabled at runtime (which includes most distro kernels), we still > have the overhead of a call to enter_from_user_mode in interrupt and > exception entries. > > If jump labels are available, this uses t

Re: [kbuild-all] [PATCH V3 4/4] dma: add Qualcomm Technologies HIDMA channel driver

2015-11-12 Thread Fengguang Wu
Hi Arnd, On Wed, Nov 11, 2015 at 09:42:00AM +0100, Arnd Bergmann wrote: > On Wednesday 11 November 2015 10:21:03 Fengguang Wu wrote: > > Hi Sinan, > > > > Sorry please ignore this warning -- it's actually a problem specific > > to the mn10300 arch. I'll disable such warning in mn10300 in future.

Re: [PATCH 0/2] Introduce the request handling for dm-crypt

2015-11-12 Thread Baolin Wang
On 12 November 2015 at 02:18, Mike Snitzer wrote: > On Wed, Nov 11 2015 at 4:31am -0500, > Baolin Wang wrote: > >> Now the dm-crypt code only implemented the 'based-bio' method to encrypt/ >> decrypt block data, which can only hanle one bio at one time. As we know, >> one bio must use the sequen

[PATCH V4] mm: fix kernel crash in khugepaged thread

2015-11-12 Thread yalin wang
This crash is caused by NULL pointer deference, in page_to_pfn() marco, when page == NULL : [ 182.639154 ] Unable to handle kernel NULL pointer dereference at virtual address [ 182.639491 ] pgd = ffc00077a000 [ 182.639761 ] [] *pgd=b9422003, *pud=b9422003,

Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference

2015-11-12 Thread Uwe Kleine-König
On Thu, Nov 12, 2015 at 09:03:11AM +0100, Frans Klaver wrote: > Hi, > > On Thu, Nov 12, 2015 at 8:46 AM, LABBE Corentin > wrote: > > of_match_device could return NULL, and so cause a NULL pointer > > dereference later. > > Did you actually run into this? It seems to me that this driver is > only

Re: [PATCH] ASoC: wm8962: correct addresses for HPF_C_0/1

2015-11-12 Thread Charles Keepax
On Tue, Nov 10, 2015 at 11:23:58PM +0530, sachinpandh...@gmail.com wrote: > From: Sachin Pandhare > > >From datasheet: > R17408 (4400h) HPF_C_1 > R17409 (4401h) HPF_C_0 > 17048 -> 17408 (0x4400) > 17049 -> 17409 (0x4401) > > Signed-off-by: Sachin Pandhare > --- Acked-by: Charles Keepax Thank

Re: [PATCH] mtd: nand: atmel_nand: fix a possible NULL dereference

2015-11-12 Thread Joachim Eastwood
On 12 November 2015 at 08:49, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later. > > Signed-off-by: LABBE Corentin > --- > drivers/mtd/nand/atmel_nand.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/driver

Re: [PATCH] vhost: move is_le setup to the backend

2015-11-12 Thread Greg Kurz
On Fri, 30 Oct 2015 12:42:35 +0100 Greg Kurz wrote: > The vq->is_le field is used to fix endianness when accessing the vring via > the cpu_to_vhost16() and vhost16_to_cpu() helpers in the following cases: > > 1) host is big endian and device is modern virtio > > 2) host has cross-endian support

Re: [RFC][PATCH] x86, fpu: trace points

2015-11-12 Thread Ingo Molnar
* Dave Hansen wrote: > > From: Dave Hansen > > I've been carrying this patch around for a bit and it's helped me > solve at least a couple FPU-related issues. It's a _bit_ of a > hack and probably too indiscriminate for mainline. > > But, I'd be really interested to get something similar in

Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference

2015-11-12 Thread Frans Klaver
On Thu, Nov 12, 2015 at 9:26 AM, Uwe Kleine-König wrote: > On Thu, Nov 12, 2015 at 09:03:11AM +0100, Frans Klaver wrote: >> Hi, >> >> On Thu, Nov 12, 2015 at 8:46 AM, LABBE Corentin >> wrote: >> > of_match_device could return NULL, and so cause a NULL pointer >> > dereference later. >> >> Did you

Re: [PATCH v3 2/4] clk: rockchip: set an ID for crypto clk

2015-11-12 Thread Heiko Stuebner
Am Donnerstag, 12. November 2015, 09:13:20 schrieb Zain: > > On 2015年11月12日 07:57, Heiko Stuebner wrote: > > Am Mittwoch, 11. November 2015, 14:35:57 schrieb Zain Wang: > >> Set an ID for crypto clk, so that it can be called in other part. > >> > >> Signed-off-by: Zain Wang > > this should go in

Re: [Patch v7 4/7] PCI/ACPI: Add interface acpi_pci_root_create()

2015-11-12 Thread Jiang Liu
On 2015/11/12 1:46, Lorenzo Pieralisi wrote: > On Tue, Nov 10, 2015 at 01:50:46PM +0800, Jiang Liu wrote: > > [...] > In particular, I would like to understand, for an eg DWordIO descriptor, what Range Minimum, Range Maximum and Translation Offset represent, they can't mean differe

Re: [PATCH] x86/mm: fix regression with huge pages on PAE

2015-11-12 Thread Kirill A. Shutemov
Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > On Thu, Nov 12, 2015 at 08:48:54AM +0100, Ingo Molnar wrote: > > > > > > * Borislav Petkov wrote: > > > > > > > --- a/arch/x86/include/asm/pgtable_types.h > > > > +++ b/arch/x86/include/asm/pgtable_types.h > > > > @@ -279,17 +279,14 @@

Re: [PATCH] i2c: rcar: fix a possible NULL dereference

2015-11-12 Thread Wolfram Sang
On Thu, Nov 12, 2015 at 09:09:26AM +0100, Uwe Kleine-König wrote: > Hello Wolfram, > > On Thu, Nov 12, 2015 at 08:52:38AM +0100, Wolfram Sang wrote: > > On Thu, Nov 12, 2015 at 08:44:47AM +0100, Uwe Kleine-König wrote: > > > Other than that, the NULL pointer dereference should only happen if the >

Re: [PATCH] mm, oom: Give __GFP_NOFAIL allocations access to memory reserves

2015-11-12 Thread Michal Hocko
On Wed 11-11-15 10:54:46, Johannes Weiner wrote: > On Wed, Nov 11, 2015 at 02:48:17PM +0100, mho...@kernel.org wrote: > > From: Michal Hocko > > > > __GFP_NOFAIL is a big hammer used to ensure that the allocation > > request can never fail. This is a strong requirement and as such > > it also des

Re: [PATCH] null_blk: Register as a LightNVM device

2015-11-12 Thread Christoph Hellwig
On Wed, Nov 11, 2015 at 11:06:38AM +0100, Matias Bj??rling wrote: > Add support for registering as a LightNVM device. This allows us to > evaluate the performance of the LightNVM library. > > In /drivers/Makefile, LightNVM is moved above block device drivers > to make sure that the LightNVM media

Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference

2015-11-12 Thread Uwe Kleine-König
CC += devicet...@vger.kernel.org, gregkh On Thu, Nov 12, 2015 at 09:36:55AM +0100, Frans Klaver wrote: > On Thu, Nov 12, 2015 at 9:26 AM, Uwe Kleine-König > wrote: > > On Thu, Nov 12, 2015 at 09:03:11AM +0100, Frans Klaver wrote: > >> Hi, > >> > >> On Thu, Nov 12, 2015 at 8:46 AM, LABBE Corentin

Re: [PATCH] x86/mm: fix regression with huge pages on PAE

2015-11-12 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > diff --git a/arch/x86/include/asm/page_types.h > b/arch/x86/include/asm/page_types.h > index c5b7fb2774d0..cc071c6f7d4d 100644 > --- a/arch/x86/include/asm/page_types.h > +++ b/arch/x86/include/asm/page_types.h > @@ -9,19 +9,21 @@ > #define PAGE_SIZE(_AC(1,UL)

Re: [PATCH] x86/mm: fix regression with huge pages on PAE

2015-11-12 Thread Ingo Molnar
* Kirill A. Shutemov wrote: > > But, what problems do you expect with having a wider mask than its primary > > usage? > > If it's used for 32-bit values it will be truncated down safely. (But I > > have not > > tested it, so I might be missing some complication.) > > Yeah, I basically worry

Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference

2015-11-12 Thread Frans Klaver
On Thu, Nov 12, 2015 at 9:53 AM, Uwe Kleine-König wrote: > CC += devicet...@vger.kernel.org, gregkh You added linux@pengutronix instead of devicetree. > > On Thu, Nov 12, 2015 at 09:36:55AM +0100, Frans Klaver wrote: >> On Thu, Nov 12, 2015 at 9:26 AM, Uwe Kleine-König >> wrote: >> > On Thu, No

RE: [PATCH] PCI: pcie-rcar: Fix OF node passed to MSI irq domain

2015-11-12 Thread Phil Edworthy
Hi Marc, On 11 November 2015 16:38, Marc Zyngier wrote: > On Tue, 10 Nov 2015 16:52:33 +0100 > Thierry Reding wrote: > > > On Mon, Nov 09, 2015 at 06:01:49PM +, Phil Edworthy wrote: > > > Hi Thierry, > > > > > > On 09 November 2015 17:24, Phil wrote: > > > > On 09 November 2015 16:11, Thierr

Re: [PATCH 2/2] arm64: bpf: add BPF XADD instruction

2015-11-12 Thread Peter Zijlstra
On Wed, Nov 11, 2015 at 03:40:15PM -0800, Alexei Starovoitov wrote: > On Wed, Nov 11, 2015 at 11:21:35PM +0100, Peter Zijlstra wrote: > > On Wed, Nov 11, 2015 at 11:55:59AM -0800, Alexei Starovoitov wrote: > > > Therefore things like memory barriers, full set of atomics are not > > > applicable >

Re: [PATCH v6 13/17] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2015-11-12 Thread Andreas Schwab
Arnd Bergmann writes: > I think either way is fine for the two examples. I think it's clear > that we want __NR_llseek as 62 and __NR_mmap2 as 222. Whether those > use the compat_sys_llseek/compat_sys_mmap2_wrapper or > sys_lseek/sys_mmap entry points is not overly important, we can use > whateve

Re: [PATCH v2 3/4] KVM: X86: Migration is supported

2015-11-12 Thread Paolo Bonzini
On 12/11/2015 08:06, Jian Zhou wrote: >> >> I think you can just do this in kvm_x86_ops->set_msr. The old >> implementation for DEBUGCTL MSR can be moved to svm.c. > > I think you mean "moved to vmx.c"? No, the old implementation is moved from x86.c to svm.c. The new implementation you have

Re: [PATCH] x86/mm: fix regression with huge pages on PAE

2015-11-12 Thread Kirill A. Shutemov
On Thu, Nov 12, 2015 at 09:54:18AM +0100, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > diff --git a/arch/x86/include/asm/page_types.h > > b/arch/x86/include/asm/page_types.h > > index c5b7fb2774d0..cc071c6f7d4d 100644 > > --- a/arch/x86/include/asm/page_types.h > > +++ b/arch/x86/in

Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference

2015-11-12 Thread Uwe Kleine-König
On Thu, Nov 12, 2015 at 09:57:07AM +0100, Frans Klaver wrote: > On Thu, Nov 12, 2015 at 9:53 AM, Uwe Kleine-König > wrote: > > CC += devicet...@vger.kernel.org, gregkh > > You added linux@pengutronix instead of devicetree. Well I substituted Sascha by ker...@pengutronix.de on purpose, but consid

Re: [PATCH v2] gpiolib: tighten up ACPI legacy gpio lookups

2015-11-12 Thread Mika Westerberg
On Wed, Nov 11, 2015 at 11:45:30AM -0800, Dmitry Torokhov wrote: > We should not fall back to the legacy unnamed gpio lookup style if the > driver requests gpios with different names, because we'll give out the same > gpio twice. Let's keep track of the names that were used for the device and > onl

Re: [PATCH] i2c: rcar: fix a possible NULL dereference

2015-11-12 Thread Uwe Kleine-König
On Thu, Nov 12, 2015 at 09:48:37AM +0100, Wolfram Sang wrote: > On Thu, Nov 12, 2015 at 09:09:26AM +0100, Uwe Kleine-König wrote: > > Hello Wolfram, > > > > On Thu, Nov 12, 2015 at 08:52:38AM +0100, Wolfram Sang wrote: > > > On Thu, Nov 12, 2015 at 08:44:47AM +0100, Uwe Kleine-König wrote: > > > >

Re: [PATCH RESEND 15/16] leds: add LM3633 driver

2015-11-12 Thread Jacek Anaszewski
Hi Milo, On 11/11/2015 03:16 AM, Kim, Milo wrote: Hi Jacek, On 11/10/2015 10:44 PM, Jacek Anaszewski wrote: +static ssize_t lm3633_led_store_pattern_levels(struct device *dev, >>>+ struct device_attribute *attr, >>>+ const char *buf, size_t l

Re: [dm-devel] [PATCH 0/2] Introduce the request handling for dm-crypt

2015-11-12 Thread Christoph Hellwig
On Wed, Nov 11, 2015 at 01:18:13PM -0500, Mike Snitzer wrote: > But I'm trying to keep an open mind... show me data that real hardware > _really_ benefits and we'll go from there. Again, it needs to be "OMG, > this is amazing!" level performance to warrant any further serious > consideration. Als

Re: [dm-devel] [PATCH 0/2] Introduce the request handling for dm-crypt

2015-11-12 Thread Christoph Hellwig
On Thu, Nov 12, 2015 at 10:36:34AM +0800, Baolin Wang wrote: > That's right. But we'll not introduce the duality things, cause we > will remove the bio based things in dm-crypt if the request based > things are accepted. No, you will NOT remote the bio based path. That would break all kinds of pe

Re: [PATCH] mtd: nand: atmel_nand: fix a possible NULL dereference

2015-11-12 Thread kbuild test robot
Hi LABBE, [auto build test WARNING on mtd/master] [also build test WARNING on v4.3 next-20151112] url: https://github.com/0day-ci/linux/commits/LABBE-Corentin/mtd-nand-atmel_nand-fix-a-possible-NULL-dereference/20151112-155258 base: git://git.infradead.org/linux-mtd.git master config: arm

[GIT PULL] Second batch of KVM changes for 4.4 (v2)

2015-11-12 Thread Paolo Bonzini
Linus, The following changes since commit a3eaa8649e4c6a6afdafaa04b9114fb230617bb1: KVM: VMX: Fix commit which broke PML (2015-11-05 11:34:11 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes up to 370289756

Re: [PATCH] i2c: rcar: fix a possible NULL dereference

2015-11-12 Thread Wolfram Sang
> Try adding the following to a device tree: > > i2c-rcar { > > } "Better safe than sorry" won again ;) signature.asc Description: Digital signature

Re: [PATCH] X.509: Fix the time validation

2015-11-12 Thread James Morris
On Wed, 11 Nov 2015, David Howells wrote: > This fixes CVE-2015-5327. It affects kernels from 4.3-rc1 onwards. This doesn't apply to current Linus, please fix and resend. -- James Morris -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to ma

Re: livepatch: reuse module loader code to write relocations

2015-11-12 Thread Petr Mladek
On Wed 2015-11-11 13:27:18, Jessica Yu wrote: > Basically, the patch module code is expected to build the reloc_secs > list for each object that is being patched. For example in kpatch, the > patch module generates this list in patch_init(). Like you guessed, it > does go through all the elf sectio

Re: [PATCH 2/2] usb: phy: msm: fix connect/disconnect bug for dragonboard OTG port

2015-11-12 Thread Peter Chen
On Wed, Nov 11, 2015 at 09:48:00AM -0800, Tim Bird wrote: > > > On 11/10/2015 07:14 PM, Peter Chen wrote: > > On Tue, Nov 10, 2015 at 04:46:51PM -0800, Tim Bird wrote: > >> This fixes a bug where if you disconnect and re-connect the USB cable, > >> the gadget driver stops working. > >> > >> Add s

Re: [PATCH 0/2] Introduce the request handling for dm-crypt

2015-11-12 Thread Jan Kara
On Thu 12-11-15 10:15:32, Baolin Wang wrote: > On 11 November 2015 at 17:48, Christoph Hellwig wrote: > > On Wed, Nov 11, 2015 at 05:31:43PM +0800, Baolin Wang wrote: > >> Now the dm-crypt code only implemented the 'based-bio' method to encrypt/ > >> decrypt block data, which can only hanle one bi

Re: [PATCH] PCI: dra7xx: mark dra7xx_pcie_msi irq as IRQF_NO_THREAD

2015-11-12 Thread Sebastian Andrzej Siewior
On 11/06/2015 08:59 PM, Grygorii Strashko wrote: > Hi Sebastian, Hi Grygorii, > - IRQF_NO_THREAD is the first considered option for such kind of issues. > But: Now in LKML there are ~60 occurrences of IRQF_NO_THREAD - most of > them are used by Arch code. And It's only used by 6 drivers (driv

Re: [PATCH v4 2/2] leds: rt5033: Add RT5033 Flash led device driver

2015-11-12 Thread Jacek Anaszewski
Hi Ingi, On 11/12/2015 08:57 AM, Ingi Kim wrote: [...] +regmap_write(led->regmap, RT5033_REG_FLED_FUNCTION1, val); +} else { +regmap_update_bits(led->regmap, RT5033_REG_FLED_FUNCTION1, + RT5033_FLED_FUNC1_MASK, RT5033_FLED_PINCTRL | + rt503

Re: [PATCH v8 10/17] phy: Add driver for rockchip Display Port PHY

2015-11-12 Thread Heiko Stuebner
Hi Yakir, Am Donnerstag, 12. November 2015, 10:36:51 schrieb Yakir Yang: > On 11/12/2015 07:23 AM, Heiko Stuebner wrote: > > Am Mittwoch, 28. Oktober 2015, 16:30:33 schrieb Yakir Yang: > >> Add phy driver for the Rockchip DisplayPort PHY module. This > >> is required to get DisplayPort working in

Re: [PATCH v6 13/17] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2015-11-12 Thread Arnd Bergmann
On Thursday 12 November 2015 09:58:43 Andreas Schwab wrote: > Arnd Bergmann writes: > > > I think either way is fine for the two examples. I think it's clear > > that we want __NR_llseek as 62 and __NR_mmap2 as 222. Whether those > > use the compat_sys_llseek/compat_sys_mmap2_wrapper or > > sys_l

Re: [RFC 1/4] iio: ina2xx: add direct IO support for TI INA2xx Power Monitors

2015-11-12 Thread Marc Titinger
On 11/11/2015 11:14, Daniel Baluta wrote: On Tue, Nov 10, 2015 at 6:07 PM, Marc Titinger wrote: Basic support or direct IO raw read, with averaging attribute. Values are RAW, INT_PLUS_MICRO (Volt/Ampere/Watt). Hi Daniel, thanks for the review, comments bellow, Marc. IIO context has 1 de

RE: PCIe host controller behind IOMMU on ARM

2015-11-12 Thread Phil Edworthy
Hi Liviu, Arnd, On 11 November 2015 18:25, LIviu wrote: > On Mon, Nov 09, 2015 at 12:32:13PM +, Phil Edworthy wrote: > > Hi Liviu, Will, > > > > On 04 November 2015 15:19, Phil wrote: > > > On 04 November 2015 15:02, Liviu wrote: > > > > On Wed, Nov 04, 2015 at 02:48:38PM +, Phil Edworthy

Re: [PATCH] mtd: nand: atmel_nand: fix a possible NULL dereference

2015-11-12 Thread LABBE Corentin
On Thu, Nov 12, 2015 at 09:29:57AM +0100, Joachim Eastwood wrote: > On 12 November 2015 at 08:49, LABBE Corentin > wrote: > > of_match_device could return NULL, and so cause a NULL pointer > > dereference later. > > > > Signed-off-by: LABBE Corentin > > --- > > drivers/mtd/nand/atmel_nand.c | 7

[PATCH] VMCI: Use 32bit atomics for queue headers on X86_32

2015-11-12 Thread Jorgen Hansen
This change restricts the reading and setting of the head and tail pointers on 32bit X86 to 32bit for both correctness and performance reasons. On uniprocessor X86_32, the atomic64_read may be implemented as a non-locked cmpxchg8b. This may result in updates to the pointers done by the VMCI device

[PATCH] X.509: Fix the time validation [ver #2]

2015-11-12 Thread David Howells
This fixes CVE-2015-5327. It affects kernels from 4.3-rc1 onwards. Fix the X.509 time validation to use month number-1 when looking up the number of days in that month. Also put the month number validation before doing the lookup so as not to risk overrunning the array. This can be tested by do

Re: [RFC 1/4] iio: ina2xx: add direct IO support for TI INA2xx Power Monitors

2015-11-12 Thread Marc Titinger
On 11/11/2015 13:09, Daniel Baluta wrote: Signed-off-by: Marc Titinger --- drivers/iio/adc/Kconfig | 9 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/ina2xx-iio.c | 404 +++ One more thing. In IIO we do not prefer generic names for

Re: [PATCH] tools/net: Use include/uapi with __EXPORTED_HEADERS__

2015-11-12 Thread Daniel Borkmann
On 11/11/2015 11:24 PM, Kamal Mostafa wrote: Use the local uapi headers to keep in sync with "recently" added #define's (e.g. SKF_AD_VLAN_TPID). Refactored CFLAGS, and bpf_asm doesn't need -I. Fixes: 3f356385e8a449e1d7cfc6b6f8d634ac4f5581a0 Signed-off-by: Kamal Mostafa Acked-by: Daniel Borkm

Re: [PATCH 0/2] Introduce the request handling for dm-crypt

2015-11-12 Thread Baolin Wang
On 12 November 2015 at 17:17, Jan Kara wrote: > On Thu 12-11-15 10:15:32, Baolin Wang wrote: >> On 11 November 2015 at 17:48, Christoph Hellwig wrote: >> > On Wed, Nov 11, 2015 at 05:31:43PM +0800, Baolin Wang wrote: >> >> Now the dm-crypt code only implemented the 'based-bio' method to encrypt/

Re: [PATCH v3 1/5] Implement an ioctl to support the USMTMC-USB488 READ_STATUS_BYTE operation.

2015-11-12 Thread Andy Shevchenko
On Thu, Nov 12, 2015 at 11:07 AM, dave penkler wrote: > Thanks for your comments, I will resubmit taking into account all > suggestions. > >> > - redundant parens Example 1. + (atomic_read(&data->iin_data_valid) != 0), >> > - pieces of code takes whole line when they are

RE: [PATCH] [v4] x86, suspend: Save/restore extra MSR registers for suspend

2015-11-12 Thread Chen, Yu C
Hi, > -Original Message- > From: Doug Smythies [mailto:dsmyth...@telus.net] > Sent: Friday, November 06, 2015 11:34 PM > To: Chen, Yu C > Cc: Wysocki, Rafael J; t...@linutronix.de; h...@zytor.com; b...@alien8.de; > Zhang, Rui; linux...@vger.kernel.org; x...@kernel.org; linux- > ker...@vger

Re: [RFC] usb: dwc2: hcd: fix split schedule issue

2015-11-12 Thread Yunzhi Li
Hi John 在 2015/11/12 12:29, John Youn 写道: On 11/11/2015 4:22 PM, Doug Anderson wrote: John, On Fri, Nov 6, 2015 at 2:04 AM, Yunzhi Li wrote: hi John , As we talked yesterday, I tried to fix the split schedule sequence. This patch will avoid scheduling SSPLIT-IN packet for another device

Re: [PATCH v6 13/17] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2015-11-12 Thread Andreas Schwab
Arnd Bergmann writes: > What do you mean with 32-bit off_t? An ABI with 32-bit off_t, ie. all currently implemented 32-bit ABIs. > Do you mean that glibc emulates a 32-bit off_t on top of the 64-bit > __kernel_loff_t? Glibc is bridging the user-space ABI to the kernel ABI. Andreas. -- Andre

Re: PCIe host controller behind IOMMU on ARM

2015-11-12 Thread Arnd Bergmann
On Thursday 12 November 2015 09:26:33 Phil Edworthy wrote: > On 11 November 2015 18:25, LIviu wrote: > > On Mon, Nov 09, 2015 at 12:32:13PM +, Phil Edworthy wrote: > > I think you're mixing things a bit or not explaining them very well. Having > > the > > PCIe controller limited to 32-bit AXI

[PATCH] mfd: ab8500: delete static IRQ resources

2015-11-12 Thread Linus Walleij
The platforms that use the AB8500 define all IRQ resources in the device tree and they are automatically populated by matching the .of_compatible string. These static resources are just surplus baggage these days. Signed-off-by: Linus Walleij --- drivers/mfd/ab8500-core.c | 482 -

Re: [PATCH] mm: Allow GFP_IOFS for page_cache_read page cache allocation

2015-11-12 Thread Jan Kara
On Wed 11-11-15 15:13:53, mho...@kernel.org wrote: > From: Michal Hocko > > page_cache_read has been historically using page_cache_alloc_cold to > allocate a new page. This means that mapping_gfp_mask is used as the > base for the gfp_mask. Many filesystems are setting this mask to > GFP_NOFS to

Re: [PATCH V4 2/4] dma: add Qualcomm Technologies HIDMA management driver

2015-11-12 Thread Andy Shevchenko
On Thu, Nov 12, 2015 at 8:41 AM, Sinan Kaya wrote: > The Qualcomm Technologies HIDMA device has been designed > to support virtualization technology. The driver has been > divided into two to follow the hardware design. > > 1. HIDMA Management driver > 2. HIDMA Channel driver > > Each HIDMA HW con

[GIT PULL] Security subsystem bugfixes for 4.4

2015-11-12 Thread James Morris
This includes several fixes for TPM, as well as a fix for the x.509 certificate parser to address CVE-2015-5327. Please pull. --- The following changes since commit 5d50ac70fe98518dbf620bfba8184254663125eb: Merge tag 'xfs-for-linus-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/dgc/l

Re: [PATCH] acpi: add support for extended IRQ to PCI link

2015-11-12 Thread Andy Shevchenko
On Thu, Nov 12, 2015 at 8:14 AM, Sinan Kaya wrote: > The ACPI compiler uses the extended format when used > interrupt numbers are greater than 256. The PCI link code > currently only supports simple interrupt format. The IRQ > numbers are represented using 32 bits when extended IRQ > syntax. This

Re: [PATCH v3 0/4] crypto: add crypto accelerator support for rk3288

2015-11-12 Thread Heiko Stuebner
Am Mittwoch, 11. November 2015, 14:35:55 schrieb Zain Wang: > This commit support three cipher(AES/DES/DES3) and two chainmode(ecb/cbc), > and the more algorithms and new hash drivers will be added later on. I gave this a spin using tcrypt on my rk3288 chromebook and it seems to work nicely for mo

[PATCH] serial: imx: fix clk_prepare/unprepare usage

2015-11-12 Thread Marcus Folkesson
clk_prepare/unprapare APIs are not allowed in atomic context, so move prepare/unprepare to probe/remove and use clk_enable/disable instead. Signed-off-by: Marcus Folkesson --- drivers/tty/serial/imx.c | 45 - 1 file changed, 28 insertions(+), 17 deleti

Re: [PATCH 3/3] tools/vm/slabinfo: update struct slabinfo members' types

2015-11-12 Thread David Rientjes
On Thu, 12 Nov 2015, Sergey Senozhatsky wrote: > > This has nothing to do with object_size in the kernel. > > what we have in slabinfo as slab_size(), ->object_size, etc. > comming from slub's sysfs attrs: > > chdir("/sys/kernel/slab") > while readdir > ... >

[PATCH v3 1/2] perf/core: fix RCU problem with cgroup context switching code

2015-11-12 Thread Stephane Eranian
The RCU checker detected RCU violation in the cgroup switching routines perf_cgroup_sched_in() and perf_cgroup_sched_out(). We were dereferencing cgroup from task without hold the rcu lock. Fix this mov holding the rcu read lock. We move the locking from perf_cgroup_switch() to avoid double locking

[PATCH v3 0/2] perf/core: rcu fixes

2015-11-12 Thread Stephane Eranian
This short patch series fixes some issues with RCU locking in the generic perf layer. Patch 1 fixes cgroup switching rcu issues related to the fact that perf_cgroup_sched_out() and perf_cgroup_sched_in() were missing some rcu read lock to protect the reference to the cgroup. Consequently, we move

Re: [PATCH v3 4/4] ARM: dts: rockchip: Add Crypto node for rk3288

2015-11-12 Thread Heiko Stuebner
Am Mittwoch, 11. November 2015, 14:35:59 schrieb Zain Wang: > Add Crypto node for rk3288 including crypto controller and dma clk. > > Signed-off-by: Zain Wang I'd like to pick this one and the clock-patch2 up, once the crypto driver itself got accepted and we have an Ack from the clock-maintaine

[PATCH v3 2/2] perf/core: robustify perf_cgroup_from_task rcu checks

2015-11-12 Thread Stephane Eranian
This patch reinforces the lockdep checks performed by perf_cgroup_from_tsk() by passing the perf_event_context whenever possible. It is okay to not hold the rcu read lock when we know we hold the ctx->lock. This patch makes sure this property holds. In some functions, such as perf_cgroup_sched_in(

Re: [PATCH v14 1/5] lightnvm: Support for Open-Channel SSDs

2015-11-12 Thread Matias Bjørling
On 11/11/2015 11:46 PM, Geert Uytterhoeven wrote: On Wed, Oct 28, 2015 at 7:54 PM, Matias Bjørling wrote: +struct nvm_dev_ops { [...] + uint8_t max_phys_sect; +}; --- /dev/null +++ b/drivers/lightnvm/core.c +int nvm_register(struct request_queue *q, char *disk_na

Re: [PATCH 15/20] staging/wilc1000: pass hif operations through initialization

2015-11-12 Thread glen lee
Hi arnd, I appreciate the patches. I did test this patch series on h/w which is arm based MCU. From this patch wilc is not working properly. After downloading firmware, the firmware cannot start and it fails. I double check this patch and the previous one(14/20) which works fine. I cannot find t

Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference

2015-11-12 Thread LABBE Corentin
On Thu, Nov 12, 2015 at 09:19:09AM +0100, Uwe Kleine-König wrote: > Hello Corentin, > > On Thu, Nov 12, 2015 at 08:46:55AM +0100, LABBE Corentin wrote: > > of_match_device could return NULL, and so cause a NULL pointer > > dereference later. > > > > Signed-off-by: LABBE Corentin > > --- > > dri

Re: [PATCH 0/2] Introduce the request handling for dm-crypt

2015-11-12 Thread Mark Brown
On Thu, Nov 12, 2015 at 04:20:41PM +0800, Baolin Wang wrote: > 3. perforamence data > It is just a simple dd test result, and will provide the formal report > in future. But from the simple test, we can see the improvement. It's probably also worth pointing out that Qualcomm have been shipping an

Re: module: save load_info for livepatch modules

2015-11-12 Thread Petr Mladek
On Wed 2015-11-11 23:44:08, Jessica Yu wrote: > +++ Petr Mladek [11/11/15 15:31 +0100]: > >On Mon 2015-11-09 23:45:52, Jessica Yu wrote: > >>diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c > >>index 6e53441..087a8c7 100644 > >>--- a/kernel/livepatch/core.c > >>+++ b/kernel/livepatch/

RE: [PATCH] mtd: spi-nor: fsl-quadspi: add big-endian support

2015-11-12 Thread Yao Yuan
On Wed, 2015-11-11 at 11:51 -0600, Han Xu wrote: > On Fri, Oct 30, 2015 at 04:49:41AM -0500, Yuan Yao-B46683 wrote: > > Hi Fabio Estevam, > > > > Thanks for your suggestion. > > We have an internal discussions for that. > > > > We think that: > > According to the initial commit message of regmap, i

Re: [PATCH v4 2/2] leds: rt5033: Add RT5033 Flash led device driver

2015-11-12 Thread Ingi Kim
Hi Jacek, On 2015년 11월 12일 18:21, Jacek Anaszewski wrote: > Hi Ingi, > > On 11/12/2015 08:57 AM, Ingi Kim wrote: > [...] +regmap_write(led->regmap, RT5033_REG_FLED_FUNCTION1, val); +} else { +regmap_update_bits(led->regmap, RT5033_REG_FLED_FUNCTION1, +

Shut up unhandled MSR warnings

2015-11-12 Thread Borislav Petkov
Hey Paolo, do we apply stuff like that below? When booting guests all the time here, dmesg gets filled up with those "unhandled rdmsr" useless warnings. The patch below shuts them up. The only problem is that the IC CFG MSR has those fields defined starting from F15h and I don't see a way to che

Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference

2015-11-12 Thread Uwe Kleine-König
Hello, On Thu, Nov 12, 2015 at 11:03:28AM +0100, LABBE Corentin wrote: > On Thu, Nov 12, 2015 at 09:19:09AM +0100, Uwe Kleine-König wrote: > > Hello Corentin, > > > > On Thu, Nov 12, 2015 at 08:46:55AM +0100, LABBE Corentin wrote: > > > of_match_device could return NULL, and so cause a NULL point

Re: [PATCH] FS-Cache: Add missing initialization of ret in cachefiles_write_page()

2015-11-12 Thread David Howells
Geert Uytterhoeven wrote: > - int ret; > + int ret = 0; This isn't quite the right solution. The uninitialised error path needs to set -ENOBUFS. Unfortunately, my compiler doesn't show a warning:-/ David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

[PATCH net-next RFC V3 1/3] vhost: introduce vhost_has_work()

2015-11-12 Thread Jason Wang
This path introduces a helper which can give a hint for whether or not there's a work queued in the work list. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 7 +++ drivers/vhost/vhost.h | 1 + 2 files changed, 8 insertions(+) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.

[PATCH net-next RFC V3 0/3] basic busy polling support for vhost_net

2015-11-12 Thread Jason Wang
Hi all: This series tries to add basic busy polling for vhost net. The idea is simple: at the end of tx/rx processing, busy polling for new tx added descriptor and rx receive socket for a while. The maximum number of time (in us) could be spent on busy polling was specified ioctl. Test were done

[PATCH net-next RFC V3 3/3] vhost_net: basic polling support

2015-11-12 Thread Jason Wang
This patch tries to poll for new added tx buffer or socket receive queue for a while at the end of tx/rx processing. The maximum time spent on polling were specified through a new kind of vring ioctl. Signed-off-by: Jason Wang --- drivers/vhost/net.c| 77 +

[PATCH net-next RFC V3 2/3] vhost: introduce vhost_vq_more_avail()

2015-11-12 Thread Jason Wang
Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 26 +- drivers/vhost/vhost.h | 1 + 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 163b365..b86c5aa 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/

Re: [RFC 4/4] iio: ina2xx: add SOFTWARE buffer mode using an iio kfifo.

2015-11-12 Thread Marc Titinger
On 10/11/2015 19:23, Lars-Peter Clausen wrote: On 11/10/2015 05:07 PM, Marc Titinger wrote: Capture the active scan_elements into a kfifo. The capture thread will compute the remaining time until the next capture tick, and do an active wait (udelay). This will produce a stream of up to fours ch

Re: MIPS: BMIPS: Enable GZIP ramdisk and timed printks

2015-11-12 Thread Andreas Ziegler
Hi Florian, your patch "MIPS: BMIPS: Enable GZIP ramdisk and timed printks" showed up as commit fb9e5642aa9e in linux-next today (that is, next-20151112). I noticed it because we (a research group from Erlangen[0]) are running daily checks on linux-next. Your commit adds two entries to

Re: [PATCH net-next RFC V3 0/3] basic busy polling support for vhost_net

2015-11-12 Thread Jason Wang
On 11/12/2015 06:16 PM, Jason Wang wrote: > Hi all: > > This series tries to add basic busy polling for vhost net. The idea is > simple: at the end of tx/rx processing, busy polling for new tx added > descriptor and rx receive socket for a while. The maximum number of > time (in us) could be spen

Re: [RFC 4/4] iio: ina2xx: add SOFTWARE buffer mode using an iio kfifo.

2015-11-12 Thread Lars-Peter Clausen
On 11/12/2015 11:18 AM, Marc Titinger wrote: [...] >> Slightly OT, but do you already have some Sigrok IIO support? I have this >> scheduled for end of the month, maybe we can align our strategies here and >> avoid duplicated work. > > How fortunate! I've started some preliminary work like cloning

Re: [PATCH 1/3 v4] livepatch: add old_sympos as disambiguator field to klp_func

2015-11-12 Thread Miroslav Benes
Next to Josh's remarks I have some more (mainly nitpicks, so it is often up to you). On Wed, 11 Nov 2015, Chris J Arges wrote: > In cases of duplicate symbols, old_sympos will be used to disambiguate > instead of old_addr. By default old_sympos will be 0, and patching will > only succeed if the

Re: [PATCH] FS-Cache: Add missing initialization of ret in cachefiles_write_page()

2015-11-12 Thread Geert Uytterhoeven
Hi David, On Thu, Nov 12, 2015 at 11:15 AM, David Howells wrote: > Geert Uytterhoeven wrote: > >> - int ret; >> + int ret = 0; > > This isn't quite the right solution. The uninitialised error path needs to > set -ENOBUFS. That's what your commit 102f4d900c9c8f5e ("FS-Cache: Handle a wr

Re: [PATCH 2/3 v4] livepatch: add old_sympos as disambiguator field to klp_reloc

2015-11-12 Thread Miroslav Benes
On Wed, 11 Nov 2015, Chris J Arges wrote: > In cases of duplicate symbols, sympos will be used to disambiguate instead > of val. By default old_sympos will be 0, and patching will only succeed if > the symbol is unique. Specifying a positive value will ensure that > occurrence of the symbol will b

Re: module: save load_info for livepatch modules

2015-11-12 Thread Petr Mladek
On Thu 2015-11-12 00:33:12, Jessica Yu wrote: > +++ Miroslav Benes [11/11/15 15:17 +0100]: > >On Mon, 9 Nov 2015, Jessica Yu wrote: > > > >>diff --git a/include/linux/module.h b/include/linux/module.h > >>index 3a19c79..c8680b1 100644 > >>--- a/include/linux/module.h > >>+++ b/include/linux/module.

Re: [PATCH 4/4] locking: Introduce smp_cond_acquire()

2015-11-12 Thread Peter Zijlstra
On Thu, Nov 12, 2015 at 03:14:51PM +0800, Boqun Feng wrote: > Hmm.. probably incorrect.. because the ACQUIRE semantics of spin_lock() > only guarantees that the memory operations following spin_lock() can't > be reorder before the *LOAD* part of spin_lock() not the *STORE* part, > i.e. the case bel

Re: [PATCH 0/4] dm verity: add support for error correction

2015-11-12 Thread Milan Broz
On 11/09/2015 08:19 PM, Sami Tolvanen wrote: ... > We don't see actual I/O errors very often. Most corruption we've seen > is caused by flaky hardware that doesn't return errors. However, I can > certainly change to code to attempt recovery in this case too. So if I understand it correctly, there

Re: PCIe host controller behind IOMMU on ARM

2015-11-12 Thread liviu.du...@arm.com
On Thu, Nov 12, 2015 at 09:26:33AM +, Phil Edworthy wrote: > Hi Liviu, Arnd, > > On 11 November 2015 18:25, LIviu wrote: > > On Mon, Nov 09, 2015 at 12:32:13PM +, Phil Edworthy wrote: > > > Hi Liviu, Will, > > > > > > On 04 November 2015 15:19, Phil wrote: > > > > On 04 November 2015 15:02

Re: [PATCH v4 2/3] mtd: nand: Add support for Arasan Nand Flash Controller

2015-11-12 Thread Andy Shevchenko
On Thu, 2015-11-12 at 10:18 +0530, punnaiah choudary kalluri wrote: > On Mon, Nov 9, 2015 at 7:20 PM, Andy Shevchenko > wrote: > > On Thu, 2015-11-05 at 08:19 +0530, Punnaiah Choudary Kalluri wrote: > > > Added the basic driver for Arasan Nand Flash Controller used in > > > Zynq UltraScale+ MPSoC.

  1   2   3   4   5   6   7   8   9   10   >