Re: [PATCH 1/3] perf sched timehist: Mark schedule function in callchains

2016-11-25 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 24, 2016 at 10:11:12AM +0900, Namhyung Kim escreveu: > The sched_switch event always captured from the scheduler function. So > it'd be great omit them from the callchain. This patch marks the > functions to be omitted by later patch. I just reorderded this so that after applying 1

Re: [PATCH 5/7] efi: Get the secure boot status [ver #3]

2016-11-25 Thread Ard Biesheuvel
On 25 November 2016 at 13:00, David Howells wrote: > Okay, how about the attached? > > Can these variables every be anything other than 1 or 0? E.g. should the > check on SetupMode be that it isn't 0 rather than it is 1? > The firmware will ensure that these variables only

Re: Tearing down DMA transfer setup after DMA client has finished

2016-11-25 Thread Måns Rullgård
Russell King - ARM Linux writes: > On Fri, Nov 25, 2016 at 01:07:05PM +, Måns Rullgård wrote: >> Russell King - ARM Linux writes: >> >> > On Fri, Nov 25, 2016 at 10:25:49AM +0530, Vinod Koul wrote: >> >> Looking at thread and discussion now,

Re: [PATCH 6/10] mmc: sdhci-xenon: Add Marvell Xenon SDHC core functionality

2016-11-25 Thread Ziji Hu
Hi Ulf, On 2016/11/25 21:06, Ulf Hansson wrote: > [...] > >>> + >>> + /* >>> +* Xenon Specific property: >>> +* emmc: explicitly indicate whether this slot is for eMMC >>> +* slotno: the index of slot. Refer to SDHC_SYS_CFG_INFO >>> register

Re: Tearing down DMA transfer setup after DMA client has finished

2016-11-25 Thread Russell King - ARM Linux
On Fri, Nov 25, 2016 at 01:50:35PM +, Måns Rullgård wrote: > Russell King - ARM Linux writes: > > It would be unfair to augment the API and add the burden on everyone > > for the new API when 99.999% of the world doesn't require it. > > I don't think making this

Applied "regmap: cache: Remove unused 'blksize' variable" to the regmap tree

2016-11-25 Thread Mark Brown
The patch regmap: cache: Remove unused 'blksize' variable has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Re: [RESEND PATCH v5 2/5] mtd: ubi: use 'max_bad_blocks' to compute bad_peb_limit if available

2016-11-25 Thread Richard Weinberger
On 25.11.2016 14:37, Richard Weinberger wrote: >> Are you sure you want to even override the user-provided >> max_beb_per1024 value taken from the mtd= line? I'd think if someone >> went as far as to specify this in the kernel command line, they don't >> expect it to get overridden. Just my two

Re: [RFC] PCI: Fix kernel panic of root-port-less PCIe enum due to ASPM

2016-11-25 Thread Serge Semin
On Tue, Nov 08, 2016 at 05:29:57PM -0600, Bjorn Helgaas wrote: Hello Bjorn, Here are the answers on your questions inlined in the text. > Hi Serge, > > On Thu, Oct 06, 2016 at 12:34:15PM +0300, Serge Semin wrote: > > Hello linux folks, > > > > Sometime ago I

Re: Tearing down DMA transfer setup after DMA client has finished

2016-11-25 Thread Måns Rullgård
Russell King - ARM Linux writes: > On Fri, Nov 25, 2016 at 01:50:35PM +, Måns Rullgård wrote: >> Russell King - ARM Linux writes: >> > It would be unfair to augment the API and add the burden on everyone >> > for the new API when 99.999% of the

Re: Tearing down DMA transfer setup after DMA client has finished

2016-11-25 Thread Mason
On 25/11/2016 12:57, Måns Rullgård wrote: > The same DMA unit is also used for SATA, which is an off the shelf > Designware controller with an in-kernel driver. This interrupt timing > glitch can actually explain some intermittent errors I've observed with > it. FWIW, newer chips embed an AHCI

Re: Regarding "scsi_lib: Decode T10 vendor IDs" d230823a1c4c3e97afd4c934b86b3975d5e20249

2016-11-25 Thread Hannes Reinecke
On 11/24/2016 04:48 PM, Sylvain Munaut wrote: > Hi, > > > Regarding this commit : > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d230823a1c4c3e97afd4c934b86b3975d5e20249 > > Looking at both the code and the comment, it seems to me you wanted > 'T10' id to be a

Re: [PATCH] reset: hisilicon: add a polarity cell for reset line specifier

2016-11-25 Thread Jiancheng Xue
On 2016/11/25 11:45, Jiancheng Xue wrote: > > On 2016/11/21 10:58, Jiancheng Xue wrote: >> Hi Philipp, >> >>> On 2016/11/15 18:43, Philipp Zabel wrote: Hi Jiancheng, Am Dienstag, den 15.11.2016, 15:09 +0800 schrieb Jiancheng Xue: > Add a polarity cell for reset line

Re: [PATCH v6 3/9] tpm: replace dynamically allocated bios_dir with a static array

2016-11-25 Thread Jarkko Sakkinen
On Thu, Nov 24, 2016 at 09:53:13AM -0700, Jason Gunthorpe wrote: > On Thu, Nov 24, 2016 at 03:57:23PM +0200, Jarkko Sakkinen wrote: > > I manually added the changes to: > > > > tpm: replace dynamically allocated bios_dir with a static array > > For this patch.. > > Could drop 'int rc' from

Re: [tpmdd-devel] [PATCH RFC 2/2] tpm: refactor tpm2_get_tpm_pt to tpm2_getcap_cmd

2016-11-25 Thread Jarkko Sakkinen
On Thu, Nov 24, 2016 at 07:12:57PM +0530, Nayna wrote: > > > On 11/15/2016 05:18 AM, Jarkko Sakkinen wrote: > > On Fri, Nov 11, 2016 at 04:02:43PM -0800, Jarkko Sakkinen wrote: > > > On Fri, Nov 11, 2016 at 09:51:45AM +0530, Nayna wrote: > > > > > > > > > > > > On 10/09/2016 03:44 PM, Jarkko

Re: [PATCH v3 2/6] iio: adc: Add support for STM32 ADC core

2016-11-25 Thread Fabrice Gasnier
On 11/24/2016 09:40 PM, Jonathan Cameron wrote: On 21/11/16 08:54, Fabrice Gasnier wrote: On 11/19/2016 01:17 PM, Jonathan Cameron wrote: On 15/11/16 15:30, Fabrice Gasnier wrote: Add core driver for STMicroelectronics STM32 ADC (Analog to Digital Converter). STM32 ADC can be composed of up

Re: [tpmdd-devel] [PATCH v5 3/3] tpm: add securityfs support for TPM 2.0 firmware event log

2016-11-25 Thread Jarkko Sakkinen
On Thu, Nov 24, 2016 at 09:51:03PM -0500, Stefan Berger wrote: > On 11/24/2016 04:10 PM, Jarkko Sakkinen wrote: > > On Wed, Nov 23, 2016 at 12:27:37PM -0500, Nayna Jain wrote: > > > Unlike the device driver support for TPM 1.2, the TPM 2.0 does > > > not support the securityfs pseudo files for

Re: [PATCH resend v3] ASoC: sun4i-codec: Add "Right Mixer" to "Line Out Mono Diff." route

2016-11-25 Thread Maxime Ripard
On Thu, Nov 24, 2016 at 07:46:49PM +0800, Chen-Yu Tsai wrote: > The mono differential output for "Line Out" downmixes the stereo audio > from the mixer, instead of just taking the left channel. > > Add a route from the "Right Mixer" to "Line Out Source Playback Route" > through the "Mono

Re: [v3,2/3] powerpc: get hugetlbpage handling more generic

2016-11-25 Thread Christophe LEROY
Le 24/11/2016 à 06:23, Scott Wood a écrit : On Wed, Sep 21, 2016 at 10:11:54AM +0200, Christophe Leroy wrote: Today there are two implementations of hugetlbpages which are managed by exclusive #ifdefs: * FSL_BOOKE: several directory entries points to the same single hugepage * BOOK3S: one

Re: [PATCH 00/29] UBIFS File Encryption v1

2016-11-25 Thread Richard Weinberger
Ted, On 14.11.2016 04:05, Theodore Ts'o wrote: > Richard, > > Your fscrypt patches look good. I've created an fscrypt branch on the > ext4.git tree which contains your changes as well as Eric Bigger's > recent fspatch cleanups changes. If you want to base your ubifs > changes on that branch,

Re: [tip:x86/core] x86: Enable Intel Turbo Boost Max Technology 3.0

2016-11-25 Thread Ingo Molnar
* tip-bot for Tim Chen wrote: > Commit-ID: 5e76b2ab36b40ca33023e78725bdc69eafd63134 > Gitweb: http://git.kernel.org/tip/5e76b2ab36b40ca33023e78725bdc69eafd63134 > Author: Tim Chen > AuthorDate: Tue, 22 Nov 2016 12:23:55 -0800 > Committer: Thomas Gleixner > CommitDate: Thu, 24 Nov

Re: Enabling peer to peer device transactions for PCIe devices

2016-11-25 Thread Christoph Hellwig
On Thu, Nov 24, 2016 at 11:11:34AM -0700, Logan Gunthorpe wrote: > * Regular DAX in the FS doesn't work at this time because the FS can > move the file you think your transfer to out from under you. Though I > understand there's been some work with XFS to solve that issue. The file system will

Re: [PATCH] v4l: async: make v4l2 coexists with devicetree nodes in a dt overlay

2016-11-25 Thread Sakari Ailus
Hi Javi, On Wed, Nov 23, 2016 at 04:15:11PM +, Javi Merino wrote: > On Wed, Nov 23, 2016 at 05:10:42PM +0200, Sakari Ailus wrote: > > Hi Javi, > > Hi Sakari, > > > On Wed, Nov 23, 2016 at 10:09:57AM +, Javi Merino wrote: > > > In asd's configured with V4L2_ASYNC_MATCH_OF, if the v4l2

RE: [PATCH] fsl/usb: Workarourd for USB erratum-A005697

2016-11-25 Thread Jerry Huang
Thanks, Sriram, It is better to move this delay out of spin-lock. Best Regards Jerry Huang -Original Message- From: Sriram Dash Sent: Thursday, November 24, 2016 7:17 PM To: Jerry Huang ; st...@rowland.harvard.edu; gre...@linuxfoundation.org Cc: linux-...@vger.kernel.org;

[PATCH 3.12 002/127] KVM: MIPS: Drop other CPU ASIDs on guest MMU changes

2016-11-25 Thread Jiri Slaby
From: James Hogan 3.12-stable review patch. If anyone has any objections, please let me know. === commit 91e4f1b6073dd680d86cdb7e42d7a9db39d8 upstream. When a guest TLB entry is replaced by TLBWI or TLBWR, we only invalidate TLB entries on the local CPU. This doesn't work

Re: [PATCH] auxdisplay: ht16k33: select CONFIG_FB_SYS_FOPS

2016-11-25 Thread Arnd Bergmann
On Friday, November 25, 2016 8:50:04 AM CET Robin van der Gracht wrote: > > Thanks for reporting this. You are right about the missing helper. > However, the fb_ops struct uses several helpers which are all missing. > > static struct fb_ops ht16k33_fb_ops = { > .owner = THIS_MODULE, >

[PATCH 3.12 026/127] USB: serial: cp210x: fix tiocmget error handling

2016-11-25 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit de24e0a108bc48062e1c7acaa97014bce32a919f upstream. The current tiocmget implementation would fail to report errors up the stack and instead leaked a few bits from the stack

[PATCH 3.12 003/127] MIPS: KVM: Fix unused variable build warning

2016-11-25 Thread Jiri Slaby
From: Nicholas Mc Guire 3.12-stable review patch. If anyone has any objections, please let me know. === commit 5f508c43a7648baa892528922402f1e13f258bd4 upstream. As kvm_mips_complete_mmio_load() did not yet modify PC at this point as James Hogans explained the curr_pc variable

[PATCH 3.12 047/127] tty: vt, fix bogus division in csi_J

2016-11-25 Thread Jiri Slaby
3.12-stable review patch. If anyone has any objections, please let me know. === commit 42acfc6615f47e465731c263bee0c799edb098f2 upstream. In csi_J(3), the third parameter of scr_memsetw (vc_screenbuf_size) is divided by 2 inappropriatelly. But scr_memsetw expects size, not count,

[PATCH 3.12 048/127] HID: usbhid: add ATEN CS962 to list of quirky devices

2016-11-25 Thread Jiri Slaby
From: Oliver Neukum 3.12-stable review patch. If anyone has any objections, please let me know. === commit cf0ea4da4c7df11f7a508b2f37518e0f117f3791 upstream. Like many similar devices it needs a quirk to work. Issuing the request gets the device into an irrecoverable state.

[PATCH 3.12 080/127] IB/mlx5: Fix fatal error dispatching

2016-11-25 Thread Jiri Slaby
From: Eli Cohen 3.12-stable review patch. If anyone has any objections, please let me know. === commit dbaaff2a2caa03d472b5cc53a3fbfd415c97dc26 upstream. When an internal error condition is detected, make sure to set the device inactive after dispatching the event so ULPs can get

[PATCH 3.12 075/127] mfd: core: Fix device reference leak in mfd_clone_cell

2016-11-25 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit 722f191080de641f023feaa7d5648caf377844f5 upstream. Make sure to drop the reference taken by bus_find_device_by_name() before returning from mfd_clone_cell(). Fixes:

[PATCH 3.12 078/127] IB/mlx4: Fix create CQ error flow

2016-11-25 Thread Jiri Slaby
From: Matan Barak 3.12-stable review patch. If anyone has any objections, please let me know. === commit 593ff73bcfdc79f79a8a0df55504f75ad3e5d1a9 upstream. Currently, if ib_copy_to_udata fails, the CQ won't be deleted from the radix tree and the HW (HW2SW). Fixes: 225c7b1feef1

[PATCH 3.12 027/127] KVM: x86: fix wbinvd_dirty_mask use-after-free

2016-11-25 Thread Jiri Slaby
From: Ido Yariv 3.12-stable review patch. If anyone has any objections, please let me know. === commit bd768e146624cbec7122ed15dead8daa137d909d upstream. vcpu->arch.wbinvd_dirty_mask may still be used after freeing it, corrupting memory. For example, the following call trace may

[PATCH 3.12 079/127] IB/mlx5: Use cache line size to select CQE stride

2016-11-25 Thread Jiri Slaby
From: Daniel Jurgens 3.12-stable review patch. If anyone has any objections, please let me know. === commit 16b0e0695a73b68d8ca40288c8f9614ef208917b upstream. When creating kernel CQs use 128B CQE stride if the cache line size is 128B, 64B otherwise. This prevents multiple CQEs

[PATCH 3.12 025/127] tty: limit terminal size to 4M chars

2016-11-25 Thread Jiri Slaby
From: Dmitry Vyukov 3.12-stable review patch. If anyone has any objections, please let me know. === commit 32b2921e6a7461fe63b71217067a6cf4bddb132f upstream. Size of kmalloc() in vc_do_resize() is controlled by user. Too large kmalloc() size triggers WARNING message on console.

[PATCH 3.12 038/127] drm/radeon/si_dpm: Limit clocks on HD86xx part

2016-11-25 Thread Jiri Slaby
From: Tom St Denis 3.12-stable review patch. If anyone has any objections, please let me know. === commit fb9a5b0c1c9893db2e0d18544fd49e19d784a87d upstream. Limit clocks on a specific HD86xx part to avoid crashes (while awaiting an appropriate PP fix). Signed-off-by: Tom St

[PATCH 3.12 076/127] uwb: fix device reference leaks

2016-11-25 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit d6124b409ca33c100170ffde51cd8dff761454a1 upstream. This subsystem consistently fails to drop the device reference taken by class_find_device(). Note that some of these

[PATCH 3.12 077/127] PM / sleep: fix device reference leak in test_suspend

2016-11-25 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit ceb75787bc75d0a7b88519ab8a68067ac690f55a upstream. Make sure to drop the reference taken by class_find_device() after opening the RTC device. Fixes: 77437fd4e61f (pm: boot

[PATCH 3.12 046/127] pwm: Unexport children before chip removal

2016-11-25 Thread Jiri Slaby
From: David Hsu 3.12-stable review patch. If anyone has any objections, please let me know. === commit 0733424c9ba9f42242409d1ece780777272f7ea1 upstream. Exported pwm channels aren't removed before the pwmchip and are leaked. This results in invalid sysfs files. This fix removes

[PATCH 3.12 116/127] sparc64: Fix illegal relative branches in hypervisor patched TLB cross-call code.

2016-11-25 Thread Jiri Slaby
From: "David S. Miller" 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit a236441bb69723032db94128761a469030c3fe6d ] Just like the non-cross-call TLB flush handlers, the cross-call ones need to avoid doing PC-relative branches

[PATCH 3.12 122/127] drivers/net: Disable UFO through virtio

2016-11-25 Thread Jiri Slaby
From: Ben Hutchings 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3d0ad09412ffe00c9afa201d01effdb6023d09b4 upstream. IPv6 does not allow fragmentation by routers, so there is no fragmentation ID in the fixed header. UFO for IPv6 requires

[PATCH 3.12 126/127] xen-pciback: Add name prefix to global 'permissive' variable

2016-11-25 Thread Jiri Slaby
From: Ben Hutchings 3.12-stable review patch. If anyone has any objections, please let me know. === commit 8014bcc86ef112eab9ee1db312dba4e6b608cf89 upstream. The variable for the 'permissive' module parameter used to be static but was recently changed to be extern. This puts it

[PATCH 3.12 115/127] sparc64: Fix instruction count in comment for __hypervisor_flush_tlb_pending.

2016-11-25 Thread Jiri Slaby
From: "David S. Miller" 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 830cda3f9855ff092b0e9610346d110846fc497c ] Noticed by James Clarke. Signed-off-by: David S. Miller Signed-off-by: Jiri Slaby --- arch/sparc/mm/ultra.S | 2

[PATCH 3.12 124/127] perf: Tighten (and fix) the grouping condition

2016-11-25 Thread Jiri Slaby
From: Peter Zijlstra 3.12-stable review patch. If anyone has any objections, please let me know. === commit c3c87e770458aa004bd7ed3f29945ff436fd6511 upstream. The fix from 9fc81d87420d ("perf: Fix events installation during moving group") was incomplete in that it failed to

[PATCH 3.12 121/127] KVM: check for !is_zero_pfn() in kvm_is_mmio_pfn()

2016-11-25 Thread Jiri Slaby
From: Ard Biesheuvel 3.12-stable review patch. If anyone has any objections, please let me know. === commit 85c8555ff07ef09261bd50d603cd4290cff5a8cc upstream. Read-only memory ranges may be backed by the zero page, so avoid misidentifying it a a MMIO pfn. This fixes another

[PATCH 3.12 120/127] mm: export symbol dependencies of is_zero_pfn()

2016-11-25 Thread Jiri Slaby
From: Ard Biesheuvel 3.12-stable review patch. If anyone has any objections, please let me know. === commit 0b70068e47e8f0c813a902dc3d6def601fd15acb upstream. In order to make the static inline function is_zero_pfn() callable by modules, export its symbol dependencies 'zero_pfn'

[PATCH 3.12 118/127] cgroup: use an ordered workqueue for cgroup destruction

2016-11-25 Thread Jiri Slaby
From: Hugh Dickins 3.12-stable review patch. If anyone has any objections, please let me know. === commit ab3f5faa6255a0eb4f832675507d9e295ca7e9ba upstream. Sometimes the cleanup after memcg hierarchy testing gets stuck in mem_cgroup_reparent_charges(), unable to bring non-kmem

[PATCH 3.12 113/127] sparc64: Handle extremely large kernel TSB range flushes sanely.

2016-11-25 Thread Jiri Slaby
From: "David S. Miller" 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 849c498766060a16aad5b0e0d03206726e7d2fa4 ] If the number of pages we are flushing is more than twice the number of entries in the TSB, just scan the TSB table

[PATCH 3.12 125/127] PCI: Handle read-only BARs on AMD CS553x devices

2016-11-25 Thread Jiri Slaby
From: Myron Stowe 3.12-stable review patch. If anyone has any objections, please let me know. === commit 06cf35f903aa6da0cc8d9f81e9bcd1f7e1b534bb upstream. Some AMD CS553x devices have read-only BARs because of a firmware or hardware defect. There's a workaround in

[PATCH 3.12 123/127] usb: musb: musb_cppi41: recognize HS devices in hostmode

2016-11-25 Thread Jiri Slaby
From: Sebastian Andrzej Siewior 3.12-stable review patch. If anyone has any objections, please let me know. === commit 1eec34e9f25664cf71e05321329d128e0565beae upstream. There is a poll loop for max 25us for HS devices. Now guess what, I tested it in gadget mode and forgot about

[PATCH 3.12 119/127] mm: filemap: update find_get_pages_tag() to deal with shadow entries

2016-11-25 Thread Jiri Slaby
From: Johannes Weiner 3.12-stable review patch. If anyone has any objections, please let me know. === commit 139b6a6fb1539e04b01663d61baff3088c63dbb5 upstream. Dave Jones reports the following crash when find_get_pages_tag() runs into an exceptional entry: kernel BUG at

[PATCH 3.12 114/127] sparc64: Fix illegal relative branches in hypervisor patched TLB code.

2016-11-25 Thread Jiri Slaby
From: "David S. Miller" 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit b429ae4d5b565a71dfffd759dfcd4f6c093ced94 ] When we copy code over to patch another piece of code, we can only use PC-relative branches that target code within

[PATCH 3.12 127/127] ALSA: usb-audio: Fix runtime PM unbalance

2016-11-25 Thread Jiri Slaby
From: Takashi Iwai 3.12-stable review patch. If anyone has any objections, please let me know. === commit 9003ebb13f61e8c78a641e0dda7775183ada0625 upstream. The fix for deadlock in PM in commit [1ee23fe07ee8: ALSA: usb-audio: Fix deadlocks at resuming] introduced a new check of

[PATCH 3.12 110/127] sparc: Don't leak context bits into thread->fault_address

2016-11-25 Thread Jiri Slaby
From: "David S. Miller" 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 4f6deb8cbab532a8d7250bc09234c1795ecb5e2c ] On pre-Niagara systems, we fetch the fault address on data TLB exceptions from the TLB_TAG_ACCESS register. But

[PATCH 3.12 117/127] sparc64: Handle extremely large kernel TLB range flushes more gracefully.

2016-11-25 Thread Jiri Slaby
From: "David S. Miller" 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit a74ad5e660a9ee1d071665e7e8ad822784a2dc7f ] When the vmalloc area gets fragmented, and because the firmware mapping area sits between where modules live and

[PATCH 3.12 106/127] sctp: assign assoc_id earlier in __sctp_connect

2016-11-25 Thread Jiri Slaby
From: Marcelo Ricardo Leitner 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 7233bc84a3aeda835d334499dc00448373caf5c0 ] sctp_wait_for_connect() currently already holds the asoc to keep it alive during the sleep, in case another

[PATCH 3.12 107/127] neigh: check error pointer instead of NULL for ipv4_neigh_lookup()

2016-11-25 Thread Jiri Slaby
From: WANG Cong 3.12-stable review patch. If anyone has any objections, please let me know. === commit 2c1a4311b61072afe2309d4152a7993e92caa41c upstream. Fixes: commit f187bc6efb7250afee0e2009b6106 ("ipv4: No need to set generic neighbour pointer") Cc: David S. Miller

[PATCH 3.12 104/127] ipv6: dccp: fix out of bound access in dccp_v6_err()

2016-11-25 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 1aa9d1a0e7eefcc61696e147d123453fc0016005 ] dccp_v6_err() does not use pskb_may_pull() and might access garbage. We only need 4 bytes at the beginning of the DCCP

[PATCH 3.12 108/127] ipv4: use new_gw for redirect neigh lookup

2016-11-25 Thread Jiri Slaby
From: Stephen Suryaputra Lin 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 969447f226b451c453ddc83cac6144eaeac6f2e3 ] In v2.6, ip_rt_redirect() calls arp_bind_neighbour() which returns 0 and then the state of the neigh for the

[PATCH 3.12 111/127] sparc64 mm: Fix base TSB sizing when hugetlb pages are used

2016-11-25 Thread Jiri Slaby
From: Mike Kravetz 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit af1b1a9b36b8f9d583d4b4f90dd8946ed0cd4bd0 ] do_sparc64_fault() calculates both the base and huge page RSS sizes and uses this information in calls to tsb_grow().

[PATCH 3.12 109/127] tcp: take care of truncations done by sk_filter()

2016-11-25 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit ac6e780070e30e4c35bd395acfe9191e6268bdd3 ] With syzkaller help, Marco Grassi found a bug in TCP stack, crashing in tcp_collapse() Root cause is that sk_filter()

[PATCH 3.12 112/127] sparc: Handle negative offsets in arch_jump_label_transform

2016-11-25 Thread Jiri Slaby
From: James Clarke 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 9d9fa230206a3aea6ef451646c97122f04777983 ] Additionally, if the offset will overflow the immediate for a ba,pt instruction, fall back on a standard ba to get an

[PATCH 3.12 105/127] ipv6: dccp: add missing bind_conflict to dccp_ipv6_mapped

2016-11-25 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 990ff4d84408fc55942ca6644f67e361737b3d8e ] While fuzzing kernel with syzkaller, Andrey reported a nasty crash in inet6_bind() caused by DCCP lacking a required

Re: [PATCH 2/2] rcu: Force resched_cpu when jiffies >= rcu_state.jiffies_resched

2016-11-25 Thread Paul E. McKenney
On Tue, Nov 22, 2016 at 05:12:20PM +0900, Byungchul Park wrote: > On Wed, Nov 09, 2016 at 03:32:15PM +0900, Byungchul Park wrote: > > Currently rcu code forces CPU into scheduler when jiffies >= > > rcu_state.gp_start + jiffies_till_sched_qs, via resched_cpu(). > > > > It would be better to force

[PATCH 3.12 097/127] stddef.h: move offsetofend inside #ifndef/#endif guard, neaten

2016-11-25 Thread Jiri Slaby
From: Joe Perches 3.12-stable review patch. If anyone has any objections, please let me know. === commit 8c7fbe5795a016259445a61e072eb0118aaf6a61 upstream. Commit 3876488444e7 ("include/stddef.h: Move offsetofend() from vfio.h to a generic kernel header") added offsetofend

[PATCH 3.12 103/127] dccp: fix out of bound access in dccp_v4_err()

2016-11-25 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 6706a97fec963d6cb3f7fc2978ec1427b4651214 ] dccp_v4_err() does not use pskb_may_pull() and might access garbage. We only need 4 bytes at the beginning of the DCCP

[PATCH 3.12 087/127] ip6_gre: fix flowi6_proto value in ip6gre_xmit_other()

2016-11-25 Thread Jiri Slaby
From: Lance Richardson 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit db32e4e49ce2b0e5fcc17803d011a401c0a637f6 ] Similar to commit 3be07244b733 ("ip6_gre: fix flowi6_proto value in xmit path"), set flowi6_proto to IPPROTO_GRE for

[PATCH 3.12 099/127] net: mangle zero checksum in skb_checksum_help()

2016-11-25 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 4f2e4ad56a65f3b7d64c258e373cb71e8d2499f4 ] Sending zero checksum is ok for TCP, but not for UDP. UDPv6 receiver should by default drop a frame with a 0 checksum,

[PATCH 3.12 102/127] dccp: do not send reset to already closed sockets

2016-11-25 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 346da62cc186c4b4b1ac59f87f4482b47a047388 ] Andrey reported following warning while fuzzing with syzkaller WARNING: CPU: 1 PID: 21072 at net/dccp/proto.c:83

[PATCH 3.12 101/127] tcp: fix potential memory corruption

2016-11-25 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit ac9e70b17ecd7c6e933ff2eaf7ab37429e71bf4d ] Imagine initial value of max_skb_frags is 17, and last skb in write queue has 15 frags. Then max_skb_frags is lowered

[PATCH 3.12 098/127] net: clear sk_err_soft in sk_clone_lock()

2016-11-25 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit e551c32d57c88923f99f8f010e89ca7ed0735e83 ] At accept() time, it is possible the parent has a non zero sk_err_soft, leftover from a prior error. Make sure we do

[PATCH 3.12 089/127] net: Add netdev all_adj_list refcnt propagation to fix panic

2016-11-25 Thread Jiri Slaby
From: Andrew Collins 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 93409033ae653f1c9a949202fb537ab095b2092f ] This is a respin of a patch to fix a relatively easily reproducible kernel panic related to the all_adj_list handling

[PATCH 3.12 094/127] sctp: validate chunk len before actually using it

2016-11-25 Thread Jiri Slaby
From: Marcelo Ricardo Leitner 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit bf911e985d6bbaa328c20c3e05f4eb03de11fdd6 ] Andrey Konovalov reported that KASAN detected that SCTP was using a slab beyond the boundaries. It was caused

[PATCH 3.12 091/127] ipv6: correctly add local routes when lo goes up

2016-11-25 Thread Jiri Slaby
From: Nicolas Dichtel 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit a220445f9f4382c36a53d8ef3e08165fa27f7e2c ] The goal of the patch is to fix this scenario: ip link add dummy1 type dummy ip link set dummy1 up ip link set lo

[PATCH 3.12 095/127] drivers/vfio: Rework offsetofend()

2016-11-25 Thread Jiri Slaby
From: Gavin Shan 3.12-stable review patch. If anyone has any objections, please let me know. === commit b13460b92093b29347e99d6c3242e350052b62cd upstream. The macro offsetofend() introduces unnecessary temporary variable "tmp". The patch avoids that and saves a bit memory in

Re: [tip:x86/core] x86: Enable Intel Turbo Boost Max Technology 3.0

2016-11-25 Thread Peter Zijlstra
On Fri, Nov 25, 2016 at 09:19:47AM +0100, Ingo Molnar wrote: > > * tip-bot for Tim Chen wrote: > > > Commit-ID: 5e76b2ab36b40ca33023e78725bdc69eafd63134 > > Gitweb: > > http://git.kernel.org/tip/5e76b2ab36b40ca33023e78725bdc69eafd63134 > > Author: Tim Chen > > AuthorDate: Tue, 22 Nov

[PATCH 3.12 093/127] net: sctp, forbid negative length

2016-11-25 Thread Jiri Slaby
3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit a4b8e71b05c27bae6bad3bdecddbc6b68a3ad8cf ] Most of getsockopt handlers in net/sctp/socket.c check len against sizeof some structure like: if (len < sizeof(int))

[PATCH 3.12 084/127] tcp: fix overflow in __tcp_retransmit_skb()

2016-11-25 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit ffb4d6c8508657824bcef68a36b2a0f9d8c09d10 ] If a TCP socket gets a large write queue, an overflow can happen in a test in __tcp_retransmit_skb() preventing all

Re: [PATCH] z3fold: use %z modifier for format string

2016-11-25 Thread Arnd Bergmann
On Friday, November 25, 2016 8:38:25 AM CET Vitaly Wool wrote: > >> diff --git a/mm/z3fold.c b/mm/z3fold.c > >> index e282ba073e77..66ac7a7dc934 100644 > >> --- a/mm/z3fold.c > >> +++ b/mm/z3fold.c > >> @@ -884,7 +884,7 @@ static int __init init_z3fold(void) > >> { > >> /* Fail the

[no subject]

2016-11-25 Thread системы администратор
внимания; Ваши сообщения превысил лимит памяти, который составляет 5 Гб, определенных администратором, который в настоящее время работает на 10.9GB, Вы не сможете отправить или получить новую почту, пока вы повторно не проверить ваш почтовый ящик почты. Чтобы восстановить работоспособность

[RFC 2/2] ZRAM: add sysfs switch swap_cache_not_keep

2016-11-25 Thread Hui Zhu
This patch add a sysfs interface swap_cache_not_keep to control the swap cache rule for a ZRAM disk. Swap will not keep the swap cache anytime if it set to 1. Signed-off-by: Hui Zhu --- drivers/block/zram/zram_drv.c | 34 ++ 1 file changed, 34 insertions(+) diff

Re: [PATCH] video: imxfb: correct the bitmask for DMACR_HM/_TM

2016-11-25 Thread Martin Kaiser
Thus wrote Uwe Kleine-König (u.kleine-koe...@pengutronix.de): > > ok, understood. I wasn't able to dig up an imx1 specification. Do you > > know if it's publicly available? > http://www.nxp.com/assets/documents/data/en/reference-manuals/MC9328MX1RM.pdf Thanks. > So you put the values to use in

[PATCH 3.12 090/127] packet: call fanout_release, while UNREGISTERING a netdev

2016-11-25 Thread Jiri Slaby
From: Anoob Soman 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 6664498280cf17a59c3e7cf1a931444c02633ed1 ] If a socket has FANOUT sockopt set, a new proto_hook is registered as part of fanout_add(). When processing a

[PATCH 3.12 083/127] net: fix sk_mem_reclaim_partial()

2016-11-25 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === commit 1a24e04e4b50939daa3041682b38b82c896ca438 upstream. sk_mem_reclaim_partial() goal is to ensure each socket has one SK_MEM_QUANTUM forward allocation. This is needed both for

[RFC 1/2] SWAP: add interface to let disk close swap cache

2016-11-25 Thread Hui Zhu
This patch add a interface to gendisk that SWAP device can use it to control the swap cache rule. Signed-off-by: Hui Zhu --- include/linux/genhd.h | 3 +++ include/linux/swap.h | 8 ++ mm/Kconfig| 10 +++ mm/memory.c | 2 +- mm/swapfile.c | 74

Re: mm: BUG in pgtable_pmd_page_dtor

2016-11-25 Thread Vlastimil Babka
On 11/24/2016 03:23 PM, Dmitry Vyukov wrote: > On Thu, Nov 24, 2016 at 2:49 PM, Vlastimil Babka wrote: >> On 11/18/2016 11:19 AM, Dmitry Vyukov wrote: >>> >>> Hello, >>> >>> I've got the following BUG while running syzkaller on >>> a25f0944ba9b1d8a6813fd6f1a86f1bd59ac25a6 (4.9-rc5). Unfortunately

[PATCH 3.12 085/127] net: avoid sk_forward_alloc overflows

2016-11-25 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 20c64d5cd5a2bdcdc8982a06cb05e5e1bd851a3d ] A malicious TCP receiver, sending SACK, can force the sender to split skbs in write queue and increase its memory usage.

[PATCH 3.12 081/127] IB/uverbs: Fix leak of XRC target QPs

2016-11-25 Thread Jiri Slaby
From: Tariq Toukan 3.12-stable review patch. If anyone has any objections, please let me know. === commit 5b810a242c28e1d8d64d718cebe75b79d86a0b2d upstream. The real QP is destroyed in case of the ref count reaches zero, but for XRC target QPs this call was missed and caused to

[RFC 0/2] Add interface let ZRAM close swap cache

2016-11-25 Thread Hui Zhu
SWAP will keep before swap cache before swap space get full. It will make swap space cannot be freed. It is harmful to the system that use ZRAM because its space use memory too. This two patches will add a sysfs switch to ZRAM that open or close swap cache without check the swap space. I got

[PATCH 3.12 082/127] IB/cm: Mark stale CM id's whenever the mad agent was unregistered

2016-11-25 Thread Jiri Slaby
From: Mark Bloch 3.12-stable review patch. If anyone has any objections, please let me know. === commit 9db0ff53cb9b43ed75bacd42a89c1a0ab048b2b0 upstream. When there is a CM id object that has port assigned to it, it means that the cm-id asked for the specific port that it should

Re: [PATCH v3 0/3] modversions: Fix CRC mangling under CONFIG_RELOCATABLE=y

2016-11-25 Thread Ard Biesheuvel
On 15 November 2016 at 09:13, Ard Biesheuvel wrote: > On 10 November 2016 at 05:22, Michael Ellerman wrote: >> Ard Biesheuvel writes: >> >>> On 27 October 2016 at 17:27, Ard Biesheuvel >>> wrote: This series is a followup to the single patch 'modversions: treat symbol CRCs as 32 bit

Re: [PATCH] scripts/kallsyms: remove last remnants of --page-offset option

2016-11-25 Thread Ard Biesheuvel
On 28 October 2016 at 18:09, Ard Biesheuvel wrote: > The implementation of the --page-offset kallsyms command line option has > been removed, so remove it from the usage string as well. > > Signed-off-by: Ard Biesheuvel > --- > scripts/kallsyms.c | 1 - > 1 file changed, 1 deletion(-) > > diff

[PATCH 3.12 086/127] tcp: fix wrong checksum calculation on MTU probing

2016-11-25 Thread Jiri Slaby
From: Douglas Caetano dos Santos 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 2fe664f1fcf7c4da6891f95708a7a56d3c024354 ] With TCP MTU probing enabled and offload TX checksumming disabled, tcp_mtu_probe() calculated the wrong

[PATCH 3.12 092/127] bridge: multicast: restore perm router ports on multicast enable

2016-11-25 Thread Jiri Slaby
From: Nikolay Aleksandrov 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 7cb3f9214dfa443c1ccc2be637dcc6344cc203f0 ] Satish reported a problem with the perm multicast router ports not getting reenabled after some series of events,

[PATCH 3.12 088/127] ipmr, ip6mr: fix scheduling while atomic and a deadlock with ipmr_get_route

2016-11-25 Thread Jiri Slaby
From: Nikolay Aleksandrov 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 2cf750704bb6d7ed8c7d732e071dd1bc890ea5e8 ] Since the commit below the ipmr/ip6mr rtnl_unicast() code uses the portid instead of the previous dst_pid which

Re: [PATCH 6/10] mmc: sdhci-xenon: Add Marvell Xenon SDHC core functionality

2016-11-25 Thread Ziji Hu
Hi Ulf, On 2016/11/24 23:00, Ziji Hu wrote: > Hi Ulf, > > On 2016/11/24 21:34, Ulf Hansson wrote: > + > + /* > +* Xenon Specific property: > +* emmc: explicitly indicate whether this slot is for eMMC > +* slotno: the index of slot. Refer to

[PATCH v17 02/15] clocksource/drivers/arm_arch_timer: Add a new enum for spi type

2016-11-25 Thread fu . wei
From: Fu Wei This patch add a new enum "arch_timer_spi_nr" and use it in the driver. Just for code's readability, no functional change. Signed-off-by: Fu Wei Acked-by: Mark Rutland --- drivers/clocksource/arm_arch_timer.c | 4 ++-- include/clocksource/arm_arch_timer.h | 6 ++ 2 files

[PATCH v17 03/15] clocksource/drivers/arm_arch_timer: Improve printk relevant code

2016-11-25 Thread fu . wei
From: Fu Wei This patch defines pr_fmt(fmt) for all pr_* functions, then the pr_* doesn't need to add "arch_timer:" everytime. According to the suggestion from checkpatch.pl: (1) delete some Blank Spaces in arch_timer_banner; (2) delete a redundant Tab in a bland line of arch_timer_init(void)

[PATCH v17 00/15] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-11-25 Thread fu . wei
From: Fu Wei This patchset: (1)Preparation for adding GTDT support in arm_arch_timer: 1. Move some enums and marcos to header file; 2. Add a new enum for spi type; 3. Improve printk relevant code; 4. Rename some enums and defines; 5. Rework PPI

RE: [PATCH V5 3/3] ARM64 LPC: LPC driver implementation on Hip06

2016-11-25 Thread Gabriele Paoloni
Hi Arnd Many thanks for your contribution, much appreciated I have some comments...see inline below > -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: 23 November 2016 23:23 > To: linux-arm-ker...@lists.infradead.org > Cc: Gabriele Paoloni; mark.rutl...@arm.com;

<    4   5   6   7   8   9   10   11   12   13   >