Re: v4.13-rc0 on nokia n900: spinlock bad magic

2017-07-06 Thread Cong Wang
On Thu, Jul 6, 2017 at 11:03 AM, Pavel Machek wrote: > Hi! > > I don't think this is new in v4.13, but perhaps someone knows how to > debug it? > > [ 5611.801147] g_ether gadget: packet filter 0e > [ 5611.801177] g_ether gadget: ecm req21.43 v000e i l0 > [ 5668.771453] BUG: spinlock bad magic

[PATCH] mtk-mdp: constify vb2_ops structure

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable

[PATCH] rcar_fdp1: constify vb2_ops structure

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable

Re: [PATCH 1/2] pinctrl: sunxi: add a missing function of A10/A20 pinctrl driver

2017-07-06 Thread Maxime Ripard
Hi, On Thu, Jul 06, 2017 at 10:28:21PM +0800, Icenowy Zheng wrote: > The PH16 pin has a function with mux id 0x5, which is the DET pin of the > "sim" (smart card reader) IP block. > > This function is missing both in the old A10 and A20 drivers, so it's > not found during the merge of these two

Re: [PATCH v3 1/2] drivers/watchdog: Add optional ASPEED device tree properties

2017-07-06 Thread Guenter Roeck
On Thu, Jul 06, 2017 at 02:27:18PM -0500, Christopher Bostic wrote: > > > On 7/6/17 9:35 AM, Rob Herring wrote: > >On Thu, Jun 29, 2017 at 08:04:17AM -0700, Guenter Roeck wrote: > >>On Thu, Jun 29, 2017 at 08:39:59AM -0500, Christopher Bostic wrote: > >>> > >>>On 6/28/17 10:33 PM, Guenter Roeck

[PATCH 0/3] FPGA Manager support for FPP via FT232H FT245-FIFO

2017-07-06 Thread Anatolij Gustschin
This series adds support for fast passive parallel (FPP) Altera FPGA configuration using FTDI FT232H chip in FT245-FIFO mode. It has been used to configure Arria 10 FPGAs. Patch 1 adds an FT232H MFD driver with common functions that can be used for FT232H USB-GPIO/I2C/SPI master adapter drivers.

[PATCH 3/3] fpga manager: Add FT232H driver for Altera FPP

2017-07-06 Thread Anatolij Gustschin
Add FPGA manager driver for loading Altera FPGAs via fast passive parallel (FPP) interface using FTDI FT232H chip. Signed-off-by: Anatolij Gustschin --- drivers/fpga/Kconfig | 7 + drivers/fpga/Makefile| 1 + drivers/fpga/ftdi-fifo-fpp.c | 569

[PATCH 1/3] mfd: Add support for FTDI FT232H devices

2017-07-06 Thread Anatolij Gustschin
Add USB part with common functions for USB-GPIO/I2C/SPI master adapters. These allow communication with chip's control, transmit and receive endpoints and will be used by various FT232H drivers. Signed-off-by: Anatolij Gustschin --- drivers/mfd/Kconfig | 9 + drivers/mfd/Makefile

[PATCH 2/3] gpio: Add FT232H CBUS GPIO driver

2017-07-06 Thread Anatolij Gustschin
Add driver for CBUS pins on FT232H. The driver supports setting GPIO direction and getting/setting CBUS 0-3 pin value. The CBUS pins have to be enabled by configuring I/O mode in the FTDI EEPROM. Signed-off-by: Anatolij Gustschin --- drivers/gpio/Kconfig | 11 ++ drivers/gpio/Makefile

Re: [PATCH v10 1/3] x86/syscalls: Check address limit on user-mode return

2017-07-06 Thread Thomas Gleixner
On Thu, 6 Jul 2017, Thomas Garnier wrote: > On Wed, Jun 28, 2017 at 10:52 AM, Kees Cook wrote: > > > > On Tue, Jun 20, 2017 at 1:24 PM, Kees Cook wrote: > > > On Wed, Jun 14, 2017 at 6:12 PM, Thomas Garnier > > > wrote: > > >> Ensure the address limit is a user-mode segment before returning to

Re: [PATCH 2/2] pinctrl: sunxi: add support of R40 to A10 pinctrl driver

2017-07-06 Thread Maxime Ripard
On Thu, Jul 06, 2017 at 10:28:22PM +0800, Icenowy Zheng wrote: > SUNXI_PIN(SUNXI_PINCTRL_PIN(B, 0), > SUNXI_FUNCTION(0x0, "gpio_in"), > SUNXI_FUNCTION(0x1, "gpio_out"), > - SUNXI_FUNCTION(0x2, "i2c0")), /* SCK */ > +

[PATCH] atmel-isc: constify vb2_ops structure

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable

[PATCH] mediatek: constify vb2_ops structure

2017-07-06 Thread Gustavo A. R. Silva
Check for vb2_ops structures that are only stored in the ops field of a vb2_queue structure. That field is declared const, so vb2_ops structures that have this property can be declared as const also. This issue was detected using Coccinelle and the following semantic patch: @r disable

Re: [PATCH v10 1/3] x86/syscalls: Check address limit on user-mode return

2017-07-06 Thread Thomas Garnier
On Thu, Jul 6, 2017 at 1:48 PM, Thomas Gleixner wrote: > On Thu, 6 Jul 2017, Thomas Garnier wrote: >> On Wed, Jun 28, 2017 at 10:52 AM, Kees Cook wrote: >> > >> > On Tue, Jun 20, 2017 at 1:24 PM, Kees Cook wrote: >> > > On Wed, Jun 14, 2017 at 6:12 PM, Thomas Garnier >> > > wrote: >> > >>

Re: [PATCH v6 2/4] [media] platform: Add Synopsys Designware HDMI RX Controller Driver

2017-07-06 Thread kbuild test robot
Hi Jose, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on next-20170706] [cannot apply to v4.12] [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/Jose-Abreu/Synopsys

Re: [PATCHv2 0/2] rtc: add support for STM32H7 RTC

2017-07-06 Thread Alexandre Belloni
On 06/07/2017 at 10:47:43 +0200, Amelie Delaunay wrote: > Add support for STM32H7 Real Time Clock variant. > Difference is regarding clocks: there is a 'pclk' clock on STM32H7 > for register access. > > Amelie Delaunay (2): > dt-bindings: rtc: stm32: add support for STM32H7 > rtc: stm32: add

Re: [PATCH 1/2] amd: uncore: Rename cpufeatures macro for cache counters

2017-07-06 Thread Natarajan, Janakarajan
On 6/6/2017 11:31 AM, Borislav Petkov wrote: On Mon, Jun 05, 2017 at 11:13:18AM -0500, Janakarajan Natarajan wrote: In Family 17h, L3 is the last level cache as opposed to L2 in previous families. Avoid this name confusion and rename X86_FEATURE_PERFCT_L2 to X86_FEATURE_PERFCTR_LLC to indicate

Re: [PATCH] integrity: track ctime in addition to i_version for assessment

2017-07-06 Thread Mimi Zohar
Hi Jeff, On Thu, 2017-07-06 at 12:23 -0400, Jeff Layton wrote: > From: Jeff Layton > > The IMA assessment code tries to use the i_version counter to detect > when changes to a file have occurred. Many filesystems don't increment > it properly (or at all) so detecting changes with that is not

Re: [PATCH v5 3/3] mfd: dln2: Send restart command if HW init fails

2017-07-06 Thread Jack Andersen
The restart command doesn't behave like other commands. It doesn't return an error code (which indicates a failed transfer in the dln2 module so the probe fails). Attached is a system log snippet to give you a better idea. I'm able to consistently reproduce this behavior on 4.12 by registering an

Re: [x86/time] 03fa63cc96: ACPI_Error:Table[DMAR]is_not_invalidated_during_early_boot_stage(#/tbxface -#)

2017-07-06 Thread Thomas Gleixner
On Thu, 6 Jul 2017, kernel test robot wrote: > commit: 03fa63cc96ab35592e0a7d522b8edbc1e6b02d22 ("x86/time: Initialize > interrupt mode behind timer init") > ++++ > || 43436935b7 | 03fa63cc96 | >

Re: [PATCH 07/21] x86/intel_rdt/cqm: Add RDT monitoring initialization

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: +/* + * Global boolean for rdt_alloc which is true if any + * resource allocation is enabled. + */ +bool rdt_alloc_enabled; That should be rdt_alloc_capable. It's not enabled at probe time. Probing merily

Re: [PATCH] integrity: track ctime in addition to i_version for assessment

2017-07-06 Thread Jeff Layton
On Thu, 2017-07-06 at 17:00 -0400, Mimi Zohar wrote: > Hi Jeff, > > On Thu, 2017-07-06 at 12:23 -0400, Jeff Layton wrote: > > From: Jeff Layton > > > > The IMA assessment code tries to use the i_version counter to detect > > when changes to a file have occurred. Many filesystems don't increment

[PATCH V4] PCI: handle CRS returned by device after FLR

2017-07-06 Thread Sinan Kaya
An endpoint is allowed to issue Configuration Request Retry Status (CRS) following a Function Level Reset (FLR) request to indicate that it is not ready to accept new requests. Seen a timeout message with Intel 750 NVMe drive and FLR reset. Kernel enables CRS visibility in pci_enable_crs()

Re: [PATCH 09/21] x86/intel_rdt: Simplify info and base file lists

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: @@ -82,6 +82,7 @@ struct rdt_resource rdt_resources_all[] = { }, .parse_ctrlval = parse_cbm, .format_str = "%d=%0*x", +

Re: [RFC PATCH v1 0/8] SCHED_DEADLINE freq/cpu invariance and OPP selection

2017-07-06 Thread Rafael J. Wysocki
On Wednesday, July 05, 2017 09:58:57 AM Juri Lelli wrote: > Hi, > > v1 of the RFC set implementing frequency/cpu invariance and OPP selection for > SCHED_DEADLINE [1]. The set is based on tip/sched/core as of today > (72298e5c92c5), which now already includes Luca's "CPU reclaiming for >

Re: [PATCH] ARM: owl: smp: Drop owl_secondary_boot()

2017-07-06 Thread Florian Fainelli
On 07/06/2017 10:39 AM, Mark Rutland wrote: > On Thu, Jul 06, 2017 at 07:17:28PM +0200, Andreas Färber wrote: >> Am 05.07.2017 um 04:36 schrieb Florian Fainelli: >>> On July 4, 2017 4:32:18 PM PDT, "Andreas Färber" wrote: Commit 18cfd9429d8a82c49add8f3ca9d366599bfcac45 ("ARM: owl: smp: Drop

Re: [git pull] vfs.git pile 11

2017-07-06 Thread Al Viro
On Thu, Jul 06, 2017 at 09:29:27PM +0100, Al Viro wrote: > On Thu, Jul 06, 2017 at 09:18:26PM +0100, Al Viro wrote: > > On Thu, Jul 06, 2017 at 12:45:36PM -0700, Kees Cook wrote: > > > > > > + if (unlikely(!check_copy_size(addr, bytes, false))) > > > + return false; > > > + else > > > +

Re: [PATCH v2] Add support of all Foxconn (105b) Broadcom devices

2017-07-06 Thread Marcel Holtmann
Hi Dmitry, > There is another device > > T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 > D: Ver= 2.00 Cls=ff(vend.) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 > P: Vendor=105b ProdID=e066 Rev=01.12 > S: Manufacturer=Broadcom Corp > S: Product=BCM20702A0 > S:

Re: [PATCH] Driver: Bluetooth:btqca.c Fixed a coding style error

2017-07-06 Thread Marcel Holtmann
Hi Joan, > Fixed this coding style erro > > ./drivers/bluetooth/btqca.c:84: ERROR: code indent should use tabs where > possible > > Signed-off-by: Joan Jani > --- > drivers/bluetooth/btqca.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) patch has been applied to bluetooth-next tree.

Re: [PATCH v2 3/3] pwm: meson: improve pwm calculation precision.

2017-07-06 Thread Thierry Reding
On Thu, Jun 08, 2017 at 02:24:16PM +0200, Jerome Brunet wrote: > When using input clocks with high rates, such as clk81 (166MHz), the > fin_ns = NSEC_PER_SEC / fin_freq can introduce a significant error. > > Ex: fin_freq = 16667, NSEC_PER_SEC = 10 > fin_ns = 5,999 > > which

Re: [PATCH 11/21] x86/intel_rdt/cqm: Add mkdir support for RDT monitoring

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: +/* + * Common code for ctrl_mon and monitor group mkdir. + * The caller needs to unlock the global mutex upon success. + */ +static int mkdir_rdt_common(struct kernfs_node *pkn, struct kernfs_node *prkn,

Re: [iovisor-dev] [PATCH v3 net-next 02/12] bpf/verifier: rework value tracking

2017-07-06 Thread Nadav Amit
Edward Cree via iovisor-dev wrote: > Tracks value alignment by means of tracking known & unknown bits. > Tightens some min/max value checks and fixes a couple of bugs therein. > If pointer leaks are allowed, and adjust_ptr_min_max_vals returns -EACCES, > treat the pointer as an unknown scalar

Re: [PATCH 12/21] x86/intel_rdt/cqm: Add tasks file support

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: @@ -866,6 +866,7 @@ struct task_struct { #endif #ifdef CONFIG_INTEL_RDT int closid; + u32 rmid; Can you please make a preparatory

[tip:irq/urgent] genirq: Allow to pass the IRQF_TIMER flag with percpu irq request

2017-07-06 Thread tip-bot for Daniel Lezcano
Commit-ID: c80081b9209713e0fe86d3def395a9fc66503c58 Gitweb: http://git.kernel.org/tip/c80081b9209713e0fe86d3def395a9fc66503c58 Author: Daniel Lezcano AuthorDate: Thu, 6 Jul 2017 14:29:04 +0200 Committer: Thomas Gleixner CommitDate: Thu, 6 Jul 2017 23:16:22 +0200 genirq: Allow to pass

Re: [PATCH 13/21] x86/intel_rdt/cqm: Add cpus file support

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86/kernel/cpu/intel_rdt.h index fdf3654..fec8ba9 100644 --- a/arch/x86/kernel/cpu/intel_rdt.h +++ b/arch/x86/kernel/cpu/intel_rdt.h @@ -37,6 +37,8 @@

[PATCH] regulator: axp20x: add NULL check on devm_kzalloc() return value

2017-07-06 Thread Gustavo A. R. Silva
Check return value from call to devm_kzalloc() in order to prevent a NULL pointer dereference. This issue was detected using Coccinelle and the following semantic patch: @@ expression x; identifier fld; @@ * x = devm_kzalloc(...); ... when != x == NULL x->fld Signed-off-by: Gustavo A. R.

[PATCH] vmbus: fix the missed signaling in hv_signal_on_read()

2017-07-06 Thread Dexuan Cui
There is an off-by-one bug here, which can cause host-to-guest write to stall. When cur_write_sz == pending_sz, we shouldn't signal the host because it's meaningless: the ring mustn't be 100% full. But when cached_write_sz == pending_sz, we must signal the host. Fixes: 433e19cf33d3 ("Drivers:

Re: [PATCH 13/21] x86/intel_rdt/cqm: Add cpus file support

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: -static ssize_t rdtgroup_cpus_write(struct kernfs_open_file *of, - char *buf, size_t nbytes, loff_t off) +static ssize_t cpus_mon_write(struct kernfs_open_file *of, +

Re: [git pull] vfs.git part 3

2017-07-06 Thread Christoph Hellwig
> Which sparse version are you using and what's your .config? sparse is v0.5.0-62-gce18a90, .config is attached. .config Description: application/config

Re: [PATCH 14/21] x86/intel_rdt/cqm: Add mon_data

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: Add a mon_data directory for the root rdtgroup and all other rdtgroups. The directory holds all of the monitored data for all domains and events of all resources being monitored. Again. This does two

Re: [PATCH 15/21] x86/intel_rdt/cqm: Add rmdir support

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: Resource groups (ctrl_mon and monitor groups) are represented by directories in resctrl fs. Add support to remove the directories. Again. Please split that patch into two parts; seperate ctrl stuff from

Re: [PATCH 3/3] drm: Add CRTC_GET_SEQUENCE and CRTC_QUEUE_SEQUENCE ioctls

2017-07-06 Thread Daniel Vetter
On Thu, Jul 6, 2017 at 6:27 PM, Keith Packard wrote: > Daniel Vetter writes: > >> I very much like this since the old ioctl really is a rather bad horror >> show. And since it's tied in with ums drivers everything is >> complicated. > > Thanks for your kind words. > >> I started a discussion a

[PATCH v2] regulator: axp20x: add NULL check on devm_kzalloc() return value

2017-07-06 Thread Gustavo A. R. Silva
Check return value from call to devm_kzalloc() in order to prevent a NULL pointer dereference. This issue was detected using Coccinelle and the following semantic patch: @@ expression x; identifier fld; @@ * x = devm_kzalloc(...); ... when != x == NULL x->fld Signed-off-by: Gustavo A. R.

Re: [PATCH v2] f2fs: relax migratepage for atomic written page

2017-07-06 Thread Jaegeuk Kim
In order to avoid lock contention for atomic written pages, we'd better give EBUSY in f2fs_migrate_page when mode is asynchronous. We expect it will be released soon as transaction commits. Signed-off-by: Jaegeuk Kim --- Change log from v1: - return -EBUSY when mode is MIGRATE_ASYNC or

[RFC v2 0/5] surface heterogeneous memory performance information

2017-07-06 Thread Ross Zwisler
Quick Summary Platforms in the very near future will have multiple types of memory attached to a single CPU. These disparate memory ranges will have some characteristics in common, such as CPU cache coherence, but they can have wide ranges of performance both in terms of latency and

[RFC v2 2/5] acpi: HMAT support in acpi_parse_entries_array()

2017-07-06 Thread Ross Zwisler
The current implementation of acpi_parse_entries_array() assumes that each subtable has a standard ACPI subtable entry of type struct acpi_sutbable_header. This standard subtable header has a one byte length followed by a one byte type. The HMAT subtables have to allow for a longer length so

[RFC v2 5/5] hmem: add performance attributes

2017-07-06 Thread Ross Zwisler
Add performance information found in the HMAT to the sysfs representation. This information lives as an attribute group named "local_init" in the memory target: # tree mem_tgt2/ mem_tgt2/ ├── firmware_id ├── is_cached ├── is_enabled ├── is_isolated ├── local_init │   ├── mem_init0

Re: [PATCH] gpio: add COMPILE_TEST to several drivers

2017-07-06 Thread Linus Walleij
On Tue, Jul 4, 2017 at 5:51 AM, Masahiro Yamada wrote: > These drivers are actually platform-agnostic. Add COMPILE_TEST for > the compilation test coverage. > > Signed-off-by: Masahiro Yamada I had such patches in the past. It breaks everything to the left and right. What I need is someone

[RFC v2 1/5] acpi: add missing include in acpi_numa.h

2017-07-06 Thread Ross Zwisler
Right now if a file includes acpi_numa.h and they don't happen to include linux/numa.h before it, they get the following warning: ./include/acpi/acpi_numa.h:9:5: warning: "MAX_NUMNODES" is not defined [-Wundef] #if MAX_NUMNODES > 256 ^~~~ Signed-off-by: Ross Zwisler ---

[RFC v2 4/5] sysfs: add sysfs_add_group_link()

2017-07-06 Thread Ross Zwisler
The current __compat_only_sysfs_link_entry_to_kobj() code allows us to create symbolic links in sysfs to groups or attributes. Something like: /sys/.../entry1/groupA -> /sys/.../entry2/groupA This patch extends this functionality with a new sysfs_add_group_link() call that allows the link to

[RFC v2 3/5] hmem: add heterogeneous memory sysfs support

2017-07-06 Thread Ross Zwisler
Add a new sysfs subsystem, /sys/devices/system/hmem, which surfaces information about memory initiators and memory targets to the user. These initiators and targets are described by the ACPI SRAT and HMAT tables. A "memory initiator" in this case is any device such as a CPU or a separate memory

Re: [PATCH 16/21] x86/intel_rdt/cqm: Add mount,umount support

2017-07-06 Thread Shivappa Vikas
On Sun, 2 Jul 2017, Thomas Gleixner wrote: On Mon, 26 Jun 2017, Vikas Shivappa wrote: list_for_each_entry_safe(rdtgrp, tmp, _all_groups, rdtgroup_list) { + /* Free any child rmids */ + llist = >crdtgrp_list; +

[PATCH] drm/rockchip: fix NULL check on devm_kzalloc() return value

2017-07-06 Thread Gustavo A. R. Silva
The right variable to check here is port, not dp. This issue was detected using Coccinelle and the following semantic patch: @@ expression x; identifier fld; @@ * x = devm_kzalloc(...); ... when != x == NULL x->fld Signed-off-by: Gustavo A. R. Silva ---

[RFC] interrupts DT property for irqdomain hierarchy

2017-07-06 Thread Masahiro Yamada
Hi IRQ experts, DT exports, I have a question about CONFIG_IRQ_DOMAIN_HIERARCHY. When IRQ domains are hierarchy, how can we specify IRQ number re-mapping between the parent irqchip and the child irqchip? The following figure shows a simplified example. |--||--|

ketchup is obsolete, everyone should use git; but how on 256MB machine?

2017-07-06 Thread Pavel Machek
Hi! I tried using git to clone kernel tree on N900, and could not figure out how to do that. This machine has 256MB ram... more than enough for kernel compilation, but apparently not enough for git. pavel@n900:/data/tmp$ git clone --depth -1

Re: [PATCH v8 00/20] ILP32 for ARM64

2017-07-06 Thread Yury Norov
Hi Catalin, On Thu, Jun 29, 2017 at 05:10:36PM +0100, Catalin Marinas wrote: > Hi Yury, > > On Mon, Jun 19, 2017 at 06:49:43PM +0300, Yury Norov wrote: > > This series enables aarch64 with ilp32 mode. > > Thanks for putting this series together, I do appreciate the effort. > There are still

[PATCH 0/4] kasan: add clang support

2017-07-06 Thread Greg Hackmann
This patch series adds support for building KASAN-enabled kernels with clang. This mostly involves adding callbacks for a couple of new features in LLVM's AddressSanitizer implementation. We also need to probe for the (slightly different) CFLAGS used to configure ASAN with clang. *** BLURB HERE

[PATCH 3/4] kasan: support LLVM-style asan parameters

2017-07-06 Thread Greg Hackmann
Use cc-option to figure out whether the compiler's sanitizer uses LLVM-style parameters ("-mllvm -asan-foo=bar") or GCC-style parameters ("--param asan-foo=bar"). Signed-off-by: Greg Hackmann --- scripts/Makefile.kasan | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git

[PATCH 1/4] kasan: support alloca() poisoning

2017-07-06 Thread Greg Hackmann
clang's AddressSanitizer implementation adds redzones on either side of alloca()ed buffers. These redzones are 32-byte aligned and at least 32 bytes long. __asan_alloca_poison() is passed the size and address of the allocated buffer, *excluding* the redzones on either side. The left redzone

[PATCH 2/4] kasan: added functions for unpoisoning stack variables

2017-07-06 Thread Greg Hackmann
From: Alexander Potapenko As a code-size optimization, LLVM builds since r279383 may bulk-manipulate the shadow region when (un)poisoning large memory blocks. This requires new callbacks that simply do an uninstrumented memset(). This fixes linking the Clang-built kernel when using KASAN.

[PATCH 4/4] kasan: add compiler support for clang

2017-07-06 Thread Greg Hackmann
For now we can hard-code ASAN ABI level 5, since historical clang builds can't build the kernel anyway. We also need to emulate gcc's __SANITIZE_ADDRESS__ flag, or memset() calls won't be instrumented. Signed-off-by: Greg Hackmann --- include/linux/compiler-clang.h | 10 ++ 1 file

Re: [RFC v2 1/5] acpi: add missing include in acpi_numa.h

2017-07-06 Thread Rafael J. Wysocki
On Thu, Jul 6, 2017 at 11:52 PM, Ross Zwisler wrote: > Right now if a file includes acpi_numa.h and they don't happen to include > linux/numa.h before it, they get the following warning: > > ./include/acpi/acpi_numa.h:9:5: warning: "MAX_NUMNODES" is not defined > [-Wundef] > #if MAX_NUMNODES >

[PATCH] iio: multiplexer: add NULL check on devm_kzalloc() return value

2017-07-06 Thread Gustavo A. R. Silva
Check return value from call to devm_kzalloc() in order to prevent a NULL pointer dereference. This issue was detected using Coccinelle and the following semantic patch: @@ expression x; identifier fld; @@ * x = devm_kzalloc(...); ... when != x == NULL x->fld Signed-off-by: Gustavo A. R.

Re: [RFC v2 2/5] acpi: HMAT support in acpi_parse_entries_array()

2017-07-06 Thread Rafael J. Wysocki
On Thu, Jul 6, 2017 at 11:52 PM, Ross Zwisler wrote: > The current implementation of acpi_parse_entries_array() assumes that each > subtable has a standard ACPI subtable entry of type struct > acpi_sutbable_header. This standard subtable header has a one byte length > followed by a one byte

[PATCH v3 0/7] Appended signatures support for IMA appraisal

2017-07-06 Thread Thiago Jung Bauermann
Hello, The main change in this version is that the process of first trying to verify a modsig and then trying an xattr sig if the former fails is now done in ima_appraise_measurement instead of process_measurement. As a result, the changes needed in the latter are small. This is possible because

Re: [PATCH] NVMe: Added another device ID with stripe quirk

2017-07-06 Thread Christoph Hellwig
On Thu, Jul 06, 2017 at 04:12:31PM -0600, David Wayne Fugate wrote: > Adds a fourth Intel controller which has the "stripe" quirk. NVMe has stadardized a way to communicate this information through the Namespace Optimal IO Boundary (NOIOB) field in the Identify Namespace structure, and Keith and

[PATCH v3 5/7] integrity: Select CONFIG_KEYS instead of depending on it

2017-07-06 Thread Thiago Jung Bauermann
This avoids a dependency cycle in CONFIG_IMA_APPRAISE_MODSIG (introduced by a later patch in this series): it will select CONFIG_MODULE_SIG_FORMAT which in turn selects CONFIG_KEYS. Kconfig then complains that CONFIG_INTEGRITY_SIGNATURE depends on CONFIG_KEYS. Signed-off-by: Thiago Jung Bauermann

[PATCH v3 7/7] ima: Support module-style appended signatures for appraisal

2017-07-06 Thread Thiago Jung Bauermann
This patch introduces the modsig keyword to the IMA policy syntax to specify that a given hook should expect the file to have the IMA signature appended to it. Here is how it can be used in a rule: appraise func=KEXEC_KERNEL_CHECK appraise_type=modsig|imasig With this rule, IMA will accept

[PATCH v3 1/7] integrity: Introduce struct evm_hmac_xattr

2017-07-06 Thread Thiago Jung Bauermann
Even though struct evm_ima_xattr_data includes a fixed-size array to hold a SHA1 digest, most of the code ignores the array and uses the struct to mean "type indicator followed by data of unspecified size" and tracks the real size of what the struct represents in a separate length variable. The

[PATCH v3 3/7] PKCS#7: Introduce verify_pkcs7_message_sig

2017-07-06 Thread Thiago Jung Bauermann
Add function verify_pkcs7_message_signature which takes a struct pkcs7_message for verification isntead of the raw bytes that verify_pkcs7_signature takes. This will be used by IMA to verify files with module-style appended signatures. Signed-off-by: Thiago Jung Bauermann ---

[PATCH v3 6/7] ima: Store measurement after appraisal

2017-07-06 Thread Thiago Jung Bauermann
When module-style signatures appended at the end of files are supported for IMA appraisal, the code will fallback to the xattr signature if the appended one fails to verify. The problem is that we don't know whether we need to fallback to the xattr signature until the appraise step, and by then

[PATCH v3 2/7] MODSIGN: Export module signature definitions.

2017-07-06 Thread Thiago Jung Bauermann
IMA will use the module_signature format for append signatures, so export the relevant definitions and factor out the code which verifies that the appended signature trailer is valid. Also, create a CONFIG_MODULE_SIG_FORMAT option so that IMA can select it and be able to use

[PATCH v3 4/7] integrity: Introduce integrity_keyring_from_id

2017-07-06 Thread Thiago Jung Bauermann
IMA will need to obtain the keyring used to verify file signatures so that it can verify the module-style signature appended to files. Signed-off-by: Thiago Jung Bauermann --- security/integrity/digsig.c| 28 +++- security/integrity/integrity.h | 1 + 2 files

[PATCH] platform/x86: fujitsu-laptop: add NULL check on devm_kzalloc() return value

2017-07-06 Thread Gustavo A. R. Silva
Check return value from call to devm_kzalloc() in order to prevent a NULL pointer dereference. This issue was detected using Coccinelle and the following semantic patch: @@ expression x; identifier fld; @@ * x = devm_kzalloc(...); ... when != x == NULL x->fld Signed-off-by: Gustavo A. R.

Re: [RFC v2 2/5] acpi: HMAT support in acpi_parse_entries_array()

2017-07-06 Thread Ross Zwisler
On Fri, Jul 07, 2017 at 12:13:54AM +0200, Rafael J. Wysocki wrote: > On Thu, Jul 6, 2017 at 11:52 PM, Ross Zwisler > wrote: > > The current implementation of acpi_parse_entries_array() assumes that each > > subtable has a standard ACPI subtable entry of type struct > > acpi_sutbable_header. This

Re: [PATCH] mbcache: initialize entry->e_referenced in mb_cache_entry_create()

2017-07-06 Thread Eric Biggers
+Cc linux-ext4 On Thu, Jul 06, 2017 at 08:27:25PM +0200, Alexander Potapenko wrote: > KMSAN reported use of uninitialized |entry->e_referenced| in a condition > in mb_cache_shrink(): > > == > BUG: KMSAN: use of uninitialized memory

[PATCH v3 0/4] Broadcom STB S2/S3/S5 support for ARM and MIPS

2017-07-06 Thread Florian Fainelli
Hi, This patch series adds support for S2/S3/S5 suspend/resume states on ARM and MIPS based Broadcom STB SoCs. This was submitted a long time ago by Brian, and I am now picking this up and trying to get this included with support for our latest chips. Provided that I can collect the necessary

[PATCH v3 2/4] soc: bcm: brcmstb: Add support for S2/S3/S5 suspend states (ARM)

2017-07-06 Thread Florian Fainelli
From: Brian Norris This commit adds support for the Broadcom STB S2/S3/S5 suspend states on ARM based SoCs. This requires quite a lot of code in order to deal with the different HW blocks that need to be quiesced during suspend: - DDR PHY SHIM - DDR memory controller and sequencer - control

[PATCH v3 4/4] soc bcm: brcmstb: Add support for S2/S3/S5 suspend states (MIPS)

2017-07-06 Thread Florian Fainelli
From: Justin Chen This commit adds support for the Broadcom STB S2/S3/S5 suspend states on MIPS based SoCs. This requires quite a lot of code in order to deal with the different HW blocks that need to be quiesced during suspend: - DDR PHY - DDR memory controller and arbiter - control processor

[PATCH v3 1/4] dt-bindings: ARM: brcmstb: Update Broadcom STB Power Management binding

2017-07-06 Thread Florian Fainelli
Update the Broadcom STB Power Management binding document with new compatible strings for the DDR PHY and memory controller found on newer chips. Acked-by: Rob Herring Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/arm/bcm/brcm,brcmstb.txt | 6 +- 1 file changed, 5

[PATCH v3 3/4] dt-bindings: Document MIPS Broadcom STB power management nodes

2017-07-06 Thread Florian Fainelli
Document the different nodes required for supporting S2/S3/S5 suspend states on MIPS-based Broadcom STB SoCs. Signed-off-by: Florian Fainelli --- .../devicetree/bindings/mips/brcm/soc.txt | 153 + 1 file changed, 153 insertions(+) diff --git

Re: [PATCH v2 1/6] cpufreq: schedutil: ignore sugov kthreads

2017-07-06 Thread Rafael J. Wysocki
On Wednesday, July 05, 2017 12:38:34 PM Patrick Bellasi wrote: > On 05-Jul 10:30, Viresh Kumar wrote: > > On 04-07-17, 18:34, Patrick Bellasi wrote: > > > In system where multiple CPUs shares the same frequency domain a small > > > workload on a CPU can still be subject to frequency spikes,

Re: [PATCH 1/2] trace-cmd: use asprintf when possible

2017-07-06 Thread Steven Rostedt
On Mon, 5 Jun 2017 11:31:17 +0200 Federico Vaga wrote: Hi Federico, I finally got around to looking at these. Sorry for the really slow reply, but I had a bunch of kernel work I needed to get done before digging again into trace-cmd. > It makes the code clearer and less error prone. > >

Re: [PATCH 2/2] trace-cmd: replace show_file() -> show_instance_file()

2017-07-06 Thread Steven Rostedt
On Mon, 5 Jun 2017 11:31:18 +0200 Federico Vaga wrote: > show_file(name) and show_instance_file(_instance, name) are > equivalent. > > Remove the show_file() function in order to have a single function for > this task. Actually I find nothing wrong with having a helper function like this.

Re: [PATCH] fpga manager: add notifier for manager register and unregister events

2017-07-06 Thread Anatolij Gustschin
Hi Alan, On Thu, 6 Jul 2017 13:53:23 -0500 Alan Tull at...@kernel.org wrote: ... >This is interesting and looks pretty straightforward. Do you have any >code that uses it? I've send a patch series for FPP manager, it will add the FPGA manager when an FTDI based configuration device is connected

Re: [PATCH] NVMe: Added another device ID with stripe quirk

2017-07-06 Thread Keith Busch
On Fri, Jul 07, 2017 at 12:17:54AM +0200, Christoph Hellwig wrote: > On Thu, Jul 06, 2017 at 04:12:31PM -0600, David Wayne Fugate wrote: > > Adds a fourth Intel controller which has the "stripe" quirk. > > NVMe has stadardized a way to communicate this information through > the Namespace Optimal

Re: [PATCH v2 0/6] cpufreq: schedutil: fixes for flags updates

2017-07-06 Thread Rafael J. Wysocki
On Tuesday, July 04, 2017 06:34:05 PM Patrick Bellasi wrote: > Each time a CPU utilisation update is issued by the scheduler a flag, which > mainly defines which scheduling class is asking for the update, is used by the > frequency selection policy to support the selection of the most appropriate

Re: [patches] [PATCH 1/9] RISC-V: Init and Halt Code

2017-07-06 Thread Palmer Dabbelt
On Tue, 04 Jul 2017 14:54:01 PDT (-0700), j.neuschae...@gmx.net wrote: > Hi, below are some small comments. > > On Tue, Jul 04, 2017 at 12:50:54PM -0700, Palmer Dabbelt wrote: >> This contains the various __init C functions, the initial assembly >> kernel entry point, and the code to reset the

Re: [RFC v2 2/5] acpi: HMAT support in acpi_parse_entries_array()

2017-07-06 Thread Rafael J. Wysocki
On Fri, Jul 7, 2017 at 12:22 AM, Ross Zwisler wrote: > On Fri, Jul 07, 2017 at 12:13:54AM +0200, Rafael J. Wysocki wrote: >> On Thu, Jul 6, 2017 at 11:52 PM, Ross Zwisler >> wrote: >> > The current implementation of acpi_parse_entries_array() assumes that each >> > subtable has a standard ACPI

[PATCH] mtd: spear_smi: add NULL check on devm_kzalloc() return value

2017-07-06 Thread Gustavo A. R. Silva
Check return value from call to devm_kzalloc() in order to prevent a NULL pointer dereference. This issue was detected using Coccinelle and the following semantic patch: @@ expression x; identifier fld; @@ * x = devm_kzalloc(...); ... when != x == NULL x->fld Signed-off-by: Gustavo A. R.

Re: [PATCH] platform/x86: silead_dmi: Add touchscreen info for I.T.Works TW891 2-in-1

2017-07-06 Thread Darren Hart
On Sat, Jul 01, 2017 at 12:15:22PM +0200, Hans de Goede wrote: > Add touchscreen info for I.T.Works TW891 2-in-1. > ... > + /* I.T.Works TW891 */ > + .driver_data = (void *)_tw891_data, > + .matches = { > + DMI_MATCH(DMI_SYS_VENDOR, "To be

[PATCH v6 1/3] iio: adc: Add support for DLN2 ADC

2017-07-06 Thread Jack Andersen
This patch adds support for Diolan DLN2 ADC via IIO's ADC interface. ADC is the fourth and final component of the DLN2 for the kernel. Signed-off-by: Jack Andersen --- Changes in v2: - Address Peter's remarks; bringing consistency to C99 syntax, dev_dbg usage, and error handling. - Remove

Re: [PATCH] rcar_fdp1: constify vb2_ops structure

2017-07-06 Thread Kieran Bingham
Hi Gustavo, Thank you for the patch. On 06/07/17 21:25, Gustavo A. R. Silva wrote: > Check for vb2_ops structures that are only stored in the ops field of a > vb2_queue structure. That field is declared const, so vb2_ops structures > that have this property can be declared as const also. > >

[PATCH v6 2/3] mfd: dln2: Add cell for initializing DLN2 ADC

2017-07-06 Thread Jack Andersen
This patch extends the DLN2 driver; adding cell for adc_dln2 module. Signed-off-by: Jack Andersen Acked-for-MFD-by: Lee Jones --- Changes in v6: - Add commit message For my own reference: Acked-for-MFD-by: Lee Jones --- drivers/mfd/dln2.c | 12 1 file changed, 12 insertions(+)

Re: [PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support

2017-07-06 Thread Rafael J. Wysocki
On Thursday, July 06, 2017 04:10:27 PM Viresh Kumar wrote: > On 06-07-17, 10:49, Dietmar Eggemann wrote: > > A frequency-invariant load-tracking solution based on cpufreq transition > > notifier will not work for future fast frequency switching policies. > > That is why a different solution is

[PATCH v2 5/9] staging: iio: tsl2x7x: cleaned up i2c calls in tsl2x7x_als_calibrate()

2017-07-06 Thread Brian Masney
The calibration function calls i2c_smbus_write_byte() and i2c_smbus_read_byte(). These two function calls are replaced with a single call to i2c_smbus_read_byte_data() by this patch. This patch also removes an unnecessary call that reads the CNTRL register a second time. One of the error paths

[PATCH v2 8/9] staging: iio: tsl2x7x: migrate in_illuminance0_integration_time sysfs attribute to iio_chan_spec

2017-07-06 Thread Brian Masney
The driver explicitly creates the in_illuminance0_integration_time sysfs attribute outside the IIO core. This attribute is available in the IIO core so this patches migrates the attribute to be created by the iio_chan_spec. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2x7x.c |

[PATCH v2 4/9] staging: iio: tsl2x7x: remove tsl2x7x_i2c_read()

2017-07-06 Thread Brian Masney
tsl2x7x_i2c_read() would call i2c_smbus_write_byte() and i2c_smbus_read_byte(). These two i2c functions can be replaced with a single call to i2c_smbus_read_byte_data(). This patch removes the tsl2x7x_i2c_read() function and replaces all occurrences with a call to i2c_smbus_read_byte_data().

[PATCH v2 6/9] staging: iio: tsl2x7x: refactor {read,write}_event_value to allow handling multiple iio_event_infos

2017-07-06 Thread Brian Masney
tsl2x7x_read_thresh() and tsl2x7x_write_thresh() currently assumes that IIO_EV_INFO_VALUE is the only iio_event_info that will be passed in. This patch refactors these two functions so that additional iio_event_infos can be passed in. The functions are renamed from tsl2x7x_{read,write}_thresh()

[PATCH v2 7/9] staging: iio: tsl2x7x: use usleep_range() instead of mdelay()

2017-07-06 Thread Brian Masney
This driver in some cases can busy wait for upwards of 15ms. Since the kernel at this point is not running in atomic context, and is running in process context, we can safely use usleep_range() instead. This patch changes the two occurrences of mdelay() to usleep_range(). Signed-off-by: Brian

<    12   13   14   15   16   17   18   19   >