Race condition between iget_locked() and evict_inodes()

2016-09-29 Thread Anton Altaparmakov
Hi Al, I think there is a race condition between iget_locked() and evict_inodes(). evict_inodes() checks i_count and if zero proceeds to take i_lock then set I_FREEING and eventually disposes of the inode. But a concurrent iget_locked() takes i_lock and then increments i_count. Thus if the eve

Re: [PATCH v2 0/8] pipe: fix limit handling

2016-09-29 Thread Vegard Nossum
On 08/29/2016 02:20 AM, Michael Kerrisk (man-pages) wrote: When changing a pipe's capacity with fcntl(F_SETPIPE_SZ), various limits defined by /proc/sys/fs/pipe-* files are checked to see if unprivileged users are exceeding limits on memory consumption. While documenting and testing the operatio

Re: [PATCH 4/5] ACPI / property: Allow holes in reference properties

2016-09-29 Thread Mika Westerberg
On Thu, Sep 29, 2016 at 01:53:50PM +0200, Rafael J. Wysocki wrote: > On Thursday, September 29, 2016 09:48:29 AM Mika Westerberg wrote: > > On Wed, Sep 28, 2016 at 11:36:10PM +0200, Rafael J. Wysocki wrote: > > > On Fri, Sep 23, 2016 at 4:57 PM, Mika Westerberg > > > wrote: > > > > DT allows holes

[PATCH] s390x/spinlock: Provide vcpu_is_preempted globally

2016-09-29 Thread Christian Borntraeger
this implements the s390 backend for commit "kernel/sched: introduce vcpu preempted check interface" by simply reusing the existing cpu_is_preempted function. Signed-off-by: Christian Borntraeger --- Martin, Heiko, this patch is a minimal change by not touching all existing users of cpu_is_preem

Re: [PATCH 2/3] x86/boot: Fix another __read_cr4() case on 486

2016-09-29 Thread Borislav Petkov
On Wed, Sep 28, 2016 at 12:34:15PM -0700, Andy Lutomirski wrote: > The condition for reading CR4 was wrong: there are some CPUs with > CPUID but not CR4. Rather than trying to make the condition exact, > using __read_cr4_safe(). > > Reported-by: da...@saggiorato.net > Fixes: 18bc7bd523e0 ("x86/bo

Re: [PATCH 4/5] ACPI / property: Allow holes in reference properties

2016-09-29 Thread Rafael J. Wysocki
On Thursday, September 29, 2016 09:48:29 AM Mika Westerberg wrote: > On Wed, Sep 28, 2016 at 11:36:10PM +0200, Rafael J. Wysocki wrote: > > On Fri, Sep 23, 2016 at 4:57 PM, Mika Westerberg > > wrote: > > > DT allows holes or empty phandles for references. This is used for example > > > in SPI subs

Re: [PATCH v2 5/8] pipe: simplify logic in alloc_pipe_info()

2016-09-29 Thread Vegard Nossum
On 08/29/2016 02:21 AM, Michael Kerrisk (man-pages) wrote: Replace an 'if' block that covers most of the code in this function with a 'goto'. This makes the code a little simpler to read, and also simplifies the next patch (fix limit checking in alloc_pipe_info()) Cc: Willy Tarreau Cc: Vegard N

Re: dm snapshot: Use kmalloc_array() in init_origin_hash()

2016-09-29 Thread SF Markus Elfring
> We have no hope of fixing Markus' homegrown coccinelle script. I have got an other impression. I see further possibilities to clarify involved communication and software development challenges for a few source code search patterns. How do you think about to discuss the corresponding collateral

Re: [PATCH 01/10] dm snapshot: Use kmalloc_array() in init_origin_hash()

2016-09-29 Thread Paul Bolle
On Thu, 2016-09-29 at 13:12 +0200, Paul Bolle wrote: > Or did I misread that test? I finally did some digging: commit e367455a9f25 ("checkpatch: emit fewer kmalloc_array/kcalloc conversion warnings") shows I didn't. Paul Bolle

Re: [PATCH 1/3] x86/init: Fix cr4_init_shadow() on CR4-less machines

2016-09-29 Thread Borislav Petkov
On Wed, Sep 28, 2016 at 12:34:14PM -0700, Andy Lutomirski wrote: > cr4_init_shadow() will panic on 486-like machines without CR4. Fix > it using __read_cr4_safe(). > > Cc: sta...@vger.kernel.org > Reported-by: da...@saggiorato.net > Fixes: 1e02ce4cccdc ("x86: Store a per-cpu shadow copy of CR4")

[PATCH] spmi: regmap: enable userspace writes

2016-09-29 Thread Kiran Gunda
Being able to write to spmi registers via userspace is required for quick debug and development. Enable it. The regmap framework uses dev_name to create debugfs dir names. So update the spmi devices to have proper names. Signed-off-by: Kiran Gunda --- drivers/base/regmap/regmap-debugfs.c | 2 +-

Re: [PATCH v3] f2fs: introduce get_checkpoint_version for cleanup

2016-09-29 Thread Chao Yu
On 2016/9/28 2:32, Tiezhu Yang wrote: > There exists almost same codes when get the value of pre_version > and cur_version in function validate_checkpoint, this patch adds > get_checkpoint_version to clean up redundant codes. > > Signed-off-by: Tiezhu Yang > --- > fs/f2fs/checkpoint.c | 68 > ++

Re: [PATCH v2 00/23] drm/omap: Convert to use videomode from omap_video_timings

2016-09-29 Thread Tomi Valkeinen
On 22/09/16 14:06, Peter Ujfalusi wrote: > Hi, > > Changes since v1: > - separated the patches from the sync drive edge selection series [1] > - commit messages updated as per Tomi's comments > - other comments from Tomi for patch 10 (was 13) and 11 (was 14) addressed > also > > The following se

Re: ATA failure regression

2016-09-29 Thread t...@kernel.org
Hello, (cc'ing Dan, hi!) On Thu, Sep 29, 2016 at 08:25:58AM -0300, Henrique de Moraes Holschuh wrote: > Actually, according to Shah's post from the 26th to this thread, > everything works just fine even with the IOMMU enabled, as long as the > system is configured to NOT auto-shutdown unused SATA

[PATCH] pci: remove error message when device not present

2016-09-29 Thread Grant Likely
It's not an error if the IBM ACPI pseudo-device isn't present, it merely means the kernel isn't running on that IBM hardware. Get rid of the error report so as not to pollute the kernel log with an message irrelevant to the vast majority of users. If someone wants to debug it, they can turn on the

Re: [RESEND PATCH 1/1] mm/percpu.c: correct max_distance calculation for pcpu_embed_first_chunk()

2016-09-29 Thread zijun_hu
On 2016/9/29 18:35, Tejun Heo wrote: > Hello, > > On Sat, Sep 24, 2016 at 07:20:49AM +0800, zijun_hu wrote: >> it is error to represent the max range max_distance spanned by all the >> group areas as the offset of the highest group area plus unit size in >> pcpu_embed_first_chunk(), it should equa

Re: [RFC 0/5] printk: Implement WARN_*DEFERRED()

2016-09-29 Thread Petr Mladek
On Wed 2016-09-28 10:18:45, Sergey Senozhatsky wrote: > On (09/27/16 18:02), Petr Mladek wrote: > > The main trick is that we replace the per-CPU function pointer > > by a preempt_count-like variable that could track the printk context. > > > > I know that Sergey has another ideas in this area. Bu

Re: [PATCH v3] staging: fbtft: Fix checkpatch warning

2016-09-29 Thread Greg KH
On Thu, Sep 29, 2016 at 11:13:26AM +0100, Carlos Palminha wrote: > Fixed the following checkpatch warnings (task #10 of eudyptula challenge): > - removed unnecessary blank line after open brace > - NULL comparison rewritten to use '!' operator That is two totally different things, this requires 2

Re: [PATCH v2 2/8] pipe: move limit checking logic into pipe_set_size()

2016-09-29 Thread Vegard Nossum
On 08/29/2016 02:21 AM, Michael Kerrisk (man-pages) wrote: This is a preparatory patch for following work. Move the F_SETPIPE_SZ limit-checking logic from pipe_fcntl() into pipe_set_size(). This simplifies the code a little, and allows for reworking required in a later patch that fixes the limit

Re: ATA failure regression

2016-09-29 Thread Henrique de Moraes Holschuh
On Thu, 29 Sep 2016, t...@kernel.org wrote: > On Wed, Sep 28, 2016 at 05:45:08AM +, Shah, Nehal-bakulchandra wrote: > > Can someone please help me to debug this issue? > > The only thing I can do from libata side is disbling msi on the > affected platform, but the problem doesn't seem confined

Re: [LINUX PATCH] usb: gadget: Configure data verification through module parameter in gadget zero

2016-09-29 Thread Greg KH
On Thu, Sep 29, 2016 at 02:18:54PM +0530, Manish Narani wrote: > This patch adds support to configure data verification through > module parameter. This parameter can be used to disable data > verification in case if one wants to measure peak Bulk/Isoc-IN/OUT > performance > > Signed-off-by: Manis

Re: [PATCH] mm/vmalloc: reduce the number of lazy_max_pages to reduce latency

2016-09-29 Thread Jisheng Zhang
On Thu, 29 Sep 2016 12:07:14 +0100 Chris Wilson wrote: > On Thu, Sep 29, 2016 at 04:28:08PM +0800, Jisheng Zhang wrote: > > On Thu, 29 Sep 2016 09:18:18 +0100 Chris Wilson wrote: > > > > > On Thu, Sep 29, 2016 at 03:34:11PM +0800, Jisheng Zhang wrote: > > > > On Marvell berlin arm64 platforms

[LINUX PATCH] usb: gadget: Configure bulk maxburst through module parameter in gadget zero.

2016-09-29 Thread Manish Narani
This patch adds support to configure bulk maxburst through module parameter. This parameter can be used to modify bulk maxburst in case if one wants to measure peak Bulk/Isoc-IN/OUT performance. Signed-off-by: Manish Narani --- drivers/usb/gadget/function/f_sourcesink.c | 14 ++ dr

Re: [PATCH v7 5/6] mfd: lpc_ich: Add Device IDs for Intel Apollo Lake PCH

2016-09-29 Thread Mika Westerberg
On Wed, Sep 28, 2016 at 05:52:22PM +0800, Tan Jui Nee wrote: > Adding Intel codename Apollo Lake platform device IDs for PCH. > > Signed-off-by: Tan Jui Nee > --- > drivers/mfd/lpc_ich-core.c | 6 ++ It should be either lpc_ich_core.c or lpc-ich-core.c. Ditto for -apl.c thing.

Re: [PATCH 01/10] dm snapshot: Use kmalloc_array() in init_origin_hash()

2016-09-29 Thread Paul Bolle
On Thu, 2016-09-29 at 03:02 -0700, Joe Perches wrote: > What's the false positive? > > I get: > > $ ./scripts/checkpatch.pl -f drivers/md/dm-snap.c --show-types > --types=alloc_with_multiply > WARNING:ALLOC_WITH_MULTIPLY: Prefer kmalloc_array over kmalloc with multiply > #329: FILE: drivers/md/d

Re: [PATCH] mm/vmalloc: reduce the number of lazy_max_pages to reduce latency

2016-09-29 Thread Chris Wilson
On Thu, Sep 29, 2016 at 04:28:08PM +0800, Jisheng Zhang wrote: > On Thu, 29 Sep 2016 09:18:18 +0100 Chris Wilson wrote: > > > On Thu, Sep 29, 2016 at 03:34:11PM +0800, Jisheng Zhang wrote: > > > On Marvell berlin arm64 platforms, I see the preemptoff tracer report > > > a max 26543 us latency at _

Re: [PATCH v3 0/4] implement vcpu preempted check

2016-09-29 Thread Christian Borntraeger
On 09/29/2016 12:40 PM, Christian Borntraeger wrote: > On 09/29/2016 12:23 PM, Christian Borntraeger wrote: >> On 09/29/2016 12:10 PM, Peter Zijlstra wrote: >>> On Thu, Jul 21, 2016 at 07:45:10AM -0400, Pan Xinhui wrote: change from v2: no code change, fix typos, update some comments >

Re: [PATCH v3 3/7] i2c: bcm2835: Use dev_dbg logging on transfer errors

2016-09-29 Thread Martin Sperl
On 28.09.2016, at 19:50, Noralf Trønnes wrote: > > Writing to an AT24C32 generates on average 2x i2c transfer errors per > 32-byte page write. Which amounts to a lot for a 4k write. This is due > to the fact that the chip doesn't respond during it's internal write > cycle when the at24 driver tri

[PATCH v2] MAINTAINERS: add myself as Marvell berlin SoC maintainer

2016-09-29 Thread Jisheng Zhang
I would like to take maintainership for Marvell berlin SoCs. Signed-off-by: Jisheng Zhang Acked-by: Sebastian Hesselbarth --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index b003d0c..3dfb8c3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1410,6 +1

[PATCH 3.12 004/119] parisc: Fix order of EREFUSED define in errno.h

2016-09-29 Thread Jiri Slaby
From: Helge Deller 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3eb53b20d7bd1374598cfb1feaa081fcac0e76cd upstream. When building gccgo in userspace, errno.h gets parsed and the go include file sysinfo.go is generated. Since EREFUSED is de

Re: [PATCH v2 3/3] video: of: display_timing: Add support for syncclk-active property

2016-09-29 Thread Tomi Valkeinen
On 22/09/16 13:35, Peter Ujfalusi wrote: > Configure the DISPLAY_FLAGS_SYNC_POSEDGE/NEGEDGE flags according to the > binding document. > If the syncclk-active is present in DT, configure the flags accordingly, if > it is omitted it means that the SYNC edge is following the pixdata > configuration.

Re: [PATCH v2 1/3] dt-bindings: display: display-timing: Add property to configure sync drive edge

2016-09-29 Thread Tomi Valkeinen
On 22/09/16 13:35, Peter Ujfalusi wrote: > There are display panels which demands that the sync signal is driven on > different edge than the pixel data. > With the syncclk-active property we can specify the clk edge to be used to > drive the sync signal. When the property is missing it indicates t

[PATCH 3.12 019/119] xhci: Make sure xhci handles USB_SPEED_SUPER_PLUS devices.

2016-09-29 Thread Jiri Slaby
From: Mathias Nyman 3.12-stable review patch. If anyone has any objections, please let me know. === commit 0caf6b33452112e5a1186c8c964e90310e49e6bd upstream. In most cases the devices with the speed set to USB_SPEED_SUPER_PLUS are handled like regular SuperSpeed devices. Signed-o

[PATCH 3.12 022/119] mac80211: fix purging multicast PS buffer queue

2016-09-29 Thread Jiri Slaby
From: Felix Fietkau 3.12-stable review patch. If anyone has any objections, please let me know. === commit 6b07d9ca9b5363dda959b9582a3fc9c0b89ef3b5 upstream. The code currently assumes that buffered multicast PS frames don't have a pending ACK frame for tx status reporting. Howeve

[PATCH 3.12 006/119] PCI: Add Netronome vendor and device IDs

2016-09-29 Thread Jiri Slaby
From: "Jason S. McMullan" 3.12-stable review patch. If anyone has any objections, please let me know. === commit a755e169031dac9ebaed03302c4921687c271d62 upstream. Device IDs for the Netronome NFP3200, NFP3240, NFP6000, and NFP6000 SR-IOV devices. Signed-off-by: Jason S. McMullan

[PATCH 3.12 020/119] EDAC: Increment correct counter in edac_inc_ue_error()

2016-09-29 Thread Jiri Slaby
From: Emmanouil Maroudas 3.12-stable review patch. If anyone has any objections, please let me know. === commit 993f88f1cc7f0879047ff353e824e5cc8f10adfc upstream. Fix typo in edac_inc_ue_error() to increment ue_noinfo_count instead of ce_noinfo_count. Signed-off-by: Emmanouil Mar

Re: [PATCH v2 2/3] video: display_timing: Add flags to select the edge when the sync is driven

2016-09-29 Thread Tomi Valkeinen
On 22/09/16 13:35, Peter Ujfalusi wrote: > The sync can be - and for some panels it must be - driven on different edge > then the data. Well, the "can be" depends on the display controller =). > Signed-off-by: Peter Ujfalusi > CC: Rob Herring > CC: Mark Rutland > CC: devicet...@vger.kernel.org

[PATCH 3.12 018/119] USB: serial: ftdi_sio: add PIDs for Ivium Technologies devices

2016-09-29 Thread Jiri Slaby
From: Robert Deliën 3.12-stable review patch. If anyone has any objections, please let me know. === commit 6977495c06f7f47636a076ee5a0ca571279d9697 upstream. Ivium Technologies uses the FTDI VID with custom PIDs for their line of electrochemical interfaces and the PalmSens they de

[PATCH 3.12 025/119] megaraid_sas: Fix probing cards without io port

2016-09-29 Thread Jiri Slaby
From: Yinghai Lu 3.12-stable review patch. If anyone has any objections, please let me know. === commit e7f851684efb3377e9c93aca7fae6e76212e5680 upstream. Found one megaraid_sas HBA probe fails, [ 187.235190] scsi host2: Avago SAS based MegaRAID driver [ 191.112365] megaraid_sa

[PATCH 3.12 005/119] PCI: Support PCIe devices with short cfg_size

2016-09-29 Thread Jiri Slaby
From: "Jason S. McMullan" 3.12-stable review patch. If anyone has any objections, please let me know. === commit c20aecf6963d1273d8f6d61c042b4845441ca592 upstream. If a device quirk modifies the pci_dev->cfg_size to be less than PCI_CFG_SPACE_EXP_SIZE (4096), but greater than PCI_

[PATCH 3.12 023/119] aacraid: Check size values after double-fetch from user

2016-09-29 Thread Jiri Slaby
From: Dave Carroll 3.12-stable review patch. If anyone has any objections, please let me know. === commit fa00c437eef8dc2e7b25f8cd868cfa405fcc2bb3 upstream. In aacraid's ioctl_send_fib() we do two fetches from userspace, one the get the fib header's size and one for the fib itself

[PATCH 3.12 024/119] cdc-acm: fix wrong pipe type on rx interrupt xfers

2016-09-29 Thread Jiri Slaby
From: Gavin Li 3.12-stable review patch. If anyone has any objections, please let me know. === commit add125054b8727103631dce116361668436ef6a7 upstream. This fixes the "BOGUS urb xfer" warning logged by usb_submit_urb(). Signed-off-by: Gavin Li Acked-by: Oliver Neukum Signed-of

[PATCH 3.12 016/119] USB: serial: option: add support for Telit LE920A4

2016-09-29 Thread Jiri Slaby
From: Daniele Palmas 3.12-stable review patch. If anyone has any objections, please let me know. === commit 01d7956b58e644ea0d2e8d9340c5727a8fc39d70 upstream. This patch adds a set of compositions for Telit LE920A4. Compositions in short are: 0x1207: tty + tty 0x1208: tty + adb

[PATCH 3.12 002/119] x86/mm: Disable preemption during CR3 read+write

2016-09-29 Thread Jiri Slaby
From: Sebastian Andrzej Siewior 3.12-stable review patch. If anyone has any objections, please let me know. === commit 5cf0791da5c162ebc14b01eb01631cfa7ed4fa6e upstream. There's a subtle preemption race on UP kernels: Usually current->mm (and therefore mm->pgd) stays the same dur

[PATCH 3.12 031/119] USB: fix typo in wMaxPacketSize validation

2016-09-29 Thread Jiri Slaby
From: Alan Stern 3.12-stable review patch. If anyone has any objections, please let me know. === commit 6c73358c83ce870c0cf32413e5cadb3b9a39c606 upstream. The maximum value allowed for wMaxPacketSize of a high-speed interrupt endpoint is 1024 bytes, not 1023. Signed-off-by: Alan

[PATCH 3.12 027/119] fs/seq_file: fix out-of-bounds read

2016-09-29 Thread Jiri Slaby
From: Vegard Nossum 3.12-stable review patch. If anyone has any objections, please let me know. === commit 088bf2ff5d12e2e32ee52a4024fec26e582f44d3 upstream. seq_read() is a nasty piece of work, not to mention buggy. It has (I think) an old bug which allows unprivileged userspace

[PATCH 3.12 026/119] gpio: Fix OF build problem on UM

2016-09-29 Thread Jiri Slaby
From: Linus Walleij 3.12-stable review patch. If anyone has any objections, please let me know. === commit 2527ecc9195e9c66252af24c4689e8a67cd4ccb9 upstream. The UserMode (UM) Linux build was failing in gpiolib-of as it requires ioremap()/iounmap() to exist, which is absent from U

[PATCH 3.12 028/119] Input: i8042 - break load dependency between atkbd/psmouse and i8042

2016-09-29 Thread Jiri Slaby
From: Dmitry Torokhov 3.12-stable review patch. If anyone has any objections, please let me know. === commit 4097461897df91041382ff6fcd2bfa7ee6b2448c upstream. As explained in 1407814240-4275-1-git-send-email-de...@microsoft.com we have a hard load dependency between i8042 and atk

[PATCH 3.12 030/119] crypto: nx - off by one bug in nx_of_update_msc()

2016-09-29 Thread Jiri Slaby
From: Dan Carpenter 3.12-stable review patch. If anyone has any objections, please let me know. === commit e514cc0a492a3f39ef71b31590a7ef67537ee04b upstream. The props->ap[] array is defined like this: struct alg_props ap[NX_MAX_FC][NX_MAX_MODE][3]; So we can see that if

[PATCH 2/2] f2fs: don't submit irrelevant page

2016-09-29 Thread Chao Yu
While we call ->writepages, there are two cases: a. we didn't writeout any dirty pages, since they are writebacked by other thread concurrently. b. we writeout dirty pages, and have already submitted bio to block layer. In these cases, we don't need to do additional bio flushing unnecessarily, it

[PATCH 3.12 029/119] Input: i8042 - set up shared ps2_cmd_mutex for AUX ports

2016-09-29 Thread Jiri Slaby
From: Dmitry Torokhov 3.12-stable review patch. If anyone has any objections, please let me know. === commit 47af45d684b5f3ae000ad448db02ce4f13f73273 upstream. The commit 4097461897df ("Input: i8042 - break load dependency ...") correctly set up ps2_cmd_mutex pointer for the KBD p

Re: [PATCH 00/10] ARM: dts: berlin: fix dtc warnings

2016-09-29 Thread Jisheng Zhang
Hi Sebastian, On Wed, 28 Sep 2016 21:40:21 +0200 Sebastian Hesselbarth wrote: > On 06.09.2016 10:40, Jisheng Zhang wrote: > > This is a clean up series to fix berlin arm platforms dtc warnings. > > Firstly we remove skeleton.dtsi inclusion. Then add missing unit name > > of /soc node and /memory

[PATCH 1/2] f2fs: fix to commit bio cache after flushing node pages

2016-09-29 Thread Chao Yu
In sync_node_pages, we won't check and commit last merged pages in private bio cache of f2fs, as these pages were taged as writeback, someone who is waiting for writebacking of the page will be blocked until the cache was committed by someone else. We need to commit node type bio cache to avoid po

[PATCH 3.12 021/119] s390/dasd: fix hanging device after clear subchannel

2016-09-29 Thread Jiri Slaby
From: Stefan Haberland 3.12-stable review patch. If anyone has any objections, please let me know. === commit 9ba333dc55cbb9523553df973adb3024d223e905 upstream. When a device is in a status where CIO has killed all I/O by itself the interrupt for a clear request may not contain an

[PATCH 3.12 032/119] USB: serial: mos7720: fix non-atomic allocation in write path

2016-09-29 Thread Jiri Slaby
From: Alexey Khoroshilov 3.12-stable review patch. If anyone has any objections, please let me know. === commit 5a5a1d614287a647b36dff3f40c2b0ceabbc83ec upstream. There is an allocation with GFP_KERNEL flag in mos7720_write(), while it may be called from interrupt context. Follow

[PATCH 3.12 034/119] staging: comedi: daqboard2000: bug fix board type matching code

2016-09-29 Thread Jiri Slaby
From: Ian Abbott 3.12-stable review patch. If anyone has any objections, please let me know. === commit 80e162ee9b31d77d851b10f8c5299132be1e120f upstream. `daqboard2000_find_boardinfo()` is supposed to check if the DaqBoard/2000 series model is supported, based on the PCI subvendo

[PATCH 3.12 036/119] Revert "can: fix handling of unmodifiable configuration options fix"

2016-09-29 Thread Jiri Slaby
From: Greg Kroah-Hartman 3.12-stable review patch. If anyone has any objections, please let me know. === This reverts commit ded1c127d6dc1a1827f3ff657a4cb7edd646092e which was bce271f255dae8335dc4d2ee2c4531e09cc67f5a upstream. It was applied incorrectly, and isn't needed for 3.12-

[PATCH] Adding Support for Coresight Components on Zynq 7000.

2016-09-29 Thread Muhammad Abdul WAHAB
The Coresight components are present on the Zynq SoC but the corresponding device tree entries are missing. This patch adds device tree entries for coresight components while explaining how it was done in order to allow porting towards other boards easily. By adding the entries for Coresight comp

[PATCH 3.12 039/119] ALSA: oxygen: Fix logical-not-parentheses warning

2016-09-29 Thread Jiri Slaby
From: Tomer Barletz 3.12-stable review patch. If anyone has any objections, please let me know. === commit 8ec7cfce3762299ae289c384e281b2f4010ae231 upstream. This fixes the following warning, that is seen with gcc 5.1: warning: logical not is only applied to the left hand side of

[PATCH 3.12 048/119] net/irda: handle iriap_register_lsap() allocation failure

2016-09-29 Thread Jiri Slaby
From: Vegard Nossum 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 5ba092efc7ddff040777ae7162f1d195f513571b ] If iriap_register_lsap() fails to allocate memory, self->lsap is set to NULL. However, none of the callers handle the fa

Re: [PATCH 1/2] f2fs: fix to commit bio cache after flushing node pages

2016-09-29 Thread Chao Yu
On 2016/9/29 4:19, Jaegeuk Kim wrote: > On Tue, Sep 27, 2016 at 10:09:03AM +0800, Chao Yu wrote: >> On 2016/9/27 9:39, Jaegeuk Kim wrote: >>> On Tue, Sep 27, 2016 at 08:57:41AM +0800, Chao Yu wrote: Hi Jaegeuk, On 2016/9/27 2:33, Jaegeuk Kim wrote: > Hi Chao, > > On Tue,

[PATCH 3.12 041/119] ext4: validate that metadata blocks do not overlap superblock

2016-09-29 Thread Jiri Slaby
From: Theodore Ts'o 3.12-stable review patch. If anyone has any objections, please let me know. === commit 829fa70dddadf9dd041d62b82cd7cea63943899d upstream. A number of fuzzing failures seem to be caused by allocation bitmaps or other metadata blocks being pointed at the superblo

[PATCH 3.12 046/119] ext4: use __GFP_NOFAIL in ext4_free_blocks()

2016-09-29 Thread Jiri Slaby
From: Konstantin Khlebnikov 3.12-stable review patch. If anyone has any objections, please let me know. === commit adb7ef600cc9d9d15ecc934cc26af5c1379777df upstream. This might be unexpected but pages allocated for sbi->s_buddy_cache are charged to current memory cgroup. So, GFP_N

[PATCH 3.12 044/119] ext4: avoid modifying checksum fields directly during checksum verification

2016-09-29 Thread Jiri Slaby
From: Daeho Jeong 3.12-stable review patch. If anyone has any objections, please let me know. === commit b47820edd1634dc1208f9212b7ecfb4230610a23 upstream. We temporally change checksum fields in buffers of some types of metadata into '0' for verifying the checksum values. By doin

[PATCH 3.12 037/119] be2iscsi: Fix bogus WARN_ON length check

2016-09-29 Thread Jiri Slaby
From: Tim Gardner 3.12-stable review patch. If anyone has any objections, please let me know. === commit dd29dae00d39186890a5eaa2fe4ad8768bfd41a9 upstream. drivers/scsi/be2iscsi/be_main.c: In function 'be_sgl_create_contiguous': drivers/scsi/be2iscsi/be_main.c:3187:18: warning: lo

[PATCH 3.12 035/119] ACPI / sysfs: fix error code in get_status()

2016-09-29 Thread Jiri Slaby
From: Dan Carpenter 3.12-stable review patch. If anyone has any objections, please let me know. === commit f18ebc211e259d4f591e39e74b2aa2de226c9a1d upstream. The problem with ornamental, do-nothing gotos is that they lead to "forgot to set the error code" bugs. We should be retur

[PATCH 3.12 043/119] fix d_walk()/non-delayed __d_free() race

2016-09-29 Thread Jiri Slaby
From: Willy Tarreau 3.12-stable review patch. If anyone has any objections, please let me know. === I checked Jari's explanation below and found that v3.14.77 and v3.12.62 are missing the same fix as 3.10. In fact Al's original commit 3d56c25 ("fix d_walk()/non-delayed __d_free() r

[PATCH] Staging: sm750fb: Fix block comments

2016-09-29 Thread Ramiro Oliveira
Correct the styling of some block comments as reported by checkpatch. Signed-off-by: Ramiro Oliveira --- drivers/staging/sm750fb/ddk750_swi2c.c | 36 +- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_swi2c.c b/drive

[PATCH 3.12 042/119] s390/sclp_ctl: fix potential information leak with /dev/sclp

2016-09-29 Thread Jiri Slaby
From: Martin Schwidefsky 3.12-stable review patch. If anyone has any objections, please let me know. === commit 532c34b5fbf1687df63b3fcd5b2846312ac943c6 upstream. The sclp_ctl_ioctl_sccb function uses two copy_from_user calls to retrieve the sclp request from user space. The first

[PATCH 3.12 038/119] HID: hid-input: Add parentheses to quell gcc warning

2016-09-29 Thread Jiri Slaby
From: James C Boyd 3.12-stable review patch. If anyone has any objections, please let me know. === commit 09a5c34e8d6b05663ec4c3d22b1fbd9fec89aaf9 upstream. GCC reports a -Wlogical-not-parentheses warning here; therefore add parentheses to shut it up and to express our intent more

[PATCH 3.12 033/119] USB: serial: mos7840: fix non-atomic allocation in write path

2016-09-29 Thread Jiri Slaby
From: Alexey Khoroshilov 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3b7c7e52efda0d4640060de747768360ba70a7c0 upstream. There is an allocation with GFP_KERNEL flag in mos7840_write(), while it may be called from interrupt context. Follow

[PATCH 3.12 047/119] Revert "wext: Fix 32 bit iwpriv compatibility issue with 64 bit Kernel"

2016-09-29 Thread Jiri Slaby
From: Johannes Berg 3.12-stable review patch. If anyone has any objections, please let me know. === commit 4d0bd46a4d55383f7b925e6cf7865a77e0f0e020 upstream. This reverts commit 3d5fdff46c4b2b9534fa2f9fc78e90a48e0ff724. Ben Hutchings pointed out that the commit isn't safe since i

[PATCH 3.12 069/119] hwrng: exynos - Disable runtime PM on probe failure

2016-09-29 Thread Jiri Slaby
From: Krzysztof Kozlowski 3.12-stable review patch. If anyone has any objections, please let me know. === commit 48a61e1e2af8020f11a2b8f8dc878144477623c6 upstream. Add proper error path (for disabling runtime PM) when registering of hwrng fails. Fixes: b329669ea0b5 ("hwrng: exyno

[PATCH 3.12 074/119] net: disable fragment reassembly if high_thresh is set to zero

2016-09-29 Thread Jiri Slaby
From: Michal Kubecek 3.12-stable review patch. If anyone has any objections, please let me know. === commit 30759219f562cfaaebe7b9c1d1c0e6b5445c69b0 upstream. Before commit 6d7b857d541e ("net: use lib/percpu_counter API for fragmentation mem accounting"), setting high threshold to

[PATCH 3.12 049/119] tcp: fix use after free in tcp_xmit_retransmit_queue()

2016-09-29 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit bb1fceca22492109be12640d49f5ea5a544c6bb4 ] When tcp_sendmsg() allocates a fresh and empty skb, it puts it at the tail of the write queue using tcp_add_write_queue_t

[PATCH 3.12 063/119] ALSA: rawmidi: Fix possible deadlock with virmidi registration

2016-09-29 Thread Jiri Slaby
From: Takashi Iwai 3.12-stable review patch. If anyone has any objections, please let me know. === commit 816f318b2364262a51024096da7ca3b84e78e3b5 upstream. When a seq-virmidi driver is initialized, it registers a rawmidi instance with its callback to create an associated seq kern

[PATCH 3.12 071/119] HID: add usb device id for Apple Magic Keyboard

2016-09-29 Thread Jiri Slaby
From: Jean-Gabriel Gill-Couture 3.12-stable review patch. If anyone has any objections, please let me know. === commit b5d9427549be859dd42c5a6c635bc09d1d07b00b upstream. USB device Vendor 05ac (Apple) Device 0267 (Magic Keyboard) This keyboard supports both Blueto

[PATCH 3.12 073/119] mISDN: Fixing missing validation in base_sock_bind()

2016-09-29 Thread Jiri Slaby
From: Emrah Demir 3.12-stable review patch. If anyone has any objections, please let me know. === commit b821646826e22f0491708768fccce58eef3f5704 upstream. Add validation code into mISDN/socket.c Signed-off-by: Emrah Demir Signed-off-by: David S. Miller Cc: Oliver Neukum Signe

[PATCH 3.12 064/119] ALSA: timer: fix NULL pointer dereference in read()/ioctl() race

2016-09-29 Thread Jiri Slaby
From: Vegard Nossum 3.12-stable review patch. If anyone has any objections, please let me know. === commit 11749e086b2766cccf6217a527ef5c5604ba069c upstream. I got this with syzkaller: == BUG: KASAN: null-ptr

[PATCH 3.12 067/119] scsi: fix upper bounds check of sense key in scsi_sense_key_string()

2016-09-29 Thread Jiri Slaby
From: Tyrel Datwyler 3.12-stable review patch. If anyone has any objections, please let me know. === commit a87eeb900dbb9f8202f96604d56e47e67c936b9d upstream. Commit 655ee63cf371 ("scsi constants: command, sense key + additional sense string") added a "Completed" sense string with

[PATCH] Adding missing features of Coresight PTM components

2016-09-29 Thread Muhammad Abdul WAHAB
In the current driver for Coresight components, two features of PTM components are missing: 1. Branch Broadcasting (present also in ETM but called Branch Output) 2. Return Stack (only present in PTM v1.0 and PTMv1.1) These features can be added simply to the code using `mode` field of `etm_confi

[PATCH 3.12 068/119] cpufreq: Fix GOV_LIMITS handling for the userspace governor

2016-09-29 Thread Jiri Slaby
From: Sai Gurrappadi 3.12-stable review patch. If anyone has any objections, please let me know. === commit e43e94c1eda76dabd686ddf6f7825f54d747b310 upstream. Currently, the userspace governor only updates frequency on GOV_LIMITS if policy->cur falls outside policy->{min/max}. How

[PATCH 3.12 051/119] tcp: properly scale window in tcp_v[46]_reqsk_send_ack()

2016-09-29 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 20a2b49fc538540819a0c552877086548cff8d8d ] When sending an ack in SYN_RECV state, we must scale the offered window if wscale option was negotiated and accepted. Te

[PATCH 3.12 050/119] net/mlx5: Added missing check of msg length in verifying its signature

2016-09-29 Thread Jiri Slaby
From: Paul Blakey 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 2c0f8ce1b584a4d7b8ff53140d21dfed99834940 ] Set and verify signature calculates the signature for each of the mailbox nodes, even for those that are unused (from cach

[PATCH 3.12 065/119] ALSA: timer: fix division by zero after SNDRV_TIMER_IOCTL_CONTINUE

2016-09-29 Thread Jiri Slaby
From: Vegard Nossum 3.12-stable review patch. If anyone has any objections, please let me know. === commit 6b760bb2c63a9e322c0e4a0b5daf335ad93d5a33 upstream. I got this: divide error: [#1] PREEMPT SMP KASAN CPU: 1 PID: 1327 Comm: a.out Not tainted 4.8.0-rc2+ #189

[PATCH 3.12 040/119] stb6100: fix buffer length check in stb6100_write_reg_range()

2016-09-29 Thread Jiri Slaby
From: Alexander Shiyan 3.12-stable review patch. If anyone has any objections, please let me know. === commit 7e6bd12fb77b0067df13fb3ba3fadbdff2945396 upstream. We are checking sizeof() the wrong variable! Signed-off-by: Alexander Shiyan Signed-off-by: Michael Krufky Signed-off

[PATCH 3.12 045/119] timers: Use proper base migration in add_timer_on()

2016-09-29 Thread Jiri Slaby
From: Tejun Heo 3.12-stable review patch. If anyone has any objections, please let me know. === commit 22b886dd1018093920c4250dee2a9a3cb7cff7b8 upstream. Regardless of the previous CPU a timer was on, add_timer_on() currently simply sets timer->flags to the new CPU. As the caller

[PATCH 3.12 066/119] ALSA: timer: fix NULL pointer dereference on memory allocation failure

2016-09-29 Thread Jiri Slaby
From: Vegard Nossum 3.12-stable review patch. If anyone has any objections, please let me know. === commit 8ddc05638ee42b18ba4fe99b5fb647fa3ad20456 upstream. I hit this with syzkaller: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user

[PATCH 3.12 072/119] mISDN: Support DR6 indication in mISDNipac driver

2016-09-29 Thread Jiri Slaby
From: "Maciej S. Szmigiero" 3.12-stable review patch. If anyone has any objections, please let me know. === commit 1e1589ad8b5cb5b8a6781ba5850cf710ada0e919 upstream. According to figure 39 in PEB3086 data sheet, version 1.4 this indication replaces DR when layer 1 transition sourc

[PATCH 3.12 070/119] Input: ili210x - fix permissions on "calibrate" attribute

2016-09-29 Thread Jiri Slaby
From: Dmitry Torokhov 3.12-stable review patch. If anyone has any objections, please let me know. === commit b27c0d0c3bf3073e8ae19875eb1d3755c5e8c072 upstream. "calibrate" attribute does not provide "show" methods and thus we should not mark it as readable. Signed-off-by: Dmitry

[PATCH 3.12 079/119] NFSv4.x: Fix a refcount leak in nfs_callback_up_net

2016-09-29 Thread Jiri Slaby
From: Trond Myklebust 3.12-stable review patch. If anyone has any objections, please let me know. === commit 98b0f80c2396224bbbed81792b526e6c72ba9efa upstream. On error, the callers expect us to return without bumping nn->cb_users[]. Signed-off-by: Trond Myklebust Signed-off-by:

[PATCH 3.12 077/119] clocksource/drivers/sun4i: Clear interrupts after stopping timer in probe function

2016-09-29 Thread Jiri Slaby
From: Chen-Yu Tsai 3.12-stable review patch. If anyone has any objections, please let me know. === commit b53e7d000d9e6e9fd2c6eb6b82d2783c67fd599e upstream. The bootloader (U-boot) sometimes uses this timer for various delays. It uses it as a ongoing counter, and does comparisons

[PATCH 3.12 080/119] dm flakey: fix reads to be issued if drop_writes configured

2016-09-29 Thread Jiri Slaby
From: Mike Snitzer 3.12-stable review patch. If anyone has any objections, please let me know. === commit 299f6230bc6d0ccd5f95bb0fb865d80a9c7d5ccc upstream. v4.8-rc3 commit 99f3c90d0d ("dm flakey: error READ bios during the down_interval") overlooked the 'drop_writes' feature, whi

[PATCH 3.12 076/119] x86/mm/pat, /dev/mem: Remove superfluous error message

2016-09-29 Thread Jiri Slaby
From: Jiri Kosina 3.12-stable review patch. If anyone has any objections, please let me know. === commit 39380b80d72723282f0ea1d1bbf2294eae45013e upstream. Currently it's possible for broken (or malicious) userspace to flood a kernel log indefinitely with messages a-la Pr

Re: [PATCH v3 0/4] implement vcpu preempted check

2016-09-29 Thread Christian Borntraeger
On 09/29/2016 12:23 PM, Christian Borntraeger wrote: > On 09/29/2016 12:10 PM, Peter Zijlstra wrote: >> On Thu, Jul 21, 2016 at 07:45:10AM -0400, Pan Xinhui wrote: >>> change from v2: >>> no code change, fix typos, update some comments >>> >>> change from v1: >>> a simplier definition of de

[PATCH 3.12 078/119] powerpc/mm: Don't alias user region to other regions below PAGE_OFFSET

2016-09-29 Thread Jiri Slaby
From: Paul Mackerras 3.12-stable review patch. If anyone has any objections, please let me know. === commit f077aaf0754bcba0fffdbd925bc12f09cd1e38aa upstream. In commit c60ac5693c47 ("powerpc: Update kernel VSID range", 2013-03-13) we lost a check on the region number (the top fou

[PATCH 3.12 082/119] kvm-arm: Unmap shadow pagetables properly

2016-09-29 Thread Jiri Slaby
From: Suzuki K Poulose 3.12-stable review patch. If anyone has any objections, please let me know. === commit 293f293637b55db4f9f522a5a72514e98a541076 upstream. On arm/arm64, we depend on the kvm_unmap_hva* callbacks (via mmu_notifiers::invalidate_*) to unmap the stage2 pagetables

[PATCH 3.12 075/119] ipvs: count pre-established TCP states as active

2016-09-29 Thread Jiri Slaby
From: Michal Kubecek 3.12-stable review patch. If anyone has any objections, please let me know. === commit be2cef49904b34dd5f75d96bbc8cd8341bab1bc0 upstream. Some users observed that "least connection" distribution algorithm doesn't handle well bursts of TCP connections from reco

[PATCH 3.12 081/119] x86/paravirt: Do not trace _paravirt_ident_*() functions

2016-09-29 Thread Jiri Slaby
From: Steven Rostedt 3.12-stable review patch. If anyone has any objections, please let me know. === commit 15301a570754c7af60335d094dd2d1808b0641a5 upstream. Łukasz Daniluk reported that on a RHEL kernel that his machine would lock up after enabling function tracer. I asked him t

Re: [PATCH V5 4/4] dts/imx6q-b850v3: Use GE B850v3 LVDS/DP++ Bridge

2016-09-29 Thread Shawn Guo
On Mon, Sep 26, 2016 at 09:27:59AM +0100, Peter Senna Tschudin wrote: > Patch 1/4 is already on linux-next, but what about this one? Ping? Ping me after driver part (patch #3) lands on mainline. Shawn

<    1   2   3   4   5   6   7   8   >