[PATCH RFC] proc: Don't retain negative dentries

2018-10-08 Thread Ahmad Fatoum
The referenced commit 1da4d377f94 ("proc: revalidate misc dentries") caused following userspace code to access a stale /proc/net/dev after the network namespace was changed: system("ip netns add testns"); printf("default:\n"); { int devinfd = open("/proc/net/dev", O_RDONLY);

Re: [PATCH RFC] proc: Don't retain negative dentries

2018-10-08 Thread Ahmad Fatoum
On 10/8/18 6:50 PM, Ahmad Fatoum wrote: > The referenced commit 1da4d377f94 ("proc: revalidate misc dentries") > caused following userspace code to access a stale /proc/net/dev > after the network namespace was changed: > > system("ip netns add testns"); > > printf("default:\n"); { >

Re: [PATCH RFC] proc: Don't retain negative dentries

2018-10-08 Thread Al Viro
On Mon, Oct 08, 2018 at 06:50:10PM +0200, Ahmad Fatoum wrote: > The referenced commit 1da4d377f94 ("proc: revalidate misc dentries") > caused following userspace code to access a stale /proc/net/dev > after the network namespace was changed: > Despite switching the network namespace, the read acce

[RESEND][PATCH] ACPI / CPPC: Add support for guaranteed performance

2018-10-08 Thread Srinivas Pandruvada
The Continuous Performance Control Package can have guaranteed performance field. Add support to read guaranteed performance. Signed-off-by: Srinivas Pandruvada --- No changes. But adding CC to mailing lists. Documentation/acpi/cppc_sysfs.txt | 2 ++ drivers/acpi/cppc_acpi.c | 10

Re: [PATCH] mm,numa: Remove remaining traces of rate-limiting.

2018-10-08 Thread Mel Gorman
On Sat, Oct 06, 2018 at 04:53:19PM +0530, Srikar Dronamraju wrote: > With Commit efaffc5e40ae ("mm, sched/numa: Remove rate-limiting of automatic > NUMA balancing migration"), we no more require migrate lock and its > initialization. Its redundant. Hence remove it. > > Signed-off-by: Srikar Dronam

Re: [PATCH RFC] proc: Don't retain negative dentries

2018-10-08 Thread Ahmad Fatoum
Hello, On 10/8/18 6:55 PM, Al Viro wrote: > > What the hell does that have to do with negative dentries anywhere??? It's possible that this needs fixing at another place. I don't know, but this seems to work for me, that's why I prefixed with RFC. > NAK. Rationale makes no sense _and_ the patc

Re: [Announce] LPC 2018: Testing and Fuzzing Microconference

2018-10-08 Thread Dmitry Vyukov
On Wed, Sep 19, 2018 at 7:13 PM, Dhaval Giani wrote: > Hi folks, > > Sasha and I are pleased to announce the Testing and Fuzzing track at > LPC [ 1 ]. We are planning to continue the discussions from last > year's microconference [2]. Many discussions from the Automated > Testing Summit [3] will a

Re: [PATCH] media: vivid: Support 480p for webcam capture

2018-10-08 Thread Mauro Carvalho Chehab
Em Wed, 3 Oct 2018 12:14:22 +0100 Kieran Bingham escreveu: > > @@ -75,6 +76,8 @@ static const struct v4l2_fract > > webcam_intervals[VIVID_WEBCAM_IVALS] = { > > { 1, 5 }, > > { 1, 10 }, > > { 1, 15 }, > > + { 1, 15 }, > > + { 1, 25 }, As the code requires that VIVID_WEBCA

RE: [Ksummit-discuss] [PATCH 1/2] code-of-conduct: Fix the ambiguity about collecting email addresses

2018-10-08 Thread Luck, Tony
On Mon, Oct 08, 2018 at 08:25:35AM +1000, Dave Airlie wrote: > This isn't a legally binding license or anything, but departing from > the upstream wording makes it tricker to merge new upstream versions > if they are considered appropriate. The whole document is under 500 words, if we can manage

[PATCH] Input: atmel_mxt_ts - mark expected switch fall-through

2018-10-08 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/input/touchscreen/atmel_mxt_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.

Re: [PATCH] staging: bcm2835-camera: remove extraneous setting of dev->colourfx.enable

2018-10-08 Thread Stefan Wahren
Hi Dave, > Dave Stevenson hat am 8. Oktober 2018 um > 18:51 geschrieben: > > > Hi Stefan. > > Thanks for forwarding as the linux-rpi-kernel list hasn't sent it to me as > yet. AFAIK every mail with more than 5 recipients will be delayed. > > On Mon, 8 Oct 2018 at 16:48, Stefan Wahren wr

Re: [PATCH 4.18 222/235] drm/amd/pp: Send khz clock values to DC for smu7/8

2018-10-08 Thread Greg Kroah-Hartman
On Mon, Oct 08, 2018 at 04:02:19PM +, Deucher, Alexander wrote: > > -Original Message- > > From: Greg Kroah-Hartman > > Sent: Monday, October 8, 2018 10:44 AM > > To: Deucher, Alexander > > Cc: linux-kernel@vger.kernel.org; sta...@vger.kernel.org; Wentland, Harry > > ; Zhu, Rex ; Sash

Re: [PATCH AUTOSEL 4.18 24/58] Input: atakbd - fix Atari CapsLock behaviour

2018-10-08 Thread Dmitry Torokhov
On Mon, Oct 8, 2018 at 8:25 AM Sasha Levin wrote: > > From: Michael Schmitz > > [ Upstream commit 52d2c7bf7c90217fbe875d2d76f310979c48eb83 ] > > The CapsLock key on Atari keyboards is not a toggle, it does send the > normal make and break scancodes. > > Drop the CapsLock toggle handling code, whi

Re: [PATCHv3 0/6] atomics: generate atomic headers / instrument arm64

2018-10-08 Thread Mark Rutland
On Tue, Sep 04, 2018 at 11:48:24AM +0100, Mark Rutland wrote: > Hi Ingo, > > As previously requested, this is a (trivial) rebase of the remaining generated > atomic patches atop of v4.19-rc2, avoiding any potential conflict with Peter's > ldsem atomic cleanup patch that got taken through the tty t

[PATCH] dmaengine: owl: Fix warnings generated during build

2018-10-08 Thread Manivannan Sadhasivam
Following warnings are generated when compiled with W=1, drivers/dma/owl-dma.c:170: warning: Function parameter or member 'cyclic' not described in 'owl_dma_txd' drivers/dma/owl-dma.c:198: warning: Function parameter or member 'cfg' not described in 'owl_dma_vchan' drivers/dma/owl-dma.c:198: warni

Re: [PATCH] staging: bcm2835-camera: remove extraneous setting of dev->colourfx.enable

2018-10-08 Thread Dave Stevenson
On Mon, 8 Oct 2018 at 18:09, Stefan Wahren wrote: > > Hi Dave, > > > Dave Stevenson hat am 8. Oktober 2018 um > > 18:51 geschrieben: > > > > > > Hi Stefan. > > > > Thanks for forwarding as the linux-rpi-kernel list hasn't sent it to me as > > yet. > > AFAIK every mail with more than 5 recipien

Re: [PATCH 00/12] error handling and pciehp maintenance

2018-10-08 Thread Bjorn Helgaas
On Mon, Oct 08, 2018 at 10:18:47AM -0600, Keith Busch wrote: > On Fri, Oct 05, 2018 at 12:31:45PM -0500, Bjorn Helgaas wrote: > > [+cc arm64 folks, LKML: This conversation is about this patch: > > > > > > https://lore.kernel.org/linux-pci/20180918235848.26694-3-keith.bu...@intel.com > > > > wh

Re: [v3, 1/6] net: dpaa2: move DPAA2 PTP driver out of staging/

2018-10-08 Thread David Miller
From: Yangbo Lu Date: Mon, 8 Oct 2018 15:44:25 +0800 > This patch is to move DPAA2 PTP driver out of staging/ > since the dpaa2-eth had been moved out. > > Signed-off-by: Yangbo Lu Applied.

[PATCH] iio: cros_ec_accel_legacy: Mark expected switch fall-throughs

2018-10-08 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1397962 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/iio/accel/cros_ec_accel_legacy.c | 2 ++ 1 file changed, 2 insertions(+) diff --

Re: [PATCH] staging: bcm2835-camera: remove extraneous setting of dev->colourfx.enable

2018-10-08 Thread Dave Stevenson
Hi Stefan. Thanks for forwarding as the linux-rpi-kernel list hasn't sent it to me as yet. On Mon, 8 Oct 2018 at 16:48, Stefan Wahren wrote: > > Hi Colin, > > Am 08.10.2018 um 16:50 schrieb Colin King: > > From: Colin Ian King > > > > Currently dev->colourfx.enable is being set twice, hence th

Re: [PATCH v6 2/9] PCI: mediatek: Fixup class ID for MT7622 as PCI_CLASS_BRIDGE_PCI

2018-10-08 Thread Lorenzo Pieralisi
On Mon, Oct 08, 2018 at 11:24:41AM +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > The PCIe controller of MT7622 has TYPE 1 configuration space type, but > the HW default class type values is invalid. > > The commit 101c92dc80c8 ("PCI: mediatek: Set up vendor ID and class > ty

Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"

2018-10-08 Thread Andy Lutomirski
On Mon, Oct 8, 2018 at 9:40 AM Peter Zijlstra wrote: > > On Mon, Oct 08, 2018 at 09:29:56AM -0700, Andy Lutomirski wrote: > > > > > > > On Oct 8, 2018, at 8:57 AM, Peter Zijlstra wrote: > > > > > > On Mon, Oct 08, 2018 at 01:33:14AM -0700, Andy Lutomirski wrote: > > >>> Can't we hijack the reloca

Re: [PATCH v4] tools/lib/traceevent: Separate out tep_strerror() for strerror_r() issues

2018-10-08 Thread Arnaldo Carvalho de Melo
Em Fri, Oct 05, 2018 at 12:18:16PM -0400, Steven Rostedt escreveu: > > From: "Steven Rostedt (VMware)" > > While working on having PowerTop use libtracevent as a shared object > library, Tzvetomir hit "str_error_r not defined". This was added by commit > c3cec9e68f12d ("tools lib traceevent: Use

Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"

2018-10-08 Thread Ard Biesheuvel
On 8 October 2018 at 19:25, Andy Lutomirski wrote: > On Mon, Oct 8, 2018 at 9:40 AM Peter Zijlstra wrote: >> >> On Mon, Oct 08, 2018 at 09:29:56AM -0700, Andy Lutomirski wrote: >> > >> > >> > > On Oct 8, 2018, at 8:57 AM, Peter Zijlstra wrote: >> > > >> > > On Mon, Oct 08, 2018 at 01:33:14AM -07

Re: [PATCH] tools/lib/traceevent, tools/perf: Move struct tep_handler definition in a local header file

2018-10-08 Thread Arnaldo Carvalho de Melo
Em Fri, Oct 05, 2018 at 12:22:25PM -0400, Steven Rostedt escreveu: > > From: Tzvetomir Stoyanov > > As traceevent is going to be transferred into a proper library, > its local data should be protected from the library users. > This patch encapsulates struct tep_handler into a local header, > not

Re: [PATCH v6 0/9] PCI: mediatek: fixup find_port, enable_msi and add pm, module support

2018-10-08 Thread Bjorn Helgaas
On Mon, Oct 08, 2018 at 11:24:39AM +0800, honghui.zh...@mediatek.com wrote: > Honghui Zhang (9): > PCI: mediatek: Using slot's devfn for compare to fix > mtk_pcie_find_port logic > PCI: mediatek: Fixup class ID for MT7622 as PCI_CLASS_BRIDGE_PCI > PCI: mediatek: Remove the redundant dev-

Re: [RESEND PATCH v2 0/5] net: phy: mscc: add support for VSC8584 and VSC8574 Microsemi quad-port PHYs

2018-10-08 Thread David Miller
From: Quentin Schulz Date: Mon, 8 Oct 2018 12:14:40 +0200 > RESEND: rebased on top of latest net-next and on top of latest version of > "net: phy: mscc: various improvements to Microsemi PHY driver" patch > series. Patches 1-3 applied to net-next, thanks.

Re: [PATCH] tools/lib/traceevent, tools/perf: Move struct tep_handler definition in a local header file

2018-10-08 Thread Arnaldo Carvalho de Melo
Em Fri, Oct 05, 2018 at 12:28:46PM -0400, Steven Rostedt escreveu: > On Fri, 5 Oct 2018 12:22:25 -0400 > Steven Rostedt wrote: > > > +/** > > + * tep_get_first_event - returns the first event in the events array > > + * @tep: a handle to the tep_handle > > + * > > + * This returns pointer to the

Re: [PATCH] KVM: X86: Add missing KVM_AMD dependency

2018-10-08 Thread Borislav Petkov
On Mon, Oct 08, 2018 at 02:52:46PM +, Singh, Brijesh wrote: > Does it make sense to move all the SEV specific code in svm-sev.c ? > I am looking to add SEV migration support very soon, and can see > myself adding more SEV command handling which will grow svm.c further. Amen to that - svm.c is

Re: [PATCH] PCI: expand the "PF" acronym in Kconfig help text

2018-10-08 Thread Bjorn Helgaas
On Sat, Oct 06, 2018 at 08:56:33PM -0700, Randy Dunlap wrote: > From: Randy Dunlap > > Tell users what a PCI PF is in the PCI_PF_STUB config help text. > > Fixes: a8ccf8a3 ("PCI/IOV: Add pci-pf-stub driver for PFs that only > enable VFs") > > Signed-off-by: Randy Dunlap > Cc: Alexander Du

Re: unwind_init() takes 100 ms

2018-10-08 Thread Josh Poimboeuf
On Mon, Oct 08, 2018 at 11:52:46AM +0200, Paul Menzel wrote: > Dear Josh, dear Linux folks, > > > Trying to decrease the boot time of the 64-bit Linux kernel (Linux 4.19-rc7 > (0238df64)) on a Asus F2A85-M PRO with an AMD processor, I noticed > `unwind_init()` called from `setup_arch()` `arch/x86

[PATCH] iio: dpot-dac: mark expected switch fall-through

2018-10-08 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Notice that in this particular case, I replaced "...and fall through." with a proper "fall through", which is what GCC is expecting to find. Addresses-Coverity-ID: 1462408 ("Missing break

Re: unwind_init() takes 100 ms

2018-10-08 Thread Josh Poimboeuf
On Mon, Oct 08, 2018 at 12:34:17PM -0500, Josh Poimboeuf wrote: > > 4. Would a command line parameter be reasonable `disable_unwind`, so people > > could decrease their boot time with distribution kernels, and easily turn it > > back on, when they need a stacktrace without having to rebuild the Li

Re: [PATCH v3] perf record: encode -k clockid frequency into Perf trace

2018-10-08 Thread Arnaldo Carvalho de Melo
Em Sat, Oct 06, 2018 at 04:14:11PM +0300, Alexey Budankov escreveu: > On 06.10.2018 14:51, Arnaldo Carvalho de Melo wrote: > > Em Thu, Oct 04, 2018 at 02:36:57PM +0200, Jiri Olsa escreveu: > >> On Wed, Oct 03, 2018 at 07:57:12PM +0300, Alexey Budankov wrote: > >>> > >>> Store -k clockid frequency i

[PATCH] PCI: imx: Add imx6sx suspend/resume support

2018-10-08 Thread Leonard Crestez
Enable PCI suspend/resume support on imx6sx socs. This is similar to imx7d with a few differences: * The PM_Turn_Off bit is exposed through an IOMUX GPR, like all other pcie control bits on 6sx. * The pcie_inbound_axi clk needs to be turned off in suspend. On resume it is restored via resume -> de

Re: [PATCH v3] perf record: encode -k clockid frequency into Perf trace

2018-10-08 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 03, 2018 at 07:57:12PM +0300, Alexey Budankov escreveu: > > Store -k clockid frequency into Perf trace to enable timestamps > derived metrics conversion into wall clock time on reporting stage. > +++ b/tools/perf/util/env.h > @@ -63,6 +63,7 @@ struct perf_env { > struct numa_

Re: [PATCH] drivers/vfio: Fix a redundant copy bug

2018-10-08 Thread Wenwen Wang
On Mon, Oct 8, 2018 at 11:43 AM Alex Williamson wrote: > > Hi, > > On Sun, 7 Oct 2018 09:44:25 -0500 > Wenwen Wang wrote: > > > In vfio_spapr_iommu_eeh_ioctl(), if the ioctl command is VFIO_EEH_PE_OP, > > the user-space buffer 'arg' is copied to the kernel object 'op' and the > > 'argsz' and 'fl

Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"

2018-10-08 Thread Andy Lutomirski
On Mon, Oct 8, 2018 at 10:30 AM Ard Biesheuvel wrote: > > On 8 October 2018 at 19:25, Andy Lutomirski wrote: > > On Mon, Oct 8, 2018 at 9:40 AM Peter Zijlstra wrote: > >> > >> On Mon, Oct 08, 2018 at 09:29:56AM -0700, Andy Lutomirski wrote: > >> > > >> > > >> > > On Oct 8, 2018, at 8:57 AM, Pete

Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"

2018-10-08 Thread Jiri Kosina
On Mon, 8 Oct 2018, Ard Biesheuvel wrote: > Does that mean that architectures could opt out of doing the whole > objtool + relocation processing thing, and instead take the hit of > going through the trampoline for all calls? There are architectures that aren't [currently] supported by objtool at

Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"

2018-10-08 Thread Ard Biesheuvel
On 8 October 2018 at 19:44, Jiri Kosina wrote: > On Mon, 8 Oct 2018, Ard Biesheuvel wrote: > >> Does that mean that architectures could opt out of doing the whole >> objtool + relocation processing thing, and instead take the hit of >> going through the trampoline for all calls? > > There are arch

Re: [POC][RFC][PATCH 1/2] jump_function: Addition of new feature "jump_function"

2018-10-08 Thread Andy Lutomirski
On Mon, Oct 8, 2018 at 10:44 AM Jiri Kosina wrote: > > On Mon, 8 Oct 2018, Ard Biesheuvel wrote: > > > Does that mean that architectures could opt out of doing the whole > > objtool + relocation processing thing, and instead take the hit of > > going through the trampoline for all calls? > > There

Re: [PATCH 4.18 000/228] 4.18.12-stable review

2018-10-08 Thread Rob Herring
On Sun, Oct 7, 2018 at 9:19 AM Guenter Roeck wrote: > > On Wed, Oct 03, 2018 at 11:08:47AM -0700, Guenter Roeck wrote: > > On Wed, Oct 03, 2018 at 12:53:11PM -0500, Rob Herring wrote: > > > On Wed, Oct 3, 2018 at 12:24 PM Guenter Roeck wrote: > > > > > > > > On Wed, Oct 03, 2018 at 09:25:39AM -07

Re: [PATCH v6 1/5] tools, perf, script: Add --insn-trace for instruction decoding

2018-10-08 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 20, 2018 at 11:05:36AM -0700, Andi Kleen escreveu: > From: Andi Kleen > > Add a --insn-trace short hand option for decoding and disassembling > instruction streams for intel_pt. This automatically pipes the > output into the xed disassembler to generate disassembled instructions. > Th

Re: [PATCH 7/8] mips: convert to generic builtin command line

2018-10-08 Thread Maksym Kokhan
Hi, Paul, On Thu, Sep 27, 2018 at 9:56 PM Paul Burton wrote: > > Hi Maksym, > > On Thu, Sep 27, 2018 at 07:56:57PM +0300, Maksym Kokhan wrote: > > -choice > > - prompt "Kernel command line type" if !CMDLINE_OVERRIDE > > - default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC

Re: [PATCH v1 00/11] Continuing the work on coupled regulators

2018-10-08 Thread Tony Lindgren
* Dmitry Osipenko [181005 15:43]: > 1. Re-worked the original "Add voltage balancing mechanism" patch from >Maciej by: > 1) Fixing infinite loop within regulator_balance_voltage(). > 2) Handling suspend_state_t properly. > 3) Fixing broken compilation of the patch. Tha

RE: [Ksummit-discuss] [PATCH 2/2] code-of-conduct: Strip the enforcement paragraph pending community discussion

2018-10-08 Thread Tim.Bird
> -Original Message- > From: James Bottomley > > On Mon, 2018-10-08 at 13:51 +, tim.b...@sony.com wrote: > > > -Original Message- > > > From: James Bottomley > > > On Sat, 2018-10-06 at 21:43 +, tim.b...@sony.com wrote: > > > > > -Original Message- > > > > > From: J

Re: [PATCH 2/8] drivers: of: ifdef out cmdline section

2018-10-08 Thread Maksym Kokhan
Hi, Rob On Fri, Sep 28, 2018 at 12:07 AM Rob Herring wrote: > > On Thu, Sep 27, 2018 at 11:55 AM Maksym Kokhan > wrote: > > > > From: Daniel Walker > > > > It looks like there's some seepage of cmdline stuff into > > the generic device tree code. This conflicts with the > > generic cmdline impl

Re: [PATCH v7 3/6] seccomp: add a way to get a listener fd from ptrace

2018-10-08 Thread Tycho Andersen
On Mon, Oct 08, 2018 at 05:16:30PM +0200, Christian Brauner wrote: > On Thu, Sep 27, 2018 at 09:11:16AM -0600, Tycho Andersen wrote: > > As an alternative to SECCOMP_FILTER_FLAG_GET_LISTENER, perhaps a ptrace() > > version which can acquire filters is useful. There are at least two reasons > > this

Re: [PATCH RFC] proc: Don't retain negative dentries

2018-10-08 Thread Al Viro
On Mon, Oct 08, 2018 at 07:02:09PM +0200, Ahmad Fatoum wrote: > Hello, > > On 10/8/18 6:55 PM, Al Viro wrote: > > > > What the hell does that have to do with negative dentries anywhere??? > > It's possible that this needs fixing at another place. I don't know, > but this seems to work for me, th

RE: [PATCH 4.18 222/235] drm/amd/pp: Send khz clock values to DC for smu7/8

2018-10-08 Thread Deucher, Alexander
> -Original Message- > From: Greg Kroah-Hartman > Sent: Monday, October 8, 2018 1:11 PM > To: Deucher, Alexander > Cc: linux-kernel@vger.kernel.org; sta...@vger.kernel.org; Wentland, Harry > ; Zhu, Rex ; Sasha Levin > > Subject: Re: [PATCH 4.18 222/235] drm/amd/pp: Send khz clock values

Re: [PATCH v6 1/5] tools, perf, script: Add --insn-trace for instruction decoding

2018-10-08 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 20, 2018 at 11:05:36AM -0700, Andi Kleen escreveu: > From: Andi Kleen > > Add a --insn-trace short hand option for decoding and disassembling > instruction streams for intel_pt. This automatically pipes the > output into the xed disassembler to generate disassembled instructions. > Th

Re: [PATCH v8 02/10] edac: synopsys: Rename the static functions to a shorter name

2018-10-08 Thread Borislav Petkov
On Mon, Oct 08, 2018 at 01:45:28PM +, Manish Narani wrote: > > /** > > - * synps_edac_get_eccstate - Return the controller ecc enable/disable > > status > > - * @base: Pointer to the ddr memory controller base address > > + * get_ecc_state - Return the controller ECC enable/disable status >

Re: [PATCH] ethtool: fix a privilege escalation bug

2018-10-08 Thread Michal Kubecek
On Mon, Oct 08, 2018 at 10:49:35AM -0500, Wenwen Wang wrote: > In dev_ethtool(), the eth command 'ethcmd' is firstly copied from the > use-space buffer 'useraddr' and checked to see whether it is > ETHTOOL_PERQUEUE. If yes, the sub-command 'sub_cmd' is further copied from > the user space. Otherwis

Re: [PATCH v4 2/2] PCI: amlogic: Add the Amlogic Meson PCIe controller driver

2018-10-08 Thread kbuild test robot
Hi Yue, I love your patch! Yet something to improve: [auto build test ERROR on pci/next] [also build test ERROR on v4.19-rc7 next-20181008] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

[PATCH v2] drivers/vfio: Fix a redundant copy bug

2018-10-08 Thread Wenwen Wang
In vfio_spapr_iommu_eeh_ioctl(), if the ioctl command is VFIO_EEH_PE_OP, the user-space buffer 'arg' is copied to the kernel object 'op' and the 'argsz' and 'flags' fields of 'op' are checked. If the check fails, an error code EINVAL is returned. Otherwise, 'op.op' is further checked through a swit

[PATCH v2 3/4] PCI: imx: Add multi-pd support

2018-10-08 Thread Leonard Crestez
On some chips the PCIE and PCIE_PHY blocks are in separate power domains which can be power-gated independently. The pci driver needs to handle this by keeping both domain active. This is intended for imx6sx where PCIE is in DISPLAY and PCIE_PHY in it's own domain. Defining the DISPLAY domain requ

[PATCH] phy: ocelot-serdes: fix out-of-bounds read

2018-10-08 Thread Gustavo A. R. Silva
Currently, there is an out-of-bounds read on array ctrl->phys, once variable i reaches the maximum array size of SERDES_MAX in the for loop. Fix this by changing the condition in the for loop from i <= SERDES_MAX to i < SERDES_MAX. Addresses-Coverity-ID: 1473966 ("Out-of-bounds read") Addresses-C

[PATCH v4] spi: spi-ep93xx: Use dma_data_direction for ep93xx_spi_dma_{finish,prepare}

2018-10-08 Thread Nathan Chancellor
Clang warns when one enumerated type is implicitly converted to another. drivers/spi/spi-ep93xx.c:342:62: warning: implicit conversion from enumeration type 'enum dma_transfer_direction' to different enumeration type 'enum dma_data_direction' [-Wenum-conversion] nents = dma_map_sg(chan->de

Re: [Ksummit-discuss] [PATCH 2/2] code-of-conduct: Strip the enforcement paragraph pending community discussion

2018-10-08 Thread James Bottomley
On Mon, 2018-10-08 at 17:58 +, tim.b...@sony.com wrote: > > -Original Message- > > From: James Bottomley > > > > On Mon, 2018-10-08 at 13:51 +, tim.b...@sony.com wrote: > > > > -Original Message- > > > > From: James Bottomley > > > > On Sat, 2018-10-06 at 21:43 +, tim.b

Re: [PATCH v3] perf record: encode -k clockid frequency into Perf trace

2018-10-08 Thread Alexey Budankov
Hi, On 08.10.2018 20:42, Arnaldo Carvalho de Melo wrote: > Em Wed, Oct 03, 2018 at 07:57:12PM +0300, Alexey Budankov escreveu: >> >> Store -k clockid frequency into Perf trace to enable timestamps >> derived metrics conversion into wall clock time on reporting stage. > > > >> +++ b/tools/per

Re: [PATCH v7 3/6] seccomp: add a way to get a listener fd from ptrace

2018-10-08 Thread Christian Brauner
On Mon, Oct 08, 2018 at 06:42:00PM +0200, Jann Horn wrote: > On Mon, Oct 8, 2018 at 6:21 PM Christian Brauner wrote: > > On Mon, Oct 08, 2018 at 05:33:22PM +0200, Jann Horn wrote: > > > On Mon, Oct 8, 2018 at 5:16 PM Christian Brauner > > > wrote: > > > > > > > > On Thu, Sep 27, 2018 at 09:11:16

[PATCH v3 7/7] mfd: axp20x: Add supported cells for AXP803

2018-10-08 Thread Oskari Lemmela
AXP803 is compatible with AXP813. Adding cells for GPIO, ADC, AC and battery power supplies. Signed-off-by: Oskari Lemmela --- drivers/mfd/axp20x.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 1508d9113126

[PATCH v3 6/7] mfd: axp20x: Add AC power supply cell for AXP813

2018-10-08 Thread Oskari Lemmela
As axp20x-ac-power-supply now supports AXP813, add a cell for it. Signed-off-by: Oskari Lemmela --- drivers/mfd/axp20x.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 0be511dd93d0..1508d9113126 100644 --- a/drivers/mfd/axp20x.c +++ b/d

[PATCH v3 5/7] power: supply: add AC power supply driver for AXP813

2018-10-08 Thread Oskari Lemmela
AXP813 and AXP803 PMICs can control input current and minimum voltage. Both of these values are configurable. Signed-off-by: Oskari Lemmela Reviewed-by: Quentin Schulz --- drivers/power/supply/axp20x_ac_power.c | 92 ++ include/linux/mfd/axp20x.h | 1 + 2 f

[PATCH v3 4/7] arm64: dts: allwinner: a64: sopine: enable power supplies

2018-10-08 Thread Oskari Lemmela
Sopine baseboard have ACIN and battery connectors. Signed-off-by: Oskari Lemmela --- .../boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts| 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts b/arch/arm64/boot/dts/allwinne

[PATCH v3 1/7] dt-bindings: power: supply: axp20x: add AXP813 AC power DT binding

2018-10-08 Thread Oskari Lemmela
The AXP803/AXP813 AC power supply can limit input current and voltage. Signed-off-by: Oskari Lemmela --- .../devicetree/bindings/power/supply/axp20x_ac_power.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt b/Doc

[PATCH v3 3/7] arm64: dts: allwinner: axp803: add AC and battery power supplies

2018-10-08 Thread Oskari Lemmela
AXP803 is compatible with AXP813. Add DT nodes ADC, GPIO, AC and battery power supplies. Signed-off-by: Oskari Lemmela --- arch/arm64/boot/dts/allwinner/axp803.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/axp803.dtsi b/arch/arm6

[PATCH v3 0/7] AXP8x3 AC and battery power supply support

2018-10-08 Thread Oskari Lemmela
AXP813 AC power supply support with input current and voltage limiting support. AXP803 AC and battery power supply support. Changes in v3: * Reorder ac_power_supply DT node * Rename axp20x_ac_power_set_property function * Split mfd commit Changes in v2: * Reuse axp813 compatibles for axp803 * R

Re: [PATCH v4] spi: spi-ep93xx: Use dma_data_direction for ep93xx_spi_dma_{finish,prepare}

2018-10-08 Thread Nick Desaulniers
On Mon, Oct 8, 2018 at 11:09 AM Nathan Chancellor wrote: > > Clang warns when one enumerated type is implicitly converted to another. > > drivers/spi/spi-ep93xx.c:342:62: warning: implicit conversion from > enumeration type 'enum dma_transfer_direction' to different enumeration > type 'enum dma_da

[PATCH v3 2/7] ARM: dts: axp81x: add AC power supply subnode

2018-10-08 Thread Oskari Lemmela
Add AC power supply subnode for AXP81X PMIC. Signed-off-by: Oskari Lemmela --- arch/arm/boot/dts/axp81x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/axp81x.dtsi b/arch/arm/boot/dts/axp81x.dtsi index 043c717dcef1..bd83962d3627 100644 --- a/arch/arm/boot/dts/axp8

Re: [PATCH v4 2/2] PCI: amlogic: Add the Amlogic Meson PCIe controller driver

2018-10-08 Thread kbuild test robot
Hi Yue, I love your patch! Perhaps something to improve: [auto build test WARNING on pci/next] [also build test WARNING on v4.19-rc7 next-20181008] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

[PATCH v6 3/4] dt-bindings: clock: Add bindings for ZynqMP clock driver

2018-10-08 Thread Jolly Shah
From: Rajan Vaja Add documentation to describe Xilinx ZynqMP clock driver bindings. Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah Reviewed-by: Rob Herring Reviewed-by: Stephen Boyd --- .../firmware/xilinx/xlnx,zynqmp-firmware.txt | 53 ++ include/dt-bindings/clock/xlnx,

[PATCH v6 0/4] drivers: clk: Add ZynqMP clock driver support

2018-10-08 Thread Jolly Shah
This patchset adds CCF compliant clock driver for ZynqMP.Clock driver queries supported clock information from firmware and regiters pll and output clocks with CCF. This patch series is earlier reveiwed as part of FW patchset (https://patchwork.kernel.org/cover/10555405/). FW driver from that

[PATCH v6 4/4] drivers: clk: Add ZynqMP clock driver

2018-10-08 Thread Jolly Shah
From: Jolly Shah This patch adds CCF compliant clock driver for ZynqMP. Clock driver queries supported clock information from firmware and regiters pll and output clocks with CCF. Signed-off-by: Rajan Vaja Signed-off-by: Tejas Patel Signed-off-by: Shubhrajyoti Datta Signed-off-by: Jolly Shah

Re: [Announce] LPC 2018: Testing and Fuzzing Microconference

2018-10-08 Thread Steven Rostedt
On Mon, 8 Oct 2018 19:02:51 +0200 Dmitry Vyukov wrote: > On Wed, Sep 19, 2018 at 7:13 PM, Dhaval Giani wrote: > > Hi folks, > > > > Sasha and I are pleased to announce the Testing and Fuzzing track at > > LPC [ 1 ]. We are planning to continue the discussions from last > > year's microconference

[PATCH v6 1/4] Documentation: xilinx: Add documentation for eemi APIs

2018-10-08 Thread Jolly Shah
From: Rajan Vaja Add documentation for embedded energy management interface (EEMI) APIs. It includes information about eemi ops and how to use them. It also includes API information and supported IOCTL IDs which can be used for device and control configuration. Signed-off-by: Rajan Vaja Signed-

[PATCH] PCI: amlogic: fix ptr_ret.cocci warnings

2018-10-08 Thread kbuild test robot
From: kbuild test robot drivers/pci/controller/dwc/pci-meson.c:190:1-3: WARNING: PTR_ERR_OR_ZERO can be used drivers/pci/controller/dwc/pci-meson.c:267:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/pt

Re: [PATCH] dmaengine: owl: Fix warnings generated during build

2018-10-08 Thread Andreas Färber
Am 08.10.18 um 19:16 schrieb Manivannan Sadhasivam: > Following warnings are generated when compiled with W=1, > > drivers/dma/owl-dma.c:170: warning: Function parameter or member 'cyclic' > not described in 'owl_dma_txd' > drivers/dma/owl-dma.c:198: warning: Function parameter or member 'cfg' not

RE: [PATCH v5 4/4] drivers: clk: Add ZynqMP clock driver

2018-10-08 Thread Jolly Shah
Hi Stephen, > -Original Message- > From: Stephen Boyd [mailto:sb...@kernel.org] > Sent: Sunday, October 07, 2018 7:28 PM > To: Jolly Shah ; a...@kernel.org; linux- > c...@vger.kernel.org; Michal Simek ; > mturque...@baylibre.com; o...@lixom.net; sb...@codeaurora.org > Cc: Rajan Vaja ; linu

[PATCH 4.4 001/113] crypto: skcipher - Fix -Wstringop-truncation warnings

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Stafford Horne [ Upstream commit cefd769fd0192c84d638f66da202459ed8ad63ba ] As of GCC 9.0.0 the build is reporting warnings like: crypto/ablkcipher.c: In function ‘crypto_ablkcipher_report

[PATCH 4.4 012/113] media: exynos4-is: Prevent NULL pointer dereference in __isp_video_try_fmt()

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Sylwester Nawrocki [ Upstream commit 7c1b9a5aeed91bef98988ac0fcf38c8c1f4f9a3a ] This patch fixes potential NULL pointer dereference as indicated by the following static checker warning: driver

[PATCH 4.4 010/113] 6lowpan: iphc: reset mac_header after decompress to fix panic

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Michael Scott [ Upstream commit 03bc05e1a4972f73b4eb8907aa373369e825c252 ] After decompression of 6lowpan socket data, an IPv6 header is inserted before the existing socket payload. After this

[PATCH 4.4 011/113] md-cluster: clear another nodes suspend_area after the copy is finished

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Guoqing Jiang [ Upstream commit 010228e4a932ca1e8365e3b58c8e1e44c16ff793 ] When one node leaves cluster or stops the resyncing (resync or recovery) array, then other nodes need to call recover_

[PATCH 4.4 014/113] media: fsl-viu: fix error handling in viu_of_probe()

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alexey Khoroshilov [ Upstream commit 662a99e145661c2b35155cf375044deae9b79896 ] viu_of_probe() ignores fails in i2c_get_adapter(), tries to unlock uninitialized mutex on error path. The patch

[PATCH 4.4 015/113] x86/tsc: Add missing header to tsc_msr.c

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Andy Shevchenko [ Upstream commit dbd0fbc76c77daac08ddd245afdcbade0d506e19 ] Add a missing header otherwise compiler warns about missed prototype: CC arch/x86/kernel/tsc_msr.o arch/x86/ke

[PATCH 4.4 013/113] powerpc/kdump: Handle crashkernel memory reservation failure

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Hari Bathini [ Upstream commit 8950329c4a64c6d3ca0bc34711a1afbd9ce05657 ] Memory reservation for crashkernel could fail if there are holes around kdump kernel offset (128M). Fail gracefully in

[PATCH 4.4 016/113] x86/entry/64: Add two more instruction suffixes

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jan Beulich [ Upstream commit 6709812f094d96543b443645c68daaa32d3d3e77 ] Sadly, other than claimed in: a368d7fd2a ("x86/entry/64: Add instruction suffix") ... there are two more instances w

[PATCH 4.4 019/113] scsi: ibmvscsi: Improve strings handling

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Breno Leitao [ Upstream commit 1262dc09dc9ae7bf4ad00b6a2c5ed6a6936bcd10 ] Currently an open firmware property is copied into partition_name variable without keeping a room for \0. Later one, t

[PATCH 4.4 017/113] scsi: target/iscsi: Make iscsit_ta_authentication() respect the output buffer size

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche [ Upstream commit 35bea5c84fd13c643cce63f0b5cd4b148f8c901d ] Fixes: e48354ce078c ("iscsi-target: Add iSCSI fabric support for target v4.1") Signed-off-by: Bart Van Assche Revie

[PATCH 4.4 018/113] scsi: klist: Make it safe to use klists in atomic context

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche [ Upstream commit 624fa7790f80575a4ec28fbdb2034097dc18d051 ] In the scsi_transport_srp implementation it cannot be avoided to iterate over a klist from atomic context when using

[PATCH 4.4 003/113] vmci: type promotion bug in qp_host_get_user_memory()

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter [ Upstream commit 7fb2fd4e25fc1fb10dcb30b5519de257cfeae84c ] The problem is that if get_user_pages_fast() fails and returns a negative error code, it gets type promoted to a high

[PATCH 4.4 020/113] usb: wusbcore: security: cast sizeof to int for comparison

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Julia Lawall [ Upstream commit d3ac5598c5010a878ebbcca3b1c6188ca36b ] Comparing an int to a size, which is unsigned, causes the int to become unsigned, giving the wrong result. usb_get_des

[PATCH 4.4 002/113] tsl2550: fix lux1_input error in low light

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Matt Ranostay [ Upstream commit ce054546cc2c26891cefa2f284d90d93b52205de ] ADC channel 0 photodiode detects both infrared + visible light, but ADC channel 1 just detects infrared. However, the

[PATCH 4.4 007/113] power: vexpress: fix corruption in notifier registration

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Sudeep Holla [ Upstream commit 09bebb1adb21ecd04adf7ccb3b06f73e3a851e93 ] Vexpress platforms provide two different restart handlers: SYS_REBOOT that restart the entire system, while DB_RESET on

[PATCH 4.4 008/113] Bluetooth: Add a new Realtek 8723DE ID 0bda:b009

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jian-Hong Pan [ Upstream commit 45ae68b8cfc25bdbffc11248001c47ab1b76ff6e ] Without this patch we cannot turn on the Bluethooth adapter on HP 14-bs007la. T: Bus=01 Lev=02 Prnt=03 Port=00 Cnt=0

[PATCH 4.4 005/113] staging: rts5208: fix missing error check on call to rtsx_write_register

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Colin Ian King [ Upstream commit c5fae4f4fd28189b1062fb8ef7b21fec37cb8b17 ] Currently the check on error return from the call to rtsx_write_register is checking the error status from the previo

[PATCH 4.4 004/113] x86/numa_emulation: Fix emulated-to-physical node mapping

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dan Williams [ Upstream commit 3b6c62f363a19ce82bf378187ab97c9dc01e3927 ] Without this change the distance table calculation for emulated nodes may use the wrong numa node and report an incorre

[PATCH 4.4 006/113] uwb: hwa-rc: fix memory leak at probe

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Anton Vasilyev [ Upstream commit 11b71782c1d10d9bccc31825cf84291cd7588a1e ] hwarc_probe() allocates memory for hwarc, but does not free it if uwb_rc_add() or hwarc_get_version() fail. Found by

[PATCH 4.4 009/113] USB: serial: kobil_sct: fix modem-status error handling

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold [ Upstream commit a420b5d939ee58f1d950f0ea782834056520aeaa ] Make sure to return -EIO in case of a short modem-status read request. While at it, split the debug message to not inc

[PATCH 4.4 033/113] rndis_wlan: potential buffer overflow in rndis_wlan_auth_indication()

2018-10-08 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter [ Upstream commit ae636fb1554833ee5133ca47bf4b2791b6739c52 ] This is a static checker fix, not something I have tested. The issue is that on the second iteration through the loop

<    5   6   7   8   9   10   11   12   13   >