Re: WMI and Kernel:User interface

2017-06-13 Thread Darren Hart
On Tue, Jun 13, 2017 at 06:05:47PM +0200, Greg Kroah-Hartman wrote: > On Tue, Jun 13, 2017 at 08:44:19AM -0700, Darren Hart wrote: > > > In some cases filter function can be simple in some cases hard. I can > > > image that usage of while listing, plus in some cases also filtering > > > (when it wo

Re: [Merge tag 'pci-v4.12-changes' of git] 857f864014: BUG: unable to handle kernel NULL pointer dereference at 00000000000000a8

2017-06-13 Thread Logan Gunthorpe
On 12/06/17 10:35 PM, Greg Kroah-Hartman wrote: > Or better yet, just turn all char major allocations into dynamic, which > would be really good for test systems. I thought someone proposed > patches for that a long time ago, but I can't find them anymore. That > would be the simplest solution

[PATCH] power_supply: add max1721x_battery driver

2017-06-13 Thread Alex A. Mihaylov
Maxim Integrated MAX17211/MAX17215 Standalone Fuel Gauge IC with 1-Wire interface. MAX17215 sinle cell version, MAX17211 multicell with cell ballancing. This driver use regmap-w1 infrastucture. Waiting for other patches for 1-Wire. This time for review only. Signed-off-by: Alex A. Mihaylov ---

[PATCH 2/8] x86/mce/AMD: Use saved threshold block info in interrupt handler

2017-06-13 Thread Borislav Petkov
From: Yazen Ghannam In the amd_threshold_interrupt() handler, we loop through every possible block in each bank and rediscover the block's address and if it's valid, e.g. valid, counter present and not locked. However, we already have the address saved in the threshold blocks list for each CPU a

[PATCH 4/8] x86/mce: Get rid of register_mce_write_callback()

2017-06-13 Thread Borislav Petkov
From: Borislav Petkov Make the mcelog call a notifier which lands in the injector module and does the injection. This allows for mce-inject to be a normal kernel module now. Signed-off-by: Borislav Petkov Acked-by: Yazen Ghannam Tested-by: Yazen Ghannam --- arch/x86/include/asm/mce.h

[PATCH 7/8] x86/mce: Don't disable MCA banks when offlining a CPU on AMD

2017-06-13 Thread Borislav Petkov
From: Yazen Ghannam AMD systems have non-core, shared MCA banks within a die. These banks are controlled by a master CPU per die. If this CPU is offlined then all the shared banks are disabled in addition to the CPU's core banks. Also, Fam17h systems may have SMT enabled. The MCA_CTL register is

[PATCH 5/8] x86/mce: Cleanup include files

2017-06-13 Thread Borislav Petkov
From: Borislav Petkov Not really needed. Signed-off-by: Borislav Petkov Acked-by: Yazen Ghannam Tested-by: Yazen Ghannam --- arch/x86/kernel/cpu/mcheck/mce-inject.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce-inject.c b/arch/x86/kernel/cpu/m

[PATCH 3/8] x86/mce: Merge mce_amd_inj into mce-inject

2017-06-13 Thread Borislav Petkov
From: Borislav Petkov Reuse mce_amd_inj's debugfs interface so that mce-inject can benefit from it too. The old functionality is still preserved under CONFIG_X86_MCELOG_LEGACY. Signed-off-by: Borislav Petkov Acked-by: Yazen Ghannam Tested-by: Yazen Ghannam --- arch/x86/Kconfig

[PATCH 8/8] x86/mce: Update bootlog description to reflect behavior on AMD

2017-06-13 Thread Borislav Petkov
From: Yazen Ghannam The bootlog option is only disabled by default on AMD Fam10h and older systems. Update bootlog description to say this. Change the family value to hex to avoid confusion. Signed-off-by: Yazen Ghannam Cc: Tony Luck Cc: linux-edac Link: http://lkml.kernel.org/r/1497037244-

[PATCH] dt-bindings: usb: exynos-usb: Add missing required VDD properties

2017-06-13 Thread Krzysztof Kozlowski
Since commit bd8ce544ec35 ("usb: dwc3: exynos: Make provision for vdd regulators") vdd33-supply and vdd10-supply are required so document them in bindings. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/usb/exynos-usb.txt | 4 1 file changed, 4 insertions(+) diff

[PATCH 6/8] x86/mce/mce-inject: Preset the MCE injection struct

2017-06-13 Thread Borislav Petkov
From: Borislav Petkov Populate the MCE injection struct before doing initial injection so that values which don't change have sane defaults. Signed-off-by: Borislav Petkov Acked-by: Yazen Ghannam Tested-by: Yazen Ghannam --- arch/x86/kernel/cpu/mcheck/mce-inject.c | 9 + 1 file chang

[PATCH 0/8] RAS: 4.13 pile, part 2

2017-06-13 Thread Borislav Petkov
From: Borislav Petkov Hi guys, here's the second pile of RAS updates which merges the mce_amd_inj functionality into mce-inject. Now we have a single error injector module which we can use on anything. Also, it is a true module now as we're getting rid of register_mce_write_callback() and repla

[PATCH 1/8] x86/mce/AMD: Use msr_stat when clearing MCA_STATUS

2017-06-13 Thread Borislav Petkov
From: Yazen Ghannam The value of MCA_STATUS is used as the MSR when clearing MCA_STATUS. This may cause the following warning: unchecked MSR access error: WRMSR to 0x11b (tried to write 0x) Call Trace: ? amd_threshold_interrupt+0x209/0x220 smp_threshold_interrupt+0x1b/0x

Re: [PATCH v2] xen/mce: don't issue error message for failed /dev/mcelog registration

2017-06-13 Thread Joe Perches
On Tue, 2017-06-13 at 18:13 +0200, Juergen Gross wrote: > On 13/06/17 17:20, Ingo Molnar wrote: > > * Juergen Gross wrote: > > > > > When running under Xen as dom0 /dev/mcelog is being registered by Xen > > > instead of the normal mcelog driver. Avoid an error message being > > > issued by the mc

Re: [Merge tag 'pci-v4.12-changes' of git] 857f864014: BUG: unable to handle kernel NULL pointer dereference at 00000000000000a8

2017-06-13 Thread Greg Kroah-Hartman
On Tue, Jun 13, 2017 at 10:25:40AM -0600, Logan Gunthorpe wrote: > > > On 12/06/17 10:35 PM, Greg Kroah-Hartman wrote: > > Or better yet, just turn all char major allocations into dynamic, which > > would be really good for test systems. I thought someone proposed > > patches for that a long tim

[PATCH 11/11] Staging: rtl8712: ieee80211: fixed coding style issue

2017-06-13 Thread Jaya Durga
Fixed WARNING: line over 80 characters Signed-off-by: Jaya Durga --- drivers/staging/rtl8712/ieee80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/ieee80211.c b/drivers/staging/rtl8712/ieee80211.c index 97ef063..b823656 100644 --- a/drivers/stag

[PATCH] nfc: nci: remove unnecessary null check

2017-06-13 Thread Gustavo A. R. Silva
Remove unnecessary NULL check for pointer conn_info. conn_info is set in list_for_each_entry() using container_of(), which is never NULL. Addresses-Coverity-ID: 1362349 Cc: Guenter Roeck Signed-off-by: Gustavo A. R. Silva --- net/nfc/nci/core.c | 9 - 1 file changed, 4 insertions(+), 5

Re: WMI and Kernel:User interface

2017-06-13 Thread Darren Hart
On Tue, Jun 13, 2017 at 08:56:42AM -0700, Andy Lutomirski wrote: > On Tue, Jun 13, 2017 at 8:50 AM, Greg Kroah-Hartman > wrote: > > On Tue, Jun 13, 2017 at 08:38:57AM -0700, Darren Hart wrote: > >> On Tue, Jun 13, 2017 at 12:05:35AM -0700, Christoph Hellwig wrote: > >> > Hi Darren, > >> > > >> > f

Re: [PATCH] Add printk for bonding module packets_per_slave parameter

2017-06-13 Thread Jonathan Toppins
On 06/13/2017 12:21 PM, Joe Perches wrote: > On Tue, 2017-06-13 at 11:34 -0400, David Miller wrote: >> From: Michael Dilmore >> Date: Tue, 13 Jun 2017 14:42:46 +0100 >> >>> The packets per slave parameter used by round robin mode does not have a >>> printk debug >>> message in its set function in

[PATCH] nfc: Add sockaddr length checks before accessing sa_family in bind handlers

2017-06-13 Thread Mateusz Jurczyk
Verify that the caller-provided sockaddr structure is large enough to contain the sa_family field, before accessing it in bind() handlers of the AF_NFC socket. Since the syscall doesn't enforce a minimum size of the corresponding memory region, very short sockaddrs (zero or one byte long) result in

Re: [PATCH 1/3] kbuild: Add cc-option-no-kbuild macro

2017-06-13 Thread Matthias Kaehlcke
El Tue, Jun 13, 2017 at 07:13:55PM +0900 Masahiro Yamada ha dit: > 2017-06-13 17:31 GMT+09:00 Arnd Bergmann : > > On Tue, Jun 13, 2017 at 9:49 AM, Michal Marek wrote: > >> On 2017-06-13 02:55, Matthias Kaehlcke wrote: > >>> cc-option uses KBUILD_CFLAGS and KBUILD_CPPFLAGS when it determines > >>>

Re: [PATCH] Add printk for bonding module packets_per_slave parameter

2017-06-13 Thread David Miller
From: Joe Perches Date: Tue, 13 Jun 2017 09:21:03 -0700 > On Tue, 2017-06-13 at 11:34 -0400, David Miller wrote: >> From: Michael Dilmore >> Date: Tue, 13 Jun 2017 14:42:46 +0100 >> >> > The packets per slave parameter used by round robin mode does not have a >> > printk debug >> > message in

Re: [PATCH v1 00/11] mm/kasan: support per-page shadow memory to reduce memory consumption

2017-06-13 Thread Andrey Ryabinin
On 06/08/2017 05:40 AM, Joonsoo Kim wrote: >>> >>> I don't understand why we trying to invent some hacky/complex schemes when >>> we already have >>> a simple one - scaling shadow to 1/32. It's easy to implement and should be >>> more performant comparing >>> to suggested schemes. >> >> >> If 32-

Re: [PATCH 0/7] Enable iSCSI offload drivers to use information from iface.

2017-06-13 Thread Robert LeBlanc
On Wed, Jun 7, 2017 at 12:30 PM, Robert LeBlanc wrote: > On Wed, Jun 7, 2017 at 10:28 AM, Chris Leech wrote: >> On Tue, Jun 06, 2017 at 12:07:10PM -0600, Robert LeBlanc wrote: >>> This patchset enables iSCSI offload drivers to have access to the iface >>> information provided by iscsid. This allo

Re: [PATCH net-next] of_mdio: move of_mdio_parse_addr to header file

2017-06-13 Thread Florian Fainelli
On 06/13/2017 07:56 AM, Jon Mason wrote: > The of_mdio_parse_addr() helper function is useful to other code, but > the module dependency chain causes issues. To work around this, we can > move of_mdio_parse_addr() to be an inline function in the header file. > This gets rid of the dependencies and

Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number

2017-06-13 Thread Darren Hart
On Sat, Jun 10, 2017 at 09:15:57PM +0200, Pali Rohár wrote: > On Saturday 27 May 2017 13:55:34 Pali Rohár wrote: > > instance_count defines number of instances of data block and instance > > itself is indexed from zero, which means first instance has number 0. > > Therefore check for invalid instan

Re: WMI and Kernel:User interface

2017-06-13 Thread Greg Kroah-Hartman
On Tue, Jun 13, 2017 at 09:22:42AM -0700, Darren Hart wrote: > On Tue, Jun 13, 2017 at 05:50:00PM +0200, Greg Kroah-Hartman wrote: > > > The patch is trivial, but the process is time consuming. Two to Three > > > months to see an ID added and released is big blocker for contemporary > > > life cycl

Re: [PATCH v2] platform/x86: wmi: Fix printing info about WDG structure

2017-06-13 Thread Darren Hart
On Sat, Jun 10, 2017 at 02:22:50PM +0300, Andy Shevchenko wrote: > On Sat, Jun 10, 2017 at 1:57 PM, Pali Rohár wrote: > > object_id and notify_id are in one union structure and their meaning is > > defined by flags. Therefore do not print notify_id for non-event block and > > do not print object_i

Re: [PATCH v6 3/3] PCI: Add tango MSI controller support

2017-06-13 Thread Marc Zyngier
On 13/06/17 15:47, Marc Gonzalez wrote: > On 13/06/2017 16:22, Marc Zyngier wrote: >> On 13/06/17 15:01, Marc Gonzalez wrote: >>> The MSI controller in Tango supports 256 message-signaled interrupts, >>> and a single doorbell address. >>> >>> Signed-off-by: Marc Gonzalez >>> --- >>> Changes from v

Re: [PATCH 01/12] coresight replicator: Cleanup programmable replicator naming

2017-06-13 Thread Mathieu Poirier
On Mon, Jun 12, 2017 at 03:36:40PM +0100, Suzuki K Poulose wrote: > The Linux coresight drivers define the programmable ATB replicator as > Qualcom replicator, while this is designed by ARM. This can cause confusion > to a user selecting the driver. Cleanup all references to make it > explicitly c

Re: WMI and Kernel:User interface

2017-06-13 Thread Greg KH
On Tue, Jun 13, 2017 at 04:12:41PM +, mario.limoncie...@dell.com wrote: > > > So 2-3 months seems really long to me. > > > > > > > Unless you catch the cycle just right, 8 weeks is normal for the delay to > get a patch through a distro to an end user's machine. > They go through their own st

Re: [PATCH v3] PCI: Workaround wrong flags completions for IDT switch

2017-06-13 Thread Yinghai Lu
On Mon, Jun 12, 2017 at 2:48 PM, Bjorn Helgaas wrote: > On Fri, Jun 09, 2017 at 04:16:17PM -0700, Yinghai Lu wrote: >> From: James Puthukattukaran >> >> The IDT switch incorrectly flags an ACS source violation on a read config >> request to an end point device on the completion (IDT 89H32H8G3-YC,

Re: [PATCH] Add printk for bonding module packets_per_slave parameter

2017-06-13 Thread Joe Perches
On Tue, 2017-06-13 at 12:42 -0400, Jonathan Toppins wrote: > On 06/13/2017 12:21 PM, Joe Perches wrote: > > On Tue, 2017-06-13 at 11:34 -0400, David Miller wrote: > > > From: Michael Dilmore > > > Date: Tue, 13 Jun 2017 14:42:46 +0100 > > > > > > > The packets per slave parameter used by round ro

Re: [PATCH v6] mtd: handle partitioning on devices with 0 erasesize

2017-06-13 Thread Brian Norris
On Sat, Jun 10, 2017 at 08:00:42AM +0200, Boris Brezillon wrote: > On Fri, 9 Jun 2017 15:58:31 +1200 > Chris Packham wrote: > > > erasesize is meaningful for flash devices but for SRAM there is no > > concept of an erase block so erasesize is set to 0. When partitioning > > these devices instead

Re: [PATCH net-next v2 0/2] r8152: adjust runtime suspend/resume

2017-06-13 Thread David Miller
From: Hayes Wang Date: Tue, 13 Jun 2017 15:14:38 +0800 > v2: > For #1, replace GFP_KERNEL with GFP_NOIO for usb_submit_urb(). > > v1: > Improve the flow about runtime suspend/resume and make the code > easy to read. Series applied.

Re: [PATCH] netconsole: Remove duplicate "netconsole: " logging prefix

2017-06-13 Thread David Miller
From: Joe Perches Date: Mon, 12 Jun 2017 16:39:51 -0700 > It's already added by pr_fmt so remove the explicit use. > > Signed-off-by: Joe Perches Applied.

Re: [PATCH net] net: phy: Fix MDIO_THUNDER dependencies

2017-06-13 Thread David Miller
From: Florian Fainelli Date: Mon, 12 Jun 2017 17:18:51 -0700 > After commit 90eff9096c01 ("net: phy: Allow splitting MDIO > bus/device support from PHYs") we could create a configuration where > MDIO_DEVICE=y and PHYLIB=m which leads to the following undefined > references: > > drivers/built-in

Re: WMI and Kernel:User interface

2017-06-13 Thread Darren Hart
On Tue, Jun 13, 2017 at 06:52:47PM +0200, Greg Kroah-Hartman wrote: > > As a concrete example, Dell has specifically made the request that we > > work on a solution that doesn't require them to come back to the kernel > > community each time they add a WMI GUID to their BIOS. They would like > > to

RE: [PATCH net-next 1/9] net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC

2017-06-13 Thread Salil Mehta
Hi Yuval > -Original Message- > From: Mintz, Yuval [mailto:yuval.mi...@cavium.com] > Sent: Saturday, June 10, 2017 1:43 PM > To: Salil Mehta; da...@davemloft.net > Cc: Zhuangyuzeng (Yisen); huangdaode; lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@vger.ke

Re: [PATCH v4] Introduce v3 namespaced file capabilities

2017-06-13 Thread Tycho Andersen
Hi Stefan, On Tue, Jun 13, 2017 at 11:47:26AM -0400, Stefan Berger wrote: > On 05/08/2017 02:11 PM, Serge E. Hallyn wrote: > > Root in a non-initial user ns cannot be trusted to write a traditional > > security.capability xattr. If it were allowed to do so, then any > > unprivileged user on the h

RE: [PATCH net-next 8/9] net: hns3: Add support of debugfs interface to HNS3 driver

2017-06-13 Thread Salil Mehta
HI Yuval, > -Original Message- > From: Mintz, Yuval [mailto:yuval.mi...@cavium.com] > Sent: Saturday, June 10, 2017 1:52 PM > To: Salil Mehta; da...@davemloft.net > Cc: Zhuangyuzeng (Yisen); huangdaode; lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@vger.k

Re: WMI and Kernel:User interface

2017-06-13 Thread Pali Rohár
On Tuesday 13 June 2017 17:38:57 Darren Hart wrote: > I'll mention this again I suspect in this thread, but rather than a > "WMI filter" we can implement a "WMI proxy". If a kernel driver > needs to own certain WMI calls for LED or Radio management, for > example, all such calls can be proxied thro

RE: [PATCH net-next 8/9] net: hns3: Add support of debugfs interface to HNS3 driver

2017-06-13 Thread Salil Mehta
Hi Andrew, > -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Saturday, June 10, 2017 5:36 PM > To: Mintz, Yuval > Cc: Salil Mehta; da...@davemloft.net; Zhuangyuzeng (Yisen); huangdaode; > lipeng (Y); mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@

[PATCH net-next 3/3] ip6mr: add netlink notifications on mrt6msg cache reports

2017-06-13 Thread Julien Gomes
Add Netlink notifications on cache reports in ip6mr, in addition to the existing mrt6msg sent to mroute6_sk. Send RTM_NEWCACHEREPORT notifications to RTNLGRP_IPV6_MROUTE. MSGTYPE, MIF_ID, SRC_ADDR and DST_ADDR Netlink attributes contain the same data as their equivalent fields in the mrt6msg heade

[PATCH net-next 2/3] ipmr: add netlink notifications on igmpmsg cache reports

2017-06-13 Thread Julien Gomes
Add Netlink notifications on cache reports in ipmr, in addition to the existing igmpmsg sent to mroute_sk. Send RTM_NEWCACHEREPORT notifications to RTNLGRP_IPV4_MROUTE. MSGTYPE, VIF_ID, SRC_ADDR and DST_ADDR Netlink attributes contain the same data as their equivalent fields in the igmpmsg header.

[PATCH net-next 0/3] ipmr/ip6mr: add Netlink notifications on cache reports

2017-06-13 Thread Julien Gomes
Currently, all ipmr/ip6mr cache reports are sent through the mroute/mroute6 socket only. This forces the use of a single socket for mroute programming, cache reports and, regarding ipmr, IGMP messages without Router Alert option reception. The present patches are aiming to send Netlink notificatio

Re: [PATCH v4] Introduce v3 namespaced file capabilities

2017-06-13 Thread Serge E. Hallyn
Quoting Stefan Berger (stef...@linux.vnet.ibm.com): > On 05/08/2017 02:11 PM, Serge E. Hallyn wrote: > >Root in a non-initial user ns cannot be trusted to write a traditional > >security.capability xattr. If it were allowed to do so, then any > >unprivileged user on the host could map his own uid

[PATCH net-next 1/3] rtnetlink: add NEWCACHEREPORT message type

2017-06-13 Thread Julien Gomes
New NEWCACHEREPORT message type to be used for cache reports sent via Netlink, effectively allowing splitting cache report reception from mroute programming. Suggested-by: Ryan Halbrook Signed-off-by: Julien Gomes --- include/uapi/linux/rtnetlink.h | 3 +++ security/selinux/nlmsgtab.c| 3 ++

[PATCH] via-rhine: add support for changing MTU

2017-06-13 Thread Magnus Damm
. Signed-off-by: Magnus Damm --- Developed on top of next-20170613 drivers/net/ethernet/via/via-rhine.c | 19 +++ 1 file changed, 19 insertions(+) --- 0001/drivers/net/ethernet/via/via-rhine.c +++ work/drivers/net/ethernet/via/via-rhine.c 2017-06-14 02:05:25.410607110 +0900

Re: [PATCH v2 2/4] spi: rockchip: add support for "cs-gpios" dts property

2017-06-13 Thread kbuild test robot
Hi Jeffy, [auto build test ERROR on rockchip/for-next] [also build test ERROR on v4.12-rc5 next-20170613] [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/Jeffy-Chen/spi-rockchip-fix-error

Re: [PATCH 3/3] x86/build: Specify stack alignment for clang

2017-06-13 Thread Matthias Kaehlcke
El Tue, Jun 13, 2017 at 08:38:00AM +0200 Ingo Molnar ha dit: > > * Matthias Kaehlcke wrote: > > > For gcc stack alignment is configured with -mpreferred-stack-boundary=N, > > clang has the option -mstack-alignment=N for that purpose. Use the same > > alignment as for gcc. > > > > If the alignm

Lockdep splat with tc filter on 4.11

2017-06-13 Thread Laura Abbott
Hi, Fedora got a bug report https://bugzilla.redhat.com/show_bug.cgi?id=1459626 of a hang on 4.11.3 with lockdep splat: [ 129.100206] BUG: sleeping function called from invalid context at mm/slab.h:432 [ 129.100237] in_atomic(): 1, irqs_disabled(): 0, pid: 1793, name: tc [ 129.100239] 2 locks

Re: [PATCH] usb: host: ehci: workaround PME bug on AMD EHCI controller

2017-06-13 Thread Bjorn Helgaas
[+cc Rafael, linux-pm] On Tue, Jun 13, 2017 at 12:21:15PM +0800, Kai-Heng Feng wrote: > On Mon, Jun 12, 2017 at 10:18 PM, Alan Stern > wrote: > > Let's get some help from people who understand PCI well. > > > > Here's the general problem: Kai-Heng has a PCI-based USB host > > controller that adv

Re: [PATCH v2 1/4] spi: rockchip: fix error handling when probe

2017-06-13 Thread Brian Norris
On Tue, Jun 13, 2017 at 01:25:40PM +0800, Jeffy Chen wrote: > After failed to request dma tx chain, we need to disable pm_runtime. > Also cleanup error labels for better readability. > > Signed-off-by: Jeffy Chen > --- > > Changes in v2: None Looks good to me. I guess the original code was sort

Re: [PATCH 0/3] livepatch: add shadow variable API

2017-06-13 Thread Joe Lawrence
On 06/13/2017 06:19 AM, Miroslav Benes wrote: >> If you are referring to stacking livepatches ... to be honest I hadn't >> thought of that scenario. In that case, we might be able to get away >> with pushing something like this into the hash: >> >> klp #1: klp_shadow_attach(ptr, "shadow_var", ..

Re: CRASH : RCU detected stall

2017-06-13 Thread Theodore Ts'o
On Tue, Jun 13, 2017 at 07:35:37PM +0430, Ramin Farajpour Cami wrote: > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller > version (4.12-rc5) > > https://groups.google.com/forum/#!topic/syzkaller/4e8MkNnRFRQ Can you reliably reproduce this failure? If so, plea

Re: [PATCH 3/3] livepatch: add shadow variable sample program

2017-06-13 Thread Joe Lawrence
On 06/13/2017 07:00 AM, Miroslav Benes wrote: > On Thu, 1 Jun 2017, Joe Lawrence wrote: > >> Modify the sample livepatch to demonstrate the shadow variable API. >> >> Signed-off-by: Joe Lawrence >> --- >> samples/livepatch/livepatch-sample.c | 39 >> +++- >> 1 fi

Re: [PATCH v2 2/4] spi: rockchip: add support for "cs-gpios" dts property

2017-06-13 Thread Brian Norris
Hi Jeffy, On Tue, Jun 13, 2017 at 01:25:41PM +0800, Jeffy Chen wrote: > Support using "cs-gpios" property to specify cs gpios. > > Signed-off-by: Jeffy Chen > 1/ request cs gpios in probe for better error handling > 2/ use gpiod* function > (suggested by Heiko Stuebner) > > 3/ split dt-binding

Re: WMI and Kernel:User interface

2017-06-13 Thread Darren Hart
On Tue, Jun 13, 2017 at 07:16:11PM +0200, Pali Rohár wrote: > On Tuesday 13 June 2017 17:38:57 Darren Hart wrote: > > I'll mention this again I suspect in this thread, but rather than a > > "WMI filter" we can implement a "WMI proxy". If a kernel driver > > needs to own certain WMI calls for LED or

Re: [PATCH v4] Introduce v3 namespaced file capabilities

2017-06-13 Thread Stefan Berger
On 06/13/2017 01:14 PM, Tycho Andersen wrote: Hi Stefan, On Tue, Jun 13, 2017 at 11:47:26AM -0400, Stefan Berger wrote: On 05/08/2017 02:11 PM, Serge E. Hallyn wrote: Root in a non-initial user ns cannot be trusted to write a traditional security.capability xattr. If it were allowed to do so,

[PATCH] af_iucv: Move sockaddr length checks to before accessing sa_family in bind and connect handlers

2017-06-13 Thread Mateusz Jurczyk
Verify that the caller-provided sockaddr structure is large enough to contain the sa_family field, before accessing it in bind() and connect() handlers of the AF_IUCV socket. Since neither syscall enforces a minimum size of the corresponding memory region, very short sockaddrs (zero or one byte lon

Re: WMI and Kernel:User interface

2017-06-13 Thread Pali Rohár
Hi Greg! I will try to explain that problem with calling WMI functions. On Tuesday 13 June 2017 18:57:14 Greg KH wrote: > > Getting there requires work in a few areas: > > 1) The OEM/IBV exports the methods and the MOF (in binary form) > > that describes the objects that can be interacted with and

[GIT PULL 2/4] bcm2835-maintainers-next-2017-06-08

2017-06-13 Thread Eric Anholt
The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) are available in the git repository at: git://github.com/anholt/linux tags/bcm2835-maintainers-next-2017-06-08 for you to fetch changes up to c5c168b66f5b3cb77bf57d84bf624

[GIT PULL 1/4] bcm2835-defconfig-next-2017-06-12

2017-06-13 Thread Eric Anholt
The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) are available in the git repository at: git://github.com/anholt/linux tags/bcm2835-defconfig-next-2017-06-12 for you to fetch changes up to 3e9aaaf1d814586404dc93461ec955d

[GIT PULL 3/4] bcm2835-dt-next-2017-06-12

2017-06-13 Thread Eric Anholt
The following changes since commit 1f8216e7f78c2e55b07117c77887a314bc36f690: Merge tag 'bcm2835-dt-next-2017-03-30' into devicetree/next (2017-05-13 20:22:59 -0700) are available in the git repository at: git://github.com/anholt/linux tags/bcm2835-dt-next-2017-06-12 for you to fetch change

[GIT PULL 4/4] bcm2835-dt-64-next-2017-06-08

2017-06-13 Thread Eric Anholt
Hi Florian, Here's the last pull request in this series. I've based this summary on the bcm2835-dt-next tag, to clarify what's in this patch series, but it does require being careful since it involves a cross-merge between branches. The following changes since commit a19adf8d86e822eba50248652412

Re: [PATCH v2 1/2] regulator: tps65910: check TPS65910_NUM_REGS at build time

2017-06-13 Thread Mark Brown
On Tue, Jun 13, 2017 at 04:41:56PM +0200, Michał Mirosław wrote: > Check TPS65910_NUM_REGS at build time instead of silently registering > not all regulators at runtime. Please don't send new versions of patches in reply to existing threads, it makes it hard to figure out what the current versions

Re: usb/gadget: potential deadlock in gadgetfs_suspend

2017-06-13 Thread Alan Stern
On Tue, 13 Jun 2017, Andrey Konovalov wrote: > Hi Alan, > > Thanks for the patch! > > I've been testing with your patch applied and the "bad spinlock magic" > crashes seem to be gone. However I got another crash (happened only > once over the night), which happens during "spin_lock_irqsave > (&d

Re: [PATCH v4] Introduce v3 namespaced file capabilities

2017-06-13 Thread James Bottomley
On Tue, 2017-06-13 at 11:14 -0600, Tycho Andersen via Containers wrote: > Hi Stefan, > > On Tue, Jun 13, 2017 at 11:47:26AM -0400, Stefan Berger wrote: > > On 05/08/2017 02:11 PM, Serge E. Hallyn wrote: > > > Root in a non-initial user ns cannot be trusted to write a > > > traditional security.ca

Re: [PATCH 04/12] coresight: Add support for reading 64bit registers

2017-06-13 Thread Mathieu Poirier
On Mon, Jun 12, 2017 at 03:36:43PM +0100, Suzuki K Poulose wrote: > Add support for reading a lower and upper 32bits of a register > as a single 64bit register. > > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose Just a few cosmetic details... > --- > drivers/hwtracing/coresight/coresig

Re: [PATCH v1 1/2] dt-binding: ptp: add bindings document for dte based ptp clock

2017-06-13 Thread Arun Parameswaran
Hi Richard, On 17-06-12 10:09 PM, Richard Cochran wrote: > On Mon, Jun 12, 2017 at 01:26:00PM -0700, Arun Parameswaran wrote: >> +Example: >> + >> +ptp_dte: ptp_dte@180af650 { >> +compatible = "brcm,ptp-dte"; >> +reg = <0x180af650 0x10>; >> +status = "okay"; >> +}; > This patch set lo

Re: [PATCH v2 2/2] regulator: tps65910: Allow supply references to the same chip

2017-06-13 Thread Mark Brown
On Tue, Jun 13, 2017 at 04:41:58PM +0200, Michał Mirosław wrote: > This allows for (acyclic) references from tps6591x supplies to > its outputs. This is clearly not something that should be open coded in individual drivers, aside from the code duplication it is obviously possible to have two diff

Re: [Merge tag 'pci-v4.12-changes' of git] 857f864014: BUG: unable to handle kernel NULL pointer dereference at 00000000000000a8

2017-06-13 Thread Logan Gunthorpe
On 13/06/17 10:35 AM, Greg Kroah-Hartman wrote: > For char devices, I doubt it, but we can't take the chance, which is why > you make it an option. Then, it's enabled for 'allmodconfig' builds, > which helps testers out. Well I took a look at this and it looks like a lot of work to modify all t

Re: [PATCH v2 1/2] regulator: include 'enabled' status in debugfs/regulator_summary

2017-06-13 Thread Mark Brown
On Tue, Jun 13, 2017 at 04:50:35PM +0200, Michał Mirosław wrote: > Extend regulator's info line with enabled/disabled status. Like I say please don't send new patches in reply to old ones - I can't tell what's going on here, I've got this mail but no v2 to go with it? signature.asc Description:

Re: [PATCH v2 4/4] arm64: dts: rockchip: use cs-gpios for cros_ec_spi

2017-06-13 Thread Brian Norris
On Tue, Jun 13, 2017 at 01:25:43PM +0800, Jeffy Chen wrote: > The cros_ec requires CS line to be active after last message. But the CS > would be toggled when powering off/on rockchip spi, which breaks ec xfer. > Use GPIO CS to prevent that. I suppose this change is fine. (At least, I don't have a

Re: Lockdep splat with tc filter on 4.11

2017-06-13 Thread Cong Wang
On Tue, Jun 13, 2017 at 10:28 AM, Laura Abbott wrote: > Hi, > > Fedora got a bug report https://bugzilla.redhat.com/show_bug.cgi?id=1459626 > of a hang on 4.11.3 with lockdep splat: > > [ 129.100206] BUG: sleeping function called from invalid context at > mm/slab.h:432 > [ 129.100237] in_atomic

Re: [PATCH] Add printk for bonding module packets_per_slave parameter

2017-06-13 Thread Nikolay Aleksandrov
On 13/06/17 20:00, Joe Perches wrote: > On Tue, 2017-06-13 at 12:42 -0400, Jonathan Toppins wrote: >> On 06/13/2017 12:21 PM, Joe Perches wrote: >>> On Tue, 2017-06-13 at 11:34 -0400, David Miller wrote: From: Michael Dilmore Date: Tue, 13 Jun 2017 14:42:46 +0100 > The packets p

[PATCH 1/2] power: supply: sbs-battery: Prevent CAPACITY_MODE races

2017-06-13 Thread Shawn Nematbakhsh
A subset of smart battery commands return charge or energy depending on the CAPACITY_MODE bit setting of BatteryMode(). In order to unambiguously read a charge or energy value, it is necessary to ensure that CAPACITY_MODE is set as desired, and not changed for the duration of the attribute read. S

[PATCH 2/2] power: supply: sbs-battery: Don't needlessly set CAPACITY_MODE

2017-06-13 Thread Shawn Nematbakhsh
According to the smart battery spec (1), the CAPACITY_MODE bit does not influence the value read from RelativeStateOfCharge(), so don't bother changing CAPACITY_MODE when doing such a read. (1) - Smart Battery Data Specification, Rev 1.1, Dec. 11, 1998 Signed-off-by: Shawn Nematbakhsh --- drive

Re: [PATCH 03/12] coresight: Extend the PIDR mask to cover relevant bits in PIDR2

2017-06-13 Thread Mathieu Poirier
On Mon, Jun 12, 2017 at 03:36:42PM +0100, Suzuki K Poulose wrote: > As per coresight standards, PIDR2 register has the following format : > > [2-0]- JEP106_bits6to4 > [3] - JEDEC, designer ID is specified by JEDEC. > > However some of the drivers only use mask of 0x3 for the PIDR2 leav

Re: [PATCH 03/12] coresight: Extend the PIDR mask to cover relevant bits in PIDR2

2017-06-13 Thread Suzuki K Poulose
On 13/06/17 18:53, Mathieu Poirier wrote: On Mon, Jun 12, 2017 at 03:36:42PM +0100, Suzuki K Poulose wrote: As per coresight standards, PIDR2 register has the following format : [2-0] - JEP106_bits6to4 [3]- JEDEC, designer ID is specified by JEDEC. However some of the drivers only use m

Re: [PATCH][netdev-next] net: hns: make guid hns_dsaf_acpi_dsm_guid static

2017-06-13 Thread David Miller
From: Colin King Date: Tue, 13 Jun 2017 14:03:21 +0100 > From: Colin Ian King > > The guid hns_dsaf_acpi_dsm_guid does not need to be in global > scope, so make it static. > > Cleans up sparse warning: > "symbol 'hns_dsaf_acpi_dsm_guid' was not declared. Should it be static?" > > Signed-off-b

Re: [PATCH 01/12] coresight replicator: Cleanup programmable replicator naming

2017-06-13 Thread Suzuki K Poulose
On 13/06/17 17:55, Mathieu Poirier wrote: On Mon, Jun 12, 2017 at 03:36:40PM +0100, Suzuki K Poulose wrote: The Linux coresight drivers define the programmable ATB replicator as Qualcom replicator, while this is designed by ARM. This can cause confusion to a user selecting the driver. Cleanup al

Re: [PATCH v11 3/6] virtio-balloon: VIRTIO_BALLOON_F_PAGE_CHUNKS

2017-06-13 Thread Michael S. Tsirkin
On Fri, Jun 09, 2017 at 06:41:38PM +0800, Wei Wang wrote: > Add a new feature, VIRTIO_BALLOON_F_PAGE_CHUNKS, which enables > the transfer of the ballooned (i.e. inflated/deflated) pages in > chunks to the host. so now these chunks are just s/g list entry. So let's rename this VIRTIO_BALLOON_F_SG w

[PATCH V2 1/2] powerpc/powernv: Get a unique token for async completions

2017-06-13 Thread Shilpasri G Bhat
This patch adds support to get a unique token for async completion requests. This will be used for creating non-repititive request handles for consecutive requests in OPAL-OCC command/response interface. Signed-off-by: Shilpasri G Bhat --- No changes from V1 arch/powerpc/include/asm/opal.h

Re: [PATCH 04/12] coresight: Add support for reading 64bit registers

2017-06-13 Thread Suzuki K Poulose
On 13/06/17 18:45, Mathieu Poirier wrote: On Mon, Jun 12, 2017 at 03:36:43PM +0100, Suzuki K Poulose wrote: Add support for reading a lower and upper 32bits of a register as a single 64bit register. Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulose Just a few cosmetic details... Will fi

[PATCH V2 2/2] powerpc/powernv : Add support for OPAL-OCC command/response interface

2017-06-13 Thread Shilpasri G Bhat
In P9, OCC (On-Chip-Controller) supports shared memory based commad-response interface. Within the shared memory there is an OPAL command buffer and OCC response buffer that can be used to send inband commands to OCC. This patch adds a platform driver to support the command/response interface betwe

[PATCH V2 0/2] Add support for OCC command/response interface

2017-06-13 Thread Shilpasri G Bhat
In P9, OCC(On Chip Controller) can be sent commands inband via shared memory based command response interface. This patch adds a platform driver to support the OCC command-response interface. The skiboot patch for the interface is posted here: https://lists.ozlabs.org/pipermail/skiboot/2017-June/

Re: [PATCH v11 3/6] virtio-balloon: VIRTIO_BALLOON_F_PAGE_CHUNKS

2017-06-13 Thread Dave Hansen
On 06/13/2017 10:56 AM, Michael S. Tsirkin wrote: >> +/* The size of one page_bmap used to record inflated/deflated pages. */ >> +#define VIRTIO_BALLOON_PAGE_BMAP_SIZE (8 * PAGE_SIZE) > At this size, you probably want alloc_pages to avoid kmalloc > overhead. For slub, at least, kmalloc() jus

Re: [PATCH v3] ASoC: sgtl5000: add avc support

2017-06-13 Thread Mark Brown
On Tue, Jun 13, 2017 at 08:57:34AM +0200, Richard Leitner wrote: > +static int avc_put_threshold(struct snd_kcontrol *kcontrol, > + struct snd_ctl_elem_value *ucontrol) > +{ > + struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); > + int db; > + u16 reg;

Re: WMI and Kernel:User interface

2017-06-13 Thread Pali Rohár
On Tuesday 13 June 2017 19:40:27 Darren Hart wrote: > On Tue, Jun 13, 2017 at 07:16:11PM +0200, Pali Rohár wrote: > > On Tuesday 13 June 2017 17:38:57 Darren Hart wrote: > > > I'll mention this again I suspect in this thread, but rather than > > > a "WMI filter" we can implement a "WMI proxy". If a

Re: [PATCH net-next] of_mdio: move of_mdio_parse_addr to header file

2017-06-13 Thread David Miller
From: Jon Mason Date: Tue, 13 Jun 2017 10:56:08 -0400 > The of_mdio_parse_addr() helper function is useful to other code, but > the module dependency chain causes issues. To work around this, we can > move of_mdio_parse_addr() to be an inline function in the header file. > This gets rid of the d

[PATCH] virtio_balloon: disable VIOMMU support

2017-06-13 Thread Michael S. Tsirkin
virtio balloon bypasses the DMA API entirely so does not support the VIOMMU right now. It's not clear we need that support, for now let's just make sure we don't pretend to support it. Cc: sta...@vger.kernel.org Cc: Wei Wang Fixes: 1a937693993f ("virtio: new feature to detect IOMMU device quirk"

Re: Ftrace vs perf user page fault statistics differences

2017-06-13 Thread Will Hawkins
On Tue, Jun 13, 2017 at 9:06 AM, Steven Rostedt wrote: > On Mon, 12 Jun 2017 22:05:05 -0400 > Will Hawkins wrote: > >> > Can you supply this program. So I can see exactly what it does? >> >> I have attached the binary to this email. I also provided the source >> so you can reproduce the situation

Re: [PATCH] char: tmp: fix potential null pointer dereference

2017-06-13 Thread Jarkko Sakkinen
On Mon, Jun 12, 2017 at 05:25:44PM -0500, Gustavo A. R. Silva wrote: > Hi Jarkko, > > Please, see my comments below > > Quoting Jarkko Sakkinen : > > > On Tue, May 30, 2017 at 04:51:23PM -0500, Gustavo A. R. Silva wrote: > > > NULL check at line 147: if (chip) {, implies chip might be NULL. > >

Re: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number

2017-06-13 Thread Pali Rohár
On Tuesday 13 June 2017 18:49:51 Darren Hart wrote: > On Sat, Jun 10, 2017 at 09:15:57PM +0200, Pali Rohár wrote: > > On Saturday 27 May 2017 13:55:34 Pali Rohár wrote: > > > instance_count defines number of instances of data block and > > > instance itself is indexed from zero, which means first i

[PATCH] caif: Add sockaddr length check before accessing sa_family in connect handler

2017-06-13 Thread Mateusz Jurczyk
Verify that the caller-provided sockaddr structure is large enough to contain the sa_family field, before accessing it in the connect() handler of the AF_CAIF socket. Since the syscall doesn't enforce a minimum size of the corresponding memory region, very short sockaddrs (zero or one byte long) re

Re: usb/gadget: potential deadlock in gadgetfs_suspend

2017-06-13 Thread Andrey Konovalov
On Tue, Jun 13, 2017 at 7:44 PM, Alan Stern wrote: > On Tue, 13 Jun 2017, Andrey Konovalov wrote: > >> Hi Alan, >> >> Thanks for the patch! >> >> I've been testing with your patch applied and the "bad spinlock magic" >> crashes seem to be gone. However I got another crash (happened only >> once ov

Re: gadgetfs: how to wait for USB device initialization?

2017-06-13 Thread Andrey Konovalov
On Tue, Jun 13, 2017 at 6:22 PM, Tal Shorer wrote: > On Tue, Jun 13, 2017 at 7:02 PM, Tal Shorer wrote: >> On Tue, Jun 13, 2017 at 3:21 PM, Andrey Konovalov >> wrote: >>> Hi! >>> >>> I'm trying to use gadgetfs to fuzz USB device drivers by simply >>> connecting random devices for now. >>> >>> W

Re: WMI and Kernel:User interface

2017-06-13 Thread Darren Hart
On Tue, Jun 13, 2017 at 08:00:30PM +0200, Pali Rohár wrote: > > I just tried to show that proposed proxy has above problem and looks > like anti-pattern for linux kernel. As this should be evaluated when > going to accept or reject it. OK, I think at this point we need to follow Greg's advice a

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