[RFC PATCH v1 3/6] ktask: add /proc/sys/debug/ktask_max_threads

2017-07-14 Thread daniel . m . jordan
Adds a proc file to control the maximum number of ktask threads in use for any one job. Its primary use is to aid in debugging. Signed-off-by: Daniel Jordan --- kernel/sysctl.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/kernel/sysctl.c b/kernel/sysctl.c i

[RFC PATCH v1 5/6] mm: parallelize clear_gigantic_page

2017-07-14 Thread daniel . m . jordan
Parallelize clear_gigantic_page, which zeroes any page size larger than 8M (e.g. 1G on x86 or 2G on SPARC). Performance results (the default number of threads is 4; higher thread counts shown for context only): Machine: SPARC T7-4, 1024 cpus, 504G memory Test:Clear a range of gigantic pages

Re: [PATCH v2 2/2] net: ethernet: nixge: Add support for National Instruments XGE netdev

2017-07-14 Thread Florian Fainelli
On 07/14/2017 01:48 PM, Moritz Fischer wrote: > Add support for the National Instruments XGE 1/10G network device. > > It uses the EEPROM on the board via NVMEM. > > Signed-off-by: Moritz Fischer > --- > + > +static void nixge_handle_link_change(struct net_device *ndev) > +{ > + struct nixg

[RFC PATCH v1 4/6] mm: enlarge type of offset argument in mem_map_offset and mem_map_next

2017-07-14 Thread daniel . m . jordan
Changes the type of 'offset' from int to unsigned long in both mem_map_offset and mem_map_next. This facilitates ktask's use of mem_map_next with its unsigned long types to avoid silent truncation when these unsigned longs are passed as ints. It also fixes the preexisting truncation of 'offset' f

[RFC PATCH v1 2/6] ktask: multithread cpu-intensive kernel work

2017-07-14 Thread daniel . m . jordan
ktask is a generic framework for parallelizing cpu-intensive work in the kernel. The intended use is for big machines that can use their cpu power to speed up large tasks that can't otherwise be multithreaded in userland. The API is generic enough to add concurrency to many different kinds of tas

Re: [RFC 1/2] PM / suspend: Add platform_suspend_target_state()

2017-07-14 Thread Rafael J. Wysocki
On Wednesday, July 12, 2017 11:08:19 AM Florian Fainelli wrote: > On 06/29/2017 04:00 PM, Rafael J. Wysocki wrote: > > On Thursday, June 22, 2017 06:08:36 PM Florian Fainelli wrote: > >> Add an optional platform_suspend_ops callback: target_state, and a > >> helper function globally visible to get

Re: [PATCH v3 08/10] x86/hyper-v: use hypercall for remote TLB flush

2017-07-14 Thread Andy Lutomirski
On Thu, Jul 13, 2017 at 5:46 AM, Vitaly Kuznetsov wrote: > Andy Lutomirski writes: > >> On Tue, May 23, 2017 at 5:36 AM, Vitaly Kuznetsov >> wrote: >>> Andy Lutomirski writes: >>> Also, can you share the benchmark you used for these patches? >>> >>> I didn't do much while writing the

Re: [PATCH 13/22] liquidio: fix possible eeprom format string overflow

2017-07-14 Thread Burla, Satananda
The 07/14/2017 09:04, David Miller wrote: > From: Arnd Bergmann > Date: Fri, 14 Jul 2017 14:07:05 +0200 > > > gcc reports that the temporary buffer for computing the > > string length may be too small here: > > > > drivers/net/ethernet/cavium/liquidio/lio_ethtool.c: In function > 'lio_get_eeprom_

Re: [Intel-gfx] [PATCH RESEND] drm/i915: Fix pipe/transcoder enum mismatches

2017-07-14 Thread Grant Grundler
On Fri, Jul 14, 2017 at 2:35 PM, Daniel Vetter wrote: > On Fri, Jul 14, 2017 at 7:32 PM, Grant Grundler wrote: >> On Fri, Jul 14, 2017 at 2:11 AM, Jani Nikula >> wrote: >>> On Thu, 13 Jul 2017, Stéphane Marchesin >>> wrote: So, if you think this is wrong, can you fix this warning in a way

[PATCH v2 0/3] Qualcomm Light Pulse Generator

2017-07-14 Thread Bjorn Andersson
This series introduces a generic pattern interface in the LED class and a driver for the Qualcomm Light Pulse Generator. Bjorn Andersson (3): leds: core: Introduce generic pattern interface leds: Add driver for Qualcomm LPG DT: leds: Add Qualcomm Light Pulse Generator binding Documentation

[PATCH v2 2/3] leds: Add driver for Qualcomm LPG

2017-07-14 Thread Bjorn Andersson
The Light Pulse Generator (LPG) is a PWM-block found in a wide range of PMICs from Qualcomm. It can operate on fixed parameters or based on a lookup-table, altering the duty cycle over time - which provides the means for e.g. hardware assisted transitions of LED brightness. Signed-off-by: Bjorn An

[PATCH v2 3/3] DT: leds: Add Qualcomm Light Pulse Generator binding

2017-07-14 Thread Bjorn Andersson
This adds the binding document describing the three hardware blocks related to the Light Pulse Generator found in a wide range of Qualcomm PMICs. Signed-off-by: Bjorn Andersson --- Changes since v1: - Dropped custom pattern properties - Renamed cell-index to qcom,lpg-channel to clarify its purpo

[PATCH v2 1/3] leds: core: Introduce generic pattern interface

2017-07-14 Thread Bjorn Andersson
Some LED controllers have support for autonomously controlling brightness over time, according to some preprogrammed pattern or function. This adds a new optional operator that LED class drivers can implement if they support such functionality as well as a new device attribute to configure the pat

Re: [PATCH RFC] scripts/sphinx-pre-install: add a script to check Sphinx install

2017-07-14 Thread Jim Davis
On Fri, Jul 14, 2017 at 10:35 AM, Markus Heiser wrote: > > > Ok, this won't solve TeX installation problems of Linux distros, Which seems to be the thorniest problem. It's one thing to identify which sphinx versions work, and another to figure out which of the metric boatload of TeX packages are

Re: [PATCH 6/8] drm: Allow DSI devices to be registered before the host registers.

2017-07-14 Thread Eric Anholt
Archit Taneja writes: > On 06/28/2017 01:28 AM, Eric Anholt wrote: >> When a mipi_dsi_host is registered, the DT is walked to find any child >> nodes with compatible strings. Those get registered as DSI devices, >> and most DSI panel drivers are mipi_dsi_drivers that attach to those nodes. >> >

Re: [PATCH 6/8] drm: Allow DSI devices to be registered before the host registers.

2017-07-14 Thread Eric Anholt
Archit Taneja writes: > On 06/29/2017 04:09 PM, Andrzej Hajda wrote: >> On 29.06.2017 07:03, Archit Taneja wrote: >>> >>> On 06/28/2017 01:28 AM, Eric Anholt wrote: When a mipi_dsi_host is registered, the DT is walked to find any child nodes with compatible strings. Those get registere

[PATCH 0/3] fat: fix several checkpatch warnings

2017-07-14 Thread Carlos Palminha
fix 3 type of checkpatch warnings, each type per patch: - unnecessary/prohibited whitespaces - missing blank lines after declarations - quoted string split across lines The patchset was based on linux-next tree, tag next-20170714 Carlos Palminha (3): fat: remove prohibited spaces fat

[PATCH 1/3] fat: remove prohibited spaces

2017-07-14 Thread Carlos Palminha
remove prohibited spaces based on checkpatch Signed-off-by: Carlos Palminha --- fs/fat/dir.c| 2 +- fs/fat/namei_vfat.c | 2 +- fs/fat/nfs.c| 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/fat/dir.c b/fs/fat/dir.c index 81cecbe6d7cf..85269ee2bbd1 100644 -

[PATCH 3/3] fat: fix quoted string splits

2017-07-14 Thread Carlos Palminha
corrects quoted string split across lines, based on checkpatch. Signed-off-by: Carlos Palminha --- fs/fat/cache.c | 4 ++-- fs/fat/inode.c | 18 ++ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/fs/fat/cache.c b/fs/fat/cache.c index 470b4831079e..1fa1fd72bcfb 1

[PATCH 2/3] fat: add missing blank lines

2017-07-14 Thread Carlos Palminha
add missing blank lines after declarations, based on checkpatch. Signed-off-by: Carlos Palminha --- fs/fat/cache.c | 1 + fs/fat/dir.c | 5 + fs/fat/fatent.c | 8 fs/fat/file.c| 2 ++ fs/fat/inode.c | 12 fs/fat/misc.c| 2 ++

[PATCH net 0/2] Fragmented SKB corrections

2017-07-14 Thread Doug Berger
Two issues were observed in a review of the bcmgenet driver support for fragmented SKBs which are addressed by this patch set. The first addresses a problem that could occur if the driver is not able to DMA map a fragment of the SKB. This would be a highly unusual event but it would leave the har

[PATCH net 2/2] net: bcmgenet: Free skb after last Tx frag

2017-07-14 Thread Doug Berger
Since the skb is attached to the first control block of a fragmented skb it is possible that the skb could be freed when reclaiming that control block before all fragments of the skb have been consumed by the hardware and unmapped. This commit introduces first_cb and last_cb pointers to the skb co

[PATCH net 1/2] net: bcmgenet: Fix unmapping of fragments in bcmgenet_xmit()

2017-07-14 Thread Doug Berger
In case we fail to map a single fragment, we would be leaving the transmit ring populated with stale entries. This commit introduces the helper function bcmgenet_put_txcb() which takes care of rewinding the per-ring write pointer back to where we left. It also consolidates the functionality of bc

Re: [PATCH v2 00/53] Get rid of Docbook

2017-07-14 Thread Jim Davis
On Thu, Jul 6, 2017 at 1:54 AM, Markus Heiser wrote: > 52b3f23 Docs: clean up some DocBook loose ends Speaking of minor loose ends, make SPHINXDIRS=userspace-api pdfdocs works -- though now that it's all sphinx, wouldn't just DIRS be better? -- and make DOCBOOKS=userspace-api pdfdocs still

Re: [ANNOUNCE] Git v2.14.0-rc0

2017-07-14 Thread Ævar Arnfjörð Bjarmason
On Thu, Jul 13 2017, Junio C. Hamano jotted: Proposed improvements for the release notes (is this a good way to propose RelNotes changes?) > An early preview release Git v2.14.0-rc0 is now available for > testing at the usual places. It is comprised of 675 non-merge > commits since v2.13.0, con

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-14 Thread Eric W. Biederman
Theodore Ts'o writes: > On Fri, Jul 14, 2017 at 01:39:59PM -0700, James Bottomley wrote: >> but why?  That's partly the point of all of this: some security. >> attributes can't be written by container root without some supervision >> (the capability ones are the hugely problematic ones from this

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-14 Thread Mimi Zohar
On Fri, 2017-07-14 at 13:39 -0700, James Bottomley wrote: > On Fri, 2017-07-14 at 16:03 -0400, Mimi Zohar wrote: > > On Fri, 2017-07-14 at 11:52 -0700, James Bottomley wrote: > > > > > > On Fri, 2017-07-14 at 14:48 -0400, Mimi Zohar wrote: > > > > > > > > The concern is with a shared filesystems.

[GIT PULL] xfs: updates for 4.13, part 2

2017-07-14 Thread Darrick J. Wong
Hi Linus, Here are some more changes for you for 4.13; they're largely debugging and regression fixes. The branch merges against this afternoon's HEAD without issue; a quick overnight xfstests run against yesterday's HEAD came out cleanly. Let me know if there are any problems. --Darrick The f

Re: [Intel-gfx] [PATCH RESEND] drm/i915: Fix pipe/transcoder enum mismatches

2017-07-14 Thread Matthias Kaehlcke
El Fri, Jul 14, 2017 at 03:43:35PM -0700 Grant Grundler ha dit: > On Fri, Jul 14, 2017 at 2:35 PM, Daniel Vetter wrote: > > On Fri, Jul 14, 2017 at 7:32 PM, Grant Grundler > > wrote: > >> On Fri, Jul 14, 2017 at 2:11 AM, Jani Nikula > >> wrote: > >>> On Thu, 13 Jul 2017, Stéphane Marchesin >

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-14 Thread Eric W. Biederman
Stefan Berger <"Stefan Bergerstefanb"@linux.vnet.ibm.com> writes: > From: Stefan Berger > > This patch enables security.capability in user namespaces but also > takes a more general approach to enabling extended attributes in user > namespaces. > > The following rules describe the approach using

[PATCH v2] kmemleak: add oom= runtime parameter

2017-07-14 Thread shuwang
From: Shu Wang When running memory stress tests, kmemleak could be easily disabled in function create_object as system is out of memory and kmemleak failed to alloc from object_cache. Since there's no way to enable kmemleak after it's off, simply ignore the object_cache alloc failure will just lo

Re: [PATCH] replace incorrect strscpy use in FORTIFY_SOURCE

2017-07-14 Thread Kees Cook
On Fri, Jul 14, 2017 at 2:28 PM, Daniel Micay wrote: > Using strscpy was wrong because FORTIFY_SOURCE is passing the maximum > possible size of the outermost object, but strscpy defines the count > parameter as the exact buffer size, so this could copy past the end of > the source. This would stil

Re: [GIT PULL] Please pull NFS client changes for Linux 4.13

2017-07-14 Thread Daniel Micay
> I find "hardening" code that adds bugs to be particularly bad and > ugly, the same way that I absolutely *hate* debugging code that turns > out to make debugging impossible (we had that with the "better" stack > tracing code that caused kernel panics to kill the machine entirely > rather than sho

Re: [PATCH v2 01/22] docs: fpga: add a document for Intel FPGA driver overview

2017-07-14 Thread Luebbers, Enno
On Thu, Jul 13, 2017 at 12:25:20PM +0800, Wu Hao wrote: > On Wed, Jul 12, 2017 at 09:51:32AM -0500, Alan Tull wrote: > > On Sun, Jun 25, 2017 at 8:51 PM, Wu Hao wrote: > > > > Hi Hao, > > > > > Add a document for Intel FPGA driver overview. > > > > > > Signed-off-by: Enno Luebbers > > > Signed-

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-14 Thread Eric W. Biederman
James Bottomley writes: > On Fri, 2017-07-14 at 16:03 -0400, Mimi Zohar wrote: >> On Fri, 2017-07-14 at 11:52 -0700, James Bottomley wrote: >> > >> > On Fri, 2017-07-14 at 14:48 -0400, Mimi Zohar wrote: >> > > >> > > The concern is with a shared filesystems.  In that case, for IMA >> > > it wou

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-14 Thread Eric W. Biederman
Mimi Zohar writes: > On Fri, 2017-07-14 at 13:17 -0500, Eric W. Biederman wrote: >> "Serge E. Hallyn" writes: >> >> > Quoting Stefan Berger (stef...@linux.vnet.ibm.com): >> >> On 07/14/2017 09:34 AM, Serge E. Hallyn wrote: >> >> >Quoting Stefan Berger (stef...@linux.vnet.ibm.com): >> >> >>On 07

Re: [PATCH] replace incorrect strscpy use in FORTIFY_SOURCE

2017-07-14 Thread Daniel Micay
On Fri, 2017-07-14 at 16:51 -0700, Kees Cook wrote: > On Fri, Jul 14, 2017 at 2:28 PM, Daniel Micay > wrote: > > Using strscpy was wrong because FORTIFY_SOURCE is passing the > > maximum > > possible size of the outermost object, but strscpy defines the count > > parameter as the exact buffer size

[PATCH] ext4: inplace xattr block update fails to deduplicate blocks

2017-07-14 Thread Tahsin Erdogan
When an xattr block has a single reference, block is updated inplace and it is reinserted to the cache. Later, a cache lookup is performed to see whether an existing block has the same contents. This cache lookup will most of the time return the just inserted entry so deduplication is not achieved.

[PATCH] Documentation: dt: chosen property for kaslr-seed

2017-07-14 Thread Kees Cook
Document then /chosen/kaslr-seed property (and its interaction with the EFI_RNG_PROTOCOL API). Signed-off-by: Kees Cook --- Documentation/devicetree/bindings/chosen.txt | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/c

Makefile in libfdt shows non-existent files

2017-07-14 Thread Kyle Yan
Hi Rob, I was trying the latest dtc as on Linux 4.12 for device tree overlay. On the latest kernel, I see the following commit: commit 6f05afcbb031722ec1eff77dde188ff2edf8940e ("scripts/dtc: Update to upstream version 0931cea3ba20") This seems to pull in various upstream dtc commits for dtc

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-07-14 Thread Jerome Glisse
On Fri, Jul 14, 2017 at 12:43:51PM -0700, Evgeny Baskakov wrote: > On 7/13/17 1:16 PM, Jerome Glisse wrote: > Hi Jerome, > > I have hit another kind of hang. Briefly, if a not yet allocated page faults > on CPU during migration to device memory, any subsequent migration will fail > for such page.

[PATCH] drm/i915: Consistently use enum pipe for PCH transcoders

2017-07-14 Thread Matthias Kaehlcke
The current code uses two different enum types for PCH transcoders and performs implicit conversions between the two types. This is error prone and causes clang to raise warnings like this: drivers/gpu/drm/i915/intel_dp.c:3546:51: warning: implicit conversion from enumeration type 'enum pipe' to

Re: Makefile in libfdt shows non-existent files

2017-07-14 Thread Rob Herring
On Fri, Jul 14, 2017 at 7:52 PM, Kyle Yan wrote: > Hi Rob, > > I was trying the latest dtc as on Linux 4.12 for device tree overlay. On the > latest kernel, I see the following commit: > > commit 6f05afcbb031722ec1eff77dde188ff2edf8940e ("scripts/dtc: Update to > upstream version 0931cea3ba20") >

[RFC v2] scripts/sphinx-pre-install: add a script to check Sphinx install

2017-07-14 Thread Mauro Carvalho Chehab
Solving Sphinx dependencies can be painful. Add a script to check if everything is ok. Tested on Fedora 26 and Ubuntu 17.04. Signed-off-by: Mauro Carvalho Chehab --- v2: add support for Fedora 26 scripts/sphinx-pre-install | 321 + 1 file changed, 3

Re: [PATCH 3/3] fat: fix quoted string splits

2017-07-14 Thread Andy Shevchenko
On Sat, Jul 15, 2017 at 2:05 AM, Carlos Palminha wrote: > corrects quoted string split across lines, based on checkpatch. At some point you may switch fat_msg(sb, KERN_ERR, ...) to fat_fs_error(sb, ...) > > Signed-off-by: Carlos Palminha > --- > fs/fat/cache.c | 4 ++-- > fs/fat/inode.c |

[PATCH] f2fs: avoid cpu lockup

2017-07-14 Thread Jaegeuk Kim
Before retrying to flush data or dentry pages, we need to release cpu in order to prevent watchdog. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 56bbf592e487..c96913c5

[PATCH for v4.9 LTS 08/87] net/mlx5: Disable RoCE on the e-switch management port under switchdev mode

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Or Gerlitz [ Upstream commit 9da34cd34e85aacc55af8774b81b1f23e86014f9 ] Under the switchdev/offloads mode, packets that don't match any e-switch steering rule are sent towards the e-switch management port. We use a NIC HW steering rule set per vport (uplink and VFs) to make them be receive

[PATCH for v4.9 LTS 03/87] ARM: omap2+: fixing wrong strcat for Non-NULL terminated string

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Maninder Singh [ Upstream commit 5066d5296ff2db20625e5f46e7338872c90c649f ] Issue caught with static analysis tool: "Dangerous usage of 'name' (strncpy doesn't always 0-terminate it)" Use strlcpy _includes_ the NUL terminator, and strlcat() which ensures that it won't overflow the buffer

[PATCH for v4.9 LTS 48/87] ASoC: fsl_ssi: set fifo watermark to more reliable value

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Caleb Crome [ Upstream commit 4ee437fbf626b5ad756889d8bc0fcead3d66dde7 ] The fsl_ssi fifo watermark is by default set to 2 free spaces (i.e. activate DMA on FIFO when only 2 spaces are left.) This means the DMA must service the fifo within 2 audio samples, which is just not enough time f

[PATCH for v4.9 LTS 66/87] spi: spi-axi: Free resources on error path

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Christophe JAILLET [ Upstream commit 9620ca90115d4bd700f05862d3b210a266a66efe ] We should go to 'err_put_master' here instead of returning directly. Otherwise a call to 'spi_master_put' is missing. Signed-off-by: Christophe JAILLET Acked-by: Lars-Peter Clausen Signed-off-by: Mark Brown

[PATCH for v4.9 LTS 73/87] scsi: qla2xxx: Get mutex lock before checking optrom_state

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: "Milan P. Gandhi" [ Upstream commit c7702b8c22712a06080e10f1d2dee1a133ec8809 ] There is a race condition with qla2xxx optrom functions where one thread might modify optrom buffer, optrom_state while other thread is still reading from it. In couple of crashes, it was found that we had succ

[PATCH for v4.9 LTS 60/87] ASoC: dpcm: Avoid putting stream state to STOP when FE stream is paused

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Patrick Lai [ Upstream commit 9f169b9f52a4afccdab7a7d2311b0c53a78a1e6b ] When multiple front-ends are using the same back-end, putting state of a front-end to STOP state upon receiving pause command will result in backend stream getting released by DPCM framework unintentionally. In order

Re: [PATCH RFC] scripts/sphinx-pre-install: add a script to check Sphinx install

2017-07-14 Thread Mauro Carvalho Chehab
Em Fri, 14 Jul 2017 15:51:03 -0700 Jim Davis escreveu: > On Fri, Jul 14, 2017 at 10:35 AM, Markus Heiser > wrote: > > > > > > Ok, this won't solve TeX installation problems of Linux distros, > > Which seems to be the thorniest problem. It's one thing to identify > which sphinx versions work,

Re: [RESEND][PATCH v5] MIPS: NI 169445 board support

2017-07-14 Thread Rob Herring
On Fri, Jul 14, 2017 at 12:33:27PM -0500, Nathan Sullivan wrote: > Support the National Instruments 169445 board. > > Signed-off-by: Nathan Sullivan > --- > > Changes from v4: > > - Address Rob Herring's device tree feedback > > Documentation/devicetree/bindings/mips/ni.txt | 7 ++ > MAI

[PATCH for v4.9 LTS 61/87] sh_eth: fix EESIPR values for SH77{34|63}

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Sergei Shtylyov [ Upstream commit 978d3639fd13d987950e4ce85c8737ae92154b2c ] As the SH77{34|63} manuals are freely available, I've checked the EESIPR values written against the manuals, and they appeared to set the reserved bits 11-15 (which should be 0 on write). Fix those EESIPR values.

[PATCH for v4.9 LTS 70/87] ipv4: make tcp_notsent_lowat sysctl knob behave as true unsigned int

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Pavel Tikhomirov [ Upstream commit b007f09072ca8afa118ade333e717ba443e8d807 ] > cat /proc/sys/net/ipv4/tcp_notsent_lowat -1 > echo 4294967295 > /proc/sys/net/ipv4/tcp_notsent_lowat -bash: echo: write error: Invalid argument > echo -2147483648 > /proc/sys/net/ipv4/tcp_notsent_lowat > cat /p

[PATCH for v4.9 LTS 64/87] tg3: Fix race condition in tg3_get_stats64().

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Michael Chan [ Upstream commit f5992b72ebe0dde488fa8f706b887194020c66fc ] The driver's ndo_get_stats64() method is not always called under RTNL. So it can race with driver close or ethtool reconfigurations. Fix the race condition by taking tp->lock spinlock in tg3_free_consistent() when f

[PATCH for v4.9 LTS 67/87] ASoC: rt5645: set sel_i2s_pre_div1 to 2

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Bard Liao [ Upstream commit 02c5c03283c52157d336abf5e44ffcda10579fbf ] The i2s clock pre-divider 1 is used for both i2s1 and sysclk. The i2s1 is usually used for the main i2s and the pre-divider will be set in hw_params function. However, if i2s2 is used, the pre-divider is not set in the

[PATCH for v4.9 LTS 85/87] mm: don't dereference struct page fields of invalid pages

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Ard Biesheuvel [ Upstream commit f073bdc51771f5a5c7a8d1191bfc3ae371d44de7 ] The VM_BUG_ON() check in move_freepages() checks whether the node id of a page matches the node id of its zone. However, it does this before having checked whether the struct page pointer refers to a valid struct

Re: [PATCH 1/3] dt-bindings: regulator: Add STM32 Voltage Reference Buffer

2017-07-14 Thread Rob Herring
On Tue, Jul 11, 2017 at 02:30:31PM +0200, Fabrice Gasnier wrote: > Document STM32 VREFBUF (voltage reference buffer) which can be used as > voltage reference for ADCs, DACs and external components. > > Signed-off-by: Fabrice Gasnier > --- > .../bindings/regulator/st,stm32-vrefbuf.txt |

[PATCH for v4.9 LTS 87/87] net/mlx5: E-Switch, Re-enable RoCE on mode change only after FDB destroy

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Or Gerlitz [ Upstream commit 5bae8c031053c69b4aa74b7f1ba15d4ec8426208 ] We must re-enable RoCE on the e-switch management port (PF) only after destroying the FDB in its switchdev/offloaded mode. Otherwise, when encapsulation is supported, this re-enablement will fail. Also, it's more na

[PATCH for v4.9 LTS 86/87] net: account for current skb length when deciding about UFO

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Michal Kubeček [ Upstream commit a5cb659bbc1c8644efa0c3138a757a1e432a4880 ] Our customer encountered stuck NFS writes for blocks starting at specific offsets w.r.t. page boundary caused by networking stack sending packets via UFO enabled device with wrong checksum. The problem can be repro

[PATCH for v4.9 LTS 84/87] signal: protect SIGNAL_UNKILLABLE from unintentional clearing.

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Jamie Iles [ Upstream commit 2d39b3cd34e6d323720d4c61bd714f5ae202c022 ] Since commit 00cd5c37afd5 ("ptrace: permit ptracing of /sbin/init") we can now trace init processes. init is initially protected with SIGNAL_UNKILLABLE which will prevent fatal signals such as SIGSTOP, but there are a

[PATCH for v4.9 LTS 82/87] mm, slab: make sure that KMALLOC_MAX_SIZE will fit into MAX_ORDER

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Michal Hocko [ Upstream commit bb1107f7c6052c863692a41f78c000db792334bf ] Andrey Konovalov has reported the following warning triggered by the syzkaller fuzzer. WARNING: CPU: 1 PID: 9935 at mm/page_alloc.c:3511 __alloc_pages_nodemask+0x159c/0x1e20 Kernel panic - not syncing: panic_on

[PATCH for v4.9 LTS 63/87] net: phy: dp83867: fix irq generation

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Grygorii Strashko [ Upstream commit 5ca7d1ca77dc23934504b95a96d2660d345f83c2 ] For proper IRQ generation by DP83867 phy the INT/PWDN pin has to be programmed as an interrupt output instead of a Powerdown input in Configuration Register 3 (CFG3), Address 0x001E, bit 7 INT_OE = 1. The curren

[PATCH for v4.9 LTS 72/87] libfs: Modify mount_pseudo_xattr to be clear it is not a userspace mount

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: "Eric W. Biederman" [ Upstream commit 75422726b0f717d67db3283c2eb5bc14fa2619c5 ] Add MS_KERNMOUNT to the flags that are passed. Use sget_userns and force &init_user_ns instead of calling sget so that even if called from a weird context the internal filesystem will be considered to be in th

[PATCH for v4.9 LTS 81/87] ARM: 8632/1: ftrace: fix syscall name matching

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Rabin Vincent [ Upstream commit 270c8cf1cacc69cb8d99dea812f06067a45e4609 ] ARM has a few system calls (most notably mmap) for which the names of the functions which are referenced in the syscall table do not match the names of the syscall tracepoints. As a consequence of this, these trace

[PATCH for v4.9 LTS 65/87] x86/boot: Add missing declaration of string functions

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Nicholas Mc Guire [ Upstream commit fac69d0efad08fc15e4dbfc116830782acc0dc9a ] Add the missing declarations of basic string functions to string.h to allow a clean build. Fixes: 5be865661516 ("String-handling functions for the new x86 setup code.") Signed-off-by: Nicholas Mc Guire Link:

[PATCH for v4.9 LTS 77/87] ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Emmanuel Vadot [ Upstream commit 3116d37651d77125bf50f81f859b1278e02ccce6 ] The node name for the power seq pin is mmc2@0 like the mmc2_pins_a one. This makes the original node (mmc2_pins_a) scrapped out of the dtb and result in a unusable eMMC if U-Boot didn't configured the pins to the c

[PATCH for v4.9 LTS 83/87] lib/Kconfig.debug: fix frv build failure

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Sudip Mukherjee [ Upstream commit da0510c47519fe0999cffe316e1d370e29f952be ] The build of frv allmodconfig was failing with the errors like: /tmp/cc0JSPc3.s: Assembler messages: /tmp/cc0JSPc3.s:1839: Error: symbol `.LSLT0' is already defined /tmp/cc0JSPc3.s:1842: Error: symbol `.LAS

[PATCH for v4.9 LTS 79/87] nbd: blk_mq_init_queue returns an error code on failure, not NULL

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Jeff Moyer [ Upstream commit 25b4acfc7de0fc4da3bfea3a316f7282c6fbde81 ] Additionally, don't assign directly to disk->queue, otherwise blk_put_queue (called via put_disk) will choke (panic) on the errno stored there. Bug found by code inspection after Omar found a similar issue in virtio_b

[PATCH for v4.9 LTS 71/87] clk/samsung: exynos542x: mark some clocks as critical

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Marek Szyprowski [ Upstream commit 318fa46cc60d37fec1e87dbf03a82aca0f5ce695 ] Some parent clocks of the Exynos542x clock blocks, which have separate power domains (like DISP, MFC, MSC, GSC, FSYS and G2D) must be always enabled to access any register related to power management unit or devi

[PATCH for v4.9 LTS 62/87] sh_eth: R8A7740 supports packet shecksumming

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Sergei Shtylyov [ Upstream commit 0f1f9cbc04dbb3cc310f70a11cba0cf1f2109d9c ] The R8A7740 GEther controller supports the packet checksum offloading but the 'hw_crc' (bad name, I'll fix it) flag isn't set in the R8A7740 data, thus CSMR isn't cleared... Fixes: 73a0d907301e ("net: sh_eth: ad

[PATCH for v4.9 LTS 78/87] iw_cxgb4: do not send RX_DATA_ACK CPLs after close/abort

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Steve Wise [ Upstream commit 3bcf96e0183f5c863657cb6ae9adad307a0f6071 ] Function rx_data(), which handles ingress CPL_RX_DATA messages, was always sending an RX_DATA_ACK with the goal of updating the credits. However, if the RDMA connection is moved out of FPDU mode abruptly, then it is po

[PATCH for v4.9 LTS 80/87] virtio_blk: fix panic in initialization error path

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Omar Sandoval [ Upstream commit 6bf6b0aa3da84a3d9126919a94c49c0fb7ee2fb3 ] If blk_mq_init_queue() returns an error, it gets assigned to vblk->disk->queue. Then, when we call put_disk(), we end up calling blk_put_queue() with the ERR_PTR, causing a bad dereference. Fix it by only assigning

[PATCH for v4.9 LTS 74/87] drm/virtio: fix framebuffer sparse warning

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Gerd Hoffmann [ Upstream commit 71d3f6ef7f5af38dea2975ec5715c88bae92e92d ] virtio uses normal ram as backing storage for the framebuffer, so we should assign the address to new screen_buffer (added by commit 17a7b0b4d9749f80d365d7baff5dec2f54b0e992) instead of screen_base. Reported-by: Mi

[PATCH for v4.9 LTS 76/87] ARM: dts: sun8i: Support DTB build for NanoPi M1

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Milo Kim [ Upstream commit 661ccdc1a95f18ab6c1373322fde09afd5b90a1f ] The commit 10efbf5f1633 ("ARM: dts: sun8i: Add dts file for NanoPi M1 SBC") introduced NanoPi M1 board but it's missing in Allwinner H3 DTB build. Signed-off-by: Milo Kim Signed-off-by: Maxime Ripard Signed-off-by: Sa

[PATCH for v4.9 LTS 69/87] phy state machine: failsafe leave invalid RUNNING state

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Zefir Kurtisi [ Upstream commit 811a919135b980bac8009d042acdccf10dc1ef5e ] While in RUNNING state, phy_state_machine() checks for link changes by comparing phydev->link before and after calling phy_read_status(). This works as long as it is guaranteed that phydev->link is never changed out

[PATCH for v4.9 LTS 68/87] netfilter: use fwmark_reflect in nf_send_reset

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Pau Espin Pedrol [ Upstream commit cc31d43b4154ad5a7d8aa5543255a93b7e89edc2 ] Otherwise, RST packets generated by ipt_REJECT always have mark 0 when the routing is checked later in the same code path. Fixes: e110861f8609 ("net: add a sysctl to reflect the fwmark on replies") Cc: Lorenzo C

[PATCH for v4.9 LTS 75/87] ARM: dts: sun6i: hummingbird: Enable display engine again

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Chen-Yu Tsai [ Upstream commit 6b546c2a15f9d8d3b1fb22adeb4063d497b08265 ] Now that we disable the display engine by default, we need to re-enable it for the Hummingbird A31, which already had its display pipeline enabled. Signed-off-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard Signed-o

[PATCH for v4.9 LTS 36/87] benet: stricter vxlan offloading check in be_features_check

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Sabrina Dubroca [ Upstream commit 096de2f83ebc8e0404c5b7e847a4abd27b9739da ] When VXLAN offloading is enabled, be_features_check() tries to check if an encapsulated packet is indeed a VXLAN packet. The check is not strict enough, and considers any UDP-encapsulated ethernet frame with a 8-b

[PATCH for v4.9 LTS 59/87] ASoC: Intel: Skylake: Release FW ctx in cleanup

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Jeeja KP [ Upstream commit bc65a326c579e93a5c2120a65ede72f11369ee5a ] Saved firmware ctx was not never released, so release Firmware ctx in cleanup routine. Signed-off-by: Jeeja KP Acked-by: Vinod Koul Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/skylake/s

[PATCH for v4.9 LTS 16/87] vfio-pci: use 32-bit comparisons for register address for gcc-4.5

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Arnd Bergmann [ Upstream commit 45e869714489431625c569d21fc952428d761476 ] Using ancient compilers (gcc-4.5 or older) on ARM, we get a link failure with the vfio-pci driver: ERROR: "__aeabi_lcmp" [drivers/vfio/pci/vfio-pci.ko] undefined! The reason is that the compiler tries to do a comp

[PATCH for v4.9 LTS 54/87] ASoC: Intel: bytcr-rt5640: fix settings in internal clock mode

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Pierre-Louis Bossart [ Upstream commit 60448b077ed93d227e6c117a9e87db76ff0c1911 ] Frequency value of zero did not make sense, use same 24.576MHz setting and only change the clock source in idle mode Suggested-by: Bard Liao Signed-off-by: Pierre-Louis Bossart Signed-off-by: Mark Brown S

[PATCH for v4.9 LTS 46/87] nvmem: imx-ocotp: Fix wrong register size

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Daniel Schultz [ Upstream commit 14ba972842f9e84e6d3264bc0302101b8a792288 ] All i.MX6 SoCs have an OCOTP Controller with 4kbit fuses. The i.MX6SL is an exception and has only 2kbit fuses. In the TRM for the i.MX6DQ (IMX6QDRM - Rev 2, 06/2014) the fuses size is described in chapter 46.1.1

[PATCH for v4.9 LTS 50/87] ARCv2: IRQ: Call entry/exit functions for chained handlers in MCIP

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Yuriy Kolerov [ Upstream commit e51d5d02f688c45b6f644f472f0c80fdfa73f0cb ] It is necessary to call entry/exit functions for parent interrupt controllers for proper masking/unmasking of interrupt lines. Signed-off-by: Yuriy Kolerov Signed-off-by: Vineet Gupta Signed-off-by: Sasha Levin

[PATCH for v4.9 LTS 49/87] sh_eth: enable RX descriptor word 0 shift on SH7734

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Sergei Shtylyov [ Upstream commit 71eae1ca77fd6be218d8a952d97bba827e56516d ] The RX descriptor word 0 on SH7734 has the RFS[9:0] field in bits 16-25 (bits 0-15 usually used for that are occupied by the packet checksum). Thus we need to set the 'shift_rd0' field in the SH7734 SoC data...

[PATCH for v4.9 LTS 56/87] scsi: fnic: Avoid sending reset to firmware when another reset is in progress

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Satish Kharat [ Upstream commit 9698b6f473555a722bf81a3371998427d5d27bde ] This fix is to avoid calling fnic_fw_reset_handler through fnic_host_reset when a finc reset is alreay in progress. Signed-off-by: Satish Kharat Signed-off-by: Sesidhar Baddela Signed-off-by: Martin K. Petersen

[PATCH for v4.9 LTS 47/87] net: usb: asix_devices: add .reset_resume for USB PM

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Peter Chen [ Upstream commit 63dfb0dac9055145db85ce764355aef2f563739a ] The USB core may call reset_resume when it fails to resume asix device. And USB core can recovery this abnormal resume at low level driver, the same .resume at asix driver can work too. Add .reset_resume can avoid disc

[PATCH for v4.9 LTS 38/87] Xen: ARM: Zero reserved fields of xatp before making hypervisor call

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Jiandi An [ Upstream commit 0b47a6bd1150f4846b1d61925a4cc5a96593a541 ] Ensure all reserved fields of xatp are zero before making hypervisor call to XEN in xen_map_device_mmio(). xenmem_add_to_physmap_one() in XEN fails the mapping request if extra.res reserved field in xatp is not zero for

[PATCH for v4.9 LTS 45/87] arm64: mm: fix show_pte KERN_CONT fallout

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Mark Rutland [ Upstream commit 6ef4fb387d50fa8f3bffdffc868b57e981cdd709 ] Recent changes made KERN_CONT mandatory for continued lines. In the absence of KERN_CONT, a newline may be implicit inserted by the core printk code. In show_pte, we (erroneously) use printk without KERN_CONT for co

[PATCH for v4.9 LTS 28/87] ARM64: zynqmp: Fix W=1 dtc 1.4 warnings

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Michal Simek [ Upstream commit 4ea2a6be9565455f152c12f80222af1582ede0c7 ] The patch removes these warnings reported by dtc 1.4: Warning (unit_address_vs_reg): Node /amba_apu has a reg or ranges property, but no unit name Warning (unit_address_vs_reg): Node /memory has a reg or ranges prope

[PATCH for v4.9 LTS 43/87] perf probe: Fix to probe on gcc generated symbols for offline kernel

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Masami Hiramatsu [ Upstream commit 8a937a25a7e3c19d5fb3f9d92f605cf5fda219d8 ] Fix perf-probe to show probe definition on gcc generated symbols for offline kernel (including cross-arch kernel image). gcc sometimes optimizes functions and generate new symbols with suffixes such as ".constpr

[PATCH for v4.9 LTS 09/87] ipv6: Should use consistent conditional judgement for ip6 fragment between __ip6_append_data and ip6_finish_output

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Zheng Li [ Upstream commit e4c5e13aa45c23692e4acf56f0b3533f328199b2 ] There is an inconsistent conditional judgement between __ip6_append_data and ip6_finish_output functions, the variable length in __ip6_append_data just include the length of application's payload and udp6 header, don't i

[PATCH for v4.9 LTS 35/87] Btrfs: fix lockdep warning about log_mutex

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Liu Bo [ Upstream commit 781feef7e6befafd4d9787d1f7ada1f9ccd504e4 ] While checking INODE_REF/INODE_EXTREF for a corner case, we may acquire a different inode's log_mutex with holding the current inode's log_mutex, and lockdep has complained this with a possilble deadlock warning. Fix this

[PATCH for v4.9 LTS 58/87] scsi: bfa: Increase requested firmware version to 3.2.5.1

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Benjamin Poirier [ Upstream commit 2d1148f0f45079d25a0fa0d67e4fdb2a656d12fb ] bna & bfa firmware version 3.2.5.1 was submitted to linux-firmware on Feb 17 19:10:20 2015 -0500 in 0ab54ff1dc ("linux-firmware: Add QLogic BR Series Adapter Firmware"). bna was updated to use the newer firmware

[PATCH for v4.9 LTS 53/87] perf/x86: Set pmu->module in Intel PMU modules

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: David Carrillo-Cisneros [ Upstream commit 74545f63890e38520eb4d1dbedcadaa9c0dbc824 ] The conversion of Intel PMU drivers into modules did not include reference counting. The machine will crash when attempting to access deleted code if an event from a module PMU is started and the module r

[PATCH for v4.9 LTS 32/87] ACPI / scan: Prefer devices without _HID/_CID for _ADR matching

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: "Rafael J. Wysocki" [ Upstream commit c2a6bbaf0c5f90463a7011a295bbdb7e33c80b51 ] The way acpi_find_child_device() works currently is that, if there are two (or more) devices with the same _ADR value in the same namespace scope (which is not specifically allowed by the spec and the OS behav

[PATCH for v4.9 LTS 33/87] usb: gadget: Fix copy/pasted error message

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: David Lechner [ Upstream commit 43aef5c2ca90535b3227e97e71604291875444ed ] This fixes an error message that was probably copied and pasted. The same message is used for both the in and out endpoints, so it makes it impossible to know which one actually failed because both cases say "IN".

[PATCH for v4.9 LTS 52/87] x86/platform/intel-mid: Rename 'spidev' to 'mrfld_spidev'

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Andy Shevchenko [ Upstream commit 159d3726db12b3476bc59ea0ab0a702103d466b5 ] The current implementation supports only Intel Merrifield platforms. Don't mess with the rest of the Intel MID family by not registering device with wrong properties. Signed-off-by: Andy Shevchenko Cc: Linus Tor

<    2   3   4   5   6   7   8   >