[GIT PULL] lsm: fix smack_inode_removexattr and xattr_getsecurity memleak

2017-10-04 Thread James Morris
Please pull this fix for v4.14-rc4. It fixes a bug in xattr_getsecurity() where security_release_secctx() was being called instead of kfree(), which leads to a memory leak in the capabilities code. smack_inode_getsecurity is also fixed to behave correctly when called from there. The followin

Re: [PATCH] cpufreq: docs: Drop intel_pstate.txt from index.txt

2017-10-04 Thread Viresh Kumar
On Thu, Sep 28, 2017 at 5:26 AM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Commit 33fc30b47098 (cpufreq: intel_pstate: Document the current > behavior and user interface) dropped the intel-pstate.txt file > from Documentation/cpu-freq/, but it did not update the index.txt > file in t

Re: [RFC 4/5] ext4: add fs freezing support on suspend/hibernation

2017-10-04 Thread Dave Chinner
On Tue, Oct 03, 2017 at 09:42:04PM -0400, Theodore Ts'o wrote: > On Tue, Oct 03, 2017 at 10:13:21PM +0200, Luis R. Rodriguez wrote: > > > After we remove add the NEEDS_RECOVERY flag, we need to make sure > > > recovery flag is pushed out to disk before any other changes are > > > allowed to be push

Re: perf script : wrong symoff in callchain

2017-10-04 Thread Adrian Hunter
On 03/10/17 14:45, Matthieu CASTET wrote: > Le Tue, 3 Oct 2017 13:34:37 +0300, > Adrian Hunter a écrit : > >> On 03/10/17 13:19, Matthieu CASTET wrote: >>> Hi, >>> >>> while using perf on x86_64, I saw strange output for symoff. >>> >>> $ perf record -g -- sleep 1 >>> $ perf script -F comm,tid,pi

Re: [PATCH] scsi/eh: fix hang adding ehandler wakeups after decrementing host_busy

2017-10-04 Thread Pavel Tikhomirov
Hi. Please tell if there is something I can do to help the patch get processed? It is on the list without reply for almost a month. On 09/05/2017 03:54 PM, Pavel Tikhomirov wrote: We have a problem on several our nodes with scsi EH. Imagine such an order of execution of two threads: CPU1 scsi_

Re: [RFC 5/5] pm: remove kernel thread freezing

2017-10-04 Thread Dave Chinner
On Wed, Oct 04, 2017 at 02:47:56AM +0200, Luis R. Rodriguez wrote: > On Tue, Oct 03, 2017 at 11:15:07PM +0200, Rafael J. Wysocki wrote: > > On Tuesday, October 3, 2017 8:59:00 PM CEST Rafael J. Wysocki wrote: > > > On Tuesday, October 3, 2017 8:53:13 PM CEST Luis R. Rodriguez wrote: > > > > Now tha

Re: [PATCHv2 1/1] [tools]: android/ion: userspace test utility for ion buffer sharing

2017-10-04 Thread Greg KH
On Tue, Oct 03, 2017 at 12:48:59PM -0400, Pintu Agarwal wrote: > This is a test utility to verify ION buffer sharing in user space > between 2 independent processes. > It uses unix domain socket as IPC to transfer an FD to another process > and install it. > > This utility demonstrates how ION buf

Re: [PATCH 2/2] sysctl: remove /proc/sys/vm/nr_pdflush_threads

2017-10-04 Thread Jan Kara
On Tue 03-10-17 09:16:21, Jens Axboe wrote: > This tunable has been obsolete since 2.6.32, and writes to the > file have been failing and complaining in dmesg since then: > > nr_pdflush_threads exported in /proc is scheduled for removal > > That was 8 years ago. Remove the file ABI obsolete notic

Re: [PATCH v4 19/27] x86: assembly, make some functions local

2017-10-04 Thread Jiri Slaby
On 10/02/2017, 02:48 PM, Ard Biesheuvel wrote: > On 2 October 2017 at 10:12, Jiri Slaby wrote: >> There is a couple of assembly functions, which are invoked only locally >> in the file they are defined. In C, we mark them "static". In assembly, >> annotate them using SYM_{FUNC,CODE}_START_LOCAL (a

Re: [PATCH] firmware: add firmware to new device's devres list for second time cache

2017-10-04 Thread Greg KH
On Tue, Aug 22, 2017 at 03:52:46PM +0800, Kai-Heng Feng wrote: > Currently, firmware will only be chached if assign_firmware_buf() gets > called. > > When a device loses its power or a USB device gets plugged to another > port under suspend, request_firmware() can still find cached firmware, > but

Re: [PATCH] Add new uio device for PCI with dynamic memory allocation

2017-10-04 Thread Stahl, Manuel
Hi Dan. Thanks for your comments. I can fix all of those. Probably there is also some upgrade needed for the MSI stuff. pci_disable_msi() is not there anymore, so I have to use pci_alloc_irq_vectors(). Doing tests with my PCIe HW I had some problems with masking the legacy IRQs. Probably uio_pci_ge

Re: [PATCH 1/2] writeback: eliminate work item allocation in bd_start_writeback()

2017-10-04 Thread Jan Kara
On Tue 03-10-17 09:16:20, Jens Axboe wrote: > Handle start-all writeback like we do periodic or kupdate > style writeback - by marking the bdi_writeback as needing a full > flush, and simply waking the thread. This eliminates the need to > allocate and queue a specific work item just for this purpo

Re: [PATCH v4 4/5] cramfs: add mmap support

2017-10-04 Thread Christoph Hellwig
On Tue, Oct 03, 2017 at 11:40:28AM -0400, Nicolas Pitre wrote: > I provided that explanation several times by now in my cover letter. And > separately even to you directly at least once. What else should I do? You should do the right things instead of stating irrelevant things in your cover lett

Re: Re: [PATCH] MAINTAINERS: update TPM driver infrastructure changes

2017-10-04 Thread Jarkko Sakkinen
On Fri, Sep 29, 2017 at 08:31:30PM +0200, Peter Huewe wrote: > >   >   > > Gesendet: Freitag, 29. September 2017 um 18:59 Uhr > Von: "Jarkko Sakkinen" > An: "Mimi Zohar" , peterhu...@gmx.de > Cc: linux-kernel@vger.kernel.org, linux-integr...@vger.kernel.org > Betreff: Re: [PATCH] MAINTAINERS: up

[PATCH for 4.15] leds: pca955x: Fix configuration on GPIO request for input

2017-10-04 Thread Andrew Jeffery
The prior patch which fixed the problem with output inversion failed to account for a necessary change to requesting a pin for input, which is affected by the open-drain nature of the hardware. Previously pca955x_gpio_direction_input() called through pca955x_set_value() to configure the direction,

Re: [PATCH] kbuild: Fix optimization level choice default

2017-10-04 Thread Arnd Bergmann
On Wed, Oct 4, 2017 at 1:53 AM, Ulf Magnusson wrote: > The choice containing the CC_OPTIMIZE_FOR_PERFORMANCE symbol > accidentally added a "CONFIG_" prefix when trying to make it the > default, selecting an undefined symbol as the default. > > The mistake is harmless here: Since the default symbol

Re: [PATCH 0/3] tpm: retrieve digest size of unknown algorithms from TPM

2017-10-04 Thread Jarkko Sakkinen
Hi And apologies for late review. On Mon, Sep 25, 2017 at 01:19:47PM +0200, Roberto Sassu wrote: > This patch set derives from a larger patch set which modifies the TPM > driver API in order to extend a PCR with multiple digests. It can be > retrieved at the URL: > > https://sourceforge.net/p/tp

Re: [PATCH v4 19/27] x86: assembly, make some functions local

2017-10-04 Thread Ard Biesheuvel
Hello Jiri, On 4 October 2017 at 08:22, Jiri Slaby wrote: > On 10/02/2017, 02:48 PM, Ard Biesheuvel wrote: >> On 2 October 2017 at 10:12, Jiri Slaby wrote: >>> There is a couple of assembly functions, which are invoked only locally >>> in the file they are defined. In C, we mark them "static". I

Re: Re: [PATCH] MAINTAINERS: update TPM driver infrastructure changes

2017-10-04 Thread Peter Huewe
Will do. Peter Am 4. Oktober 2017 09:27:08 MESZ schrieb Jarkko Sakkinen : >On Fri, Sep 29, 2017 at 08:31:30PM +0200, Peter Huewe wrote: >> >>   >>   >> >> Gesendet: Freitag, 29. September 2017 um 18:59 Uhr >> Von: "Jarkko Sakkinen" >> An: "Mimi Zohar" , peterhu...@gmx.de >> Cc: linux-kernel@vg

Re: [PATCH v3 12/12] ARM: dtsi: axp81x: set pinmux for GPIO0/1 when used as LDOs

2017-10-04 Thread Quentin Schulz
Hi Chen-Yu, Linus, On 03/10/2017 17:08, Chen-Yu Tsai wrote: > On Tue, Oct 3, 2017 at 10:47 PM, Maxime Ripard > wrote: >> Hi Linus, >> >> On Tue, Oct 03, 2017 at 09:27:17AM +, Linus Walleij wrote: >>> On Mon, Oct 2, 2017 at 2:08 PM, Quentin Schulz >>> wrote: >>> On AXP813/818, GPIO0 and

Re: [PATCH 2/9 v2] usb: usb251xb: Add USB251x specific port count setting

2017-10-04 Thread Richard Leitner
On 09/16/2017 12:42 PM, Serge Semin wrote: > USB251xb as well as USB2517 datasheet states, that all these > hubs differ by number of ports declared as the last digit in the > model name. So USB2512 got two ports, USB2513 - three, and so on. > Such setting must be reflected in the device specific d

Re: [PATCH 1/9 v2] usb: usb251xb: Add USB2517i specific struct and IDs

2017-10-04 Thread Richard Leitner
Hi Serge, On 09/16/2017 12:42 PM, Serge Semin wrote: > There are USB2517 and USB2517i hubs, which have almost the same > registers space as already supported USB251xbi series. The difference > it in DIDs and in few functions. This patch adds the USB2517/i data > structures to the driver, so it wou

Re: [PATCH V9 13/15] mmc: block: Add CQE and blk-mq support

2017-10-04 Thread Linus Walleij
On Fri, Sep 22, 2017 at 2:37 PM, Adrian Hunter wrote: > Add CQE support to the block driver, including: > - optionally using DCMD for flush requests > - "manually" issuing discard requests > - issuing read / write requests to the CQE > - supporting block-layer timeouts > - han

Re: [PATCHv3] mm: Account pud page tables

2017-10-04 Thread Kirill A. Shutemov
On Wed, Oct 04, 2017 at 06:03:47AM +, Vlastimil Babka wrote: > On 10/02/2017 10:04 AM, Kirill A. Shutemov wrote: > > On machine with 5-level paging support a process can allocate > > significant amount of memory and stay unnoticed by oom-killer and > > memory cgroup. The trick is to allocate a

[PATCH v3] staging: ccree: Convert to platform_{get,set}_drvdata()

2017-10-04 Thread sunil . m
From: Suniel Mahesh Platform devices are expected to use wrapper functions, platform_{get,set}_drvdata() with platform_device as argument, for getting and setting the driver data. dev_{get,set}_drvdata() are using &plat_dev->dev. For wrapper functions we can directly pass a struct platform_device

Re: [PATCH] nvme: use menu Kconfig interface

2017-10-04 Thread Christoph Hellwig
Thanks, applied to nvme-4.15.

MAP_FIXED for ELF mappings

2017-10-04 Thread Michal Hocko
Hi, while studying CVE-2017-1000253 and the MAP_FIXED usage in load_elf* code paths I have stumbled over MAP_FIXED usage for elf segments mapping. I am not really familiar with this area much so I might draw completely incorrect conclusions here but I am really wondering why we are doing MAP_FIXED

Re: [PATCH 3/9 v2] usb: usb251xb: Add 5,6,7 ports mapping def setting

2017-10-04 Thread Richard Leitner
On 09/16/2017 12:42 PM, Serge Semin wrote: > USB2517 got three additionl downstream ports, which can > as well be mapped to another logical ports. USB2551xb driver typo in "USB251xb" > currently doesn't fully support such setting configuration > from dts file. This patch doesn't change this, but

Re: usb/sound/bcd2000: warning in bcd2000_init_device

2017-10-04 Thread Greg Kroah-Hartman
On Wed, Oct 04, 2017 at 08:10:59AM +0200, Takashi Iwai wrote: > On Tue, 03 Oct 2017 19:42:21 +0200, > Greg Kroah-Hartman wrote: > > > > On Tue, Oct 03, 2017 at 12:50:08PM -0400, Alan Stern wrote: > > > On Tue, 3 Oct 2017, Takashi Iwai wrote: > > > > > > > > It's a dev_WARN because it indicates a

Re: [PATCH 3.18 00/24] 3.18.73-stable review

2017-10-04 Thread Greg Kroah-Hartman
On Tue, Oct 03, 2017 at 01:25:32PM -0600, Shuah Khan wrote: > On 10/03/2017 06:18 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.73 release. > > There are 24 patches in this series, all will be posted as a response > > to this one. If anyone has any iss

Re: 4.14-rc2 on thinkpad x220: out of memory when inserting mmc card

2017-10-04 Thread Linus Walleij
On Tue, Oct 3, 2017 at 8:30 AM, Adrian Hunter wrote: > On 02/10/17 17:09, Linus Walleij wrote: >> On Sun, Oct 1, 2017 at 12:57 PM, Tetsuo Handa >> wrote: >> > I inserted u-SD card, only to realize that it is not detected as it > should be. And dmesg indeed reveals: Tetsuo asked

Re: [PATCH v2 2/2] dt-bindings: arm: amlogic: Add Tronsmart Vega S96 binding

2017-10-04 Thread Neil Armstrong
On 03/10/2017 23:30, Rob Herring wrote: > On Tue, Oct 03, 2017 at 05:29:45PM +0200, Neil Armstrong wrote: >> Cc: supp...@tronsmart.com >> Acked-by: Jerome Brunet >> Signed-off-by: Oleg Ivanov >> Signed-off-by: Neil Armstrong >> --- >> Documentation/devicetree/bindings/arm/amlogic.txt | 1 + >>

Re: [PATCH 4.13 000/110] 4.13.5-stable review

2017-10-04 Thread Greg Kroah-Hartman
On Tue, Oct 03, 2017 at 01:30:25PM -0700, Guenter Roeck wrote: > On Tue, Oct 03, 2017 at 02:28:22PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.13.5 release. > > There are 110 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH V10 0/3] PM / Domains: Performance state support

2017-10-04 Thread Ulf Hansson
On 4 October 2017 at 08:45, Viresh Kumar wrote: > On 03-10-17, 09:52, Ulf Hansson wrote: >> We sorted out things at LPC! >> >> However, the last weeks discussions at Linaro connect, raised a couple >> of more concerns with the current approach. Let me summarize them >> here. >> >> 1) >> The ->dev_

Re: [PATCH 4.4 00/41] 4.4.90-stable review

2017-10-04 Thread Greg Kroah-Hartman
On Tue, Oct 03, 2017 at 03:30:14PM -0500, Tom Gall wrote: > > > On Oct 3, 2017, at 7:21 AM, Greg Kroah-Hartman > > wrote: > > > > This is the start of the stable review cycle for the 4.4.90 release. > > There are 41 patches in this series, all will be posted as a response > > to this one. If a

Re: [PATCH v2 4/4] KVM: LAPIC: Don't silently accept bad vectors

2017-10-04 Thread Wanpeng Li
2017-10-04 1:53 GMT+08:00 Radim Krčmář : > 2017-09-28 18:04-0700, Wanpeng Li: >> From: Wanpeng Li >> >> Vectors 0-15 are reserved, and a physical LAPIC - upon sending or >> receiving one - would generate an APIC error instead of doing the >> requested action. Make our emulation behave similarly. >

Re: Patch "KVM: VMX: avoid double list add with VT-d posted interrupts" has been added to the 4.13-stable tree

2017-10-04 Thread Greg KH
On Wed, Oct 04, 2017 at 12:30:21AM +0200, Stefan Lippers-Hollmann wrote: > Hi > > On 2017-10-03, Paolo Bonzini wrote: > > On 03/10/2017 09:46, Stefan Lippers-Hollmann wrote: > > > On 2017-10-02, gre...@linuxfoundation.org wrote: > > >> This is a note to let you know that I've just added the patc

Re: [PATCH 4.9 00/64] 4.9.53-stable review

2017-10-04 Thread Greg Kroah-Hartman
On Tue, Oct 03, 2017 at 03:29:46PM -0500, Tom Gall wrote: > > > On Oct 3, 2017, at 7:22 AM, Greg Kroah-Hartman > > wrote: > > > > This is the start of the stable review cycle for the 4.9.53 release. > > There are 64 patches in this series, all will be posted as a response > > to this one. If a

Re: [PATCH RFC hack dont apply] intel_idle: support running within a VM

2017-10-04 Thread Thomas Gleixner
On Wed, 4 Oct 2017, Michael S. Tsirkin wrote: > On Tue, Oct 03, 2017 at 11:02:55PM +0200, Thomas Gleixner wrote: > > There is the series from Audrey which makes use of the various idle > > prediction mechanisms, scheduler, irq timings, idle governor to get an idea > > about the estimated idle time.

Re: [PATCH 4/9 v2] usb: usb251xb: Add 5,6,7 ports boost settings

2017-10-04 Thread Richard Leitner
On 09/16/2017 12:42 PM, Serge Semin wrote: > USB electrical signaling drive strength boost bit is also supported > by USB2517 hub. Since it got three addition ports, the designers > needed to add one more register for initialization. It turned out > to be formerly reserved 0xF7. As before we just

Re: MAP_FIXED for ELF mappings

2017-10-04 Thread Michal Hocko
Dohh, screwed up From. Sorry for spamming. On Wed 04-10-17 09:50:59, Michal Hocko wrote: > Hi, > while studying CVE-2017-1000253 and the MAP_FIXED usage in load_elf* > code paths I have stumbled over MAP_FIXED usage for elf segments > mapping. I am not really familiar with this area much so I migh

Re: [PATCH] Add new uio device for PCI with dynamic memory allocation

2017-10-04 Thread Dan Carpenter
On Wed, Oct 04, 2017 at 07:24:49AM +, Stahl, Manuel wrote: > Hi Dan. Thanks for your comments. I can fix all of those. > Probably there is also some upgrade needed for the MSI stuff. > pci_disable_msi() is not there anymore, so I have to use > pci_alloc_irq_vectors(). Doing tests with my PCIe H

[PATCH] mfd: syscon: atmel-smc: include string.h

2017-10-04 Thread Sebastian Andrzej Siewior
The string.h header file is needed for the memset() definition. The RT build fails because it is not pulled in via other header files. Signed-off-by: Sebastian Andrzej Siewior --- drivers/mfd/atmel-smc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/atmel-smc.c b/drivers/mfd/at

Re: 4.14-rc2 on thinkpad x220: out of memory when inserting mmc card

2017-10-04 Thread Ulf Hansson
On 4 October 2017 at 09:53, Linus Walleij wrote: > On Tue, Oct 3, 2017 at 8:30 AM, Adrian Hunter wrote: >> On 02/10/17 17:09, Linus Walleij wrote: >>> On Sun, Oct 1, 2017 at 12:57 PM, Tetsuo Handa >>> wrote: >>> >> I inserted u-SD card, only to realize that it is not detected as it >> sh

[PATCH v3 1/2] sched/fair: make capacity_margin __read_mostly

2017-10-04 Thread Leo Yan
Variable 'capacity_margin' is used with read operation for most cases to calculate the capacity margin, put it into __read_mostly section. Cc: Dietmar Eggemann Cc: Morten Rasmussen Cc: Chris Redpath Cc: Joel Fernandes Cc: Vincent Guittot Cc: Patrick Bellasi Signed-off-by: Leo Yan --- kerne

[PATCH v3 2/2] cpufreq: schedutil: consolidate capacity margin calculation

2017-10-04 Thread Leo Yan
Scheduler CFS class has variable 'capacity_margin' to represent the capacity margin, currently in the kernel 'capacity_margin' is 1280; on the other hand schedutil governor also needs to compensate the margin for frequency tipping point. Below are formulas which are used in CFS class and schedutil

Re: usb/sound/bcd2000: warning in bcd2000_init_device

2017-10-04 Thread Takashi Iwai
On Wed, 04 Oct 2017 09:52:36 +0200, Greg Kroah-Hartman wrote: > > On Wed, Oct 04, 2017 at 08:10:59AM +0200, Takashi Iwai wrote: > > On Tue, 03 Oct 2017 19:42:21 +0200, > > Greg Kroah-Hartman wrote: > > > > > > On Tue, Oct 03, 2017 at 12:50:08PM -0400, Alan Stern wrote: > > > > On Tue, 3 Oct 2017,

Re: [PATCH v3] doc: coresight: correct usage for disabling idle states

2017-10-04 Thread Leo Yan
On Mon, Oct 02, 2017 at 11:14:46AM -0700, Mathieu Poirier wrote: > On 19 September 2017 at 21:46, Leo Yan wrote: > > In the coresight CPU debug document it suggests to use 'echo' command > > to set latency request to /dev/cpu_dma_latency so can disable all CPU > > idle states, but in fact this doe

Re: [PATCH 8/9 v2] usb: usb251xb: Add max power/current dts property support

2017-10-04 Thread Richard Leitner
On 09/21/2017 07:10 PM, Serge Semin wrote: > On Thu, Sep 21, 2017 at 11:26:04AM -0500, Rob Herring wrote: >> On Wed, Sep 20, 2017 at 4:27 PM, Serge Semin wrote: ... >>> These are different parameters of the device. They got different >>> configuration >>> registers and descriptions: >>> max_p

Re: [PATCH 6/7] phy: samsung: Remove dependency on obsolete SoC support

2017-10-04 Thread Krzysztof Kozlowski
On Wed, Oct 4, 2017 at 8:38 AM, Marek Szyprowski wrote: > Support for Exynos4212 SoCs has been removed by commit bca9085e0ae9 ("ARM: > dts: exynos: remove Exynos4212 support (dead code)"), so there is no need > to keep remaining dead code related to this SoC version. > > Signed-off-by: Marek Szypr

Re: [PATCH 1/1] drivers/tty: check for null pointer

2017-10-04 Thread Greg KH
On Wed, Sep 06, 2017 at 09:57:20PM +0800, Li, Zhenhua wrote: > when I tried to boot linux on a system with virtual bios and vortual keyboard, > it crashes. > > The root cause is the bios does not initialize devices correctly. Then please fix the virtual bios :) thanks, greg k-h

Re: [PATCH] tty: vt: remove multi-fetch, derive font.height from font.data

2017-10-04 Thread Greg KH
On Sun, Sep 24, 2017 at 12:59:42PM -0400, Meng Xu wrote: > In con_font_set(), when we need to guess font height (for > compat reasons?), the current approach uses multiple userspace > fetches, i.e., get_user(tmp, &charmap[32*i+h-1]), to derive > the height. This has two drawbacks: > > 1. performan

[PATCH] jfs: Add missing NULL pointer check in __get_metapage

2017-10-04 Thread Juerg Haefliger
alloc_metapage can return a NULL pointer so check for that. And also emit an error message if that happens. Signed-off-by: Juerg Haefliger --- fs/jfs/jfs_metapage.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/fs/jfs/jfs_metapage.c b/fs/jfs/jfs_metapa

Re: [PATCHv3 1/7] switch dereference_function_descriptor() to `unsigned long'

2017-10-04 Thread Petr Mladek
On Sat 2017-09-30 11:53:13, Sergey Senozhatsky wrote: > Convert dereference_function_descriptor() to accept and return > `unsigned long'. There will be two new ARCH function for kernel > and module function pointer dereference, which will work with > `unsigned long', so the patch unifies interfaces

Re: usb/sound/bcd2000: warning in bcd2000_init_device

2017-10-04 Thread Greg Kroah-Hartman
On Wed, Oct 04, 2017 at 10:08:24AM +0200, Takashi Iwai wrote: > On Wed, 04 Oct 2017 09:52:36 +0200, > Greg Kroah-Hartman wrote: > > > > On Wed, Oct 04, 2017 at 08:10:59AM +0200, Takashi Iwai wrote: > > > On Tue, 03 Oct 2017 19:42:21 +0200, > > > Greg Kroah-Hartman wrote: > > > > > > > > On Tue, O

Re: [PATCH 6/7] phy: samsung: Remove dependency on obsolete SoC support

2017-10-04 Thread Sylwester Nawrocki
On 10/04/2017 08:38 AM, Marek Szyprowski wrote: > Support for Exynos4212 SoCs has been removed by commit bca9085e0ae9 ("ARM: > dts: exynos: remove Exynos4212 support (dead code)"), so there is no need > to keep remaining dead code related to this SoC version. > > Signed-off-by: Marek Szyprowski

Re: [PATCH 07/11] powerpc: make dma_cache_sync a no-op

2017-10-04 Thread Christophe LEROY
Le 03/10/2017 à 13:43, Christoph Hellwig a écrit : On Tue, Oct 03, 2017 at 01:24:57PM +0200, Christophe LEROY wrote: powerpc does not implement DMA_ATTR_NON_CONSISTENT allocations, so it doesn't make any sense to do any work in dma_cache_sync given that it must be a no-op when dma_alloc_attrs

Re: [PATCH 4.4 00/41] 4.4.90-stable review

2017-10-04 Thread Sumit Semwal
Hi Greg, On 4 October 2017 at 00:55, Greg Kroah-Hartman wrote: > On Tue, Oct 03, 2017 at 03:30:14PM -0500, Tom Gall wrote: >> >> > On Oct 3, 2017, at 7:21 AM, Greg Kroah-Hartman >> > wrote: >> > >> > This is the start of the stable review cycle for the 4.4.90 release. >> > There are 41 patches

Re: [PATCH 1/2] uio: dt-bindings: document binding for uio-pdrv-genirq

2017-10-04 Thread Greg KH
On Thu, Sep 21, 2017 at 12:53:25PM +1200, Chris Packham wrote: > Signed-off-by: Chris Packham > --- I can't take patches without any changelog text, sorry.

Re: [PATCH] dt-bindings: i2c: Add armada-38x i2c binding

2017-10-04 Thread Gregory CLEMENT
Hi Rob, On mar., oct. 03 2017, Rob Herring wrote: > On Wed, Sep 27, 2017 at 09:33:00AM +0200, Gregory CLEMENT wrote: >> Hi Chris, >> >> On mer., sept. 27 2017, Chris Packham >> wrote: >> >> > Hi Gregory, >> > >> > On 27/09/17 00:56, Gregory CLEMENT wrote: >> >> Hi Kalyan, >> >> >> >> Pl

Re: tty crash due to auto-failing vmalloc

2017-10-04 Thread Michal Hocko
On Tue 03-10-17 18:55:04, Johannes Weiner wrote: [...] > commit 5d17a73a2ebeb8d1c6924b91e53ab2650fe86ffb > Author: Michal Hocko > Date: Fri Feb 24 14:58:53 2017 -0800 > > vmalloc: back off when the current task is killed > > __vmalloc_area_node() allocates pages to cover the reques

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-04 Thread Peter Zijlstra
On Tue, Oct 03, 2017 at 10:05:38AM -0500, Josh Poimboeuf wrote: > I don't know the lockdep code, but one more comment from the peanut > gallery. This code looks suspect to me: > > > /* >* Stop saving stack_trace if save_trace() was >

Re: [PATCH v5 00/10] arm, arm64, cpufreq: frequency- and cpu-invariant accounting support for task scheduler

2017-10-04 Thread Greg Kroah-Hartman
On Tue, Sep 26, 2017 at 05:41:05PM +0100, Dietmar Eggemann wrote: > For a more accurate (i.e. frequency- and cpu-invariant) accounting > the task scheduler needs a frequency-scaling and on a heterogeneous > system a cpu-scaling correction factor. > > This patch-set implements a Frequency Invarianc

[PATCH] KEYS: checking the input id parameters before finding asymmetric key

2017-10-04 Thread Lee, Chun-Yi
For finding asymmetric key, the input id_0 and id_1 parameters can not be NULL at the same time. This patch adds the BUG_ON checking for id_0 and id_1. Cc: David Howells Cc: Herbert Xu Cc: "David S. Miller" Signed-off-by: "Lee, Chun-Yi" --- crypto/asymmetric_keys/asymmetric_type.c | 2 ++ 1 f

Re: [PATCH v9 12/12] mm: stop zeroing memory during allocation in vmemmap

2017-10-04 Thread Michal Hocko
On Tue 03-10-17 16:26:51, Pasha Tatashin wrote: > Hi Michal, > > I decided not to merge these two patches, because in addition to sparc > optimization move, we have this dependancies: optimizations can and should go on top of the core patch. > mm: zero reserved and unavailable struct pages > >

Re: [PATCH v9 06/12] mm: zero struct pages during initialization

2017-10-04 Thread Michal Hocko
On Tue 03-10-17 11:22:35, Pasha Tatashin wrote: > > > On 10/03/2017 09:08 AM, Michal Hocko wrote: > > On Wed 20-09-17 16:17:08, Pavel Tatashin wrote: > > > Add struct page zeroing as a part of initialization of other fields in > > > __init_single_page(). > > > > > > This single thread performanc

Re: [PATCH v9 03/12] mm: deferred_init_memmap improvements

2017-10-04 Thread Michal Hocko
On Tue 03-10-17 12:01:08, Pasha Tatashin wrote: > Hi Michal, > > Are you OK, if I replace DEFERRED_FREE() macro with a function like this: > > /* > * Helper for deferred_init_range, free the given range, and reset the > * counters > */ > static inline unsigned long __def_free(unsigned long *nr

Re: [PATCH 2/2] Drivers: hv: vmbus: Expose per-channel interrupts and events counters

2017-10-04 Thread Greg KH
On Thu, Sep 21, 2017 at 08:58:50PM -0700, k...@exchange.microsoft.com wrote: > From: Stephen Hemminger > > When investigating performance, it is useful to be able to look at > the number of host and guest events per-channel. This is equivalent > to per-device interrupt statistics. > > Signed-off

Re: [kernel-hardening] [RFC V2 4/6] lib: vsprintf: default kptr_restrict to the maximum value

2017-10-04 Thread Greg KH
On Sun, Oct 01, 2017 at 11:06:48AM +1100, Tobin C. Harding wrote: > Set the initial value of kptr_restrict to the maximum > setting rather than the minimum setting, to ensure that > early boot logging is not leaking information. > > Signed-off-by: Tobin C. Harding Signed-off-by: Greg Kroah-Hartm

Re: [kernel-hardening] [RFC V2 1/6] lib: vsprintf: additional kernel pointer filtering options

2017-10-04 Thread Greg KH
On Sun, Oct 01, 2017 at 11:06:45AM +1100, Tobin C. Harding wrote: > Add the kptr_restrict setting of 3 which results in both > %p and %pK values being replaced by zeros. > > Add an additional %pP value inspired by the Grsecurity > option which explicitly whitelists pointers for output. > > Amend

Re: [PATCH v9 08/12] mm: zero reserved and unavailable struct pages

2017-10-04 Thread Michal Hocko
On Tue 03-10-17 11:29:16, Pasha Tatashin wrote: > On 10/03/2017 09:18 AM, Michal Hocko wrote: > > On Wed 20-09-17 16:17:10, Pavel Tatashin wrote: > > > Some memory is reserved but unavailable: not present in memblock.memory > > > (because not backed by physical pages), but present in memblock.reser

Re: [kernel-hardening] [RFC V2 2/6] lib: vsprintf: whitelist stack traces

2017-10-04 Thread Greg KH
On Mon, Oct 02, 2017 at 11:42:05AM +0100, Will Deacon wrote: > On Sun, Oct 01, 2017 at 11:06:46AM +1100, Tobin C. Harding wrote: > > Use the %pP functionality to explicitly allow kernel > > pointers to be logged for stack traces. > > > > Signed-off-by: Tobin C. Harding > > --- > > arch/arm64/ker

Re: [kernel-hardening] [RFC V2 3/6] lib: vsprintf: physical address kernel pointer filtering options

2017-10-04 Thread Greg KH
On Sun, Oct 01, 2017 at 11:06:47AM +1100, Tobin C. Harding wrote: > Add the kptr_restrict setting of 4 which results in %pa and > %p[rR] values being cleansed. > > Address types printed with %pa are replaced by zeros. Resources printed > with %p[rR] have the starting address replaced by zeros, res

Re: [kernel-hardening] [RFC V2 5/6] lib: vsprintf: add "%paP", "%papP", and "%padP" specifiers

2017-10-04 Thread Greg KH
On Sun, Oct 01, 2017 at 11:06:49AM +1100, Tobin C. Harding wrote: > Add %papP and %padP for address types that need to always be shown > regardless of kptr restrictions. Add %paP is a synonym for %papP, this > is inline with current implementation (%pa is a synonym for %pap). > > Signed-off-by: To

Re: [kernel-hardening] [RFC V2 0/6] add more kernel pointer filter options

2017-10-04 Thread Greg KH
On Sun, Oct 01, 2017 at 11:11:05AM +1100, Tobin C. Harding wrote: > On Sun, Oct 01, 2017 at 11:06:44AM +1100, Tobin C. Harding wrote: > > Version 2 of Greg's patch series with changes made as suggested by comments > > to V1. > > Patch set tested by setting /proc/sys/kernel/kptr_restrict and inser

Re: [kernel-hardening] [RFC V2 2/6] lib: vsprintf: whitelist stack traces

2017-10-04 Thread Will Deacon
On Wed, Oct 04, 2017 at 10:56:57AM +0200, Greg KH wrote: > On Mon, Oct 02, 2017 at 11:42:05AM +0100, Will Deacon wrote: > > On Sun, Oct 01, 2017 at 11:06:46AM +1100, Tobin C. Harding wrote: > > > Use the %pP functionality to explicitly allow kernel > > > pointers to be logged for stack traces. > >

Re: [kernel-hardening] [RFC V2 6/6] drivers: uio: un-restrict sysfs pointers for UIO

2017-10-04 Thread Greg KH
On Sun, Oct 01, 2017 at 11:06:50AM +1100, Tobin C. Harding wrote: > The address and size on the UIO devices are required by userspace to > function properly. Let's un-restrict these by adding the 'P' modifier > to %pa. > > Signed-off-by: Tobin C. Harding Signed-off-by: Greg Kroah-Hartman

Re: [kernel-hardening] [RFC V2 0/6] add more kernel pointer filter options

2017-10-04 Thread Greg KH
On Sun, Oct 01, 2017 at 11:06:44AM +1100, Tobin C. Harding wrote: > Version 2 of Greg's patch series with changes made as suggested by comments > to V1. > > Applies on top of Linus' current development tree > > a8c964eacb21288b2dbfa9d80cee5968a3b8fb21 > > V1 cover letter: > > Here's a short pa

Re: [PATCH v2 0/4] mmc: sdhci-msm: Corrections to implementation of power irq

2017-10-04 Thread Ulf Hansson
On 27 September 2017 at 07:34, Vijay Viswanath wrote: > Register writes which change voltage of IO lines or turn the IO bus on/off > require sdhc controller to be ready before progressing further. Once a > register write which affects IO lines is done, the driver should wait for > power irq from c

Re: [PATCH 0/3] mmc: meson-gx: fixes for v4.14

2017-10-04 Thread Ulf Hansson
On 2 October 2017 at 14:27, Jerome Brunet wrote: > This patchset fixes the issues reported by Heiner [0] with the odroid-c2. > In a nutshell, this series does the following: > > * Make sure the mmc clock rate is not set higher than what is requested > * Reset the tuning values on mmc power cycle i

Re: [PATCH] mmc: dw_mmc-k3: make array hs_timing_cfg static

2017-10-04 Thread Ulf Hansson
On 3 October 2017 at 11:56, Colin King wrote: > From: Colin Ian King > > The array hs_timing_cfg is local to the source and does not need to > be in global scope, so make it static. > > Cleans up sparse warning: > symbol 'hs_timing_cfg' was not declared. Should it be static? > > Signed-off-by: Co

[PATCH] Staging: rtl8723bs: Externs should be avoided in .C file

2017-10-04 Thread Srinivasan Shanmugam
This patch fixes the following checkpatch.pl warning. WARNING: externs should be avoided in .c files Signed-off-by: Srinivasan Shanmugam --- drivers/staging/rtl8723bs/core/rtw_ap.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/staging

Re: [PATCH] mmc: sdhci-of-at91: make function sdhci_at91_set_uhs_signaling static

2017-10-04 Thread Ulf Hansson
On 3 October 2017 at 12:06, Colin King wrote: > From: Colin Ian King > > The function sdhci_at91_set_uhs_signaling is local to the source and does > not need to be in global scope, so make it static. > > Cleans up sparse warning: > symbol 'sdhci_at91_set_uhs_signaling' was not declared. Should i

RE: [PATCH 04/11] ia64: make dma_cache_sync a no-op

2017-10-04 Thread David Laight
From: Christoph Hellwig > Sent: 03 October 2017 11:43 > > ia64 does not implement DMA_ATTR_NON_CONSISTENT allocations, so it doesn't > make any sense to do any work in dma_cache_sync given that it must be a > no-op when dma_alloc_attrs returns coherent memory. > > Signed-off-by: Christoph Hellwig

Re: [PATCHv3 2/7] sections: split dereference_function_descriptor()

2017-10-04 Thread Petr Mladek
On Sat 2017-09-30 11:53:14, Sergey Senozhatsky wrote: > There are two format specifiers to print out a pointer in symbolic > format: '%pS/%ps' and '%pF/%pf'. On most architectures, the two > mean exactly the same thing, but some architectures (ia64, ppc64, > parisc64) use an indirect pointer for C

[PATCH 2/2] USB: serial: console: fix use-after-free after failed setup

2017-10-04 Thread Johan Hovold
Make sure to reset the USB-console port pointer when console setup fails in order to avoid having the struct usb_serial be prematurely freed by the console code when the device is later disconnected. Fixes: 73e487fdb75f ("[PATCH] USB console: fix disconnection issues") Cc: stable # 2.6.18 Sig

[PATCH 0/2] USB: serial: console: fix two use-after-free bugs

2017-10-04 Thread Johan Hovold
A recent clean-up patch of mine did more than intended and introduced the potential for a use-after-free on disconnect under some very specific circumstances. Fortunately those circumstances were not obscure enough to prevent Andrey's fuzzing from triggering the bug. While fixing this one I found

Re: [kernel-hardening] [RFC V2 2/6] lib: vsprintf: whitelist stack traces

2017-10-04 Thread Greg KH
On Wed, Oct 04, 2017 at 09:58:10AM +0100, Will Deacon wrote: > On Wed, Oct 04, 2017 at 10:56:57AM +0200, Greg KH wrote: > > On Mon, Oct 02, 2017 at 11:42:05AM +0100, Will Deacon wrote: > > > On Sun, Oct 01, 2017 at 11:06:46AM +1100, Tobin C. Harding wrote: > > > > Use the %pP functionality to expli

[PATCH 1/2] USB: serial: console: fix use-after-free on disconnect

2017-10-04 Thread Johan Hovold
A clean-up patch removing removing two redundant NULL-checks from the console disconnect handler inadvertently also removed a third check. This could lead to the struct usb_serial being prematurely freed by the console code when a driver accepts but does not register any ports for an interface whic

Re: [PATCH v3 1/2] dt-bindings: add device tree binding for Allwinner XR819 SDIO Wi-Fi

2017-10-04 Thread Kalle Valo
Icenowy Zheng writes: > Allwinner XR819 is a SDIO Wi-Fi chip, which has the functionality to use > an out-of-band interrupt pin instead of SDIO in-band interrupt. > > Add the device tree binding of this chip, in order to make it possible > to add this interrupt pin to device trees. > > Signed-off

[tip:core/watchdog] watchdog/core, powerpc: Replace watchdog_nmi_reconfigure()

2017-10-04 Thread tip-bot for Thomas Gleixner
Commit-ID: 6b9dc4806b28214a4a260517e59439e0ac12a15e Gitweb: https://git.kernel.org/tip/6b9dc4806b28214a4a260517e59439e0ac12a15e Author: Thomas Gleixner AuthorDate: Mon, 2 Oct 2017 12:34:50 +0200 Committer: Thomas Gleixner CommitDate: Wed, 4 Oct 2017 10:53:53 +0200 watchdog/core, powerp

Re: [PATCH v3 1/2] dt-bindings: add device tree binding for Allwinner XR819 SDIO Wi-Fi

2017-10-04 Thread Icenowy Zheng
于 2017年10月4日 GMT+08:00 下午5:02:17, Kalle Valo 写到: >Icenowy Zheng writes: > >> Allwinner XR819 is a SDIO Wi-Fi chip, which has the functionality to >use >> an out-of-band interrupt pin instead of SDIO in-band interrupt. >> >> Add the device tree binding of this chip, in order to make it >possible

[tip:core/watchdog] watchdog/core, powerpc: Lock cpus across reconfiguration

2017-10-04 Thread tip-bot for Thomas Gleixner
Commit-ID: e31d6883f21c1cdfe5bc64e28411f8a92b783fde Gitweb: https://git.kernel.org/tip/e31d6883f21c1cdfe5bc64e28411f8a92b783fde Author: Thomas Gleixner AuthorDate: Tue, 3 Oct 2017 16:37:53 +0200 Committer: Thomas Gleixner CommitDate: Wed, 4 Oct 2017 10:53:54 +0200 watchdog/core, powerp

Re: [PATCHv3 3/7] ia64: Add .opd based function descriptor dereference

2017-10-04 Thread Petr Mladek
On Sat 2017-09-30 11:53:15, Sergey Senozhatsky wrote: > We are moving towards separate kernel and module function descriptor > dereference callbacks. This patch enables it for IA64. > > For pointers that belong to the kernel > - Added __start_opd and __end_opd pointers, to track the kernel >.

Re: usb/serial: use-after-free in usb_serial_disconnect/__lock_acquire

2017-10-04 Thread Johan Hovold
On Wed, Sep 27, 2017 at 04:36:11PM +0200, Andrey Konovalov wrote: > Hi! > > I've got the following report while fuzzing the kernel with syzkaller. > > On commit e19b205be43d11bff638cad4487008c48d21c103 (4.14-rc2). > > gadgetfs: bound to dummy_udc driver > usb 1-1: new full-speed USB device numbe

Re: [PATCH] [media] ov5645: I2C address change (fwd)

2017-10-04 Thread Julia Lawall
Hello, It seems that an unlock is missing on line 764. julia -- Forwarded message -- Date: Wed, 4 Oct 2017 05:59:09 +0800 From: kbuild test robot To: kbu...@01.org Cc: Julia Lawall Subject: Re: [PATCH] [media] ov5645: I2C address change CC: kbuild-...@01.org In-Reply-To: <1506

Re: [PATCH 04/11] ia64: make dma_cache_sync a no-op

2017-10-04 Thread 'Christoph Hellwig'
On Wed, Oct 04, 2017 at 08:59:24AM +, David Laight wrote: > Are you sure about this one? Yes. And if you are not you haven't read either of the cover letter, the DMA-API documentation, or the reply from Thomas to your mail yesterday.

Re: [PATCH 3/3] early_printk: Add simple serialization to early_vprintk()

2017-10-04 Thread Peter Zijlstra
On Tue, Oct 03, 2017 at 06:24:22PM -0400, Steven Rostedt wrote: > On Thu, 28 Sep 2017 14:18:26 +0200 > Peter Zijlstra wrote: > > static int early_vprintk(const char *fmt, va_list args) > > { > > + int n, cpu, old; > > char buf[512]; > > + > > + cpu = get_cpu(); > > + /* > > +* Test

Re: [PATCH v4 03/10] kexec_file: factor out arch_kexec_kernel_*() from x86, powerpc

2017-10-04 Thread kbuild test robot
-kexec_file_load-support/20171004-163130 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core config: x86_64-randconfig-x000-201740 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree

Re: ath9k: make const array reg_hole_list static, reduces object code size

2017-10-04 Thread Kalle Valo
Colin Ian King wrote: > Don't populate the read-only array reg_hole_list on the stack, instead make > it static. Makes the object code smaller by over 200 bytes: > > Before: >text data bss dec hex filename > 57518 15248 0 72766 11c3e debug.o > > Aft

  1   2   3   4   5   6   7   8   9   10   >