Re: [PATCH] crypto: ccp: Build the AMD secure processor driver only with AMD CPU support

2017-09-30 Thread Brijesh Singh
On 9/30/17 3:30 AM, Borislav Petkov wrote: ... > From: Borislav Petkov > > This is AMD-specific hardware so present it in Kconfig only when AMD > CPU support is enabled. > > Signed-off-by: Borislav Petkov > Cc: Brijesh Singh > Cc: Tom Lendacky > Cc: Gary Hook > Cc: Herbert Xu > Cc: "David

[PATCH v3] Staging: rtl8723bs: Remove unnecessary comments.

2017-09-30 Thread Shreeya Patel
Remove unnecessary comments which are there to explain why call to memset is in comments. Both of the comments are not needed as they are not very useful. Signed-off-by: Shreeya Patel --- Changes in v2: -Remove some more unnecessary comments and make the commit message more appropriate. Ch

Re: random insta-reboots on AMD Phenom II

2017-09-30 Thread Brian Gerst
On Sat, Sep 30, 2017 at 8:47 AM, Markus Trippelsdorf wrote: > On 2017.09.30 at 13:53 +0200, Borislav Petkov wrote: >> On Sat, Sep 30, 2017 at 01:29:03PM +0200, Adam Borowski wrote: >> > On Sat, Sep 30, 2017 at 01:11:37PM +0200, Borislav Petkov wrote: >> > > On Sat, Sep 30, 2017 at 04:05:16AM +0200

Re: Linux 4.13.4

2017-09-30 Thread Greg KH
On Sat, Sep 30, 2017 at 09:49:28AM -0400, Ed Tomlinson wrote: > Hi, > > This build causes very annoying flickering on my display. I am using the in > kernel amdgpu module to drive a RX480 with 4G via display port. When X is > started (kde) I get flickers that are extrememly distracting. The lin

Re: [PATCH 2/2] pinctrl: rockchip: Fix the correct routing config for the gmac-m1 pins of rmii and rgmii

2017-09-30 Thread Heiko Stuebner
Hi David, Am Samstag, 30. September 2017, 20:13:21 CEST schrieb David Wu: > If the gmac-m1 optimization(bit10) is selected, the gpio function > of gmac pins is not valid. We may use the rmii mode for gmac interface, > the pins such as rx_d2, rx_d3, which the rgmii mode used, but rmii not > used co

Re: random insta-reboots on AMD Phenom II

2017-09-30 Thread Andy Lutomirski
> On Sep 30, 2017, at 4:53 AM, Borislav Petkov wrote: > >> On Sat, Sep 30, 2017 at 01:29:03PM +0200, Adam Borowski wrote: >>> On Sat, Sep 30, 2017 at 01:11:37PM +0200, Borislav Petkov wrote: On Sat, Sep 30, 2017 at 04:05:16AM +0200, Adam Borowski wrote: Any hints how to debug this? >>

Re: [PATCH v2] netlink: do not proceed if dump's start() errs

2017-09-30 Thread David Miller
From: Johannes Berg Date: Sat, 30 Sep 2017 08:56:10 +0200 > On Thu, 2017-09-28 at 00:41 +0200, Jason A. Donenfeld wrote: >> Drivers that use the start method for netlink dumping rely on dumpit >> not >> being called if start fails. For example, ila_xlat.c allocates memory >> and assigns it to cb-

Re: Linux 4.13.4

2017-09-30 Thread Ed Tomlinson
Hi I did things old school via patch -R. This is what I reverted: --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 4083be61b328..6417febe18b9 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_p

Re: random insta-reboots on AMD Phenom II

2017-09-30 Thread Markus Trippelsdorf
On 2017.09.30 at 10:20 -0400, Brian Gerst wrote: > On Sat, Sep 30, 2017 at 8:47 AM, Markus Trippelsdorf > wrote: > > On 2017.09.30 at 13:53 +0200, Borislav Petkov wrote: > >> On Sat, Sep 30, 2017 at 01:29:03PM +0200, Adam Borowski wrote: > >> > On Sat, Sep 30, 2017 at 01:11:37PM +0200, Borislav Pe

Re: Linux 4.13.4

2017-09-30 Thread Greg KH
On Sat, Sep 30, 2017 at 11:14:42AM -0400, Ed Tomlinson wrote: > Hi > > I did things old school via patch -R. This is what I reverted: > > --- > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c > b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c > index 4083be61b328..6417febe18b9 100644 > --- a/drive

Re: [PATCH v2 2/2] pid: Remove pidhash

2017-09-30 Thread Gargi Sharma
On Wed, Sep 27, 2017 at 9:58 PM, Oleg Nesterov wrote: > If I was not clear... > > in short, after this patch the very first idr_alloc_cyclic() is already > wrong. Because, once again, the new not-fully-initialized pid can be found > by find_pid_ns(). If the PIDNS_ADDING check fails, I jump to th

Re: random insta-reboots on AMD Phenom II

2017-09-30 Thread Borislav Petkov
On Sat, Sep 30, 2017 at 08:11:51AM -0700, Andy Lutomirski wrote: > Yeah, working on it. It's not a straightforward revert. Thanks. At least you have testers :-) -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.

Re: Linux 4.13.4

2017-09-30 Thread Ed Tomlinson
Hi It looks to be this commit. 4.14-rc2 is building Thanks Ed commit 2890decfd9969cac21067ca0c734fbccaf74d634 Author: Zhang, Jerry Date: Fri Jul 14 18:20:17 2017 +0800 drm/amdgpu: read reg in each iterator of psp_wait_for loop v2: fix the SOS loading failure for PSP v3.1 S

Re: random insta-reboots on AMD Phenom II

2017-09-30 Thread Borislav Petkov
On Sat, Sep 30, 2017 at 02:47:11PM +0200, Markus Trippelsdorf wrote: > Changing the TLB code so late might not be a good idea... The new lazy code is too risky to keep as we don't know what else will break. The conservative and thus safe thing to do is to revert to the old behavior for old machine

Re: [PATCH] crypto: ccp: Build the AMD secure processor driver only with AMD CPU support

2017-09-30 Thread Borislav Petkov
On Sat, Sep 30, 2017 at 09:06:26AM -0500, Brijesh Singh wrote: > > diff --git a/drivers/crypto/ccp/Kconfig b/drivers/crypto/ccp/Kconfig > > index 627f3e61dcac..f58a6521270b 100644 > > --- a/drivers/crypto/ccp/Kconfig > > +++ b/drivers/crypto/ccp/Kconfig > > @@ -1,5 +1,6 @@ > > config CRYPTO_DEV_CC

Re: [Part2 PATCH v4 05/29] crypto: ccp: Add Platform Security Processor (PSP) device support

2017-09-30 Thread Brijesh Singh
On 9/29/17 10:16 AM, Borislav Petkov wrote: ... > + >> +config CRYPTO_DEV_SP_PSP >> +bool "Platform Security Processor (PSP) device" >> +default y >> +depends on CRYPTO_DEV_CCP_DD > So this last symbol CRYPTO_DEV_CCP_DD is default m and it doesn't depend > on anything. And I'm pretty

[PATCH] usb: gadget: configfs: Fix memory leak of interface directory data

2017-09-30 Thread Andrew Gabbasov
Kmemleak checking configuration reports a memory leak in usb_os_desc_prepare_interf_dir function when rndis function instance is freed and then allocated again. For example, this happens with FunctionFS driver with RNDIS function enabled when "ffs-test" test application is run several times in a ro

[PATCH] usb: gadget: composite: Fix use-after-free in usb_composite_overwrite_options

2017-09-30 Thread Andrew Gabbasov
KASAN enabled configuration reports an error BUG: KASAN: use-after-free in usb_composite_overwrite_options+... [libcomposite] at addr ... Read of size 1 by task ... when some driver is un-bound and then bound again. For example, this happens with FunctionFS driver when "ff

Re: random insta-reboots on AMD Phenom II

2017-09-30 Thread Andy Lutomirski
On Sat, Sep 30, 2017 at 8:50 AM, Borislav Petkov wrote: > On Sat, Sep 30, 2017 at 02:47:11PM +0200, Markus Trippelsdorf wrote: >> Changing the TLB code so late might not be a good idea... > > The new lazy code is too risky to keep as we don't know what else will > break. The conservative and thus

Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable support in hip08

2017-09-30 Thread Leon Romanovsky
On Sat, Sep 30, 2017 at 05:28:59PM +0800, Wei Hu (Xavier) wrote: > If the IOMMU is enabled, the length of sg obtained from > __iommu_map_sg_attrs is not 4kB. When the IOVA is set with the sg > dma address, the IOVA will not be page continuous. and the VA > returned from dma_alloc_coherent is a vmal

Re: [Part2 PATCH v4 05/29] crypto: ccp: Add Platform Security Processor (PSP) device support

2017-09-30 Thread Borislav Petkov
On Sat, Sep 30, 2017 at 10:55:25AM -0500, Brijesh Singh wrote: > CRYPTO_DEV_CCP_DD is supported on aarch64 and x86. Whereas the PSP > interface I am adding is available on x86 only hence its safe to add add > depend on CPU_SUP_AMD for CRYPTO_DEV_SP_PSP. I think just from having CRYPTO_DEV_CCP_DD d

[PATCH] vfio-mdev: make mdev_fops const and static

2017-09-30 Thread Bhumika Goyal
Make this const as it is only passed to a const argument of the function mdev_register_device. Make it static as it is not referenced in any other file. Structure found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal --- samples/vfio-mdev/mtty.c | 2 +- 1 file changed, 1

[no subject]

2017-09-30 Thread E G
I am Ms.Ella Golan, I am the Executive Vice President Banking Division with FIRST INTERNATIONAL BANK OF ISRAEL LTD (FIBI). I am getting in touch with you regarding an extremely important and urgent matter. If you would oblige me the opportunity, I shall provide you with details upon your respo

[PATCH] staging: rtl8192u: make r8192_wx_handlers_def structure const

2017-09-30 Thread Bhumika Goyal
Make this const as it is only stored in a const field of a pci_dev structure. Make the declaration in the header const too. Structure found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal --- drivers/staging/rtl8192u/r8192U_wx.c | 2 +- drivers/staging/rtl8192u/r8192U_wx

Re: Reply Urgent

2017-09-30 Thread Info
Hello, How are you doing? We have an inheritance of a deceased client with your surname. Contact Mr Andrew Bailey by this email address: ands...@europe.com with your full names for further information's. Thanks for your understanding. Melissa. -- Correo Cor

[PATCH] FS-Cache: make fscache_fsdef_netfs_def const

2017-09-30 Thread Bhumika Goyal
Make fscache_fsdef_netfs_def const as it is only stored in a const field of a fscache_cookie structure. Make the declaration const too. Structure found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal --- fs/fscache/fsdef.c| 2 +- fs/fscache/internal.h | 2 +- 2 files

[PATCH] thunderbolt: make tb_domain_type const

2017-09-30 Thread Bhumika Goyal
Make this const as it is only stored in the const field of a device structure. Make the declaration in header const too. Structure found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal --- drivers/thunderbolt/domain.c | 2 +- drivers/thunderbolt/tb.h | 2 +- 2 files

Re: Linux 4.13.4

2017-09-30 Thread Ed Tomlinson
Hi, It works with 14-rc2, so I rebuilt 13.4 with the commit included again and its behaving too :-/ Something strange must have happened in the original 13.4 build or my hw was in a strange state (for two boots...) Sorry for the noise. Thanks Ed Tomlinson On Saturday, September 30, 2017 1

Re: [PATCH v2] ARM: multi_v7_defconfig: Enable USB3503 driver

2017-09-30 Thread Krzysztof Kozlowski
On Thu, Sep 28, 2017 at 10:27:03PM +0200, Linus Lüssing wrote: > The Odroid U3 (Exynos 4412 based) for instance needs this driver, > otherwise its USB hub will not come up. > > Also selecting it as built-in to allow booting from USB without > an initrd/initramfs. exynos_defconfig does the same alr

[PATCH] libata: make ata_port_type const

2017-09-30 Thread Bhumika Goyal
Make this const as it is only stored in the const field of a device structure. Make the declaration in header const too. Structure found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal --- drivers/ata/libata-core.c | 2 +- drivers/ata/libata.h | 2 +- 2 files change

[PATCH] scsi: esas2r: make bin_attr_default_nvram const

2017-09-30 Thread Bhumika Goyal
Make this const as it is only passed to the const arguments of the functions sysfs_remove_bin_file and sysfs_create_bin_file. Make the declaration const too. Structure found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal --- drivers/scsi/esas2r/esas2r.h | 2 +- dri

Re: f34c8585ed ("rcutorture: Invoke call_rcu() from timer handler"): WARNING: kernel stack regs at bdf19a20 in trinity-c0:12909 has bad 'bp' value bdf17850

2017-09-30 Thread Paul E. McKenney
On Sat, Sep 30, 2017 at 10:15:30AM +0800, kernel test robot wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > commit f34c8585ed70f0f9b5ff9cf59c0dd533cddb975f > Author

Re: [RESEND x2][PATCH 0/3] dwc2 fixes for edge cases on hikey

2017-09-30 Thread John Youn
On 09/20/2017 12:57 PM, John Stultz wrote: > So here are a few dwc2 fixes that I've been using with HiKey. > I'm not totally sure these are all ideal, but they avoid edge case > issues that we have been running into with switching between > gadget mode and host mode. > > I'd guess the first two are

Re: [PATCH] kvm/x86: Handle async PF in RCU read-side critical sections

2017-09-30 Thread Paul E. McKenney
On Sat, Sep 30, 2017 at 07:41:56AM +0800, Boqun Feng wrote: > On Fri, Sep 29, 2017 at 04:43:39PM +, Paul E. McKenney wrote: > > On Fri, Sep 29, 2017 at 04:53:57PM +0200, Paolo Bonzini wrote: > > > On 29/09/2017 13:01, Boqun Feng wrote: > > > > Sasha Levin reported a WARNING: > > > > > > > > |

Re: [PATCHv2 2/7] usb: dwc2: add support for STM32F7 USB OTG HS

2017-09-30 Thread John Youn
On 09/29/2017 07:22 AM, Amelie DELAUNAY wrote: > Hi, > > Gentle ping for driver review submitted on August 28th. > > Thanks, > Amelie > > On 08/28/2017 04:20 PM, Amelie Delaunay wrote: >> This patch adds the dwc2_set_params function for STM32F7 USB OTG HS. >> >> Signed-off-by: Amelie Delaunay >> -

Re: [PATCH v6 2/2] iio:dac: Add DT binding documentation for ds4424

2017-09-30 Thread Jonathan Cameron
On Fri, 22 Sep 2017 13:12:09 -0700 "Ismail H. Kose" wrote: > Signed-off-by: Ismail H. Kose > Signed-off-by: Ismail H. Kose Direct at Rob Herring... Rob, this is now a very standard binding so I'm going to take it into my testing tree. If you have a chance to take a last look at it though tha

Re: [PATCH v7 1/2] iio: dac: ds4422/ds4424 dac driver

2017-09-30 Thread Jonathan Cameron
On Mon, 25 Sep 2017 12:14:11 -0700 "Ismail H. Kose" wrote: > This patch provides an iio device driver for DS4422/DS4424 chips that support > two/four channel 7-bit Sink/Source Current DAC. > > Signed-off-by: Ismail H. Kose > Signed-off-by: Ismail H. Kose The double sign of is a bit unusual. W

Re: [PATCH v5 for 4.14 1/3] membarrier: Provide register expedited private command

2017-09-30 Thread Paul E. McKenney
On Fri, Sep 29, 2017 at 01:47:18PM -0400, Mathieu Desnoyers wrote: > Provide a new command allowing processes to register their intent to use > the private expedited command. > > This allows PowerPC to skip the full memory barrier in switch_mm(), and > only issue the barrier when scheduling into a

Re: [PATCH 1/2] iio: adc: sun4i-gpadc-iio: register in the thermal after registering in pm

2017-09-30 Thread Jonathan Cameron
On Tue, 26 Sep 2017 14:52:18 +0200 Quentin Schulz wrote: > This driver has a get_temp function used by the thermal framework that > uses pm functions. > > However, the driver isn't registered in pm before it is registered in > thermal framework, resulting in the pm_resume not being called and th

[GIT PULL] mtd: Fixes for 4.14-rc3

2017-09-30 Thread Boris Brezillon
Hello Linus, I'm a bit late, but here is a fixes PR for 4.14-rc3. Regards, Boris The following changes since commit 73600b619bf8b9803a0610624a0e11f5ed8f761e: mtd: nand: remove unused blockmask variable (2017-09-18 14:51:02 +0200) are available in the git repository at: git://git.infradea

Re: [RESEND RFC PATCH 0/7] sun8i H3 HDMI glue driver for DW HDMI

2017-09-30 Thread Jernej Škrabec
Hi, Dne sobota, 30. september 2017 ob 13:58:03 CEST je Alexey Kardashevskiy napisal(a): > On 21/09/17 06:01, Jernej Skrabec wrote: > > [added media mailing list due to CEC question] > > > > This patch series adds a HDMI glue driver for Allwinner H3 SoC. For now, > > only video and CEC functional

Re: [PATCH] iio: accel: mma8452: Rename structs holding event configuration registers to more appropriate names.

2017-09-30 Thread Jonathan Cameron
On Sun, 24 Sep 2017 13:49:36 -0400 Harinath Nampally wrote: > Improves code readability, no impact on functionality. > > Signed-off-by: Harinath Nampally I'm unconvinced by this one. At some point we have to map from the devices own description to that of IIO. The naming currently does this w

Re: [PATCH v3 1/3] iio: accel: mma8452: Rename structs holding event configuration registers to more appropriate names.

2017-09-30 Thread Jonathan Cameron
On Wed, 27 Sep 2017 08:52:54 +0200 Martin Kepplinger wrote: > Am 25.09.2017 12:40 schrieb Harinath Nampally: > > Improves code readability, no impact on functionality. > > > > Signed-off-by: Harinath Nampally > > --- > > I'd prefer a shorter subject line here too, see patch 2/3 Agreed. I'm

Re: [PATCH v3 3/3] iio: accel: mma8452: Rename read/write event value callbacks to generic function name.

2017-09-30 Thread Jonathan Cameron
On Wed, 27 Sep 2017 08:46:27 +0200 Martin Kepplinger wrote: > Am 25.09.2017 12:40 schrieb Harinath Nampally: > > 'mma8452_read_thresh' and 'mma8452_write_thresh' functions > > does more than just read/write threshold values. > > They also handle IIO_EV_INFO_HIGH_PASS_FILTER_3DB and > > IIO_EV_IN

Re: [PATCH v3 2/3] iio: accel: mma8452: Rename time step look up struct to generic name as the values are same for all the events.

2017-09-30 Thread Jonathan Cameron
On Wed, 27 Sep 2017 08:51:26 +0200 Martin Kepplinger wrote: > Am 25.09.2017 12:40 schrieb Harinath Nampally: > > Improves code readability, no impact on functionality. > > > > Signed-off-by: Harinath Nampally > > Please make the headline shorter and put some of it in the git commit > messag

Re: [PATCH v3 2/3] iio: accel: mma8452: Rename time step look up struct to generic name as the values are same for all the events.

2017-09-30 Thread harinath Nampally
> Obviously drop any patches that have already been taken. > In this case it will be a v4 series containing patches 1 and 2 only. Sure will do. Thanks, Harinath On Sat, Sep 30, 2017 at 2:05 PM, Jonathan Cameron wrote: > On Wed, 27 Sep 2017 08:51:26 +0200 > Martin Kepplinger wrote: > >> Am 25.09

Re: Change of set_fs() in uaccess.h breaks this header being self contained for x86 (4.14-rc1)

2017-09-30 Thread Al Viro
On Mon, Sep 18, 2017 at 08:32:19PM +0200, Stefan Mätje wrote: > Hi, > > there is a change in Linus' mainline kernel > (https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/x86/include/asm/uaccess.h?id=6c51e67b64d169419fb13318035bb442f9176612) > that changes the set_fs() m

Dear Good Friend

2017-09-30 Thread Ray Mendiola
I have a business proposal of mutual benefit for you and it is 100% safe.contact me pls via: sgtamyrh...@naver.com >From Sgt. Amy Rhodes

Re: Hung Task Linux 4.13-rc7 Reiserfs

2017-09-30 Thread Shankara Pailoor
Hi, I have a reproducer program. It takes about 3-5 minutes to trigger the hang. The only calls are mmap, open, write, and readahead and the writes are fairly small (512 bytes). Reproducer Program: https://pastebin.com/cx1cgABc Report: https://pastebin.com/uGTAw45E Logs: https://pastebin.com/EaiE

RE: [PATCH v3 4/8] platform/x86: wmi: create character devices when requested by drivers

2017-09-30 Thread Mario.Limonciello
> -Original Message- > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > Sent: Saturday, September 30, 2017 3:12 AM > To: Darren Hart > Cc: Limonciello, Mario ; Andy Shevchenko > ; LKML ; > platform-driver-...@vger.kernel.org; Andy Lutomirski ; > quasi...@google.com; pali.ro..

RE: [PATCH v3 5/8] platform/x86: dell-wmi-smbios: introduce character device for userspace

2017-09-30 Thread Mario.Limonciello
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Friday, September 29, 2017 9:06 PM > To: Limonciello, Mario > Cc: Andy Shevchenko ; LKML ker...@vger.kernel.org>; platform-driver-...@vger.kernel.org; Andy Lutomirski > ; quasi...@google.com; pali.ro...@gmail.c

RE: [PATCH v3 3/8] platform/x86: dell-wmi-smbios: Use Dell WMI descriptor check

2017-09-30 Thread Mario.Limonciello
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Friday, September 29, 2017 8:29 PM > To: Limonciello, Mario > Cc: Andy Shevchenko ; LKML ker...@vger.kernel.org>; platform-driver-...@vger.kernel.org; Andy Lutomirski > ; quasi...@google.com; pali.ro...@gmail.c

Re: [PATCH RFC V4 5/6] perf top: switch to backward overwrite mode

2017-09-30 Thread Jiri Olsa
On Fri, Sep 29, 2017 at 07:47:56AM -0700, kan.li...@intel.com wrote: > From: Kan Liang > > perf_top__mmap_read has severe performance issue in > Knights Landing/Mill, when monitoring in heavy load system. It costs > several minutes to finish, which is unacceptable. > > perf top was overwrite mod

Re: [PATCH v3] crypto: s5p-sss: Add HASH support for Exynos

2017-09-30 Thread Krzysztof Kozlowski
On Wed, Sep 27, 2017 at 02:25:50PM +0200, Kamil Konieczny wrote: > Add support for MD5, SHA1, SHA256 hash algorithms for Exynos HW. > It uses the crypto framework asynchronous hash api. > It is based on omap-sham.c driver. > S5P has some HW differencies and is not implemented. > > Modifications in

RE: [PATCH v3 0/8] Introduce support for Dell SMBIOS over WMI

2017-09-30 Thread Mario.Limonciello
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Friday, September 29, 2017 9:17 PM > To: Limonciello, Mario > Cc: Andy Shevchenko ; LKML ker...@vger.kernel.org>; platform-driver-...@vger.kernel.org; Andy Lutomirski > ; quasi...@google.com; pali.ro...@gmail.c

RE: [PATCH v3 2/8] platform/x86: dell-smbios: Introduce a WMI-ACPI interface

2017-09-30 Thread Mario.Limonciello
> -Original Message- > From: Pali Rohár [mailto:pali.ro...@gmail.com] > Sent: Saturday, September 30, 2017 2:16 AM > To: Darren Hart > Cc: Limonciello, Mario ; Andy Shevchenko > ; LKML ; > platform-driver-...@vger.kernel.org; Andy Lutomirski ; > quasi...@google.com > Subject: Re: [PATCH v3

RE: [PATCH v3 2/8] platform/x86: dell-smbios: Introduce a WMI-ACPI interface

2017-09-30 Thread Mario.Limonciello
> -Original Message- > From: Pali Rohár [mailto:pali.ro...@gmail.com] > Sent: Friday, September 29, 2017 2:36 AM > To: Limonciello, Mario > Cc: dvh...@infradead.org; andy.shevche...@gmail.com; linux- > ker...@vger.kernel.org; platform-driver-...@vger.kernel.org; l...@kernel.org; > quasi...

Re: WARNING: kernel stack frame pointer at ffff880156a5fea0 in bash:2103 has bad value 00007ffec7d87e50

2017-09-30 Thread Richard Weinberger
Josh, Am Mittwoch, 27. September 2017, 16:14:30 CEST schrieb Josh Poimboeuf: > On Wed, Sep 27, 2017 at 08:51:22AM +0200, Richard Weinberger wrote: > > Am Mittwoch, 27. September 2017, 00:42:46 CEST schrieb Josh Poimboeuf: > > > > Here is another variant of the warning, it matches the attached .co

Re: [PATCH v3 3/8] platform/x86: dell-wmi-smbios: Use Dell WMI descriptor check

2017-09-30 Thread Pali Rohár
On Saturday 30 September 2017 21:48:39 mario.limoncie...@dell.com wrote: > > > +/* > > > > > + * Descriptor buffer is 128 byte long and contains: > > ... > > > > > + if (obj->buffer.length != 128) { > > > + dev_err(&wdev->dev, > > > + "Dell descriptor buffer has invalid le

Re: [PATCH] mm: kill kmemcheck again

2017-09-30 Thread Levin, Alexander (Sasha Levin)
On Sat, Sep 30, 2017 at 03:57:27PM +0200, Vegard Nossum wrote: >On 30 September 2017 at 11:48, Steven Rostedt wrote: >> On Wed, 27 Sep 2017 17:02:07 +0200 >> Michal Hocko wrote: >> >>> > Now that 2 years have passed, and all distros provide gcc that supports >>> > KASAN, kill kmemcheck again for

Re: [PATCH] staging: iio: ade7759: fix signed extension bug on shift of a u8

2017-09-30 Thread Jonathan Cameron
On Wed, 13 Sep 2017 18:02:02 +0100 Colin King wrote: > From: Colin Ian King > > The current shift of st->rx[2] left shifts a u8 24 bits left, > promotes the integer to a an int and then to a unsigned u64. If > the top bit of st->rx[2] is set then we end up with all the upper > bits being set to

Re: [v1] iov_iter: fix page_copy_sane for compound pages

2017-09-30 Thread Thiago Macieira
On Tuesday, 29 August 2017 11:20:32 PDT Petar Penkov wrote: > Issue is that if the data crosses a page boundary inside a compound > page, this check will incorrectly trigger a WARN_ON. > > To fix this, compute the order using the head of the compound page and > adjust the offset to be relative to

Re: [lkp-robot] [blk] 47e0fb461f: BUG:unable_to_handle_kernel

2017-09-30 Thread Linus Torvalds
On Thu, Sep 21, 2017 at 12:02 AM, NeilBrown wrote: > > I think it is crashing in > static inline bool ata_is_host_link(const struct ata_link *link) > { > return link == &link->ap->link || link == link->ap->slave_link; > } Yes. The code is 1a: 8b 3amov(%edx),%edi 1

Re: [PATCH v3 1/4] iio: light: vl6180: Move range check to integration time setter, cleanup

2017-09-30 Thread Jonathan Cameron
On Sun, 24 Sep 2017 23:59:17 +0200 Stefan Brüns wrote: > This improves code uniformity (range checks for als_gain are also done > in the setter). Also unmangle rounding and calculation of register value. > > The calculated integration time it_ms is required in the next patch of > the series. >

Re: [PATCH v3 2/4] iio: light: vl6180: Avoid readback of integration time register

2017-09-30 Thread Jonathan Cameron
On Sun, 24 Sep 2017 23:59:18 +0200 Stefan Brüns wrote: > Instead of reading the value from the register on each query, store the > set value. > > Signed-off-by: Stefan Brüns Applied to the togreg branch of iio.git and pushed out as testing. Jonathan > > --- > > Changes in v3: > - Use IIO_VA

Re: [PATCH v3 3/4] iio: light: vl6180: Cleanup als_gain lookup, avoid register readback

2017-09-30 Thread Jonathan Cameron
On Sun, 24 Sep 2017 23:59:19 +0200 Stefan Brüns wrote: > Instead of manually iterating the array of allowed gain values, use > find_closest. Storing the current gain setting avoids accessing the > hardware on each query. > > Signed-off-by: Stefan Brüns > Applied to the togreg branch of iio.gi

Re: [PATCH v3 4/4] iio: light: vl6180: Correct ALS scale for non-default gain/integration time

2017-09-30 Thread Jonathan Cameron
On Sun, 24 Sep 2017 23:59:20 +0200 Stefan Brüns wrote: > The reported scale was only correct for the default settings of 100 ms > integration time and gain 1. > > This aligns the reported scale with the behaviour of any other IIO driver > and the documented ABI, but may require userspace changes

Re: [PATCH 0/8] pinctrl: meson: clean pin offsets

2017-09-30 Thread Kevin Hilman
Jerome Brunet writes: > The initial goal of this series was move to TEST_N pin from the EE > controller to AO controller, where it belongs. This meant modify the > EE_OFF value. > > This offset is a quirk we brought from the vendor driver when it was > initially merged. There no reason to keep th

Re: [PATCH 0/8] pinctrl: meson: clean pin offsets

2017-09-30 Thread Kevin Hilman
Jerome Brunet writes: > The initial goal of this series was move to TEST_N pin from the EE > controller to AO controller, where it belongs. This meant modify the > EE_OFF value. > > This offset is a quirk we brought from the vendor driver when it was > initially merged. There no reason to keep th

Re: [PATCH] staging: iio: trigger: Move header file content to source file

2017-09-30 Thread Jonathan Cameron
On Tue, 26 Sep 2017 23:56:15 +0530 Harsha Sharma wrote: > The contents of the header file are used only by this single source file. > Moved content into iio-trig-bfin-timer.c and removed iio-trig-bfin-timer.h > > Signed-off-by: Harsha Sharma Hmm. This one again. Sometimes you need to not just

Re: [v1] iov_iter: fix page_copy_sane for compound pages

2017-09-30 Thread Eric Dumazet
On Sat, Sep 30, 2017 at 12:24 PM, Thiago Macieira wrote: > On Tuesday, 29 August 2017 11:20:32 PDT Petar Penkov wrote: >> Issue is that if the data crosses a page boundary inside a compound >> page, this check will incorrectly trigger a WARN_ON. >> >> To fix this, compute the order using the head

Re: [PATCH v3 2/8] platform/x86: dell-smbios: Introduce a WMI-ACPI interface

2017-09-30 Thread Pali Rohár
On Saturday 30 September 2017 22:01:04 mario.limoncie...@dell.com wrote: > > -Original Message- > > From: Pali Rohár [mailto:pali.ro...@gmail.com] > > Sent: Friday, September 29, 2017 2:36 AM > > To: Limonciello, Mario > > Cc: dvh...@infradead.org; andy.shevche...@gmail.com; linux- > > ker

Re: [PATCH] x86/CPU/AMD, mm: Extend with mem_encrypt=sme option

2017-09-30 Thread Brijesh Singh
On 9/30/17 6:56 AM, Borislav Petkov wrote: ... > Ok, I went and simplified this whole code path a bit because it was > needlessly a bit too complex. Below is the result, only compile-tested. > > Brijesh, Tom, guys, please check my logic, I might've missed a case. I will take a closure look at th

Re: [PATCH] x86/CPU/AMD, mm: Extend with mem_encrypt=sme option

2017-09-30 Thread Borislav Petkov
On Sat, Sep 30, 2017 at 04:17:39PM -0500, Brijesh Singh wrote: > I will take a closure look at this patch on Monday but at a glance I am > not sure if patch is addressing our main issue. We were trying to limit > the SEV feature exposure from the host OS. The current logic is: > > 1. Check whether

Re: [PATCH v3] Staging: rtl8723bs: Remove unnecessary comments.

2017-09-30 Thread Tobin C. Harding
On Sat, Sep 30, 2017 at 07:41:11PM +0530, Shreeya Patel wrote: > Remove unnecessary comments which are there > to explain why call to memset is in comments. Both of the > comments are not needed as they are not very useful. > > > Signed-off-by: Shreeya Patel > --- > Changes in v2: > -Remove so

Re: [PATCH 0/6] Cache coherent device memory (CDM) with HMM v5

2017-09-30 Thread Jerome Glisse
On Sat, Sep 30, 2017 at 10:57:38AM +0800, Bob Liu wrote: > On 2017/9/27 0:16, Jerome Glisse wrote: > > On Tue, Sep 26, 2017 at 05:56:26PM +0800, Bob Liu wrote: > >> On Tue, Sep 12, 2017 at 7:36 AM, Jerome Glisse wrote: > >>> On Sun, Sep 10, 2017 at 07:22:58AM +0800, Bob Liu wrote: > On Wed, S

Re: [PATCH] kbuild: clang: remove crufty HOSTCFLAGS

2017-09-30 Thread Nick Desaulniers
On Thu, Sep 28, 2017 at 07:52:35PM +0900, Masahiro Yamada wrote: > 2017-09-26 11:28 GMT+09:00 Nick Desaulniers : > > HOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 \ > > + $(call hostcc-option,-fno-delete-null-pointer-checks) \ > > -fomit-frame-poi

Re: [PATCH] KVM: VMX: check match table

2017-09-30 Thread Nick Desaulniers
On Wed, Sep 27, 2017 at 02:36:03PM +0200, Paolo Bonzini wrote: > On 26/09/2017 19:12, Josh Triplett wrote: > > Does this make any other checks redundant and removable? > > It would make sense to place it in cpu_has_kvm_support instead cpu_has_kvm_support() or cpu_has_vmx()? >, and the same in sv

Re: [PATCH V7 2/2] scsi: Align block queue to dma_get_cache_alignment()

2017-09-30 Thread kbuild test robot
Hi Huacai, [auto build test ERROR on linus/master] [also build test ERROR on v4.14-rc2 next-20170929] [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/Huacai-Chen/dma-mapping-Rework-dma_get_cache_

Re: [PATCH] drm: of: always initialize panel in drm_of_find_panel_or_bridge()

2017-09-30 Thread Linus Walleij
On Mon, Sep 25, 2017 at 12:30 PM, Dan Carpenter wrote: > The callers expect "panel" to be initialized, but that isn't true if we > return -ENODEV. It causes bugs like: > > drivers/gpu/drm/tve200/tve200_drv.c:83 tve200_modeset_init() > error: uninitialized symbol 'panel'. > > Signed-off-b

[kernel-hardening] [RFC V2 1/6] lib: vsprintf: additional kernel pointer filtering options

2017-09-30 Thread Tobin C. Harding
Add the kptr_restrict setting of 3 which results in both %p and %pK values being replaced by zeros. Add an additional %pP value inspired by the Grsecurity option which explicitly whitelists pointers for output. Amend scripts/checkpatch.pl to handle %pP. This patch is based on work by William Rob

[kernel-hardening] [RFC V2 0/6] add more kernel pointer filter options

2017-09-30 Thread Tobin C. Harding
Version 2 of Greg's patch series with changes made as suggested by comments to V1. Applies on top of Linus' current development tree a8c964eacb21288b2dbfa9d80cee5968a3b8fb21 V1 cover letter: Here's a short patch series from Chris Fries and Dave Weinstein that implements some new restrictions w

[kernel-hardening] [RFC V2 5/6] lib: vsprintf: add "%paP", "%papP", and "%padP" specifiers

2017-09-30 Thread Tobin C. Harding
Add %papP and %padP for address types that need to always be shown regardless of kptr restrictions. Add %paP is a synonym for %papP, this is inline with current implementation (%pa is a synonym for %pap). Signed-off-by: Tobin C. Harding --- Documentation/printk-formats.txt | 19 +++--

[kernel-hardening] [RFC V2 6/6] drivers: uio: un-restrict sysfs pointers for UIO

2017-09-30 Thread Tobin C. Harding
The address and size on the UIO devices are required by userspace to function properly. Let's un-restrict these by adding the 'P' modifier to %pa. Signed-off-by: Tobin C. Harding --- drivers/uio/uio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/uio/uio.c b/dr

[kernel-hardening] [RFC V2 3/6] lib: vsprintf: physical address kernel pointer filtering options

2017-09-30 Thread Tobin C. Harding
Add the kptr_restrict setting of 4 which results in %pa and %p[rR] values being cleansed. Address types printed with %pa are replaced by zeros. Resources printed with %p[rR] have the starting address replaced by zeros, resource size is still shown. Signed-off-by: Tobin C. Harding --- Documentat

[kernel-hardening] [RFC V2 4/6] lib: vsprintf: default kptr_restrict to the maximum value

2017-09-30 Thread Tobin C. Harding
Set the initial value of kptr_restrict to the maximum setting rather than the minimum setting, to ensure that early boot logging is not leaking information. Signed-off-by: Tobin C. Harding --- lib/vsprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vsprintf.c b/lib

[kernel-hardening] [RFC V2 2/6] lib: vsprintf: whitelist stack traces

2017-09-30 Thread Tobin C. Harding
Use the %pP functionality to explicitly allow kernel pointers to be logged for stack traces. Signed-off-by: Tobin C. Harding --- arch/arm64/kernel/traps.c | 4 ++-- kernel/printk/printk.c| 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/kernel/traps.c b/arch/a

Re: [kernel-hardening] [RFC V2 0/6] add more kernel pointer filter options

2017-09-30 Thread Tobin C. Harding
On Sun, Oct 01, 2017 at 11:06:44AM +1100, Tobin C. Harding wrote: > Version 2 of Greg's patch series with changes made as suggested by comments > to V1. Patch set tested by setting /proc/sys/kernel/kptr_restrict and inserting the following module #include #include #define DRIVER_AUTHOR "Tobi

Re: [RESEND PATCH] fs: add RWF_APPEND

2017-09-30 Thread Goldwyn Rodrigues
On 09/29/2017 07:07 AM, Jürg Billeter wrote: > This is the per-I/O equivalent of O_APPEND to support atomic append > operations on any open file. > > If a file is opened with O_APPEND, pwrite() ignores the offset and > always appends data to the end of the file. RWF_APPEND enables atomic > appen

Re: [PATCH 3/3] ignore_this_patch: Fixing compilation error on Peter's tree

2017-09-30 Thread kbuild test robot
Hi Rohit, [auto build test ERROR on tip/sched/core] [also build test ERROR on v4.14-rc2 next-20170929] [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/Rohit-Jain/sched-fair-Introduce-scaled-capac

Re: [PATCHv2] mm: Account pud page tables

2017-09-30 Thread kbuild test robot
Hi Kirill, [auto build test ERROR on linus/master] [also build test ERROR on v4.14-rc2] [cannot apply to next-20170929] [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/Kirill-A-Shutemov/mm-Accoun

Re: [PATCH] kbuild: clang: remove crufty HOSTCFLAGS

2017-09-30 Thread Segher Boessenkool
On Sat, Sep 30, 2017 at 04:14:50PM -0700, Nick Desaulniers wrote: > On Thu, Sep 28, 2017 at 07:52:35PM +0900, Masahiro Yamada wrote: > > 2017-09-26 11:28 GMT+09:00 Nick Desaulniers : > > > HOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 \ > > > + $(call hostcc-opti

Re: [PATCHv2] mm: Account pud page tables

2017-09-30 Thread kbuild test robot
Hi Kirill, [auto build test ERROR on linus/master] [also build test ERROR on v4.14-rc2] [cannot apply to next-20170929] [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/Kirill-A-Shutemov/mm-Accoun

[PATCH] perf: tools: Install strace group definitions without executable bit

2017-09-30 Thread Ben Hutchings
The install command sets executable permission by default, but these definitions aren't executables. Signed-off-by: Ben Hutchings --- tools/perf/Makefile.perf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 91ef44bfaf3

Re: [PATCH] kvm/x86: Handle async PF in RCU read-side critical sections

2017-09-30 Thread Boqun Feng
On Sat, Sep 30, 2017 at 05:15:15PM +, Paul E. McKenney wrote: > On Sat, Sep 30, 2017 at 07:41:56AM +0800, Boqun Feng wrote: > > On Fri, Sep 29, 2017 at 04:43:39PM +, Paul E. McKenney wrote: > > > On Fri, Sep 29, 2017 at 04:53:57PM +0200, Paolo Bonzini wrote: > > > > On 29/09/2017 13:01, Boq

[PATCH] mn10300: Use is_vmalloc_addr

2017-09-30 Thread Min-Hua Chen
To is_vmalloc_addr() to check if an address is a vmalloc address instead of checking VMALLOC_START and VMALLOC_END manually. Signed-off-by: Min-Hua Chen --- arch/mn10300/kernel/gdb-stub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mn10300/kernel/gdb-stub.c b/arch/mn

Loan

2017-09-30 Thread CAPITAL FINANCE
UNSECURED BUSINESS/PERSONAL LOAN BY LOAN CAPITAL FINANCE - NO COLLATERAL - MINIMUM DOCUMENTATION - BUSINESS LOAN UP TO FIVE(5) MILLION US DOLLARS CONTACT US TODAY VIA EMAIL: financecapital...@mail.com

[PATCH v2] kvm/x86: Handle async PF in RCU read-side critical sections

2017-09-30 Thread Boqun Feng
Sasha Levin reported a WARNING: | WARNING: CPU: 0 PID: 6974 at kernel/rcu/tree_plugin.h:329 | rcu_preempt_note_context_switch kernel/rcu/tree_plugin.h:329 [inline] | WARNING: CPU: 0 PID: 6974 at kernel/rcu/tree_plugin.h:329 | rcu_note_context_switch+0x16c/0x2210 kernel/rcu/tree.c:458 ... | CPU: 0

Re: [RFC PATCH 3/3] fs: detect that the i_rwsem has already been taken exclusively

2017-09-30 Thread Eric W. Biederman
Linus Torvalds writes: > On Thu, Sep 28, 2017 at 6:53 PM, Mimi Zohar wrote: >> >> The locking issue isn't with validating the file hash, but with the >> setxattr, chmod, chown syscalls. Each of these syscalls takes the >> i_rwsem exclusively before IMA (or EVM) is called. > > Read my email agai

Re: [RESEND RFC PATCH 0/7] sun8i H3 HDMI glue driver for DW HDMI

2017-09-30 Thread Alexey Kardashevskiy
On 01/10/17 04:56, Jernej Škrabec wrote: > Hi, > > Dne sobota, 30. september 2017 ob 13:58:03 CEST je Alexey Kardashevskiy > napisal(a): >> On 21/09/17 06:01, Jernej Skrabec wrote: >>> [added media mailing list due to CEC question] >>> >>> This patch series adds a HDMI glue driver for Allwinner H

<    1   2   3   >