[PATCH] Fix isocpus's param handling when CPUMASK_OFFSTACK=n.

2017-10-21 Thread Rakib Mullick
> *On Fri, Oct 20, 2017 at 2:49 PM, Ingo Molnar wrote: > >> Rakib Mullick wrote: >> include/linux/cpumask.h | 16 >> kernel/sched/topology.c | 8 +--- >> 2 files changed, 21 insertions(+), 3 deletions(-) > > What kernel is this against? It does not apply to the latest kern

Re: [PATCH] lib: memmove: Use optimised memcpy if possible

2017-10-21 Thread PrasannaKumar Muralidharan
On 4 October 2017 at 22:26, PrasannaKumar Muralidharan wrote: > When there is no overlap between src and dst use optimised memcpy if it > is available. > > Signed-off-by: Paul Burton > Signed-off-by: PrasannaKumar Muralidharan > --- > This change is a small part of a patch [1] from Paul Burton.

Re: [patch 0/3] x86/PCI/MSI: Make sure that irq reservation mode works everywhere

2017-10-21 Thread Thomas Gleixner
On Fri, 20 Oct 2017, Bjorn Helgaas wrote: > On Tue, Oct 17, 2017 at 09:54:56AM +0200, Thomas Gleixner wrote: > > Dexuan reported that the recent rework of the vector allocation mode in x86 > > broke HyperV PCI passtrough because the rework missed to add the > > MSI_FLAG_MUST_REACTIVATE flag to the

Re: x86/kdump: crashkernel=X try to reserve below 896M first then below 4G and MAXMEM

2017-10-21 Thread Yinghai Lu
On Thu, Oct 19, 2017 at 10:52 PM, Dave Young wrote: > Now crashkernel=X will fail if there's not enough memory at low region > (below 896M) when trying to reserve large memory size. One can use > crashkernel=xM,high to reserve it at high region (>4G) but it is more > convinient to improve crashke

Re: [PATCH] ARM: dts: exynos: add cpu perf counters to Exynos54xx boards

2017-10-21 Thread Marian Mihailescu
Hi Robin, Apologies, I did not really check which cluster is described for the 5410 (since 5422 boots from the A7). Should I define both pmu nodes (w/o interrupt affinity) in the exynos54xx,dtsi, and set the status property to "disabled"? And then add the interrupt affinity to the SoC variant, an

Re: [PATCH 4.4 00/46] 4.4.94-stable review

2017-10-21 Thread Greg Kroah-Hartman
On Fri, Oct 20, 2017 at 11:54:38AM -0500, Tom Gall wrote: > On Fri, Oct 20, 2017 at 1:26 AM, Greg Kroah-Hartman > >> fcntl36 and raw_skew we’ll looking into. > >> > >> ltp-timers-tests: > >>* leapsec_timer > >>* runltp_timers > >> > >>* test src: git://github.com/linux-test-project/ltp

Re: [PATCH] USB: add SPDX identifiers to all files in drivers/usb/

2017-10-21 Thread Greg Kroah-Hartman
On Fri, Oct 20, 2017 at 06:49:30PM +0100, Alan Cox wrote: > > But all that matters is the tag is there for tools to be able to extract > > it properly. And if we have that, it doesn't matter what the comment > > "style" would be, so might as well make it look "nicer". > > > > And, to take it to t

Re: [PATCH] USB: add SPDX identifiers to all files in drivers/usb/

2017-10-21 Thread Greg Kroah-Hartman
On Fri, Oct 20, 2017 at 10:26:22AM -0500, Rob Herring wrote: > On Thu, Oct 19, 2017 at 3:38 AM, Greg Kroah-Hartman > wrote: > > It's good to have SPDX identifiers in all files to make it easier to > > audit the kernel tree for correct licenses. This patch adds these > > identifiers to all files i

Re: [PATCH] genwqe: Take R/W permissions into account when dealing with memory pages

2017-10-21 Thread Greg KH
On Fri, Oct 20, 2017 at 05:27:49PM -0200, Guilherme G. Piccoli wrote: > Currently we assume userspace pages are always writable when doing > memory pinning. This is not true, specially since userspace applications > may allocate their memory the way they want, we have no control over it. > If a rea

Re: [GIT PULL] Documentation: Add a file explaining the requested Linux kernel license enforcement policy

2017-10-21 Thread Greg KH
On Fri, Oct 20, 2017 at 07:25:37PM +0100, Alan Cox wrote: > On Thu, 19 Oct 2017 18:28:12 +0300 > Pavel Nikulin wrote: > > > Hold! > > > > Greg, are you trying to put a new addendum to the terms of GPL v2? > > In many parts of the world if you make a promise about not enforcing a > right to take

Re: [RFC PATCH -tip 0/5] kprobes: Abolish jprobe APIs

2017-10-21 Thread Greg Kroah-Hartman
On Fri, Oct 20, 2017 at 09:28:33AM -0700, Kees Cook wrote: > On Fri, Oct 20, 2017 at 8:17 AM, Ingo Molnar wrote: > > > > * Kees Cook wrote: > > > >> On Fri, Oct 20, 2017 at 5:22 AM, Ingo Molnar wrote: > >> > > >> > Ok, could we now also fix these: > >> > > >> > net/dccp/probe.c:166:2: warning: ‘

Re: [PATCH v2] mm: mlock: remove lru_add_drain_all()

2017-10-21 Thread Michal Hocko
On Sat 21-10-17 08:51:04, Balbir Singh wrote: > On Fri, Oct 20, 2017 at 9:25 AM, Shakeel Butt wrote: > > lru_add_drain_all() is not required by mlock() and it will drain > > everything that has been cached at the time mlock is called. And > > that is not really related to the memory which will be

Re: [PATCH v3 12/13] dax: handle truncate of dma-busy pages

2017-10-21 Thread Christoph Hellwig
On Fri, Oct 20, 2017 at 10:27:22AM -0700, Dan Williams wrote: > I'll take a look at hooking this up through a page-idle callback. Can > I get some breadcrumbs to grep for from XFS folks on how to set/clear > the busy state of extents? As Brian pointed out it's the xfs_extent_busy.c file (and I poi

Re: [PATCH] Documentation: Add Arm Ltd to kernel-enforcement-statement.rst

2017-10-21 Thread Greg Kroah-Hartman
On Fri, Oct 20, 2017 at 06:15:26PM +0100, Catalin Marinas wrote: > Adding a couple of names on behalf of Arm Ltd. > > Acked-by: Marc Zyngier > Signed-off-by: Catalin Marinas Wonderful, thanks for this, now applied to my tree. greg k-h

Re: [PATCH V2 3/4] thermal/drivers/hisi: Prepare to add support for other hisi platforms

2017-10-21 Thread Daniel Lezcano
On 20/10/2017 22:58, Eduardo Valentin wrote: > On Fri, Oct 20, 2017 at 05:11:06PM +0200, Daniel Lezcano wrote: >> From: Kevin Wangtao >> >> For platform compatibility, add the tsensor ops to a thermal data >> structure. Each platform has its own probe function to register proper >> tsensor ops fun

Re: [PATCH v2 1/4] android: binder: Don't get mm from task

2017-10-21 Thread Greg Kroah-Hartman
On Fri, Oct 20, 2017 at 08:58:58PM -0400, Sherry Yang wrote: > Use binder_alloc struct's mm_struct rather than getting > a reference to the mm struct through get_task_mm to > avoid a potential deadlock between lru lock, task lock and > dentry lock, since a thread can be holding the task lock > and

Re: [PATCH v3 02/13] dax: require 'struct page' for filesystem dax

2017-10-21 Thread Christoph Hellwig
On Fri, Oct 20, 2017 at 09:16:21PM -0700, Dan Williams wrote: > > For example, I think it's entirely sensible to support ->direct_access > > for RAID-0. Dell are looking at various different options for having > > one pmemX device per DIMM and using RAID to lash them together. > > ->direct_access

[PATCH 1/2] soc: mediatek: pwrap: fix compiler errors

2017-10-21 Thread Matthias Brugger
When compiling using sparse, we got the following error: drivers/soc/mediatek/mtk-pmic-wrap.c:686:25: error: dubious one-bit signed bitfield Changing the data type to unsigned fixes this. Signed-off-by: Matthias Brugger --- drivers/soc/mediatek/mtk-pmic-wrap.c | 2 +- 1 file changed, 1 inserti

[PATCH 2/2] soc: mediatek: pwrap: fix fatal compiler error

2017-10-21 Thread Matthias Brugger
When adding the MT6380 compatible, the sentinel for of_device_id was deleted, which leades to the following compiler error: FATAL: drivers/soc/mediatek/mtk-pmic-wrap: struct of_device_id is not terminated with a NULL entry! Fix this by adding the sentinel again. Signed-off-by: Matthias Brugger

Re: [PATCH 1/4] mm/zsmalloc: Prepare to variable MAX_PHYSMEM_BITS

2017-10-21 Thread Kirill A. Shutemov
On Fri, Oct 20, 2017 at 06:43:55PM -0700, Nitin Gupta wrote: > On Fri, Oct 20, 2017 at 12:59 PM, Kirill A. Shutemov > wrote: > > With boot-time switching between paging mode we will have variable > > MAX_PHYSMEM_BITS. > > > > Let's use the maximum variable possible for CONFIG_X86_5LEVEL=y > > conf

Re: [PATCH v5 0/3] i2c: Hookup typec power-negotation to the PMIC and charger

2017-10-21 Thread Wolfram Sang
Hi Andy, > > My plan is to hopefully meet Mark Brown (SPI and regulator maintainer) > > at ELCE next week and have a chat with him about this series. > > If you don't mind I would like to join. (Yes, I will be at ELC next > week) Good news! Yes, sure, I'd be glad. Regards, Wolfram signat

Re: [PATCH 01/14] Documentation: Add SoundWire summary

2017-10-21 Thread Mark Brown
On Thu, Oct 19, 2017 at 08:33:17AM +0530, Vinod Koul wrote: > +The SoundWire protocol supports up to eleven Slave interfaces. All the There's lots of perfectly normal nouns in this document like Slave here which are randomly capitalized. Is there some great reason for this? It makes the document

Re: [PATCH v2 07/10] KVM: arm/arm64: vgic-its: new helper functions to free the caches

2017-10-21 Thread Auger Eric
Hi Christoffer, On 13/10/2017 15:35, Christoffer Dall wrote: > On Wed, Sep 27, 2017 at 03:28:37PM +0200, Eric Auger wrote: >> From: wanghaibin >> >> We create 2 new functions that frees the device and > >two free > >> collection lists. this is currently called by v

Re: [PATCH 02/14] soundwire: Add SoundWire bus type

2017-10-21 Thread Mark Brown
On Thu, Oct 19, 2017 at 08:33:18AM +0530, Vinod Koul wrote: > + ret = dev_pm_domain_attach(dev, false); > + if (ret) { > + dev_err(dev, "Failed to attach PM domain: %d\n", ret); > + return ret; > + } > + > + ret = drv->probe(slave, id); > + if (ret) { >

Re: [PATCH 03/14] soundwire: Add Master registration

2017-10-21 Thread Mark Brown
On Thu, Oct 19, 2017 at 08:33:19AM +0530, Vinod Koul wrote: > + /* > + * SDW is an enumerable bus, but devices can be powered off. So, > + * they won't be able to report as present. > + * > + * Create Slave devices based on Slaves described in > + * the respective firm

Re: [PATCH 04/14] soundwire: Add MIPI DisCo property helpers

2017-10-21 Thread Mark Brown
On Thu, Oct 19, 2017 at 08:33:20AM +0530, Vinod Koul wrote: > + /* device is probed so let's read the properties now */ > + if (slave->ops && slave->ops->read_prop) > + slave->ops->read_prop(slave); Is it valid for us to not be able to read the properties? > + fwn

Re: [PATCH 06/14] soundwire: Add IO transfer

2017-10-21 Thread Mark Brown
On Thu, Oct 19, 2017 at 08:33:22AM +0530, Vinod Koul wrote: > +static bool sdw_get_page(struct sdw_slave *slave, struct sdw_msg *msg) > +{ > + bool page = false, paging_support = false; > + > + if (slave && slave->prop.paging_support) > + paging_support = true; > + > + /* >

Re: [PATCH 07/14] regmap: Add SoundWire bus support

2017-10-21 Thread Mark Brown
On Thu, Oct 19, 2017 at 08:33:23AM +0530, Vinod Koul wrote: > + * BSD LICENSE > + * > + * Copyright(c) 2015-17 Intel Corporation. > + * > + * Redistribution and use in source and binary forms, with or without > + * modification, are permitted provided that the following conditions > + * are m

Re: [PATCH 10/14] soundwire: Add sysfs for SoundWire DisCo properties

2017-10-21 Thread Mark Brown
On Thu, Oct 19, 2017 at 08:33:26AM +0530, Vinod Koul wrote: > +static ssize_t clock_frequencies_show(struct sdw_bus *bus, > + struct sdw_prop_attribute *attr, char *buf) > +{ > + ssize_t size = 0; > + int i; > + > + for (i = 0; i < bus->prop.num_freq; i++) > +

Re: [BUG] ssb: Possible sleep-in-atomic bugs in ssb_pcmcia_read8

2017-10-21 Thread Michael Büsch
On Mon, 9 Oct 2017 09:29:17 +0800 Jia-Ju Bai wrote: > According to pcmcia.c, the driver may sleep under a spinlock. > The function call paths are: > ssb_pcmcia_read8 (acquire the spinlock) >select_core_and_segment > ssb_pcmcia_switch_segment >ssb_pcmcia_cfg_write > pcmci

Re: [PATCH 11/14] soundwire: cdns: Add cadence module

2017-10-21 Thread Mark Brown
On Thu, Oct 19, 2017 at 08:33:27AM +0530, Vinod Koul wrote: > Cadence IP implements SoundWire Master. Add base cadence module > initialization and interrupt handling It's probably worth saying something about how this isn't a device driver but rather a library for device drivers. > + if (int

答复: [PATCH v5 2/5] dt-bindings: scsi: ufs: add document for hisi-ufs

2017-10-21 Thread liwei (CM)
Hi, Bergmann Sorry late for the reply,and thank you very much for your patience. My reply is as follows. I look forward to your further reply. -邮件原件- 发件人: arndbergm...@gmail.com [mailto:arndbergm...@gmail.com] 代表 Arnd Bergmann 发送时间: 2017年10月20日 17:16 收件人: liwei (CM) 抄送: Rob Herring; Mark

Re: [PATCH v3 1/4] phylib: Add device reset GPIO support

2017-10-21 Thread Sergei Shtylyov
Hello! On 10/20/2017 9:11 PM, Florian Fainelli wrote: From: Sergei Shtylyov The PHY devices sometimes do have their reset signal (maybe even power supply?) tied to some GPIO and sometimes it also does happen that a boot loader does not leave it deasserted. So far this issue has been attacked

Re: [PATCH v3 1/4] phylib: Add device reset GPIO support

2017-10-21 Thread Geert Uytterhoeven
On Sat, Oct 21, 2017 at 12:03 PM, Sergei Shtylyov wrote: > On 10/20/2017 9:11 PM, Florian Fainelli wrote: >>> From: Sergei Shtylyov >>> --- a/drivers/of/of_mdio.c >>> +++ b/drivers/of/of_mdio.c > > [...] >>> >>> @@ -55,10 +56,22 @@ static int of_mdiobus_register_phy(struct mii_bus >>> *mdio, >>>

Re: [PATCH] ASoC: rt5651: Convert rt5651 micbias1 to a supply widget

2017-10-21 Thread Mark Brown
On Wed, Oct 18, 2017 at 06:06:31PM +0100, Carlo Caione wrote: > From: Carlo Caione > > MICBIAS widget type has been deprecated. Convert it to a SUPPLY widget. Do we have any machine drivers using this? If it was just a simple substitution then we'd have just done the conversion but the routing

Re: [PATCH v4 09/11] KVM: arm/arm64: vgic-its: free caches when GITS_BASER Valid bit is cleared

2017-10-21 Thread Auger Eric
Hi Christoffer, On 18/10/2017 00:34, Christoffer Dall wrote: > On Tue, Oct 17, 2017 at 09:10:07AM +0200, Eric Auger wrote: >> When the GITS_BASER.Valid gets cleared, the data structures in >> guest RAM are not valid anymore. The device, collection >> and LPI lists stored in the in-kernel ITS repre

Applied "SoC: intel: byt: Introduce new custom IN2 map" to the asoc tree

2017-10-21 Thread Mark Brown
The patch SoC: intel: byt: Introduce new custom IN2 map has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to L

Applied "ASoC: Intel: sst: remove redundant variable dma_dev_name" to the asoc tree

2017-10-21 Thread Mark Brown
The patch ASoC: Intel: sst: remove redundant variable dma_dev_name has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) an

Re: [INTERNAL][PATCH 4/7] ASoC: stm32: sai: fix stop management in isr

2017-10-21 Thread Mark Brown
On Thu, Oct 19, 2017 at 03:03:20PM +0200, Olivier Moysan wrote: > Add check on substream validity. Fixes should go at the start of the series so they can be applied separately and sent to Linus without having to wait for new features. signature.asc Description: PGP signature

[PATCH] selftests: ftrace: add more config fragments

2017-10-21 Thread lei.yang
From: Lei Yang We need to enable more configs to make test more without this patch,we got lots of "UNSUPPORTED" before the patch: http://pastebin.ubuntu.com/25784377/ after the patch: http://pastebin.ubuntu.com/25784387/ Signed-off-by: Lei Yang --- tools/testing/selftests/ftrace/config | 4 ++

Applied "ASoC: stm32: Add synchronization to SAI bindings" to the asoc tree

2017-10-21 Thread Mark Brown
The patch ASoC: stm32: Add synchronization to SAI bindings has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent t

Applied "ASoC: stm32: sai: Remove spurious IRQs on stop" to the asoc tree

2017-10-21 Thread Mark Brown
The patch ASoC: stm32: sai: Remove spurious IRQs on stop has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

Applied "ASoC: stm32: sai: fix stop management in isr" to the asoc tree

2017-10-21 Thread Mark Brown
The patch ASoC: stm32: sai: fix stop management in isr has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Li

Applied "ASoC: stm32: sai: Fix get reset controller" to the asoc tree

2017-10-21 Thread Mark Brown
The patch ASoC: stm32: sai: Fix get reset controller has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linu

Applied "ASoC: stm32: sai: Add synchronization support" to the asoc tree

2017-10-21 Thread Mark Brown
The patch ASoC: stm32: sai: Add synchronization support has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to L

[PATCH] hp_accel: Add accelerometer quirk for HP ProBook 440 G4

2017-10-21 Thread Osama Khan
Added support for HP ProBook 440 G4 laptops by including the accelerometer orientation quirk for that device. Testing was performed based on the axis orientation guidelines here: https://www.kernel.org/doc/Documentation/misc-devices/lis3lv02d which states "If the left side is elevated, X increases

Re: [PATCH 0/8] CaitSith LSM module

2017-10-21 Thread Tetsuo Handa
Tetsuo Handa wrote: > John Johansen wrote: > > On 05/20/2017 09:59 PM, Tetsuo Handa wrote: > > > John Johansen wrote: > > >> On 11/22/2016 10:31 PM, Tetsuo Handa wrote: > > >>> Tetsuo Handa wrote: > > John Johansen wrote: > > >> In order to minimize the burden of reviewing, this patchset

Re: [PATCH 02/14] soundwire: Add SoundWire bus type

2017-10-21 Thread Vinod Koul
On Sat, Oct 21, 2017 at 10:03:48AM +0100, Mark Brown wrote: > On Thu, Oct 19, 2017 at 08:33:18AM +0530, Vinod Koul wrote: > > > + ret = dev_pm_domain_attach(dev, false); > > + if (ret) { > > + dev_err(dev, "Failed to attach PM domain: %d\n", ret); > > + return ret; > > +

Re: [PATCH 01/14] Documentation: Add SoundWire summary

2017-10-21 Thread Vinod Koul
On Sat, Oct 21, 2017 at 09:57:44AM +0100, Mark Brown wrote: > On Thu, Oct 19, 2017 at 08:33:17AM +0530, Vinod Koul wrote: > > > +The SoundWire protocol supports up to eleven Slave interfaces. All the > > There's lots of perfectly normal nouns in this document like Slave here > which are randomly

Re: [Part1 PATCH v7 13/17] x86/io: Unroll string I/O when SEV is active

2017-10-21 Thread Brijesh Singh
Hi Alan, On 10/20/17 1:39 PM, Alan Cox wrote: > On Fri, 20 Oct 2017 09:30:55 -0500 > Brijesh Singh wrote: > >> From: Tom Lendacky >> >> Secure Encrypted Virtualization (SEV) does not support string I/O, so >> unroll the string I/O operation into a loop operating on one element at >> a time. > D

Re: [PATCH 03/14] soundwire: Add Master registration

2017-10-21 Thread Vinod Koul
On Sat, Oct 21, 2017 at 10:12:30AM +0100, Mark Brown wrote: > On Thu, Oct 19, 2017 at 08:33:19AM +0530, Vinod Koul wrote: > > > + /* > > +* SDW is an enumerable bus, but devices can be powered off. So, > > +* they won't be able to report as present. > > +* > > +* Create Slave dev

Re: [PATCH 04/14] soundwire: Add MIPI DisCo property helpers

2017-10-21 Thread Vinod Koul
On Sat, Oct 21, 2017 at 10:20:46AM +0100, Mark Brown wrote: > On Thu, Oct 19, 2017 at 08:33:20AM +0530, Vinod Koul wrote: > > > + /* device is probed so let's read the properties now */ > > + if (slave->ops && slave->ops->read_prop) > > + slave->ops->read_prop(slave); > > Is it vali

Re: [PATCH 06/14] soundwire: Add IO transfer

2017-10-21 Thread Vinod Koul
On Sat, Oct 21, 2017 at 10:29:08AM +0100, Mark Brown wrote: > On Thu, Oct 19, 2017 at 08:33:22AM +0530, Vinod Koul wrote: > > > +static bool sdw_get_page(struct sdw_slave *slave, struct sdw_msg *msg) > > +{ > > + bool page = false, paging_support = false; > > + > > + if (slave && slave->prop.p

Re: [PATCH 07/14] regmap: Add SoundWire bus support

2017-10-21 Thread Vinod Koul
On Sat, Oct 21, 2017 at 10:34:26AM +0100, Mark Brown wrote: > On Thu, Oct 19, 2017 at 08:33:23AM +0530, Vinod Koul wrote: > > > + * BSD LICENSE > > + * > > + * Copyright(c) 2015-17 Intel Corporation. > > + * > > + * Redistribution and use in source and binary forms, with or without > > + * mod

Re: [PATCH 10/14] soundwire: Add sysfs for SoundWire DisCo properties

2017-10-21 Thread Vinod Koul
On Sat, Oct 21, 2017 at 10:42:53AM +0100, Mark Brown wrote: > On Thu, Oct 19, 2017 at 08:33:26AM +0530, Vinod Koul wrote: > > > +static ssize_t clock_frequencies_show(struct sdw_bus *bus, > > + struct sdw_prop_attribute *attr, char *buf) > > +{ > > + ssize_t size = 0; > > + i

Re: [PATCH 11/14] soundwire: cdns: Add cadence module

2017-10-21 Thread Vinod Koul
On Sat, Oct 21, 2017 at 10:52:01AM +0100, Mark Brown wrote: > On Thu, Oct 19, 2017 at 08:33:27AM +0530, Vinod Koul wrote: > > > Cadence IP implements SoundWire Master. Add base cadence module > > initialization and interrupt handling > > It's probably worth saying something about how this isn't a

Re: [PATCH v7] acpi: apei: remove the unused dead-code for SEA/NMI notification type

2017-10-21 Thread Borislav Petkov
On Sat, Oct 21, 2017 at 06:35:03PM +0800, Dongjiu Geng wrote: > For the SEA notification, the two functions ghes_sea_add() and > ghes_sea_remove() are only called when CONFIG_ACPI_APEI_SEA > is defined. If not, it will return errors in the ghes_probe() > and not continue. If the probe is failed, th

[GIT PULL] dmaengine late fixes

2017-10-21 Thread Vinod Koul
Hey Linus, One late fix came for altera driver to fix the usage of spinlock in this driver. Please PULL to receive this small change. The following changes since commit 33d930e59a98fa10a0db9f56c7fa2f21a4aef9b9: Linux 4.14-rc5 (2017-10-15 21:01:12 -0400) are available in the git repository at:

[PATCH] fs: Use CAP_DAC_OVERRIDE to allow for file dedupe

2017-10-21 Thread Nicolas Belouin
In its current implementation the check is against CAP_SYS_ADMIN, however this capability is bloated and inapropriate for this use. Indeed the check aims to avoid dedupe against non writable files, falling directly in the use case of CAP_DAC_OVERRIDE. Signed-off-by: Nicolas Belouin --- fs/read_w

[PATCH] fs: check for DAC_READ_SEARCH instead of SYS_ADMIN

2017-10-21 Thread Nicolas Belouin
These checks are meant to prevent leaks or attacks via directory traversal, the use of CAP_SYS_ADMIN here is a misuse, CAP_DAC_READ_SEARCH being way more appropriate as a process with CAP_DAC_READ_SEARCH is entrusted with going trough all directories. CAP_SYS_ADMIN is not meant to flag such a proce

[PATCH] fs: check for CAP_SYS_RESOURCE instead of CAP_SYS_ADMIN

2017-10-21 Thread Nicolas Belouin
This check is meant to allow a privileged process to go above max_files, such a check must be done against CAP_SYS_RESOURCE as its role is to allow resources limits override. Signed-off-by: Nicolas Belouin --- fs/file_table.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/

[PATCH] fs: fix xattr permission checking error

2017-10-21 Thread Nicolas Belouin
Fix an issue making trusted xattr world readable and other cap_sys_admin only Signed-off-by: Nicolas Belouin --- fs/hfsplus/xattr.c | 2 +- fs/jfs/xattr.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/hfsplus/xattr.c b/fs/hfsplus/xattr.c index d37bb88dc746..ae0

[RFC PATCH 1/2] security, capabilities: Add CAP_SYS_MOUNT

2017-10-21 Thread Nicolas Belouin
With CAP_SYS_ADMIN being bloated and inapropriate for actions such as mounting/unmounting filesystems, the creation of a new capability is needed. CAP_SYS_MOUNT is meant to give a process the ability to call for mount, umount and umount2 syscalls. Signed-off-by: Nicolas Belouin --- include/uapi/

[RFC PATCH 2/2] fs: add the possibility to use CAP_SYS_MOUNT to (u)mount a fs

2017-10-21 Thread Nicolas Belouin
Fulfill the purpose of CAP_SYS_MOUNT by adding it as a sufficient capability to mount and unmount filesystems. Signed-off-by: Nicolas Belouin --- fs/cachefiles/daemon.c | 2 +- fs/ext4/ioctl.c| 2 +- fs/namespace.c | 3 ++- fs/super.c | 14 +- 4 files c

Re: [RESEND PATCH 1/3] usb: dwc3: Don't reinitialize core during host bus-suspend/resume

2017-10-21 Thread Manu Gautam
Hi Felipe, Let me know if patches in this series look fine to you. On 9/27/2017 4:49 PM, Manu Gautam wrote: > Driver powers-off PHYs and reinitializes DWC3 core and gadget on > resume. While this works fine for gadget mode but in host > mode there is not re-initialization of host stack. Also, re

[RFC PATCH 2/2] fs: Grant CAP_TRUSTED rw access to trusted xattrs

2017-10-21 Thread Nicolas Belouin
The trusted xattrs read/write access is the perfect use case for CAP_TRUSTED. Signed-off-by: Nicolas Belouin --- fs/ext2/xattr_trusted.c | 2 +- fs/ext4/xattr_trusted.c | 2 +- fs/f2fs/xattr.c | 6 +++--- fs/hfsplus/xattr.c | 2 +- fs/jffs2/xattr_trusted.c|

[RFC PATCH 1/2] security, capabilities: create CAP_TRUSTED

2017-10-21 Thread Nicolas Belouin
with CAP_SYS_ADMIN being bloated, the usefulness of using it to flag a process to be entrusted for e.g reading and writing trusted xattr is near zero. CAP_TRUSTED aims to provide userland with a way to mark a process as entrusted to do specific (not specially admin-centered) actions. It would for e

[PATCH] cpu/hotplug: Reset node state after operation

2017-10-21 Thread Thomas Gleixner
The recent rework of the cpu hotplug internals changed the usage of the per cpu state->node field, but missed to clean it up after usage. So subsequent hotplug operations use the stale pointer from a previous operation and hand it into the callback functions. The callbacks then dereference a point

Re: [kernel-hardening] [PATCH] fs: Use CAP_DAC_OVERRIDE to allow for file dedupe

2017-10-21 Thread Nick Kralevich
On Sat, Oct 21, 2017 at 6:28 AM, Nicolas Belouin wrote: > In its current implementation the check is against CAP_SYS_ADMIN, > however this capability is bloated and inapropriate for this use. > Indeed the check aims to avoid dedupe against non writable files, > falling directly in the use case of

Re: [PATCH 2/4] clk: tegra: check BPMP response return code

2017-10-21 Thread Stephen Boyd
On 10/17, Thierry Reding wrote: > On Thu, Sep 07, 2017 at 12:31:02PM +0300, Timo Alho wrote: > > Check return code in BPMP response message(s). The typical error case > > is when clock operation is attempted with invalid clock identifier. > > > > Also remove error print from call to clk_get_info()

[tip:smp/urgent] cpu/hotplug: Reset node state after operation

2017-10-21 Thread tip-bot for Thomas Gleixner
Commit-ID: 1f7c70d6b2bc5de301f30456621e1161fddf4242 Gitweb: https://git.kernel.org/tip/1f7c70d6b2bc5de301f30456621e1161fddf4242 Author: Thomas Gleixner AuthorDate: Sat, 21 Oct 2017 16:06:52 +0200 Committer: Thomas Gleixner CommitDate: Sat, 21 Oct 2017 16:11:30 +0200 cpu/hotplug: Reset

Re: [PATCH v4 09/11] KVM: arm/arm64: vgic-its: free caches when GITS_BASER Valid bit is cleared

2017-10-21 Thread Christoffer Dall
On Sat, Oct 21, 2017 at 12:13:21PM +0200, Auger Eric wrote: > Hi Christoffer, > > On 18/10/2017 00:34, Christoffer Dall wrote: > > On Tue, Oct 17, 2017 at 09:10:07AM +0200, Eric Auger wrote: > >> When the GITS_BASER.Valid gets cleared, the data structures in > >> guest RAM are not valid anymore. T

Re: [PATCH v2 07/10] KVM: arm/arm64: vgic-its: new helper functions to free the caches

2017-10-21 Thread Christoffer Dall
On Sat, Oct 21, 2017 at 11:02:27AM +0200, Auger Eric wrote: > Hi Christoffer, > > On 13/10/2017 15:35, Christoffer Dall wrote: > > On Wed, Sep 27, 2017 at 03:28:37PM +0200, Eric Auger wrote: > >> From: wanghaibin > >> > >> We create 2 new functions that frees the device and > > > >tw

Re: [PATCH v4 09/11] KVM: arm/arm64: vgic-its: free caches when GITS_BASER Valid bit is cleared

2017-10-21 Thread Auger Eric
Hi Christoffer, On 21/10/2017 16:31, Christoffer Dall wrote: > On Sat, Oct 21, 2017 at 12:13:21PM +0200, Auger Eric wrote: >> Hi Christoffer, >> >> On 18/10/2017 00:34, Christoffer Dall wrote: >>> On Tue, Oct 17, 2017 at 09:10:07AM +0200, Eric Auger wrote: When the GITS_BASER.Valid gets clear

Re: [PATCH 4.4 00/46] 4.4.94-stable review

2017-10-21 Thread Tom Gall
> On Oct 21, 2017, at 2:25 AM, Greg Kroah-Hartman > wrote: > > On Fri, Oct 20, 2017 at 11:54:38AM -0500, Tom Gall wrote: >> On Fri, Oct 20, 2017 at 1:26 AM, Greg Kroah-Hartman fcntl36 and raw_skew we’ll looking into. ltp-timers-tests: * leapsec_timer * runltp_timer

Re: [PATCH v4 01/11] KVM: arm/arm64: vgic-its: fix return value for device table restore

2017-10-21 Thread Auger Eric
Hi Christoffer, On 17/10/2017 23:40, Christoffer Dall wrote: > On Tue, Oct 17, 2017 at 09:09:59AM +0200, Eric Auger wrote: >> AT the moment if ITT only contains invalid entries, >> vgic_its_restore_itt returns 1 and this is considered as >> an an error in vgic_its_restore_dte. >> >> Also in case t

Re: [PATCH] ASoC: rt5651: Convert rt5651 micbias1 to a supply widget

2017-10-21 Thread Carlo Caione
On Sat, Oct 21, 2017 at 11:09 AM, Mark Brown wrote: > On Wed, Oct 18, 2017 at 06:06:31PM +0100, Carlo Caione wrote: >> From: Carlo Caione >> >> MICBIAS widget type has been deprecated. Convert it to a SUPPLY widget. > > Do we have any machine drivers using this? If it was just a simple > substit

Re: [Outreachy kernel] [PATCH] drm/tinydrm: Replace list_for_each with list_for_each_entry

2017-10-21 Thread Noralf Trønnes
Den 16.10.2017 21.19, skrev Sean Paul: On Sun, Oct 15, 2017 at 01:58:23AM +0530, Harsha Sharma wrote: Replace use of list_for_each with list_for_each_entry to simplify the code and remove variables that are used only in list_for_each. Done with following coccinelle patch: @r@ identifier fn,i,f

Re: [PATCH 1/2] KVM: allow setting a usercopy region in struct kvm_vcpu

2017-10-21 Thread Kees Cook
On Fri, Oct 20, 2017 at 4:25 PM, Paolo Bonzini wrote: > On x86, struct kvm_vcpu has a usercopy region corresponding to the CPUID > entries. The area is read and written by the KVM_GET/SET_CPUID2 ioctls. > Without this patch, KVM is completely broken on x86 with usercopy > hardening enabled. > > D

Re: [PATCH v2 2/9] ata: ceva: Move sata port phy oob settings to device-tree

2017-10-21 Thread Tejun Heo
On Mon, Aug 21, 2017 at 01:17:17PM +0200, Michal Simek wrote: > From: Anurag Kumar Vulisha > > In SATA Speed negotiation happens with OOB(Out of Band) signals. These OOB > signal timing values are configured through vendor specific registers in the > SATA controller. These OOB timings depends on

[tip:x86/cache] x86/intel_rdt: Fix potential deadlock during resctrl unmount

2017-10-21 Thread tip-bot for Reinette Chatre
Commit-ID: 36b6f9fcb8928c06b6638a4cf91bc9d69bb49aa2 Gitweb: https://git.kernel.org/tip/36b6f9fcb8928c06b6638a4cf91bc9d69bb49aa2 Author: Reinette Chatre AuthorDate: Fri, 20 Oct 2017 02:16:58 -0700 Committer: Thomas Gleixner CommitDate: Sat, 21 Oct 2017 17:12:21 +0200 x86/intel_rdt: Fix

[tip:x86/cache] x86/intel_rdt: Fix potential deadlock during resctrl mount

2017-10-21 Thread tip-bot for Reinette Chatre
Commit-ID: 87943db7dfb0c5ee5aa74a9ac06346fadd9695c8 Gitweb: https://git.kernel.org/tip/87943db7dfb0c5ee5aa74a9ac06346fadd9695c8 Author: Reinette Chatre AuthorDate: Fri, 20 Oct 2017 02:16:59 -0700 Committer: Thomas Gleixner CommitDate: Sat, 21 Oct 2017 17:12:22 +0200 x86/intel_rdt: Fix

[tip:x86/cache] x86/intel_rdt: Initialize bitmask of shareable resource if CDP enabled

2017-10-21 Thread tip-bot for Reinette Chatre
Commit-ID: 95953034fb24c16ad0047a98b16427e5935830c4 Gitweb: https://git.kernel.org/tip/95953034fb24c16ad0047a98b16427e5935830c4 Author: Reinette Chatre AuthorDate: Fri, 20 Oct 2017 02:16:57 -0700 Committer: Thomas Gleixner CommitDate: Sat, 21 Oct 2017 17:12:21 +0200 x86/intel_rdt: Init

Atom/GMA500

2017-10-21 Thread Benoit Vaillant
Hello, This is my first post here so please do point me to other places if this is not the mailing list to follow. I've tried IRC #debian and #linux which pointed to ask here. So here I am. I'm trying to make an aigo-like machine (frenchy thing: an SFR M! PC Pocket) live "again"[1] (do not belive

Re: [PATCH] cgroup: reorder flexible array members of struct cgroup_root

2017-10-21 Thread Tejun Heo
Hello, Nick. On Fri, Oct 20, 2017 at 12:15:55AM -0700, Nick Desaulniers wrote: > > This is silly tho. We know the the root group embedded there won't > > have any ancestor_ids. > > Sure, but struct cgroup_root is still declared as having a struct > cgroup not declared as the final member. Why i

Re: [Question] null pointer risk of kernel workqueue

2017-10-21 Thread Tejun Heo
On Fri, Oct 20, 2017 at 02:57:18PM +0800, tanxiaofei wrote: > Hi Tejun, > > Any comments about this? I think you're confused, or at least can't understand what you're trying to say. Can you create a rero? Thanks. -- tejun

Re: [Question] null pointer risk of kernel workqueue

2017-10-21 Thread Tejun Heo
On Sat, Oct 21, 2017 at 08:35:22AM -0700, Tejun Heo wrote: > On Fri, Oct 20, 2017 at 02:57:18PM +0800, tanxiaofei wrote: > > Hi Tejun, > > > > Any comments about this? > > I think you're confused, or at least can't understand what you're > trying to say. Can you create a rero? Sorry, I meant to

Re: [PATCH 03/14] workqueue: Use lockdep to assert IRQs are disabled/enabled

2017-10-21 Thread Tejun Heo
On Fri, Oct 20, 2017 at 02:56:00AM +0200, Frederic Weisbecker wrote: > Use lockdep to check that IRQs are enabled or disabled as expected. This > way the sanity check only shows overhead when concurrency correctness > debug code is enabled. > > Signed-off-by: Frederic Weisbecker > Cc: Peter Zijls

Re: [PATCH v4 01/11] KVM: arm/arm64: vgic-its: fix return value for device table restore

2017-10-21 Thread Christoffer Dall
On Sat, Oct 21, 2017 at 04:40:00PM +0200, Auger Eric wrote: > Hi Christoffer, > > On 17/10/2017 23:40, Christoffer Dall wrote: > > On Tue, Oct 17, 2017 at 09:09:59AM +0200, Eric Auger wrote: > >> AT the moment if ITT only contains invalid entries, > >> vgic_its_restore_itt returns 1 and this is co

Re: [PATCH v4 09/11] KVM: arm/arm64: vgic-its: free caches when GITS_BASER Valid bit is cleared

2017-10-21 Thread Christoffer Dall
On Sat, Oct 21, 2017 at 04:36:22PM +0200, Auger Eric wrote: > Hi Christoffer, > > On 21/10/2017 16:31, Christoffer Dall wrote: > > On Sat, Oct 21, 2017 at 12:13:21PM +0200, Auger Eric wrote: > >> Hi Christoffer, > >> > >> On 18/10/2017 00:34, Christoffer Dall wrote: > >>> On Tue, Oct 17, 2017 at 0

Re: [PATCH V2] scsi: storvsc: Allow only one remove lun work item to be issued per lun

2017-10-21 Thread Tejun Heo
Hello, On Thu, Oct 19, 2017 at 08:35:10AM -0700, Christoph Hellwig wrote: > On Tue, Oct 17, 2017 at 01:35:21PM -0400, Cathy Avery wrote: > > + /* > > +* Set the error handler work queue. > > +*/ > > + snprintf(host_dev->work_q_name, sizeof(host_dev->work_q_name), > > +"stor

Re: [PATCH 1/2] mm/mmu_notifier: avoid double notification when it is useless v2

2017-10-21 Thread Jerome Glisse
On Sat, Oct 21, 2017 at 04:54:40PM +1100, Balbir Singh wrote: > On Thu, 2017-10-19 at 12:58 -0400, Jerome Glisse wrote: > > On Thu, Oct 19, 2017 at 09:53:11PM +1100, Balbir Singh wrote: > > > On Thu, Oct 19, 2017 at 2:28 PM, Jerome Glisse wrote: > > > > On Thu, Oct 19, 2017 at 02:04:26PM +1100, Ba

Re: [PATCH] workqueue: respect isolated cpus when queueing an unbound work

2017-10-21 Thread Tejun Heo
On Fri, Oct 20, 2017 at 12:44:06AM +0300, Tal Shorer wrote: > Initialize wq_unbound_cpumask to exclude cpus that were isolated by > the cmdline's isolcpus parameter. > > Signed-off-by: Tal Shorer > --- > kernel/workqueue.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a

Re: [v4] hwmon: xgene: Support hwmon v2

2017-10-21 Thread Guenter Roeck
On Tue, Oct 17, 2017 at 11:28:34AM -0700, hotran wrote: > This patch supports xgene-hwmon v2 which uses the non-cachable memory > as the PCC shared memory. > > Signed-off-by: Hoan Tran > --- > v4 > - Initialize version variable I would have preferred for you to drop the #ifdefs, but this shall

Re: hwmon: (asc7621): remove redundant assignment to newval

2017-10-21 Thread Guenter Roeck
On Wed, Oct 18, 2017 at 01:10:38PM +0100, Colin Ian King wrote: > From: Colin Ian King > > The setting of newval to zero is redundant as the following if/else > stanzas will always update newval to a new value. Remove the > redundant setting, cleans up clang build warning: > > drivers/hwmon/asc7

Re: [PATCH] cgroup: reorder flexible array members of struct cgroup_root

2017-10-21 Thread Aleksa Sarai
Here, not necessarily but I don't want to move it for a bogus reason. Why would we disallow embedding structs with flexible members in the middle when it can be done and is useful? If we want to discuss whether we want to avoid such usages in the kernel (but why?), sure, let's have that discussio

Re: [PATCH net 0/3] Fix for BPF devmap percpu allocation splat

2017-10-21 Thread Tejun Heo
Hello, On Wed, Oct 18, 2017 at 04:45:08PM -0500, Dennis Zhou wrote: > I'm not sure I see the reason we can't match the minimum allocation size > with the unit size? It seems weird to arbitrate the maximum allocation > size given a lower bound on the unit size. idk, it can be weird for the maximum

Re: [PATCH] cgroup: reorder flexible array members of struct cgroup_root

2017-10-21 Thread Tejun Heo
On Sun, Oct 22, 2017 at 02:59:33AM +1100, Aleksa Sarai wrote: > >Here, not necessarily but I don't want to move it for a bogus reason. > >Why would we disallow embedding structs with flexible members in the > >middle when it can be done and is useful? If we want to discuss > >whether we want to av

Re: hwmon: da9052 Increase sample rate when using TSI

2017-10-21 Thread Guenter Roeck
On Thu, Oct 19, 2017 at 04:51:44PM +0100, Martyn Welch wrote: > The TSI channel, which is usually used for touchscreen support, but can > be used as 4 general purpose ADCs. When used as a touchscreen interface > the touchscreen driver switches the device into 1ms sampling mode (rather > than the de

Re: [RFC PATCH 1/2] security, capabilities: create CAP_TRUSTED

2017-10-21 Thread Serge E. Hallyn
Quoting Nicolas Belouin (nico...@belouin.fr): > with CAP_SYS_ADMIN being bloated, the usefulness of using it to > flag a process to be entrusted for e.g reading and writing trusted > xattr is near zero. > CAP_TRUSTED aims to provide userland with a way to mark a process as > entrusted to do specifi

  1   2   3   >