[PATCH 3.12 02/38] PCI: Fix devfn for VPD access through function 0

2016-12-13 Thread Jiri Slaby
From: Alex Williamson 3.12-stable review patch. If anyone has any objections, please let me know. === commit 9d9240756e63dd87d6cbf5da8b98ceb8f8192b55 upstream. Commit 932c435caba8 ("PCI: Add dev_flags bit to access VPD through function 0") passes PCI_SLOT(devfn) for the devfn para

[PATCH 3.12 18/38] mpi: Fix NULL ptr dereference in mpi_powm() [ver #3]

2016-12-13 Thread Jiri Slaby
From: Andrey Ryabinin 3.12-stable review patch. If anyone has any objections, please let me know. === commit f5527f3f002b0a6b376163613b82f69de073 upstream. This fixes CVE-2016-8650. If mpi_powm() is given a zero exponent, it wants to immediately return either 1 or 0, dependin

[PATCH 3.12 03/38] PCI: Use function 0 VPD for identical functions, regular VPD for others

2016-12-13 Thread Jiri Slaby
From: Alex Williamson 3.12-stable review patch. If anyone has any objections, please let me know. === commit da2d03ea27f6ed9d2005a67b20dd021ddacf1e4d upstream. 932c435caba8 ("PCI: Add dev_flags bit to access VPD through function 0") added PCI_DEV_FLAGS_VPD_REF_F0. Previously, we

[PATCH 3.12 22/38] PCI: Export pcie_find_root_port

2016-12-13 Thread Jiri Slaby
From: Johannes Thumshirn 3.12-stable review patch. If anyone has any objections, please let me know. === commit e784930bd645e7df78c66e7872fec282b0620075 upstream. Export pcie_find_root_port() so we can use it outside of PCIe-AER error injection. Signed-off-by: Johannes Thumshirn

[PATCH 3.12 24/38] pwm: Fix device reference leak

2016-12-13 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit 0e1614ac84f1719d87bed577963bb8140d0c9ce8 upstream. Make sure to drop the reference to the parent device taken by class_find_device() after "unexporting" any children when dere

[PATCH 3.12 25/38] ipv6: Set skb->protocol properly for local output

2016-12-13 Thread Jiri Slaby
From: Eli Cooper 3.12-stable review patch. If anyone has any objections, please let me know. === commit b4e479a96fc398ccf83bb1cffb4ffef8631beaf1 upstream. When xfrm is applied to TSO/GSO packets, it follows this path: xfrm_output() -> xfrm_output_gso() -> skb_gso_segment() w

[PATCH 3.12 33/38] packet: fix race condition in packet_set_ring

2016-12-13 Thread Jiri Slaby
From: Philip Pettersson 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 84ac7260236a49c79eede91617700174c2c19b0c ] When packet_set_ring creates a ring buffer it will initialize a struct timer_list if the packet version is TPACKET_V

[PATCH 3.12 19/38] drm/radeon: Ensure vblank interrupt is enabled on DPMS transition to on

2016-12-13 Thread Jiri Slaby
From: Michel Dänzer 3.12-stable review patch. If anyone has any objections, please let me know. === NOTE: This patch only applies to 4.5.y or older kernels. With newer kernels, this problem cannot happen because the driver now uses drm_crtc_vblank_on/off instead of drm_vblank_pre/p

[PATCH 3.12 21/38] rcu: Fix soft lockup for rcu_nocb_kthread

2016-12-13 Thread Jiri Slaby
From: Ding Tianhong 3.12-stable review patch. If anyone has any objections, please let me know. === commit bedc1969150d480c462cdac320fa944b694a7162 upstream. Carrying out the following steps results in a softlockup in the RCU callback-offload (rcuo) kthreads: 1. Connect to ixgbev

[PATCH 3.12 13/38] Fix USB CB/CBI storage devices with CONFIG_VMAP_STACK=y

2016-12-13 Thread Jiri Slaby
From: Petr Vandrovec 3.12-stable review patch. If anyone has any objections, please let me know. === commit 2ce9d2272b98743b911196c49e7af5841381c206 upstream. Some code (all error handling) submits CDBs that are allocated on the stack. This breaks with CB/CBI code that tries to c

[PATCH 3.12 23/38] mwifiex: printk() overflow with 32-byte SSIDs

2016-12-13 Thread Jiri Slaby
From: Brian Norris 3.12-stable review patch. If anyone has any objections, please let me know. === commit fcd2042e8d36cf644bd2d69c26378d17158b17df upstream. SSIDs aren't guaranteed to be 0-terminated. Let's cap the max length when we print them out. This can be easily noticed by

[PATCH 3.12 20/38] x86/traps: Ignore high word of regs->cs in early_fixup_exception()

2016-12-13 Thread Jiri Slaby
From: Andy Lutomirski 3.12-stable review patch. If anyone has any objections, please let me know. === commit fc0e81b2bea0ebceb71889b61d2240856141c9ee upstream. On the 80486 DX, it seems that some exceptions may leave garbage in the high bits of CS. This causes sporadic failures i

[PATCH 3.12 26/38] ipv4: Set skb->protocol properly for local output

2016-12-13 Thread Jiri Slaby
From: Eli Cooper 3.12-stable review patch. If anyone has any objections, please let me know. === commit f4180439109aa720774baafdd798b3234ab1a0d2 upstream. When xfrm is applied to TSO/GSO packets, it follows this path: xfrm_output() -> xfrm_output_gso() -> skb_gso_segment() w

[PATCH 3.12 30/38] l2tp: fix racy SOCK_ZAPPED flag check in l2tp_ip{,6}_bind()

2016-12-13 Thread Jiri Slaby
From: Guillaume Nault 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 32c231164b762dddefa13af5a0101032c70b50ef ] Lock socket before checking the SOCK_ZAPPED flag in l2tp_ip6_bind(). Without lock, a concurrent call could modify the

[PATCH 3.12 27/38] ALSA: pcm : Call kill_fasync() in stream lock

2016-12-13 Thread Jiri Slaby
From: Takashi Iwai 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3aa02cb664c5fb1042958c8d1aa8c35055a2ebc4 upstream. Currently kill_fasync() is called outside the stream lock in snd_pcm_period_elapsed(). This is potentially racy, since the

[PATCH 3.12 37/38] sparc64: Fix find_node warning if numa node cannot be found

2016-12-13 Thread Jiri Slaby
From: Thomas Tai 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 74a5ed5c4f692df2ff0a2313ea71e81243525519 ] When booting up LDOM, find_node() warns that a physical address doesn't match a NUMA node. WARNING: CPU: 0 PID: 0 at arch/

[PATCH 3.12 28/38] ip6_tunnel: disable caching when the traffic class is inherited

2016-12-13 Thread Jiri Slaby
From: Paolo Abeni 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit b5c2d49544e5930c96e2632a7eece3f4325a1888 ] If an ip6 tunnel is configured to inherit the traffic class from the inner header, the dst_cache must be disabled or it wi

[PATCH 3.12 38/38] sparc64: fix compile warning section mismatch in find_node()

2016-12-13 Thread Jiri Slaby
From: Thomas Tai 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 87a349f9cc0908bc0cfac0c9ece3179f650ae95a ] A compile warning is introduced by a commit to fix the find_node(). This patch fix the compile warning by moving find_node(

[PATCH 3.12 32/38] net/dccp: fix use-after-free in dccp_invalid_packet

2016-12-13 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 648f0c28df282636c0c8a7a19ca3ce5fc80a39c3 ] pskb_may_pull() can reallocate skb->head, we need to reload dh pointer in dccp_invalid_packet() or risk use after free.

[PATCH 3.12 29/38] net: sky2: Fix shutdown crash

2016-12-13 Thread Jiri Slaby
From: Jeremy Linton 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 06ba3b2133dc203e1e9bc36cee7f0839b79a9e8b ] The sky2 frequently crashes during machine shutdown with: sky2_get_stats+0x60/0x3d8 [sky2] dev_get_stats+0x68/0xd8 rtnl

[PATCH 3.12 31/38] net/sched: pedit: make sure that offset is valid

2016-12-13 Thread Jiri Slaby
From: Amir Vadai 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 95c2027bfeda21a28eb245121e6a249f38d0788e ] Add a validation function to make sure offset is valid: 1. Not below skb head (could happen when offset is negative). 2. Va

[PATCH 3.12 01/38] x86/idle: Restore trace_cpu_idle to mwait_idle() calls

2016-12-13 Thread Jiri Slaby
From: Jisheng Zhang 3.12-stable review patch. If anyone has any objections, please let me know. === commit e43d0189ac02415fe4487f79fc35e8f147e9ea0d upstream. Commit b253149b843f ("sched/idle/x86: Restore mwait_idle() to fix boot hangs, to improve power savings and to improve perfo

[PATCH 3.12 36/38] sparc32: Fix inverted invalid_frame_pointer checks on sigreturns

2016-12-13 Thread Jiri Slaby
From: Andreas Larsson 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 07b5ab3f71d318e52c18cc3b73c1d44c908aacfa ] Signed-off-by: Andreas Larsson Signed-off-by: David S. Miller Signed-off-by: Jiri Slaby --- arch/sparc/kernel/sign

[PATCH 3.12 15/38] tile: avoid using clocksource_cyc2ns with absolute cycle count

2016-12-13 Thread Jiri Slaby
From: Chris Metcalf 3.12-stable review patch. If anyone has any objections, please let me know. === commit e658a6f14d7c0243205f035979d0ecf6c12a036f upstream. For large values of "mult" and long uptimes, the intermediate result of "cycles * mult" can overflow 64 bits. For example,

[PATCH 3.12 35/38] net: ping: check minimum size on ICMP header length

2016-12-13 Thread Jiri Slaby
From: Kees Cook 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 0eab121ef8750a5c8637d51534d5e9143fb0633f ] Prior to commit c0371da6047a ("put iov_iter into msghdr") in v3.19, there was no check that the iovec contained enough bytes

[PATCH 3.12 34/38] net: avoid signed overflows for SO_{SND|RCV}BUFFORCE

2016-12-13 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit b98b0bc8c431e3ceb4b26b0dfc8db509518fb290 ] CAP_NET_ADMIN users should not be allowed to set negative sk_sndbuf or sk_rcvbuf values, as it can lead to various memory

[PATCH v2 07/12] scsi: ufs: add option to change default UFS power management level

2016-12-13 Thread Subhash Jadavani
UFS device and link can be put in multiple different low power modes hence UFS driver supports multiple different low power modes. By default UFS driver selects the default (optimal) low power mode (which gives moderate power savings and have relatively less enter and exit latencies) but we might h

[PATCH 3.12 00/38] 3.12.69-stable review

2016-12-13 Thread Jiri Slaby
This is the start of the stable review cycle for the 3.12.69 release. There are 38 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu Dec 15 20:52:26 CET 2016. Anything receiv

[PATCH v2 11/12] scsi: ufs: add trace event for ufs commands

2016-12-13 Thread Subhash Jadavani
From: Lee Susman Use the ftrace infrastructure to conditionally trace ufs command events. New trace event is created, which samples the following ufs command data: - device name - optional identification string - task tag - doorbell register - number of transfer bytes - interrupt status register

[PATCH v2 08/12] scsi: ufs: add capability to keep auto bkops always enabled

2016-12-13 Thread Subhash Jadavani
UFS device requires to perform bkops (back ground operations) periodically but host can control (via auto-bkops parameter of device) when device can perform bkops based on its performance requirements. In general, host would like to enable the device's auto-bkops only when it's not doing any regula

[PATCH v2 10/12] scsi: ufs: add time profiling support

2016-12-13 Thread Subhash Jadavani
This patch adds the profiling support for some of the time critical operations like hibern8 enter/exit, clock gating & clock scaling. Reviewed-by: Venkat Gopalakrishnan Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 24 include/trace/events/ufs.h | 40

[PATCH] tools: usb: usbip: Update README

2016-12-13 Thread Krzysztof Opasiak
Update README file: - remove outdated parts - clarify terminology and general structure - add some description of vUDC Signed-off-by: Krzysztof Opasiak --- tools/usb/usbip/README | 56 +- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git

[PATCH v2 09/12] scsi: ufs: fix setting init power mode

2016-12-13 Thread Subhash Jadavani
Immediately after successful UFS link startup, UFS link power mode would be in PWM-G1, 1-lane, SLOW-AUTO mode. But currently we are doing few of the DME local/peer attributes access before setting the "hba->pwr_info" to default power mode. If we are doing link startup as part of error recovery then

[PATCH v2 12/12] scsi: ufs: Improve fatal error logs

2016-12-13 Thread Subhash Jadavani
From: Dolev Raviv Errors such as UIC error, illegal OCS values, and others may require more information for debugging. Such information could be hibern8 events, events sequences, recoverable errors, error history, and more. This patch improves tracking of important errors and events in debug leve

kvm: WARNING in mmu_spte_clear_track_bits

2016-12-13 Thread Dmitry Vyukov
Hello, The following program: https://gist.githubusercontent.com/dvyukov/23d8bd622fd526d7701ac2057bbbc9c2/raw/aacd20451e6f460232f5e1da262b653fb3155613/gistfile1.txt leads to WARNING in mmu_spte_clear_track_bits and later to splash of BUG: Bad page state in process a.out pfn:619b5 On commit e7aa

[PATCH v2 03/12] scsi: ufs: fix multiple ufs spec violation

2016-12-13 Thread Subhash Jadavani
From: Dolev Raviv When a command to a W-LU is timed out via scsi, error handling will treat it as any other LU and send commands such as START_STOP with wrong format or task abort. Those commands are illegal for W-LU according to the UFS spec. To solve it, when an error is recognized those steps

[PATCH v2 04/12] scsi: ufs: Add sysfs node to dynamically control clock gating

2016-12-13 Thread Subhash Jadavani
From: Sahitya Tummala Provide an option to enable/disable clock gating during runtime. Write 1 or 0 to "clkgate_enable" sysfs node to enable/disable clock gating. Signed-off-by: Sahitya Tummala Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 48

[PATCH v2 06/12] scsi: ufs: provide sysfs attribute to select the PM level

2016-12-13 Thread Subhash Jadavani
This patch provides the sysfs attribute to choose the power management level for UFS runtime and system suspend. Reviewed-by: Sujit Reddy Thumma Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 122 ++ drivers/scsi/ufs/ufshcd.h | 2 +

[PATCH v2 05/12] scsi: ufs: Add sysfs node to dynamically control clock scaling

2016-12-13 Thread Subhash Jadavani
From: Sahitya Tummala Provide an option to enable/disable clock scaling during runtime. Write 1/0 to "clkscale_enable" sysfs node to enable/disable clock scaling. Signed-off-by: Sahitya Tummala Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 95

[PATCH v2 02/12] scsi: ufs: add tracing support

2016-12-13 Thread Subhash Jadavani
This change adds the ftrace support for following: 1. UFS initialization time 2. Clock gating states 3. Clock scaling states 4. Power management APIs latency 5. BKOPs enable/disable Usage: echo 1 > /sys/kernel/debug/tracing/events/ufs/enable cat /sys/kernel/debug/tracing/trace_pipe

Re: [PATCH 4/6] ARM: dts: sun8i: add opp-v2 table for A33

2016-12-13 Thread Maxime Ripard
On Tue, Dec 13, 2016 at 11:22:50PM +0800, Icenowy Zheng wrote: > An operating point table is needed for the cpu frequency adjusting to > work. > > The operating point table is converted from the common value in > extracted script.fex from many A33 board/tablets. > > 1.344GHz is set as a turbo-mod

Re: [RFC 1/2] powerpc/32: Unset MSR RI in exception epilogs

2016-12-13 Thread Segher Boessenkool
On Tue, Dec 13, 2016 at 07:19:41PM +0100, Christophe Leroy wrote: > At exception prologs, once SRR0 and SRR1 have been saved, MSR RI is > set to mark the interrupt as recoverable. > > MSR RI has to be unset before writing into SRR0 and SRR1 at exception > epilogs. Why? What goes wrong without th

Re: [PATCH 5/6] ARM: dts: sun8i: set cpu-supply in reference tablet DTSI

2016-12-13 Thread Maxime Ripard
On Tue, Dec 13, 2016 at 11:22:51PM +0800, Icenowy Zheng wrote: > All reference design A33 tablets uses DCDC2 of AXP223 as the power > supply of the Cortex-A7 cores. > > Set the cpu-supply in the DTSI of sun8i reference tablets. > > Signed-off-by: Icenowy Zheng Applied, thanks Maxime -- Maxim

Re: [inotify] fee1df54b6: BUG_kmalloc-#(Not_tainted):Freepointer_corrupt

2016-12-13 Thread Nikolay Borisov
On 13.12.2016 20:51, Eric W. Biederman wrote: > Nikolay Borisov writes: > >> So this thing resurfaced again and I took a hard look into the code but >> couldn't find anything suspicious. So the allocating and freeing >> contexts leads me to believe it's the 'tbl' pointer that is being >> corrup

Fwd: kvmgt-vfio-mdev-for-v4.10 pull request content

2016-12-13 Thread Daniel Vetter
Hi Linus, Below is the gvt pull request from Zhenyu, now that the vfio stuff has landed. I figured no point in passing this all through the various trees especially since Dave is kinda in vacation mode anyway. But I did a local test pull and looked all reasonable to me. Diffstat and summary is wro

Re: [PATCH 2/3] power: supply: bq24735-charger: optionally poll the ac-detect gpio

2016-12-13 Thread Rob Herring
On Mon, Dec 12, 2016 at 12:00:23PM +0100, Peter Rosin wrote: > If the ac-detect gpio does not support interrupts, provide a fallback > to poll the gpio at a configurable interval. > > Signed-off-by: Peter Rosin > --- > .../bindings/power/supply/ti,bq24735.txt | 2 + > drivers/power/su

Re: [RFC][PATCH 5/5] usb: dwc2: Add a quirk to allow speed negotiation for Hisilicon Hi6220

2016-12-13 Thread John Stultz
On Tue, Dec 13, 2016 at 5:24 AM, Alan Stern wrote: > On Mon, 12 Dec 2016, John Stultz wrote: > >> From: Chen Yu >> >> The Hi6220's usb controller is limited in that it does not >> support "Split Transactions", so it does not support communicating >> with low-speed and full-speed devices behind a

Re: [PATCH 4.8 00/33] 4.8.15-stable review

2016-12-13 Thread Shuah Khan
On 12/13/2016 10:16 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.8.15 release. > There are 33 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sh

Re: [PATCH 4.4 00/16] 4.4.39-stable review

2016-12-13 Thread Shuah Khan
On 12/13/2016 10:15 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.39 release. > There are 16 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sh

[GIT PULL] arm64 updates for 4.10

2016-12-13 Thread Catalin Marinas
Hi Linus, Please pull the arm64 updates for 4.10 below. The patches touch the generic include/linux/thread_info.h to factor out struct restart_block into a separate include/linux/restart_block.h file (needed for arm64 moving thread_info off stack; acked by Andy Lutomirski). There is also a small

Re: [PATCH 1/2] devicetree: power: add bindings for GPIO-driven power switches

2016-12-13 Thread Rob Herring
On Sun, Dec 11, 2016 at 11:21:44PM +0100, Bartosz Golaszewski wrote: > Some boards are equipped with simple, GPIO-driven power load switches. > An example of such ICs is the TI tps229* series. How is this different than a GPIO regulator? The input and output voltages just happen to be the same. I

Re: [PATCH v3] siphash: add cryptographically secure hashtable function

2016-12-13 Thread Linus Torvalds
On Tue, Dec 13, 2016 at 12:39 AM, Eric Biggers wrote: > > Hmm, I don't think you can really do load_unaligned_zeropad() without first > checking for 'left != 0'. Right you are. If the allocation is at the end of a page, the 0-size case would be entirely outside the page and there's no fixup. Of

Re: [PATCH v3] siphash: add cryptographically secure hashtable function

2016-12-13 Thread Linus Torvalds
On Mon, Dec 12, 2016 at 3:04 PM, Jason A. Donenfeld wrote: > > Indeed this would be a great first candidate. There are lots of places > where MD5 (!!) is pulled in for this sort of thing, when SipHash could > be a faster and leaner replacement (and arguably more secure than > rusty MD5). Yeah,. t

Re: [PATCH 6/6] ARM: dts: sun8i: raise the max voltage of DCDC2 in sun8i reference tablets

2016-12-13 Thread Maxime Ripard
On Tue, Dec 13, 2016 at 11:22:52PM +0800, Icenowy Zheng wrote: > The "extremity_freq" frequency described in the original FEX files uses > a voltage of 1.46v, which is beyond the current maximum voltage value of > DCDC2 (Cortex-A7 supply) in the sun8i reference tablet DTSI file. > > Raise the maxi

Re: [PATCH] ARM: dts: Add missing CPU frequencies for Exynos5422/5800

2016-12-13 Thread Javier Martinez Canillas
Hello Bartlomiej, On 12/13/2016 01:52 PM, Bartlomiej Zolnierkiewicz wrote: > Add missing 2000MHz & 1900MHz OPPs (for A15 cores) and 1400MHz OPP > (for A7 cores). Also update common Odroid-XU3 Lite/XU3/XU4 thermal > cooling maps to account for new OPPs. > > Since new OPPs are not available on all

Re: [PATCH v6] soc: qcom: Add SoC info driver

2016-12-13 Thread Bjorn Andersson
On Mon 12 Dec 07:17 PST 2016, Imran Khan wrote: > The SoC info driver provides information such as Chip ID, > Chip family, serial number and other such details about > Qualcomm SoCs. > > Signed-off-by: Imran Khan Looks good, just some minor style things. [..] > diff --git a/drivers/soc/qcom/so

Re: [PATCH] mm-add-vfree_atomic-fix

2016-12-13 Thread Andrey Ryabinin
On 12/13/2016 08:24 PM, Michal Hocko wrote: > On Tue 13-12-16 08:57:34, Andy Lutomirski wrote: >> On Tue, Dec 13, 2016 at 2:12 AM, Michal Hocko wrote: >>> [CC Andy] >>> >>> I've noticed the same >>> http://lkml.kernel.org/r/20161209142820.ga4...@dhcp22.suse.cz >>> and also concluded same as you

Re: [PATCH V7 5/8] arm64/dma-mapping: Implement DMA_ATTR_PRIVILEGED

2016-12-13 Thread Robin Murphy
ize, >>>>> - dma_direction_to_prot(dir, false) | IOMMU_MMIO); >>>>> + dma_info_to_prot(dir, false, attrs) | IOMMU_MMIO); >>>>> } >>>>> >>>>> void iommu_dma_unmap_resource(struct device *dev, dma_addr_t handle, &

Re: [PATCH v6 2/2] Add support for OV5647 sensor.

2016-12-13 Thread Pavel Machek
On Tue 2016-12-13 14:32:37, Ramiro Oliveira wrote: > Modes supported: > - 640x480 RAW 8 > > Signed-off-by: Ramiro Oliveira Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html signatur

Re: [PATCH v3 3/3] perf tool: add cgroup identifier entry in perf report

2016-12-13 Thread Hari Bathini
Hi Eric, On Tuesday 13 December 2016 03:36 AM, Eric W. Biederman wrote: Hari Bathini writes: This patch introduces a cgroup identifier entry field in perf report to identify or distinguish data of different cgroups. It uses the unique inode number of cgroup namespace, included in perf data w

Re: [PATCH v6 1/2] Add OV5647 device tree documentation

2016-12-13 Thread Pavel Machek
On Tue 2016-12-13 14:32:36, Ramiro Oliveira wrote: > Create device tree bindings documentation. > > Signed-off-by: Ramiro Oliveira > --- > .../devicetree/bindings/media/i2c/ov5647.txt | 35 > ++ > 1 file changed, 35 insertions(+) > create mode 100644 Documentation/dev

Re: [PATCH 5/5] firmware: add DECLARE_FW_CUSTOM_FALLBACK() annotation

2016-12-13 Thread Pavel Machek
Hi! > We need to ensure that when driver developers use the custom firmware > fallback mechanism it was not a copy and paste bug. These use cases on > upstream drivers are rare, we only have 2 upstream users and its for > really old drivers. Since valid uses are rare but possible enable a > white-

Re: [PATCH] btrfs: limit async_work allocation and worker func duration

2016-12-13 Thread Chris Mason
On 12/12/2016 03:35 PM, Maxim Patlasov wrote: On 12/12/2016 06:54 AM, David Sterba wrote: As far as we don't have any NO_THRESHOLD users of btrfs_workqueue_normal_congested for now, I tend to think it's better to add a descriptive comment and simply return "false" from btrfs_workqueue_normal_con

Re: [PATCH v3] ACPI: small formatting fixes

2016-12-13 Thread Pavel Machek
On Mon 2016-12-12 15:47:54, Joe Perches wrote: > On Mon, 2016-12-12 at 15:28 -0800, Nick Desaulniers wrote: > > A quick cleanup with scripts/checkpatch.pl -f . > > > > Signed-off-by: Nick Desaulniers > > Acked-by: Pavel Machek > > What Pavel wrote was "Rest is good".  That's not an ack. > > Yo

Re: [PATCH] ACPI: small formatting fixes

2016-12-13 Thread Pavel Machek
On Mon 2016-12-12 15:22:22, Joe Perches wrote: > On Mon, 2016-12-12 at 15:20 -0800, Nick Desaulniers wrote: > > > Please... don't encourage people more, we have enough cleanup patches > > > as is. > > > > I recognize that this patch is relatively inconsequential, but it is my > > first patch to th

Re: [PATCH 1/2] dt-bindings: usb: add DT binding for s3c2410 USB device controller

2016-12-13 Thread Rob Herring
On Fri, Dec 09, 2016 at 05:06:39PM -0200, Sergio Prado wrote: > Adds the device tree bindings description for Samsung S3C2410 and > compatible USB device controller. > > Signed-off-by: Sergio Prado > --- > .../devicetree/bindings/usb/s3c2410-usb.txt| 28 > ++ > 1 fil

Re: [PATCH] MIPS: NI 169445 board support

2016-12-13 Thread Nathan Sullivan
On Tue, Dec 13, 2016 at 06:40:31PM +, Paul Burton wrote: > Hi Nathan, > > On Friday, 2 December 2016 09:42:09 GMT Nathan Sullivan wrote: > > Support the National Instruments 169445 board. > > > > Signed-off-by: Nathan Sullivan > > --- > > "gpio: mmio: add support for NI 169445 NAND GPIO" and

Re: [inotify] fee1df54b6: BUG_kmalloc-#(Not_tainted):Freepointer_corrupt

2016-12-13 Thread Eric W. Biederman
Nikolay Borisov writes: > So this thing resurfaced again and I took a hard look into the code but > couldn't find anything suspicious. So the allocating and freeing > contexts leads me to believe it's the 'tbl' pointer that is being > corrupted. The only thing which I do with it is to increase it

Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups

2016-12-13 Thread Tejun Heo
On Tue, Dec 13, 2016 at 10:47:19AM -0800, John Stultz wrote: > > Control group control? The word control has a specific meaning for > > cgroups and that second control doesn't make much sense to me. > > But this would go against the long tradition of RAS syndrome and > things like "struct task_st

[Patch] 9p: fix a potential acl leak

2016-12-13 Thread Cong Wang
posix_acl_update_mode() could possibly clear 'acl', if so we leak the memory pointed by 'acl'. Save this pointer before calling posix_acl_update_mode() and release the memory if 'acl' really gets cleared. Reported-by: Mark Salyzyn Reviewed-by: Jan Kara Cc: Eric Van Hensbergen Cc: Ron Minnich C

Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups

2016-12-13 Thread John Stultz
On Tue, Dec 13, 2016 at 10:40 AM, Tejun Heo wrote: > Hello, > > On Tue, Dec 13, 2016 at 08:08:16AM -0800, John Stultz wrote: >> On Tue, Dec 13, 2016 at 1:47 AM, Michael Kerrisk (man-pages) >> wrote: >> > On 13 December 2016 at 02:39, John Stultz wrote: >> > So, back to the discussion of silos. I

Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups

2016-12-13 Thread Tejun Heo
Hello, Casey. On Tue, Dec 13, 2016 at 10:32:14AM -0800, Casey Schaufler wrote: > > The trouble is that CAP_SYS_NICE or _RESOURCE (which was tried in an > > earlier version of this patch) aren't necessarily appropriate for > > non-android systems. See Andy's objection here: > > https://lkml.org/lkm

Re: [PATCH v3 1/3] perf: add PERF_RECORD_NAMESPACES to include namespaces related info

2016-12-13 Thread Hari Bathini
Hi Eric, On Monday 12 December 2016 11:57 PM, Eric W. Biederman wrote: Hari Bathini writes: With the advert of container technologies like docker, that depend on namespaces for isolation, there is a need for tracing support for namespaces. This patch introduces new PERF_RECORD_NAMESPACES eve

RE: [PATCH V7 5/8] arm64/dma-mapping: Implement DMA_ATTR_PRIVILEGED

2016-12-13 Thread Sricharan
+ dma_info_to_prot(dir, false, attrs) | IOMMU_MMIO); >>>> } >>>> >>>> void iommu_dma_unmap_resource(struct device *dev, dma_addr_t handle, >>>> >>>> With those two issues fixed up, I've given the series (applied to >>>

Re: usb/core: warning in usb_create_ep_devs/sysfs_create_dir_ns

2016-12-13 Thread Dmitry Vyukov
On Tue, Dec 13, 2016 at 7:38 PM, Alan Stern wrote: > On Tue, 13 Dec 2016, Dmitry Vyukov wrote: > >> On Tue, Dec 13, 2016 at 4:52 PM, Alan Stern >> wrote: >> > On Tue, 13 Dec 2016, Dmitry Vyukov wrote: >> > >> >> >> > If it is >> >> >> > not a bug in kernel source code, then it must not produce

Re: [PATCH RFC 2/2] ARM: nommu: remap exception base address to RAM

2016-12-13 Thread Afzal Mohammed
Hi, On Tue, Dec 13, 2016 at 09:38:21AM +, Vladimir Murzin wrote: > On 11/12/16 13:12, Afzal Mohammed wrote: > > this probably would have to be made robust so as to not cause issue on > > other v7-A's upon trying to do !MMU (this won't affect normal MMU boot), > > or specifically where securit

Re: [PATCH V8 3/3] irqchip: qcom: Add IRQ combiner driver

2016-12-13 Thread Marc Zyngier
On 13/12/16 18:21, Joe Perches wrote: > On Tue, 2016-12-13 at 10:23 -0500, Agustin Vega-Frias wrote: >> On 2016-12-07 13:16, Marc Zyngier wrote: + } + + combiner->domain = irq_domain_create_linear( + pdev->dev.fwnode, combiner->nirqs, &domain_ops, combiner); >>> >>> O

Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups

2016-12-13 Thread Tejun Heo
Hello, On Tue, Dec 13, 2016 at 08:08:16AM -0800, John Stultz wrote: > On Tue, Dec 13, 2016 at 1:47 AM, Michael Kerrisk (man-pages) > wrote: > > On 13 December 2016 at 02:39, John Stultz wrote: > > So, back to the discussion of silos. I understand the argument for > > wanting a new silo. But, in

Re: [PATCH] MIPS: NI 169445 board support

2016-12-13 Thread Paul Burton
Hi Nathan, On Friday, 2 December 2016 09:42:09 GMT Nathan Sullivan wrote: > Support the National Instruments 169445 board. > > Signed-off-by: Nathan Sullivan > --- > "gpio: mmio: add support for NI 169445 NAND GPIO" and > "devicetree: add vendor prefix for National Instruments" are required for

Re: [PATCH 2/2] ubifs: Use fscrypt ioctl() helpers

2016-12-13 Thread David Gstir
> On 13.12.2016, at 00:27, Richard Weinberger wrote: > > Commit db717d8e26c2 ("fscrypto: move ioctl processing more fully into > common code") moved ioctl() related functions into fscrypt and offers > us now a set of helper functions. > > Signed-off-by: Richard Weinberger > --- > fs/ubifs/ioct

Re: usb/core: warning in usb_create_ep_devs/sysfs_create_dir_ns

2016-12-13 Thread Alan Stern
On Tue, 13 Dec 2016, Dmitry Vyukov wrote: > On Tue, Dec 13, 2016 at 4:52 PM, Alan Stern wrote: > > On Tue, 13 Dec 2016, Dmitry Vyukov wrote: > > > >> >> > If it is > >> >> > not a bug in kernel source code, then it must not produce a WARNING. > >> > > >> > What about a memory allocation failure?

Re: [PATCH] rcu: shift by 1UL rather than 1 to fix sign extension error

2016-12-13 Thread Paul E. McKenney
On Wed, Dec 14, 2016 at 02:09:27AM +0800, Boqun Feng wrote: > 2016年12月14日 上午1:17,"Mark Rutland" 写道: > > > > Hi, > > > > On Tue, Dec 13, 2016 at 10:56:46AM +, Colin King wrote: > > > From: Colin Ian King > > > > > > mask and bit are unsigned longs, so if bit is 31 we end up sign > > > extending

Re: [PATCH RFC 2/2] ARM: nommu: remap exception base address to RAM

2016-12-13 Thread Afzal Mohammed
Hi, On Tue, Dec 13, 2016 at 10:02:26AM +, Russell King - ARM Linux wrote: > On Sun, Dec 11, 2016 at 06:42:55PM +0530, Afzal Mohammed wrote: > > bic r0, r0, #CR_V > > #endif > > mcr p15, 0, r0, c1, c0, 0 @ write control reg > > + > > +#ifdef CONFIG_REMAP_VECTORS_TO_R

Re: [PATCH] cpumask: avoid WARN in prefill_possible_map()

2016-12-13 Thread Thomas Gleixner
On Mon, 12 Dec 2016, Dmitry Safonov wrote: > Subject : [PATCH] cpumask: avoid WARN in prefill_possible_map() 'cpumask' is hardly the proper prefix for x86/smpboot related issues. > With CONFIG_DEBUG_PER_CPU_MAPS and CONFIG_CPUMASK_OFFSTACK enabled > fixes the following WARN_ON_ONCE() for booting

Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups

2016-12-13 Thread Casey Schaufler
On 12/13/2016 10:13 AM, John Stultz wrote: > On Tue, Dec 13, 2016 at 9:48 AM, Casey Schaufler > wrote: >> On 12/13/2016 9:24 AM, John Stultz wrote: >>> On Tue, Dec 13, 2016 at 9:17 AM, Casey Schaufler >>> wrote: On 12/13/2016 8:49 AM, John Stultz wrote: > On Tue, Dec 13, 2016 at 8:39 A

Re: [PATCH] i2c: designware: Cleaning and comment style fixes.

2016-12-13 Thread Joe Perches
On Tue, 2016-12-13 at 16:34 +, Luis Oliveira wrote: > - Misspelling of some words > - Comment format fix Most all adding periods to comments. I think this is generally a value free change as these are frequently sentence fragments, but, hey, it's not my code. > /* > - * Registers offset > +

Re: [PATCH V8 3/3] irqchip: qcom: Add IRQ combiner driver

2016-12-13 Thread Joe Perches
On Tue, 2016-12-13 at 10:23 -0500, Agustin Vega-Frias wrote: > On 2016-12-07 13:16, Marc Zyngier wrote: > > > + } > > > + > > > + combiner->domain = irq_domain_create_linear( > > > + pdev->dev.fwnode, combiner->nirqs, &domain_ops, combiner); > > > > On a single line, please. Do no listen t

[RFC 1/2] powerpc/32: Unset MSR RI in exception epilogs

2016-12-13 Thread Christophe Leroy
At exception prologs, once SRR0 and SRR1 have been saved, MSR RI is set to mark the interrupt as recoverable. MSR RI has to be unset before writing into SRR0 and SRR1 at exception epilogs. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ppc_asm.h | 6 ++ arch/powerpc/include/as

[RFC 2/2] powerpc/8xx: Perf events on PPC 8xx

2016-12-13 Thread Christophe Leroy
The 8xx has no PMU, however some events can be emulated by other means. This patch implements the following 4 events: cpu-cycles OR cycles [Hardware event] instructions [Hardware event] dTLB-load-misses

[RFC 0/2] powerpc: Perf events on PPC 8xx

2016-12-13 Thread Christophe Leroy
This patch set is a first try of implementing some additional perf events on PPC 8xx. The first patch of the serie fixes missing MSR RI setting at end of exceptions The second patch implements the perf counters. The 8xx has no PMU, however some events can be emulated by other means. This patch i

[PATCH 3/7] ARM: dts: NSP: Add QSPI support to missing boards

2016-12-13 Thread Jon Mason
QSPI device tree entries are present in bcm958625k, but missing from bcm958522er, bcm958525er, bcm958525xmc, bcm958622hr, bcm958623hr, bcm958625hr, and bcm988312hr. Duplicate the entry in bcm958625k for all of those that are missing it (as they are identical). Signed-off-by: Jon Mason --- arch/

[PATCH 5/7] ARM: dts: NSP: Add and enable amac2

2016-12-13 Thread Jon Mason
Add and enable the third AMAC ethernet interface in the device trees for the platforms where it is present. Also, enable amac1 on some of the platforms where that was missing. Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm-nsp.dtsi| 9 + arch/arm/boot/dts/bcm958622hr.dts | 8 +++

[PATCH 0/7] ARM: dts: NSP: DT Clean-ups and more

2016-12-13 Thread Jon Mason
The Northstar Plus device tree files have gotten messy and out of sync. The first 5 patches correct this, the next 2 add support for new things. Jon Mason (7): ARM: dts: NSP: DT Clean-ups ARM: dts: NSP: Correct NAND partition unit address ARM: dts: NSP: Add QSPI support to missing boards A

Re: [PATCH] mm-add-vfree_atomic-fix

2016-12-13 Thread Andy Lutomirski
On Tue, Dec 13, 2016 at 9:24 AM, Michal Hocko wrote: > On Tue 13-12-16 08:57:34, Andy Lutomirski wrote: >> On Tue, Dec 13, 2016 at 2:12 AM, Michal Hocko wrote: >> > [CC Andy] >> > >> > I've noticed the same >> > http://lkml.kernel.org/r/20161209142820.ga4...@dhcp22.suse.cz >> > and also concluded

[PATCH 6/7] ARM: dts: NSP: Add Ethernet to NSP XMC

2016-12-13 Thread Jon Mason
Enable the ethernet in the NSP XMC (bcm958525xmc) device tree Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm958525xmc.dts | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/bcm958525xmc.dts b/arch/arm/boot/dts/bcm958525xmc.dts index 89d9abc..3912269 1

[PATCH 7/7] ARM: dts: NSP: Add SD/MMC support

2016-12-13 Thread Jon Mason
Add SD/MMC support to the Broadcom NSP SVK and XMC. Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm-nsp.dtsi | 9 +++ arch/arm/boot/dts/bcm958525xmc.dts | 6 +- arch/arm/boot/dts/bcm958625k.dts | 118 - 3 files changed, 90 insertions(+), 43 deleti

[PATCH 4/7] ARM: dts: NSP: Add BCM958625K switch ports

2016-12-13 Thread Jon Mason
Add the layout of the switch ports found on the BCM958625K reference board. The CPU port is hooked up to the AMAC0 Ethernet controller adapter. Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm958625k.dts | 45 1 file changed, 45 insertions(+) diff --gi

[PATCH 2/7] ARM: dts: NSP: Correct NAND partition unit address

2016-12-13 Thread Jon Mason
The NAND partition unit address does not match the other NSP device tree files. This change makes them uniform. Signed-off-by: Jon Mason --- arch/arm/boot/dts/bcm958625k.dts | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/bcm958625k.dts b/arch/arm/b

[PATCH 1/7] ARM: dts: NSP: DT Clean-ups

2016-12-13 Thread Jon Mason
The QSPI entry was added out of the sequental order that the rest of the DTSI file is in. Move it to make it fit in properly. Also, some other entries have been added in a non-alphabetical order in the DTS files, making them different from the other NSP DTS files. Move the relevant peices to mak

Re: [PATCH v5] cgroup: Add new capability to allow a process to migrate other tasks between cgroups

2016-12-13 Thread John Stultz
On Tue, Dec 13, 2016 at 9:48 AM, Casey Schaufler wrote: > On 12/13/2016 9:24 AM, John Stultz wrote: >> On Tue, Dec 13, 2016 at 9:17 AM, Casey Schaufler >> wrote: >>> On 12/13/2016 8:49 AM, John Stultz wrote: On Tue, Dec 13, 2016 at 8:39 AM, Casey Schaufler wrote: > On 12/13/2016

<    1   2   3   4   5   6   7   8   9   10   >