Re: [pcpu] BUG: KASAN: use-after-scope in pcpu_setup_first_chunk+0x1e3b/0x29e2

2017-11-30 Thread Kees Cook
On Thu, Nov 30, 2017 at 11:22 AM, Dennis Zhou wrote: > Hi Dmitry and Kees, > > On Thu, Nov 30, 2017 at 10:10:41AM -0800, Kees Cook wrote: >> > Are we sure that structleak plugin is not at fault? If yes, then we >> > need to report this to https://gcc.gnu.org/bugzilla/ with instructions >> > on how

Re: [PATCH v3] doc: add maintainer book

2017-11-30 Thread Tobin C. Harding
On Thu, Nov 30, 2017 at 09:06:21AM -0200, Mauro Carvalho Chehab wrote: > Em Thu, 30 Nov 2017 21:47:44 +1100 > "Tobin C. Harding" escreveu: > > > On Thu, Nov 30, 2017 at 07:01:19AM -0200, Mauro Carvalho Chehab wrote: > > > Em Thu, 30 Nov 2017 12:55:07 +1100 > > > "Tobin C. Harding" escreveu: > >

Re: [PATCH] rxrpc: Neaten logging macros and add KERN_DEBUG logging level

2017-11-30 Thread Joe Perches
On Thu, 2017-11-30 at 19:34 +, David Howells wrote: > Joe Perches wrote: > > > There is no listed rxrpc maintainer. > > There's a script in the kernel called get_maintainer.pl which you might find > of use: Yeah, I've heard of it. I also wrote it btw. > warthog>./scripts/get_maintai

Re: [PATCH 2/2] bnxt_en: Add ETH_RESET_AP support

2017-11-30 Thread Michael Chan
On Thu, Nov 30, 2017 at 11:36 AM, Scott Branden wrote: > Add ETH_RESET_AP support handling to reset the internal > Application Processor(s) of the SmartNIC card. > > Signed-off-by: Scott Branden Acked-by: Michael Chan

Re: [PATCH 00/11] fs: use freeze_fs on suspend/hibernate

2017-11-30 Thread Luis R. Rodriguez
On Thu, Nov 30, 2017 at 05:01:13PM +, Bart Van Assche wrote: > It's great to see that you are making progress with this work :-) However, > what's not clear to me is what your (long-term) plan is for freezing > filesystems that e.g. exist on top of a md RAID1 block device? The original approac

Re: [PATCH 4/5] MIPS: Execute any partial write of the last register with PTRACE_SETREGSET

2017-11-30 Thread Maciej W. Rozycki
Hi Dave, > > linux-mips-nt-prfpreg-count.diff > > Index: linux-sfr-test/arch/mips/kernel/ptrace.c > > === > > --- linux-sfr-test.orig/arch/mips/kernel/ptrace.c 2017-11-21 > > 22:12:00.0 + > > +++ linux-sfr-test/arch/mip

Re: [PATCH v18 06/10] virtio_ring: add a new API, virtqueue_add_one_desc

2017-11-30 Thread Michael S. Tsirkin
On Wed, Nov 29, 2017 at 09:55:22PM +0800, Wei Wang wrote: > Current virtqueue_add API implementation is based on the scatterlist > struct, which uses kaddr. This is inadequate to all the use case of > vring. For example: > - Some usages don't use IOMMU, in this case the user can directly pass > i

Re: BUG: KASAN: slab-out-of-bounds in perf_callchain_user+0x494/0x530

2017-11-30 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 30, 2017 at 09:20:26AM +0100, Peter Zijlstra escreveu: > On Thu, Nov 30, 2017 at 10:32:19AM +0800, Fengguang Wu wrote: > > Hello, > > > > FYI this happens in mainline kernel 4.15.0-rc1. > > It looks like a new regression and hard to bisect. > > > > It occurs in 1 out of 57 boots. > >

[PATCH 0/2] net: ethtool: add support for ETH_RESET_AP

2017-11-30 Thread Scott Branden
Add support to reset appplication processors inside SmartNICs by defining new ETH_RESET_AP bit. And use new ETH_RESET_AP bit in bnxt ethernet driver. Scott Branden (2): net: ethtool: add support for reset of AP inside NIC interface. bnxt_en: Add ETH_RESET_AP support drivers/net/ethernet/bro

[PATCH 2/2] bnxt_en: Add ETH_RESET_AP support

2017-11-30 Thread Scott Branden
Add ETH_RESET_AP support handling to reset the internal Application Processor(s) of the SmartNIC card. Signed-off-by: Scott Branden --- drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 11 +++ drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.h | 1 + 2 files changed, 12 insertions(+)

[PATCH 1/2] net: ethtool: add support for reset of AP inside NIC interface.

2017-11-30 Thread Scott Branden
Add ETH_RESET_AP to reset the application processor(s) inside the NIC interface. Current ETH_RESET_MGMT supports a management processor inside this NIC. This is typically used for remote NIC management purposes. Application processors exist inside some SmartNICs to run various applications inside

Re: [PATCH RFC 2/2] mm, hugetlb: do not rely on overcommit limit during migration

2017-11-30 Thread Mike Kravetz
On 11/29/2017 11:57 PM, Michal Hocko wrote: > On Wed 29-11-17 11:52:53, Mike Kravetz wrote: >> On 11/29/2017 01:22 AM, Michal Hocko wrote: >>> What about this on top. I haven't tested this yet though. >> >> Yes, this would work. >> >> However, I think a simple modification to your previous free_hug

Re: [PATCH] rxrpc: Neaten logging macros and add KERN_DEBUG logging level

2017-11-30 Thread David Howells
Joe Perches wrote: > There is no listed rxrpc maintainer. There's a script in the kernel called get_maintainer.pl which you might find of use: warthog>./scripts/get_maintainer.pl net/rxrpc/ "David S. Miller" (maintainer:NETWORKING [GENERAL],commit_signer:23/74=31%) Dav

Re: [PATCH v4 01/12] perf util: Create rblist__reset() function

2017-11-30 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 30, 2017 at 07:56:31PM +0800, Jin Yao escreveu: > Currently we have a rblist__delete() which is used to delete a rblist. > While rblist__delete() will free the pointer of rblist at the end. > > It's inconvenience for user to delete a rblist which is not allocated > by something like ma

Re: [PATCH v8 07/13] slimbus: Add support for 'clock-pause' feature

2017-11-30 Thread Philippe Ombredanne
On Thu, Nov 30, 2017 at 6:41 PM, wrote: [] > diff --git a/drivers/slimbus/sched.c b/drivers/slimbus/sched.c > new file mode 100644 > index ..74300f1a6898 > --- /dev/null > +++ b/drivers/slimbus/sched.c > @@ -0,0 +1,128 @@ > +/* Copyright (c) 2011-2016, The Linux Foundation. All rights

Re: [PATCH v4 2/2] leds: lm3692x: Introduce LM3692x dual string driver

2017-11-30 Thread Dan Murphy
Jacek Thanks for the review On 11/29/2017 03:52 PM, Jacek Anaszewski wrote: > Hi Dan, > > Thanks for the update. > > On 11/28/2017 09:40 PM, Dan Murphy wrote: >> Introducing the LM3692x Dual-String white LED driver. >> >> Data sheet is located >> http://www.ti.com/lit/ds/snvsa29/snvsa29.pdf >>

[PATCH v5 1/2] dt: bindings: lm3692x: Add bindings for lm3692x LED driver

2017-11-30 Thread Dan Murphy
This adds the devicetree bindings for the LM3692x I2C LED string driver. Acked-by: Pavel Machek Signed-off-by: Dan Murphy --- v5 - No Changes - https://patchwork.kernel.org/patch/10081071/ v4 - Fix example node, added trigger entry, removed ambiguous x for compatible and added common.txt poin

[PATCH v5 2/2] leds: lm3692x: Introduce LM3692x dual string driver

2017-11-30 Thread Dan Murphy
Introducing the LM3692x Dual-String white LED driver. Data sheet is located http://www.ti.com/lit/ds/snvsa29/snvsa29.pdf Signed-off-by: Dan Murphy --- v5 - Added OF dependency in Kconfig, added extra fault flag read to ensure that if a fault exists and it is not a artifact, fixed LED class label

Re: [pcpu] BUG: KASAN: use-after-scope in pcpu_setup_first_chunk+0x1e3b/0x29e2

2017-11-30 Thread Dennis Zhou
Hi Dmitry and Kees, On Thu, Nov 30, 2017 at 10:10:41AM -0800, Kees Cook wrote: > > Are we sure that structleak plugin is not at fault? If yes, then we > > need to report this to https://gcc.gnu.org/bugzilla/ with instructions > > on how to build/use the plugin. I believe this is an issue with the

Re: [PATCH net] net: dsa: bcm_sf2: Set correct CHAIN_ID and slice number mask

2017-11-30 Thread David Miller
From: Florian Fainelli Date: Thu, 30 Nov 2017 10:45:26 -0800 > When configuring an IPv6 address mask, we should use SLICE_NUM_MASK as > the mask in order to make sure all bits are masked by the hardware. > Also, we want matching entries to have a CHAIN_ID value set to the same > value as the rule

Re: [PATCH] perf annotate: Fix objdump comment parsing for Intel mov dissassembly

2017-11-30 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 29, 2017 at 08:52:13PM +0530, Ravi Bangoria escreveu: > > > On 11/29/2017 08:33 PM, Thomas-Mich Richter wrote: > > On 11/29/2017 02:24 PM, Ravi Bangoria wrote: > >> > >> On 11/28/2017 01:26 PM, Thomas Richter wrote: > >>> The command 'perf annotate' parses the output of objdump and al

Re: [PATCH 15/24] x86/mm: Allow flushing for future ASID switches

2017-11-30 Thread Peter Zijlstra
On Thu, Nov 30, 2017 at 11:00:06AM -0800, Dave Hansen wrote: > On 11/30/2017 10:55 AM, Peter Zijlstra wrote: > >> __flush_tlb() does a flushing CR3 write that flushes the current PCID. > >> If we need other PCIDs flushed, we have to do it via the > >> tlb_flush_shared_nonglobals() mechanism. > > Bu

apparmor: fix oops in audit_signal_cb hook

2017-11-30 Thread John Johansen
Linus, can you please pull this fix for an oops that unfortunately on surfaced after 4.14 was released. thanks -- John The following changes since commit bebc6082da0a9f5d47a1ea2edc099bf671058bd4: Linux 4.14 (2017-11-12 10:46:13 -0800) are available in the git repository at: git://git.ke

Re: [PATCH v4 2/2] ASoC: fsl_ssi: add 20-bit sample format for AC'97 and use it for capture

2017-11-30 Thread Maciej S. Szmigiero
Hi Nicolin, On 30.11.2017 08:23, Nicolin Chen wrote: > Hi Maciej, > > On Mon, Nov 27, 2017 at 11:34:44PM +0100, Maciej S. Szmigiero wrote: >> There is no problem in using different bit widths in playback and capture >> in AC'97 mode so allow this, too. > >> @@ -1557,11 +1558,12 @@ static int fsl

Re: [PATCH 0/3] Receive packets filtering for macb driver

2017-11-30 Thread David Miller
From: Rafal Ozieblo Date: Thu, 30 Nov 2017 18:17:43 + > This patch series adds support for receive packets > filtering for Cadence GEM driver. Packets can be redirect > to different hardware queues based on source IP, destination IP, > source port or destination port. To enable filtering, > s

Re: [patches] Re: [PATCH] riscv/ftrace: Add basic support

2017-11-30 Thread Palmer Dabbelt
On Thu, 30 Nov 2017 03:31:53 PST (-0800), pombreda...@nexb.com wrote: On Thu, Nov 30, 2017 at 9:53 AM, Alan Kao wrote: [] diff --git a/arch/riscv/include/asm/ftrace.h b/arch/riscv/include/asm/ftrace.h new file mode 100644 index ..38beadb07ad5 --- /dev/null +++ b/arch/riscv/include/a

Re: [PATCH net-next v2] vmxnet3: increase default rx ring sizes

2017-11-30 Thread David Miller
From: Shrikrishna Khare Date: Thu, 30 Nov 2017 10:29:51 -0800 > There are several reasons for increasing the receive ring sizes: ... > Signed-off-by: Shrikrishna Khare > Acked-by: Jin Heo > Acked-by: Guolin Yang > Acked-by: Boon Ang Applied, thank you.

Re: [RFC v2 2/2] backlight: pwm_bl: compute brightness of LED linearly to human eye.

2017-11-30 Thread Doug Anderson
Hi On Thu, Nov 30, 2017 at 10:34 AM, Enric Balletbo Serra wrote: > Hi, > > 2017-11-30 12:27 GMT+01:00 Daniel Thompson : >> >> >> On 30/11/17 00:44, Doug Anderson wrote: >>> >>> Hi, >>> >>> On Thu, Nov 16, 2017 at 6:11 AM, Enric Balletbo i Serra >>> wrote: When you want to change the br

Re: [PATCH 03/11] fs: add frozen sb state helpers

2017-11-30 Thread Luis R. Rodriguez
On Thu, Nov 30, 2017 at 06:13:10PM +0100, Jan Kara wrote: > ... I dislike the _by_user() suffix as there may be different places that > call freeze_super() (e.g. device mapper does this during some operations). > Clearly we need to distinguish "by system suspend" and "the other" cases. > So please

Re: [PATCH] perf annotate: Fix unnecessary memory allocation for s390x

2017-11-30 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 29, 2017 at 06:04:56PM +0530, Ravi Bangoria escreveu: > > > On 11/24/2017 03:16 PM, Thomas Richter wrote: > > This patch fixes a bug introduced with commit d9f8dfa9baf9 > > ("perf annotate s390: Implement jump types for perf annotate"). > > > > Perf annotate displays annotated assembl

BUG: support for at24 multi-slave-address eeproms is broken.

2017-11-30 Thread Sven Van Asbroeck
Summary --- Some at24 eeproms have multiple i2c slave addresses. A patch introduced between 4.14-rc5 and 4.14-rc6 breaks support for these eeproms: reads/writes which start outside the first slave no longer work. 98e8201039afad5d2af87df9ac682f62f69c0c2f (eeprom: at24: enable runtime pm support

Re: [PATCH] vfio/iommu_type1: report the IOMMU aperture info

2017-11-30 Thread Alex Williamson
On Thu, 30 Nov 2017 12:57:56 + Jean-Philippe Brucker wrote: > Hello, > > On 30/11/17 11:34, Pierre Morel wrote: > [...] > > +/** > > + * vfio_get_aperture - report minimal aperture of a vfio_iommu > > + * @iommu: the current vfio_iommu > > + * @start: a pointer to the aperture start > > + *

Re: [PATCH/RFC] Re: 'perf test BPF' failing, libbpf regression wrt "basic API for BPF obj name"

2017-11-30 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 30, 2017 at 10:28:08AM -0800, Martin KaFai Lau escreveu: > On Thu, Nov 30, 2017 at 01:53:58PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Thu, Nov 30, 2017 at 12:01:10AM -0300, Arnaldo Carvalho de Melo escreveu: > > > Em Wed, Nov 29, 2017 at 02:31:36PM -0800, Martin KaFai Lau escreveu

Re: [PATCH v3 1/4] mm: introduce get_user_pages_longterm

2017-11-30 Thread Jason Gunthorpe
On Thu, Nov 30, 2017 at 10:32:42AM -0800, Dan Williams wrote: > > Who and how many LRU pages can pin that way and how do you prevent nasty > > users to DoS systems this way? > > I assume this is something the RDMA community has had to contend with? > I'm not an RDMA person, I'm just here to fix da

Re: [PATCH 15/24] x86/mm: Allow flushing for future ASID switches

2017-11-30 Thread Dave Hansen
On 11/30/2017 10:55 AM, Peter Zijlstra wrote: >> __flush_tlb() does a flushing CR3 write that flushes the current PCID. >> If we need other PCIDs flushed, we have to do it via the >> tlb_flush_shared_nonglobals() mechanism. > But the thing is, you _cannot_ have PCID enabled in that branch. Is ther

Re: BUG: KASAN: use-after-scope in ep_poll+0x5cd/0xc90

2017-11-30 Thread Jason Baron
Hi, On 11/29/2017 10:41 PM, Fengguang Wu wrote: > Hello, > > FYI this happens in mainline kernel 4.15.0-rc1. > It looks a new regression and bisect is on the way. > > It occurs in 3 out of 3 boots. > > [ 35.704690] init: Failed to create pty - disabling logging for job > [ 35.706676] init:

Re: [PATCH] ASoC: tfa9879: Export OF device ID as module alias

2017-11-30 Thread Peter Rosin
On 2017-11-30 18:56, Javier Martinez Canillas wrote: > The I2C core always reports a MODALIAS of the form i2c: even if the > device was registered via OF, this means that exporting the OF device ID > table device aliases in the module is not needed. But in order to change > how the core reports mod

[RESEND] Kaiser backport to stable v4.9.y

2017-11-30 Thread Eduardo Valentin
Hello, (correcting stable tree mailing list address and add GregKH) I have created this branch with the KAISER patches and dependencies to v4.9.y. This is massive, I know. But I attempted to include all dependencies I saw in the mailing list discussions. The backport is done from the tip/WIP.x86

Re: [PATCH 15/24] x86/mm: Allow flushing for future ASID switches

2017-11-30 Thread Peter Zijlstra
On Thu, Nov 30, 2017 at 10:44:40AM -0800, Dave Hansen wrote: > On 11/30/2017 08:18 AM, Peter Zijlstra wrote: > > On Thu, Nov 30, 2017 at 07:51:17AM -0800, Dave Hansen wrote: > >> On 11/30/2017 07:44 AM, Peter Zijlstra wrote: > >>> On Mon, Nov 27, 2017 at 11:49:14AM +0100, Ingo Molnar wrote: >

Re: [RFC v5 00/11] V4L2 Explicit Synchronization

2017-11-30 Thread Gustavo Padovan
Hi Smitha, 2017-11-20 Smitha T Murthy : > Hi Gustavo, > > I am currently referring to your implementation for explicit > synchronisation. For the same I needed your testapp, but I am unable > to download the same at the link provided > “https://gitlab.collabora.com/padovan/v4l2-fences-test” > >

Re: [PATCH 15/24] x86/mm: Allow flushing for future ASID switches

2017-11-30 Thread Dave Hansen
On 11/30/2017 10:48 AM, Andy Lutomirski wrote: >> __flush_tlb() does a flushing CR3 write that flushes the current PCID. >> If we need other PCIDs flushed, we have to do it via the >> tlb_flush_shared_nonglobals() mechanism. >> >> Does it matter today in practice? Nope, we never have that situatio

[PATCH RFC 2/2] arm64: allwinner: a64: Add Brava Keller initial support

2017-11-30 Thread Jagan Teki
Brava Keller is A64 based IoT device, which support - Allwinner A64 Cortex-A53 - AXP803 PMIC - 1GB DDR3 RAM - 8GB eMMC - Mali-400MP2 GPU - AP6330 Wifi/BLE - Camera OV5640 - USB Host and OTG Signed-off-by: Jagan Teki --- Note: Need to test it on hardware arch/arm64/boot/dts/allwinner/Makefile

Kaiser backport to stable v4.9.y

2017-11-30 Thread Eduardo Valentin
Hello, I have created this branch with the KAISER patches and dependencies to v4.9.y. This is massive, I know. But I attempted to include all dependencies I saw in the mailing list discussions. The backport is done from the tip/WIP.x86/mm branch. The list of patches include: a. Several patch depe

Re: [PATCH 15/24] x86/mm: Allow flushing for future ASID switches

2017-11-30 Thread Andy Lutomirski
On Thu, Nov 30, 2017 at 10:44 AM, Dave Hansen wrote: > On 11/30/2017 08:18 AM, Peter Zijlstra wrote: >> On Thu, Nov 30, 2017 at 07:51:17AM -0800, Dave Hansen wrote: >>> On 11/30/2017 07:44 AM, Peter Zijlstra wrote: On Mon, Nov 27, 2017 at 11:49:14AM +0100, Ingo Molnar wrote: > @@ -338,24

[PATCH RFC 1/2] dt-bindings: Add vendor prefix for Brava Home

2017-11-30 Thread Jagan Teki
Added 'brava' as a vendor prefix for Brava Home, Inc. which is consumer electronics and IoT company. Signed-off-by: Jagan Teki --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Do

Re: [PATCH v2 2/2] ARM: dts: at91: disable the nxp,se97b SMBUS timeout on the TSE-850

2017-11-30 Thread Peter Rosin
On 2017-11-30 18:26, Alexandre Belloni wrote: > On 30/11/2017 at 09:16:38 -0800, Guenter Roeck wrote: >> On Wed, Nov 29, 2017 at 09:56:29PM +0100, Alexandre Belloni wrote: >>> On 29/11/2017 at 12:53:11 -0800, Guenter Roeck wrote: On Mon, Nov 27, 2017 at 05:31:01PM +0100, Peter Rosin wrote: >>>

[PATCH net] net: dsa: bcm_sf2: Set correct CHAIN_ID and slice number mask

2017-11-30 Thread Florian Fainelli
When configuring an IPv6 address mask, we should use SLICE_NUM_MASK as the mask in order to make sure all bits are masked by the hardware. Also, we want matching entries to have a CHAIN_ID value set to the same value as the rule index we return to user-space for convenience, so fix that too. Fixes

Re: [PATCH 0/5] PCI: Add support to the Cadence PCIe controller

2017-11-30 Thread Cyrille Pitchen
Hi all, Le 30/11/2017 à 19:18, Lorenzo Pieralisi a écrit : > On Thu, Nov 30, 2017 at 12:43:20PM +0530, Kishon Vijay Abraham I wrote: > > [...] > For linux-next, I applied this series on top of Kishon's patch ("PCI: endpoint: Use EPC's device in dma_alloc_coherent/dma_free_coherent") >>

Re: [PATCH 15/24] x86/mm: Allow flushing for future ASID switches

2017-11-30 Thread Dave Hansen
On 11/30/2017 08:18 AM, Peter Zijlstra wrote: > On Thu, Nov 30, 2017 at 07:51:17AM -0800, Dave Hansen wrote: >> On 11/30/2017 07:44 AM, Peter Zijlstra wrote: >>> On Mon, Nov 27, 2017 at 11:49:14AM +0100, Ingo Molnar wrote: @@ -338,24 +366,23 @@ static inline void __native_flush_tlb_singl

Re: module: add debugging alias parsing support

2017-11-30 Thread Luis R. Rodriguez
On Thu, Nov 30, 2017 at 02:17:11PM +0100, Jessica Yu wrote: > Just some quick questions - are there any plans to use these in-kernel > module aliases anywhere else? Or are you using them just for debugging? As-is for now just debugging, but this could also more easily enable folks to prototype fur

Re: [PATCH v2] mmap.2: document new MAP_FIXED_SAFE flag

2017-11-30 Thread Michal Hocko
On Thu 30-11-17 10:31:12, John Hubbard wrote: > On 11/30/2017 12:24 AM, Michal Hocko wrote: > > Updated version based on feedback from John. > > --- > > From ade1eba229b558431581448e7d7838f0e1fe2c49 Mon Sep 17 00:00:00 2001 > > From: Michal Hocko > > Date: Wed, 29 Nov 2017 15:32:08 +0100 > > Subje

Re: [PATCH v2] watchdog: stm32: Fix copyright

2017-11-30 Thread Guenter Roeck
On Thu, Nov 30, 2017 at 09:48:04AM +0100, Benjamin Gaignard wrote: > Uniformize STMicroelectronics copyrights header > Add SPDX identifier > > Signed-off-by: Benjamin Gaignard > Acked-by: Alexandre TORGUE > CC: Yannick Fertre Reviewed-by: Guenter Roeck > --- > drivers/watchdog/stm32_iwdg.c

Re: [patches] Re: [PATCH 08/10] RISC-V: Set __ARCH_WANT_RENAMEAT to pick up generic version

2017-11-30 Thread Palmer Dabbelt
On Thu, 30 Nov 2017 10:30:32 PST (-0800), Christoph Hellwig wrote: On Wed, Nov 29, 2017 at 05:55:19PM -0800, Olof Johansson wrote: In file included from ../lib/audit.c:8:0: ../include/asm-generic/audit_dir_write.h:30:1: error: '__NR_renameat' undeclared here (not in a function); did you mean '_

[PATCH v2] ipc, mqueue: lazy call kern_mount_data in new namespaces

2017-11-30 Thread Giuseppe Scrivano
kern_mount_data is a relatively expensive operation when creating a new IPC namespace, so delay the mount until its first usage when not creating the the global namespace. This is a net saving for new IPC namespaces that don't use mq_open(). In this case there won't be any kern_mount_data() cost a

Re: [PATCH v6 09/11] fs/pipe.c: export create_pipe_files() and replace_fd()

2017-11-30 Thread James Bottomley
On Thu, 2017-11-30 at 18:43 +0200, Jarkko Sakkinen wrote: > On Wed, Nov 29, 2017 at 03:13:57PM -0800, Christoph Hellwig wrote: > > > > On Tue, Nov 28, 2017 at 11:57:53PM +0200, Jarkko Sakkinen wrote: > > > > > > > > > > > Yes.  You still shall not play nasty games with file > > > > descriptors.

RE: [PATCH v6 0/2] Fix corner cases with disabling CLKRUN in tpm_tis

2017-11-30 Thread Shaikh, Azhar
>-Original Message- >From: Jarkko Sakkinen [mailto:jarkko.sakki...@linux.intel.com] >Sent: Thursday, November 30, 2017 8:35 AM >To: Shaikh, Azhar >Cc: jguntho...@obsidianresearch.com; peterhu...@gmx.de; linux-security- >mod...@vger.kernel.org; linux-kernel@vger.kernel.org; tpmdd- >de...@

Re: [RFC v2 2/2] backlight: pwm_bl: compute brightness of LED linearly to human eye.

2017-11-30 Thread Enric Balletbo Serra
Hi, 2017-11-30 12:27 GMT+01:00 Daniel Thompson : > > > On 30/11/17 00:44, Doug Anderson wrote: >> >> Hi, >> >> On Thu, Nov 16, 2017 at 6:11 AM, Enric Balletbo i Serra >> wrote: >>> >>> When you want to change the brightness using a PWM signal, one thing you >>> need to consider is how human perce

Re: [PATCH v3 1/4] mm: introduce get_user_pages_longterm

2017-11-30 Thread Dan Williams
[ adding linux-rdma ] On Thu, Nov 30, 2017 at 10:17 AM, Michal Hocko wrote: > > On Thu 30-11-17 10:03:26, Dan Williams wrote: > > On Thu, Nov 30, 2017 at 9:42 AM, Michal Hocko wrote: > > > > > > On Thu 30-11-17 08:39:51, Dan Williams wrote: > > > > On Thu, Nov 30, 2017 at 1:53 AM, Michal Hocko

Re: [PATCH v2] mmap.2: document new MAP_FIXED_SAFE flag

2017-11-30 Thread John Hubbard
On 11/30/2017 12:24 AM, Michal Hocko wrote: > Updated version based on feedback from John. > --- > From ade1eba229b558431581448e7d7838f0e1fe2c49 Mon Sep 17 00:00:00 2001 > From: Michal Hocko > Date: Wed, 29 Nov 2017 15:32:08 +0100 > Subject: [PATCH] mmap.2: document new MAP_FIXED_SAFE flag > > 4.

[PATCH] staging: lustre: Fix sparse, using plain integer as NULL pointer in lov_object_fiemap()

2017-11-30 Thread Andrii Vladyka
Change 0 to NULL in lov_object_fiemap() in order to fix warning produced by sparse Signed-off-by: Andrii Vladyka diff --git a/drivers/staging/lustre/lustre/lov/lov_object.c b/drivers/staging/lustre/lustre/lov/lov_object.c index 105b707..897cf2c 100644 --- a/drivers/staging/lustre/lustre/lov/

Re: [PATCH 08/10] RISC-V: Set __ARCH_WANT_RENAMEAT to pick up generic version

2017-11-30 Thread Christoph Hellwig
On Wed, Nov 29, 2017 at 05:55:19PM -0800, Olof Johansson wrote: > In file included from ../lib/audit.c:8:0: > ../include/asm-generic/audit_dir_write.h:30:1: error: '__NR_renameat' > undeclared here (not in a function); did you mean '__NR_renameat2'? I think the audit code should be fixed instead

Re: [PATCH v2 11/18] arm64: mm: Map entry trampoline into trampoline and kernel page tables

2017-11-30 Thread Mark Rutland
Hi Will, On Thu, Nov 30, 2017 at 04:39:39PM +, Will Deacon wrote: > diff --git a/arch/arm64/include/asm/fixmap.h b/arch/arm64/include/asm/fixmap.h > index 4052ec39e8db..8119b49be98d 100644 > --- a/arch/arm64/include/asm/fixmap.h > +++ b/arch/arm64/include/asm/fixmap.h > @@ -58,6 +58,10 @@ enum

[PATCH net-next v2] vmxnet3: increase default rx ring sizes

2017-11-30 Thread Shrikrishna Khare
There are several reasons for increasing the receive ring sizes: 1. The original ring size of 256 was chosen about 10 years ago when vmxnet3 was first created. At that time, 10Gbps Ethernet was not prevalent and servers were dominated by 1Gbps Ethernet. Now 10Gbps is common place, and higher bandw

Re: [PATCH] vfio/iommu_type1: report the IOMMU aperture info

2017-11-30 Thread Alex Williamson
On Thu, 30 Nov 2017 16:11:35 +0100 Pierre Morel wrote: > On 30/11/2017 15:08, Alex Williamson wrote: > > On Thu, 30 Nov 2017 12:34:38 +0100 > > Pierre Morel wrote: > > > >> When userland VFIO defines a new IOMMU for a guest it may > >> want to specify to the guest the physical limits of > >>

Re: [PATCH/RFC] Re: 'perf test BPF' failing, libbpf regression wrt "basic API for BPF obj name"

2017-11-30 Thread Martin KaFai Lau
On Thu, Nov 30, 2017 at 01:53:58PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Nov 30, 2017 at 12:01:10AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Wed, Nov 29, 2017 at 02:31:36PM -0800, Martin KaFai Lau escreveu: > > > On Wed, Nov 29, 2017 at 06:15:43PM -0300, Arnaldo Carvalho de Melo

Re: [patches] [PATCH 00/10] RISC-V: Fixes for clean allmodconfig build

2017-11-30 Thread Palmer Dabbelt
On Wed, 29 Nov 2017 17:55:11 PST (-0800), Olof Johansson wrote: Here's a short series of patches that produces a working allmodconfig. Would be nice to see them go in so we can add build coverage. I was just about to send a pull request when these came in last night, so it's good timing :). T

Re: [patches] [PATCH 06/10] RISC-V: Provide stub of setup_profiling_timer()

2017-11-30 Thread Palmer Dabbelt
On Wed, 29 Nov 2017 17:55:17 PST (-0800), Olof Johansson wrote: Fixes the following on allmodconfig build: profile.c:(.text+0x3e4): undefined reference to `setup_profiling_timer' Signed-off-by: Olof Johansson --- arch/riscv/kernel/smp.c | 8 1 file changed, 8 insertions(+) diff --gi

Re: [RFC PATCH] KVM: x86: Allow Qemu/KVM to use PVH entry point

2017-11-30 Thread Maran Wilson
On 11/29/2017 6:44 AM, Paolo Bonzini wrote: I actually like this patch, except that I'd get the e820 memory map from fw_cfg (see the first part of https://github.com/bonzini/qboot/blob/master/fw_cfg.c, and extract_e820 inhttps://github.com/bonzini/qboot/blob/master/main.c) instead of the second m

Re: [PATCH] rxrpc: Neaten logging macros and add KERN_DEBUG logging level

2017-11-30 Thread David Miller
From: Joe Perches Date: Thu, 30 Nov 2017 10:18:24 -0800 > _Nobody_ reads everything on lkml. True, in fact I don't read lkml at all. That wasn't the point I was trying to make.

[PATCH 2/3] net: macb: Added some queue statistics

2017-11-30 Thread Rafal Ozieblo
Added statistics per queue: - qX_rx_packets - qX_rx_bytes - qX_rx_dropped - qX_tx_packets - qX_tx_bytes - qX_tx_dropped Signed-off-by: Rafal Ozieblo --- drivers/net/ethernet/cadence/macb.h | 31 +- drivers/net/ethernet/cadence/macb_main.c | 37 +++

[PATCH 3/3] net: macb: Added support for RX filtering

2017-11-30 Thread Rafal Ozieblo
This patch allows filtering received packets to different hardware queues (aka ntuple). Signed-off-by: Rafal Ozieblo --- drivers/net/ethernet/cadence/macb.h | 109 ++ drivers/net/ethernet/cadence/macb_main.c | 336 ++- 2 files changed, 444 insertions(+),

[PATCH 1/3] net: macb: Added support for many RX queues

2017-11-30 Thread Rafal Ozieblo
To be able for packet reception on different RX queues some configuration has to be performed. This patch checks how many hardware queue does GEM support and initializes them. Signed-off-by: Rafal Ozieblo --- drivers/net/ethernet/cadence/macb.h | 26 ++- drivers/net/ethernet/cadence/macb_m

Re: [PATCH] rxrpc: Neaten logging macros and add KERN_DEBUG logging level

2017-11-30 Thread Joe Perches
On Thu, 2017-11-30 at 13:13 -0500, David Miller wrote: > From: Joe Perches > Date: Thu, 30 Nov 2017 10:06:51 -0800 > > > Excuse is probably the wrong word here David. > > Rationale maybe... > > I guess you turn a blind eye to the hundreds of the rxrpc patches > David has posted here over the pas

[PATCH 0/3] Receive packets filtering for macb driver

2017-11-30 Thread Rafal Ozieblo
This patch series adds support for receive packets filtering for Cadence GEM driver. Packets can be redirect to different hardware queues based on source IP, destination IP, source port or destination port. To enable filtering, support for RX queueing was added as well. Rafal Ozieblo (3): net: m

Re: [PATCH v3 1/4] mm: introduce get_user_pages_longterm

2017-11-30 Thread Michal Hocko
On Thu 30-11-17 10:03:26, Dan Williams wrote: > On Thu, Nov 30, 2017 at 9:42 AM, Michal Hocko wrote: > > > > On Thu 30-11-17 08:39:51, Dan Williams wrote: > > > On Thu, Nov 30, 2017 at 1:53 AM, Michal Hocko wrote: > > > > On Wed 29-11-17 10:05:35, Dan Williams wrote: > > > >> Until there is a sol

Re: [PATCH 0/5] PCI: Add support to the Cadence PCIe controller

2017-11-30 Thread Lorenzo Pieralisi
On Thu, Nov 30, 2017 at 12:43:20PM +0530, Kishon Vijay Abraham I wrote: [...] > >> For linux-next, I applied this series on top of Kishon's patch > >> ("PCI: endpoint: Use EPC's device in dma_alloc_coherent/dma_free_coherent") > >> otherwise dma_alloc_coherent() fails when called by pci_epf_alloc

Re: [PATCH] rxrpc: Neaten logging macros and add KERN_DEBUG logging level

2017-11-30 Thread David Miller
From: Joe Perches Date: Thu, 30 Nov 2017 10:06:51 -0800 > Excuse is probably the wrong word here David. > Rationale maybe... I guess you turn a blind eye to the hundreds of the rxrpc patches David has posted here over the past few months That's all I'm saying. If you see reality is disconn

[PATCH] hwmon: (max31785) Add OF device ID table

2017-11-30 Thread Javier Martinez Canillas
The driver doesn't have a struct of_device_id table but supported devices are registered via Device Trees. This is working on the assumption that a I2C device registered via OF will always match a legacy I2C device ID and that the MODALIAS reported will always be of the form i2c:. But this could c

Re: [pcpu] BUG: KASAN: use-after-scope in pcpu_setup_first_chunk+0x1e3b/0x29e2

2017-11-30 Thread Kees Cook
On Thu, Nov 30, 2017 at 1:59 AM, Dmitry Vyukov wrote: > On Wed, Nov 29, 2017 at 6:54 PM, Dennis Zhou wrote: >> Hi everyone, >> >> I spent a bit of time learning more about this problem as Fengguang was >> able to determine the root commit f7dd2507893cc3. I reproduced the bug >> in userspace to ma

RE: [PATCH char-misc 1/1] Drivers: hv: vmbus: Implement Direct Mode for stimer0

2017-11-30 Thread Michael Kelley (EOSG)
Thomas Gleixner writes: > On Tue, 31 Oct 2017, mikel...@exchange.microsoft.com wrote: > > diff --git a/arch/x86/include/uapi/asm/hyperv.h > > b/arch/x86/include/uapi/asm/hyperv.h > > index f65d125..408cf3e 100644 > > --- a/arch/x86/include/uapi/asm/hyperv.h > > +++ b/arch/x86/include/uapi/asm/hyp

RE: [PATCH char-misc 1/1] Drivers: hv: vmbus: Implement Direct Mode for stimer0

2017-11-30 Thread Michael Kelley (EOSG)
Vitaly Kuznetsov writes: > Vitaly Kuznetsov writes: > > > mikel...@exchange.microsoft.com writes: > > > >> From: Michael Kelley > >> > >> The 2016 version of Hyper-V offers the option to operate the guest VM > >> per-vcpu stimer's in Direct Mode, which means the timer interupts on > >> its own

Re: [PATCH] rxrpc: Neaten logging macros and add KERN_DEBUG logging level

2017-11-30 Thread Joe Perches
On Thu, 2017-11-30 at 12:31 -0500, David Miller wrote: > From: Joe Perches > Date: Thu, 30 Nov 2017 08:21:14 -0800 > > > When enabled, the current debug logging does not have a KERN_. > > Add KERN_DEBUG to the logging macros. > > > > Miscellanea: > > > > o Remove #define redundancy and neaten t

[PATCH 1/2] KVM: x86: fix APIC page invalidation

2017-11-30 Thread Radim Krčmář
Implementation of the unpinned APIC page didn't update the VMCS address cache when invalidation was done through range mmu notifiers. This became a problem when the page notifier was removed. Re-introduce the arch-specific helper and call it from ...range_start. Fixes: 38b9917350cb ("kvm: vmx: Im

[PATCH 2/2] TESTING! KVM: x86: add invalidate_range mmu notifier

2017-11-30 Thread Radim Krčmář
Does roughly what kvm_mmu_notifier_invalidate_page did before. I am not certain why this would be needed. It might mean that we have another bug with start/end or just that I missed something. Please try just [1/2] first and apply this one only if [1/2] still bugs, thanks! --- virt/kvm/kvm_main

Re: [PATCH v3 1/4] mm: introduce get_user_pages_longterm

2017-11-30 Thread Dan Williams
On Thu, Nov 30, 2017 at 9:42 AM, Michal Hocko wrote: > > On Thu 30-11-17 08:39:51, Dan Williams wrote: > > On Thu, Nov 30, 2017 at 1:53 AM, Michal Hocko wrote: > > > On Wed 29-11-17 10:05:35, Dan Williams wrote: > > >> Until there is a solution to the dma-to-dax vs truncate problem it is > > >> n

Re: [PATCH net-next] net: dsa: bcm_sf2: Utilize b53_get_tag_protocol()

2017-11-30 Thread David Miller
From: Florian Fainelli Date: Thu, 30 Nov 2017 09:55:35 -0800 > Utilize the much more capable b53_get_tag_protocol() which takes care of > all Broadcom switches specifics to resolve which port can have Broadcom > tags enabled or not. > > Signed-off-by: Florian Fainelli Applied, thanks Florian.

[PATCH net-next 1/2] net: dsa: introduce dsa_towards_port helper

2017-11-30 Thread Vivien Didelot
Add a new helper returning the local port used to reach an arbitrary switch port in the fabric. Its only user at the moment is the dsa_upstream_port helper, which returns the local port reaching the dedicated CPU port, but it will be used in cross-chip FDB operations. Signed-off-by: Vivien Didelo

[PATCH net-next 0/2] net: dsa: cross-chip FDB support

2017-11-30 Thread Vivien Didelot
DSA can have interconnected switches. For instance, the ZII Dev Rev B board described in arch/arm/boot/dts/vf610-zii-dev-rev-b.dts has a switch fabric composed of 3 switch devices like this: lan4 lan6 CPU (eth1)| lan5 | lan7

Re: Unlock-lock questions and the Linux Kernel Memory Model

2017-11-30 Thread Alan Stern
On Thu, 30 Nov 2017, Paul E. McKenney wrote: > > > Will, are there plans to bring this sort of thing before the standards > > > committee? > > > > We discussed it, but rejected it mainly because of concerns that there could > > be RmW operations that don't necessarily have an order-inducing depen

[PATCH net-next 2/2] net: dsa: support cross-chip FDB operations

2017-11-30 Thread Vivien Didelot
When a MAC address is added to or removed from a switch port in the fabric, the target switch must program its port and adjacent switches must program their local DSA port used to reach the target switch. For this purpose, use the dsa_towards_port() helper to identify the local switch port which m

[PATCH] ASoC: tfa9879: Export OF device ID as module alias

2017-11-30 Thread Javier Martinez Canillas
The I2C core always reports a MODALIAS of the form i2c: even if the device was registered via OF, this means that exporting the OF device ID table device aliases in the module is not needed. But in order to change how the core reports modaliases to user-space, it's better to export it. Before this

[PATCH net-next] net: dsa: bcm_sf2: Utilize b53_get_tag_protocol()

2017-11-30 Thread Florian Fainelli
Utilize the much more capable b53_get_tag_protocol() which takes care of all Broadcom switches specifics to resolve which port can have Broadcom tags enabled or not. Signed-off-by: Florian Fainelli --- drivers/net/dsa/b53/b53_common.c | 4 ++-- drivers/net/dsa/b53/b53_priv.h | 1 + drivers/net

Re: [PATCH v3 2/2] Protected O_CREAT open in sticky directories

2017-11-30 Thread Solar Designer
On Thu, Nov 30, 2017 at 04:53:06PM +, David Laight wrote: > From: Salvatore Mesoraca > > if a program tries to open a file, in a sticky directory, > > with the O_CREAT flag and without the O_EXCL, it probably has a bug. > > This feature allows to detect and potentially block programs that > > a

Re: [PATCH v2 3/5] Input: add KEY_ROTATE_LOCK_TOGGLE

2017-11-30 Thread Brüns , Stefan
On Freitag, 10. November 2017 00:34:53 CET Bastien Nocera wrote: > On Thu, 2017-11-09 at 23:44 +0100, Stefan Brüns wrote: > > The key has the same use as the SW_ROTATE_LOCK, but is used on > > devices > > where the state is not tracked by the hardware but has to be handled > > in software. > > I'l

Re: [PATCH 6/7] arm64: explicitly pass --no-fix-cortex-a53-843419 to GNU gold

2017-11-30 Thread Sami Tolvanen
On Wed, Nov 29, 2017 at 04:30:33PM -0800, Nick Desaulniers wrote: > Rather than: > > if CONFIG_ARM64_ERRATUM_843419 == y: > ... > if CONFIG_ARM64_ERRATUM_843419 == '': > ... > > could this be: > > if CONFIG_ARM64_ERRATUM_843419 == y: > ... > else > ... > > ? Sure. I'll clean this up in

[PATCH v8 03/13] slimbus: Add SLIMbus bus type

2017-11-30 Thread srinivas . kandagatla
From: Sagar Dharia SLIMbus (Serial Low Power Interchip Media Bus) is a specification developed by MIPI (Mobile Industry Processor Interface) alliance. SLIMbus is a 2-wire implementation, which is used to communicate with peripheral components like audio-codec. SLIMbus uses Time-Division-Multiplex

[PATCH v8 00/13] Introduce framework for SLIMbus device driver

2017-11-30 Thread srinivas . kandagatla
From: Srinivas Kandagatla Thanks for everyone who reviewed v7 patchset, here is v8 with review comments addressed. SLIMbus (Serial Low Power Interchip Media Bus) is a specification developed by MIPI (Mobile Industry Processor Interface) alliance. SLIMbus is a 2-wire implementation, which is used

[PATCH v8 01/13] Documentation: Add SLIMbus summary

2017-11-30 Thread srinivas . kandagatla
From: Sagar Dharia SLIMbus (Serial Low Power Interchip Media Bus) is a specification developed by MIPI (Mobile Industry Processor Interface) alliance. SLIMbus is a 2-wire implementation, which is used to communicate with peripheral components like audio-codec. The summary of SLIMbus and API is d

[PATCH v8 04/13] slimbus: core: Add slim controllers support

2017-11-30 Thread srinivas . kandagatla
From: Sagar Dharia This patch adds support to slim controllers in the slim core, including some utility functions invoked by the controller and slim device drivers. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/core.c| 306 ++ drivers/sl

Re: [PATCH 5/7] arm64: keep .altinstructions and .altinstr_replacement

2017-11-30 Thread Sami Tolvanen
On Thu, Nov 30, 2017 at 11:58:27AM +1000, Nicholas Piggin wrote: > So yes please if it's not too much trouble, could you remove > the "gold" name from the generic patch and put it at the front > of the series with this arm64 patch. Sure, I'll do this in v2. > Possibly then you could also do a 3rd

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