Re: [PATCH v3 1/3] leds: core: Introduce generic pattern interface

2017-12-08 Thread Pavel Machek
Hi! > > > > +KernelVersion: 4.14 > > > > > > And that kernel version is long since released :) > > > > Yeah, the other problem is it has some interesting format with ":|" > > marking repeat, > > So what would you prefer? > > We can either add another file ("pattern_repeat"?) that allows you to

Re: [PATCH v5 2/4] clk: meson-axg: add clocks dt-bindings required header

2017-12-08 Thread Jerome Brunet
On Fri, 2017-12-08 at 22:22 +0800, Yixun Lan wrote: > let's just wait for a few more days, to see if there are more comments > coming up, then I would fold them together That's up to you. Keep in mind that rc4 is coming up and I'll need some time to test/verify the final version

[PATCH v2 2/2] HID: input: do not increment usages when a duplicate is found

2017-12-08 Thread Benjamin Tissoires
This is something that bothered us from a long time. When hid-input doesn't know how to map a usage, it uses *_MISC. But there is something else which increments the usage if the evdev code is already used. This leads to few issues: - some devices may have their ABS_X mapped to ABS_Y if they expor

[PATCH v2 0/2] HID: input: do not increment usages when a duplicate is found

2017-12-08 Thread Benjamin Tissoires
Hi Jiri, slightly modified version (to actually make it working this time). There is not much to add, the differences are in the commit messages and in the notes of each patch. Cheers, Benjamin Benjamin Tissoires (2): HID: use BIT macro instead of plain integers for flags HID: input: do not

[PATCH v2 1/2] HID: use BIT macro instead of plain integers for flags

2017-12-08 Thread Benjamin Tissoires
This can lead to some hairy situation with the developer losing a day or two realizing that 4 should be after 2, not 3. Signed-off-by: Benjamin Tissoires --- new in v2 include/linux/hid.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/hid.h b/inc

Re: [PATCH] ACPI / PM: Do not reconfigure GPEs for suspend-to-idle

2017-12-08 Thread Rafael J. Wysocki
On Thu, Dec 7, 2017 at 3:27 AM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Currently, non-wakeup GPEs are disabled on suspend-to-idle > entry to avoid spurious wakeups, but that should not be strictly > necessary any more after commit 33e4f80ee69b (ACPI / PM: Ignore > spurious SCI wak

iwl3945: regression at 4.15-rc1 was Re: 4.15.0-rc1-next-20171201: WARNING: .... at net/mac80211/agg-tx.c:315

2017-12-08 Thread Pavel Machek
Hi! > > This is quite annoying: repeated > > > > [ 4169.591529] ---[ end trace e65d97cf1d20b84d ]--- > > [ 4169.591565] WARNING: CPU: 0 PID: 5472 at net/mac80211/agg-tx.c:315 > > ___ieee80211_stop_tx_\ > > ba_session+0x158/0x1f0 > > > > Hardware is thinkpad x60. Git blame says cfcdbde35 introduced

Re: [PATCH 0/4] Add support for muxing individual pins

2017-12-08 Thread Charles Keepax
On Mon, Oct 09, 2017 at 11:10:34PM +0200, Linus Walleij wrote: > On Fri, Sep 29, 2017 at 12:14 PM, Charles Keepax > wrote: > > This series add support for muxing individual pins within > > pin mux, rather than just whole groups. Mainly, I had two > > motivations here, one to avoid the need to add

Re: [PATCH 0/2] acpi, x86: Add SPCR table support

2017-12-08 Thread Prarit Bhargava
On 12/08/2017 01:29 AM, Ingo Molnar wrote: > > * Prarit Bhargava wrote: > >> The SPCR (Serial Port Console Redirection) Table provides information >> about the configuration of serial port. This information can be used >> to configure the early console. > > s/about the configuration of seria

[PATCH 1/1] HID: core: rewrite the hid-generic automatic unbind

2017-12-08 Thread Benjamin Tissoires
We actually can have the unbind/rebind logic in hid-core.c, leaving only the match function in hid-generic. This makes hid-generic simpler and the whole logic simpler too. Signed-off-by: Benjamin Tissoires --- Hi Jiri, while trying to find out a local bug, I figured out we don't really need the

Re: [PATCH] schedule: use unlikely()

2017-12-08 Thread Pavel Machek
On Tue 2017-11-28 08:22:50, Greg KH wrote: > On Mon, Nov 27, 2017 at 07:05:22PM -0500, Mikulas Patocka wrote: > > > > > > On Sat, 25 Nov 2017, Greg KH wrote: > > > > > On Mon, Nov 13, 2017 at 02:00:45PM -0500, Mikulas Patocka wrote: > > > > A small patch for schedule(), so that the code goes str

Re: [PATCH] schedule: use unlikely()

2017-12-08 Thread Pavel Machek
On Thu 2017-11-30 08:07:44, Greg KH wrote: > On Thu, Nov 30, 2017 at 02:04:01AM -0500, Mikulas Patocka wrote: > > > > > > On Tue, 28 Nov 2017, Greg KH wrote: > > > > > On Mon, Nov 27, 2017 at 07:05:22PM -0500, Mikulas Patocka wrote: > > > > > > > > > > > > On Sat, 25 Nov 2017, Greg KH wrote: >

Re: [PATCH] ASoC: atmel-classd: select correct Kconfig symbol

2017-12-08 Thread Alexandre Belloni
On 05/12/2017 at 23:07:59 +0100, Alexandre Belloni wrote: > On 05/12/2017 at 14:28:28 +0100, Arnd Bergmann wrote: > > On Tue, Dec 5, 2017 at 1:47 PM, Alexandre Belloni > > wrote: > > > On 05/12/2017 at 12:13:41 +0100, Arnd Bergmann wrote: > > > > > > Ok, does that solve both randconfigs? > > > > >

Re: [PATCH v4 4/8] arm: OMAP: Move dmtimer driver out of plat-omap to drivers under clocksource

2017-12-08 Thread Keerthy
On Friday 08 December 2017 09:25 AM, Keerthy wrote: > > > On Thursday 07 December 2017 04:24 PM, Daniel Lezcano wrote: >> On 01/12/2017 06:16, Keerthy wrote: >>> Move the dmtimer driver out of plat-omap to clocksource. >>> So that non-omap devices also could use this. >>> >>> No Code changes do

Re: [PATCH] w1: w1-gpio: Convert to use GPIO descriptors

2017-12-08 Thread Linus Walleij
On Tue, Dec 5, 2017 at 11:40 PM, Evgeniy Polyakov wrote: > Sorry for late reply It's cool. Much to do. > 20.11.2017, 11:47, "Linus Walleij" : >> The w1 master driver includes a complete open drain emulation >> reimplementation among other things. >> >> This converts the driver and all board fil

pull-request: wireless-drivers 2017-12-08

2017-12-08 Thread Kalle Valo
Hi Dave, this is a pull request to net tree for 4.15, more info in the signed tag below. All small fixes and not really expecting any problems, but please let me know if you have any. Kalle The following changes since commit f859b4af1c52493ec21173ccc73d0b60029b5b88: sit: update frag_off info

Re: [PATCH v3] leds: trigger: Introduce a NETDEV trigger

2017-12-08 Thread Philippe Ombredanne
Pavel, On Fri, Dec 8, 2017 at 3:27 PM, Pavel Machek wrote: > On Thu 2017-12-07 14:01:39, Philippe Ombredanne wrote: >> Ben, >> >> On Thu, Dec 7, 2017 at 12:46 PM, Ben Whitten wrote: >> > From: Ben Whitten >> > >> > This commit introduces a NETDEV trigger for named device >> > activity. Availabl

[RFC] irqchip: add support for LS1021A external interrupt lines

2017-12-08 Thread Rasmus Villemoes
The LS1021A allows inverting the polarity of six interrupt lines IRQ[0:5] via the scfg_intpcr register, effectively allowing IRQ_TYPE_LEVEL_LOW and IRQ_TYPE_EDGE_FALLING for those. We just need to check the type, set the relevant bit in INTPCR accordingly, and fixup the type argument before calling

Re: [PATCH V6 4/7] OF: properties: Implement get_match_data() callback

2017-12-08 Thread Sinan Kaya
On 12/8/2017 4:11 AM, Lothar Waßmann wrote: >> While implementing the ACPI piece, I have to convert an unsigned long to >> (const void *) in ACPI code so that the APIs are compatible. >> > Just one more remark: Do you need write access to the data the pointer > returned by device_get_match_data() o

RE: [PATCH 0/2] mm: introduce MAP_FIXED_SAFE

2017-12-08 Thread David Laight
From: Michael Ellerman > Sent: 08 December 2017 11:08 ... > If we had a time machine, the right set of flags would be: > > - MAP_FIXED: don't treat addr as a hint, fail if addr is not free > - MAP_REPLACE: replace an existing mapping (or force or clobber) > > But the two were conflated for

Re: [PATCH] gpio: mockup: fix a return value check

2017-12-08 Thread Linus Walleij
On Wed, Dec 6, 2017 at 5:30 PM, Bartosz Golaszewski wrote: > The return value of platform_device_register_resndata() on error is > an error code converted to pointer with ERR_PTR(), not NULL. > > Check the return value correctly. > > Fixes: 8a39f597bcfd ("gpio: mockup: rework device probing") > S

Re: [PATCH] x86/mm: Rewrite sme_populate_pgd() in a more sensible way

2017-12-08 Thread Tom Lendacky
On 12/4/2017 11:39 AM, Kirill A. Shutemov wrote: On Mon, Dec 04, 2017 at 04:34:45PM +, Kirill A. Shutemov wrote: On Mon, Dec 04, 2017 at 04:00:26PM +, Tom Lendacky wrote: On 12/4/2017 8:57 AM, Kirill A. Shutemov wrote: On Mon, Dec 04, 2017 at 08:19:11AM -0600, Tom Lendacky wrote: On 1

Re: [PATCH V6 4/7] OF: properties: Implement get_match_data() callback

2017-12-08 Thread Sinan Kaya
On 12/8/2017 9:33 AM, Sinan Kaya wrote: > On 12/8/2017 4:11 AM, Lothar Waßmann wrote: >>> While implementing the ACPI piece, I have to convert an unsigned long to >>> (const void *) in ACPI code so that the APIs are compatible. >>> >> Just one more remark: Do you need write access to the data the p

Re: [PATCH 0/4] Add support for muxing individual pins

2017-12-08 Thread Linus Walleij
On Fri, Dec 8, 2017 at 3:29 PM, Charles Keepax wrote: > (...) I have finally > managed to get some time to look over the pinctrl-single stuff. > > Naively one could convert the pinctrl-single stuff over to use > the patches I proposed creating one large group for the driver > and then mux each pi

Re: [PATCH 0/6] ARM: stm32: add initial STM32MPU support

2017-12-08 Thread Neil Armstrong
On 08/12/2017 15:11, Ludovic Barre wrote: > From: Ludovic Barre > > This patch series extends the existing STM32 microcontrollers (MCUs) > family to microprocessors (MPUs). The MPU platform (based on > Arm Cortex-A) is a continuation of the MCU one (based on Arm > Cortex-M) in that it shares a wi

Re: [PATCH] x86/mm: Rewrite sme_populate_pgd() in a more sensible way

2017-12-08 Thread Tom Lendacky
On 12/4/2017 12:50 PM, Kirill A. Shutemov wrote: On Mon, Dec 04, 2017 at 12:33:01PM -0600, Tom Lendacky wrote: On 12/4/2017 10:34 AM, Kirill A. Shutemov wrote: On Mon, Dec 04, 2017 at 04:00:26PM +, Tom Lendacky wrote: On 12/4/2017 8:57 AM, Kirill A. Shutemov wrote: On Mon, Dec 04, 2017 at

Re: [PATCH] KEYS: reject NULL restriction string when type is specified

2017-12-08 Thread David Howells
Mat Martineau wrote: > Since this fixes the bug for the asymmetric key type and ensures that other > key types won't make the same mistake, I agree this is the way to fix it. I > did not find any issues in the patch. Can I put that down as a Reviewed-by? David

Re: [PATCH 3/9] power: remove unneeded kallsyms include

2017-12-08 Thread Sergey Senozhatsky
On (12/08/17 15:01), Rafael J. Wysocki wrote: > On Fri, Dec 8, 2017 at 3:56 AM, Sergey Senozhatsky > wrote: > > The file was converted from print_fn_descriptor_symbol() > > to %pF some time ago (c80cfb0406c01bb "vsprintf: use new > > vsprintf symbolic function pointer format"). kallsyms does > > n

Re: [PATCH 5/9] pnp: remove unneeded kallsyms include

2017-12-08 Thread Sergey Senozhatsky
On (12/08/17 15:02), Rafael J. Wysocki wrote: > On Fri, Dec 8, 2017 at 3:56 AM, Sergey Senozhatsky > wrote: > > The file was converted from print_fn_descriptor_symbol() > > to %pF some time ago (2e532d68a2b3e2aa {pci,pnp} quirks.c: > > don't use deprecated print_fn_descriptor_symbol()). kallsyms >

Re: [PATCH v2 2/5] perf-probe: Cut off the version suffix from event name

2017-12-08 Thread Paul Clarke
On 12/07/2017 09:01 PM, Masami Hiramatsu wrote: > On Thu, 7 Dec 2017 10:34:51 -0600 > Paul Clarke wrote: >> On 12/07/2017 01:20 AM, Masami Hiramatsu wrote: >>> Cut off the version suffix (e.g. @GLIBC_2.2.5 etc.) from >>> automatic generated event name. This fixes wildcard event >>> adding like b

Re: [PATCH v4 4/4] arm64: dts: meson-axg: add clock DT info for Meson AXG SoC

2017-12-08 Thread Yixun Lan
On 12/07/17 08:50, Kevin Hilman wrote: > Yixun Lan writes: > >> From: Qiufang Dai >> >> Try to add Hiubus DT info, and also enable clock DT info >> for the Amlogic's Meson-AXG SoC. >> >> Acked-by: Rob Herring >> Signed-off-by: Qiufang Dai >> Signed-off-by: Yixun Lan >> --- >> arch/arm64/boot

Re: [PATCH V7 2/7] ACPI / bus: Introduce acpi_get_match_data() function

2017-12-08 Thread Rafael J. Wysocki
On Thu, Dec 7, 2017 at 10:10 PM, Sinan Kaya wrote: > OF has of_device_get_match_data() function to extract driver specific data > structure. Add a similar function for ACPI. > > Signed-off-by: Sinan Kaya > --- > drivers/acpi/bus.c | 18 ++ > include/linux/acpi.h | 6 ++ >

Re: [PATCH V7 5/7] ACPI: properties: Implement get_match_data() callback

2017-12-08 Thread Rafael J. Wysocki
On Thu, Dec 7, 2017 at 10:10 PM, Sinan Kaya wrote: > Now that we have a get_match_data() callback as part of the firmware node, > implement the ACPI specific piece for it. > > Signed-off-by: Sinan Kaya > Acked-by: Sakari Ailus > --- > drivers/acpi/property.c | 8 > 1 file changed, 8 in

RE: [PATCH V2] perf script: add script to profile and resolve physical mem type

2017-12-08 Thread Liang, Kan
Hi Arnaldo, Ping. Any comments for the script? Thanks, Kan > > > > From: Kan Liang > > > > There could be different types of memory in the system. E.g normal > > System Memory, Persistent Memory. To understand how the workload > maps > > to those memories, it's important to know the I/O statist

[PATCH v3 net-next 0/4] bpftool: cgroup bpf operations

2017-12-08 Thread Roman Gushchin
This patchset adds basic cgroup bpf operations to bpftool. Right now there is no convenient way to perform these operations. The /samples/bpf/load_sock_ops.c implements attach/detacg operations, but only for BPF_CGROUP_SOCK_OPS programs. Bps (part of bcc) implements bpf introspection, but lacks an

[PATCH v3 net-next 1/4] libbpf: add ability to guess program type based on section name

2017-12-08 Thread Roman Gushchin
The bpf_prog_load() function will guess program type if it's not specified explicitly. This functionality will be used to implement loading of different programs without asking a user to specify the program type. In first order it will be used by bpftool. Signed-off-by: Roman Gushchin Cc: Alexei

[PATCH v3 net-next 4/4] bpftool: implement cgroup bpf operations

2017-12-08 Thread Roman Gushchin
This patch adds basic cgroup bpf operations to bpftool: cgroup list, attach and detach commands. Usage is described in the corresponding man pages, and examples are provided. Syntax: $ bpftool cgroup list CGROUP $ bpftool cgroup attach CGROUP ATTACH_TYPE PROG [ATTACH_FLAGS] $ bpftool cgroup detac

[PATCH v3 net-next 3/4] bpftool: implement prog load command

2017-12-08 Thread Roman Gushchin
Add the prog load command to load a bpf program from a specified binary file and pin it to bpffs. Usage description and examples are given in the corresponding man page. Syntax: $ bpftool prog load OBJ FILE FILE is a non-existing file on bpffs. Signed-off-by: Roman Gushchin Cc: Alexei Starovoi

Re: [PATCH v2 net-next 4/4] bpftool: implement cgroup bpf operations

2017-12-08 Thread Roman Gushchin
On Fri, Dec 08, 2017 at 02:56:15PM +0100, Philippe Ombredanne wrote: > On Fri, Dec 8, 2017 at 11:34 AM, Quentin Monnet > wrote: > > 2017-12-07 18:39 UTC+ ~ Roman Gushchin > >> This patch adds basic cgroup bpf operations to bpftool: > >> cgroup list, attach and detach commands. > > [...] > >>

[PATCH v3 net-next 2/4] libbpf: prefer global symbols as bpf program name source

2017-12-08 Thread Roman Gushchin
Libbpf picks the name of the first symbol in the corresponding elf section to use as a program name. But without taking symbol's scope into account it may end's up with some local label as a program name. E.g.: $ bpftool prog 1: type 15 name LBB0_10tag 0390a5136ba23f5c loaded_at Dec 0

Re: [PATCH] schedule: use unlikely()

2017-12-08 Thread Greg KH
On Fri, Dec 08, 2017 at 03:30:18PM +0100, Pavel Machek wrote: > On Thu 2017-11-30 08:07:44, Greg KH wrote: > > On Thu, Nov 30, 2017 at 02:04:01AM -0500, Mikulas Patocka wrote: > > > > > > > > > On Tue, 28 Nov 2017, Greg KH wrote: > > > > > > > On Mon, Nov 27, 2017 at 07:05:22PM -0500, Mikulas Pa

Re: [PATCH v1 1/2] eeprom: at24: convert magic numbers to structs.

2017-12-08 Thread Bartosz Golaszewski
2017-12-08 15:10 GMT+01:00 Sven Van Asbroeck : > Hi Bartosz, thanks for the encouragement ! > > Bartosz wrote: >> Also: please have the AT24/at24 prefix for symbols in the driver. > > These specific symbols are declared static, i.e. they're visible only > inside at24.c. > Do you think they should s

Re: [PATCH v3 05/33] nds32: Exception handling

2017-12-08 Thread Al Viro
On Fri, Dec 08, 2017 at 05:11:48PM +0800, Greentime Hu wrote: > diff --git a/arch/nds32/kernel/traps.c b/arch/nds32/kernel/traps.c > new file mode 100644 > index 000..30a275d > --- /dev/null > +++ b/arch/nds32/kernel/traps.c > @@ -0,0 +1,441 @@ > +/* > + * Copyright (C) 2005-2017 Andes Technol

Re: [PATCH v1 1/2] eeprom: at24: convert magic numbers to structs.

2017-12-08 Thread Bartosz Golaszewski
2017-12-08 15:17 GMT+01:00 Sven Van Asbroeck : > Bartosz wrote: >>> +#define AT24_OF_DEVICE_ID(_mfg, _name) \ >>> + { .compatible = #_mfg "," #_name, .data = &platdata_##_name } >> >> I don't like hiding the way the compatible is created here from the >> user. It doesn't save any code neither

Re: [PATCH RFC 3/7] KVM: timer: synchronize tsc-deadline timestamp for guest

2017-12-08 Thread Konrad Rzeszutek Wilk
On Fri, Dec 08, 2017 at 04:39:46PM +0800, Quan Xu wrote: > From: Ben Luo > > In general, KVM guest programs tsc-deadline timestamp to > MSR_IA32_TSC_DEADLINE MSR. This will cause a VM-exit, and > then KVM handles this timer for guest. > > The tsc-deadline timestamp is mostly recorded in share pa

Re: [GIT PULL] DeviceTree fixes for 4.15, part 2

2017-12-08 Thread Rob Herring
On Fri, Dec 8, 2017 at 8:10 AM, Rob Herring wrote: > Hi Linus, > > Please pull another set of DT fixes. Disregard this one. I've just gotten another overlay fix, so I'm going to add that in. Rob

Re: [PATCH RFC 0/7] kvm pvtimer

2017-12-08 Thread Konrad Rzeszutek Wilk
On Fri, Dec 08, 2017 at 04:39:43PM +0800, Quan Xu wrote: > From: Ben Luo > > This patchset introduces a new paravirtualized mechanism to reduce VM-exit > caused by guest timer accessing. And how bad is this blib in arming the timer? And how often do you get this timer to be armed? OR better yet

Re: [PATCH 0/2] of: overlay: Crash fix and improvement

2017-12-08 Thread Rob Herring
On Fri, Dec 08, 2017 at 02:13:01PM +0100, Geert Uytterhoeven wrote: > Hi Pantelis, Rob, Frank, > > This patch series fixes memory corruption when applying overlays. > > I first noticed this when using OF configfs. After lots of failed > debugging attempts, I bisected it to "of: overlay: ad

Re: [RFC] irqchip: add support for LS1021A external interrupt lines

2017-12-08 Thread Alexander Stein
Hi Rasmus, thanks for your effort. unfortunatly I won't be able to test it currently :( But some comments below. On Friday, December 8, 2017, 3:33:00 PM CET Rasmus Villemoes wrote: > The LS1021A allows inverting the polarity of six interrupt lines > IRQ[0:5] via the scfg_intpcr register, effectiv

[PATCH v3 4/4] x86/xen: supply rsdp address in boot params for pvh guests

2017-12-08 Thread Juergen Gross
When booted via the special PVH entry save the RSDP address set in the boot information block in struct boot_params. This will enable Xen to locate the RSDP at an arbitrary address. Set the boot loader version to 2.14 (0x020e) replacing the wrong 0x0212 which should have been 0x020c. Signed-off-b

[PATCH v3 2/4] x86/acpi: take rsdp address for boot params if available

2017-12-08 Thread Juergen Gross
In case the rsdp address in struct boot_params is specified don't try to find the table by searching, but take the address directly as set by the boot loader. Signed-off-by: Juergen Gross --- V3: use a generic retrieval function with a __weak annotated default function (Ingo Molnar) --- arch

[PATCH v3 0/4] x86: make rsdp address accessible via boot params

2017-12-08 Thread Juergen Gross
In the non-EFI boot path the ACPI RSDP table is currently found via either EBDA or by searching through low memory for the RSDP magic. This requires the RSDP to be located in the first 1MB of physical memory. Xen PVH guests, however, get the RSDP address via the start of day information block. In

[PATCH v3 1/4] x86/boot: add acpi rsdp address to setup_header

2017-12-08 Thread Juergen Gross
Xen PVH guests receive the address of the RSDP table from Xen. In order to support booting a Xen PVH guest via Grub2 using the standard x86 boot entry we need a way for Grub2 to pass the RSDP address to the kernel. For this purpose expand the struct setup_header to hold the physical address of the

[PATCH v3 3/4] x86/xen: fix boot loader version reported for pvh guests

2017-12-08 Thread Juergen Gross
The boot loader version reported via sysfs is wrong in case of the kernel being booted via the Xen PVH boot entry. it should be 2.12 (0x020c), but it is reported to be 2.18 (0x0212). As the current way to set the version is error prone use the more readable variant (2 << 8) | 12. Cc: # 4.12 Sign

Hello Dear,

2017-12-08 Thread Joy williams
Hello Dear, Greetings,I'm here to meet a serious man who is ready to keep a serious relationship with me. I know its hard to find a serious man on internet, I believe dream come through with one mind. I need reliable person who is honest. I am looking for the right man for me who is sincere, loyal

Re: [PATCH 00/18] crypto: talitos - fixes and performance improvement

2017-12-08 Thread Horia Geantă
On 10/12/2017 6:20 PM, Herbert Xu wrote: > On Fri, Oct 06, 2017 at 03:04:31PM +0200, Christophe Leroy wrote: >> This serie fixes and improves the talitos crypto driver. >> >> First 6 patchs are fixes of failures reported by the new tests in the >> kernel crypto test manager. >> Looks like these fix

RE: [PATCH 0/4] USB over IP Secuurity fixes

2017-12-08 Thread Secunia Research
Hi Shuah, Thanks a lot for the quick fixes. Please, use this email address: v...@secunia.com We have assigned the following CVEs to the issues: CVE-2017-16911 usbip: prevent vhci_hcd driver from leaking a socket pointer address CVE-2017-16912 usbip: fix stub_rx: get_pipe() to validate endpoint n

Re: [PATCH 0/2] of: overlay: Crash fix and improvement

2017-12-08 Thread Geert Uytterhoeven
Hi Rob, On Fri, Dec 8, 2017 at 4:11 PM, Rob Herring wrote: > On Fri, Dec 08, 2017 at 02:13:01PM +0100, Geert Uytterhoeven wrote: >> This patch series fixes memory corruption when applying overlays. >> >> I first noticed this when using OF configfs. After lots of failed >> debugging attempts, I b

Re: [PATCH] lib/string: avoid reading beyond src buffer in strscpy

2017-12-08 Thread Andrey Ryabinin
On 12/07/2017 09:26 PM, Kees Cook wrote: > On Thu, Dec 7, 2017 at 3:33 AM, Eryu Guan wrote: >> strscpy() tries to copy sizeof(unsigned long) bytes a time from src >> to dest when possible, and stops the loop when 'max' is less than >> sizeof(unsigned long). But it doesn't check if (src+res) goes b

Re: Lockdep is less useful than it was

2017-12-08 Thread Theodore Ts'o
On Thu, Dec 07, 2017 at 02:38:03PM -0800, Matthew Wilcox wrote: > I think it was a mistake to force these on for everybody; they have a > much higher false-positive rate than the rest of lockdep, so as you say > forcing them on leads to fewer people using *any* of lockdep. > > The bug you're hitti

Re: [PATCH v1 1/2] eeprom: at24: convert magic numbers to structs.

2017-12-08 Thread Sven Van Asbroeck
Bartosz wrote: > Just make it accept two parameters: the string and the data object > name. For example: > > AT24_OF_DEVICE_ID("atmel,24c01", 24c01); > I don't want to do too much bikeshedding, but one last comment. Is it a good idea to have duplicated information? Do you think the risk of a typo

[PATCH] pinctrl: meson-axg: adjust spicc pin naming

2017-12-08 Thread Yixun Lan
According to datasheet, we should use numbers for the pin naming instead of letters. The patch here try to fix this to keep the consistency. This patch should not bring any functional change. Fixes: 83c566806a68 ("pinctrl: meson-axg: Add new pinctrl driver for Meson AXG SoC") Suggested-by: Kevin

Re: [patch V4 01/11] Documentation: Add license-rules.rst to describe how to properly identify file licenses

2017-12-08 Thread Philippe Ombredanne
On Tue, Dec 5, 2017 at 7:50 AM, Heiko Carstens wrote: > On Mon, Dec 04, 2017 at 10:19:28PM +0100, Thomas Gleixner wrote: >> +3. Syntax: >> + >> + A is either an SPDX short form license >> + identifier found on the SPDX License List, or when multiple licenses >> + apply, an expression consis

Re: [PATCH] lib/string: avoid reading beyond src buffer in strscpy

2017-12-08 Thread Dmitry Vyukov
On Fri, Dec 8, 2017 at 4:29 PM, Andrey Ryabinin wrote: > On 12/07/2017 09:26 PM, Kees Cook wrote: >> On Thu, Dec 7, 2017 at 3:33 AM, Eryu Guan wrote: >>> strscpy() tries to copy sizeof(unsigned long) bytes a time from src >>> to dest when possible, and stops the loop when 'max' is less than >>> s

RE: [intel-sgx-kernel-dev] [PATCH v7 4/8] intel_sgx: driver for Intel Software Guard Extensions

2017-12-08 Thread Christopherson, Sean J
Jarkko Sakkinen wrote: > On Thu, Dec 07, 2017 at 02:46:39PM +, Christopherson, Sean J wrote: > > > + for (i = 0; i < 2; i++) { > > > + va_page = list_first_entry(&encl->va_pages, > > > +struct sgx_va_page, list); > > > + va_offset = sgx_alloc

Re: [PATCH 0/2] acpi, x86: Add SPCR table support

2017-12-08 Thread Jeffrey Hugo
On 12/8/2017 7:29 AM, Prarit Bhargava wrote: On 12/08/2017 01:29 AM, Ingo Molnar wrote: * Prarit Bhargava wrote: The SPCR (Serial Port Console Redirection) Table provides information about the configuration of serial port. This information can be used to configure the early console. s/a

Re: [PATCH v1 1/2] eeprom: at24: convert magic numbers to structs.

2017-12-08 Thread Bartosz Golaszewski
2017-12-08 16:25 GMT+01:00 Sven Van Asbroeck : > Bartosz wrote: >> >> Just make it accept two parameters: the string and the data object >> name. For example: >> >> > AT24_OF_DEVICE_ID("atmel,24c01", 24c01); >> > > I don't want to do too much bikeshedding, > but one last comment. > > Is it a good i

Re: [PATCH v1 1/6] ARM: davinci: clean up map_io functions

2017-12-08 Thread Sekhar Nori
On Thursday 07 December 2017 10:44 PM, David Lechner wrote: > On 12/07/2017 08:52 AM, Sekhar Nori wrote: >> On Saturday 02 December 2017 08:04 AM, David Lechner wrote: >>> This cleans up the map_io functions in the board init files for >>> mach-davinci. >>> >>> Most of the boards had a wrapper func

Re: [PATCH v8 0/5] Add the ability to do BPF directed error injection

2017-12-08 Thread Daniel Borkmann
On 12/06/2017 05:12 PM, Josef Bacik wrote: > Jon noticed that I had a typo in my _ASM_KPROBE_ERROR_INJECT macro. I went to > figure out why the compiler didn't catch it and it's because it was not used > anywhere. I had copied it from the trace blacklist code without understanding > where it was

[PATCH RESEND v6 2/2] dt-bindings: add eeprom "no-read-rollover" property

2017-12-08 Thread Sven Van Asbroeck
Adds an optional property for at24 eeproms. This parameterless property indicates that the multi-address eeprom does not automatically roll over reads to the next slave address. Signed-off-by: Sven Van Asbroeck Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/eeprom/eeprom.txt | 5

[PATCH RESEND v6 0/2] at24: support eeproms that do not auto-rollover reads.

2017-12-08 Thread Sven Van Asbroeck
v6 resend: added Reviewed-by: Rob Herring v6: added newlines, asked by Bartosz no need for braces around ternary operator's condition: bits = (at24->chip.flags & AT24_FLAG_ADDR16) ? 16 : 8; but keep the braces anyway, as asked by Uwe Klein-Koenig v

[PATCH RESEND v6 1/2] at24: support eeproms that do not auto-rollover reads.

2017-12-08 Thread Sven Van Asbroeck
Some multi-address eeproms in the at24 family may not automatically roll-over reads to the next slave address. On those eeproms, reads that straddle slave boundaries will not work correctly. Solution: Mark such eeproms with a flag that prevents reads straddling slave boundaries. Add the AT24_FLAG_

Re: WireGuard Upstreaming Roadmap (November 2017)

2017-12-08 Thread David Miller
From: "Jason A. Donenfeld" Date: Fri, 8 Dec 2017 03:17:40 +0100 > On Thu, Dec 7, 2017 at 11:22 AM, Stefan Tatschner > wrote: >> I have a question which is related to the involved crypto. As far as I >> have understood the protocol and the concept of wireguard >> What's your opinion on this? > >

Re: [PATCH v1 1/2] eeprom: at24: convert magic numbers to structs.

2017-12-08 Thread Peter Rosin
On 2017-12-08 16:28, Sven Van Asbroeck wrote: > Bartosz wrote: >> Just make it accept two parameters: the string and the data object >> name. For example: >> >> AT24_OF_DEVICE_ID("atmel,24c01", 24c01); >> > > I don't want to do too much bikeshedding, > but one last comment. > > Is it a good idea

Re: [RFC PATCH 2/5] perf jevents: add support for arch recommended events

2017-12-08 Thread John Garry
On 08/12/2017 12:31, Jiri Olsa wrote: On Wed, Dec 06, 2017 at 02:40:10PM +, John Garry wrote: On 06/12/2017 13:37, Jiri Olsa wrote: On Wed, Dec 06, 2017 at 12:13:16AM +0800, John Garry wrote: SNIP --- tools/perf/pmu-events/jevents.c | 215 1 file

Re: [PATCH v1 1/6] ARM: davinci: clean up map_io functions

2017-12-08 Thread Sekhar Nori
On Saturday 02 December 2017 08:04 AM, David Lechner wrote: > static int dm355leopard_mmc_get_cd(int module) > { > if (!gpio_is_valid(leopard_mmc_gpio)) > @@ -269,7 +264,7 @@ static __init void dm355_leopard_init(void) > > MACHINE_START(DM355_LEOPARD, "DaVinci DM355 leopard") > .at

Re: [PATCH v2] drivers: visorbus: move driver out of staging

2017-12-08 Thread Greg KH
On Thu, Dec 07, 2017 at 12:11:07PM -0500, David Kershner wrote: > Move the visorbus driver out of staging (drivers/staging/unisys/visorbus) > and to drivers/visorbus. Modify the configuration and makefiles so they > now reference the new location. The s-Par header file visorbus.h that is > referenc

Re: [PATCH v2 net-next 4/4] bpftool: implement cgroup bpf operations

2017-12-08 Thread Quentin Monnet
2017-12-08 14:12 UTC+ ~ Roman Gushchin > On Fri, Dec 08, 2017 at 10:34:16AM +, Quentin Monnet wrote: >> 2017-12-07 18:39 UTC+ ~ Roman Gushchin >>> This patch adds basic cgroup bpf operations to bpftool: >>> cgroup list, attach and detach commands. >>> >>> Usage is described in the cor

[PATCH v3 4/4] 44x/fsp2: add irq error handlers

2017-12-08 Thread Ivan Mikhaylov
add irq error handlers for cmu, plb, opb, mcue, conf with debug information output in case of problems. Signed-off-by: Ivan Mikhaylov --- arch/powerpc/platforms/44x/fsp2.c | 198 - 1 files changed, 197 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/

Re: [PATCH 0/4] USB over IP Secuurity fixes

2017-12-08 Thread Shuah Khan
On 12/07/2017 11:25 PM, Greg KH wrote: > On Thu, Dec 07, 2017 at 02:16:46PM -0700, Shuah Khan wrote: >> Jakub Jirasek from Secunia Research at Flexera reported security >> vulnerabilities in the USB over IP driver. This patch series all >> the 4 reported problems. > > Nice! > > These should also

[GIT PULL] KEYS, ASN.1, X.509, PKCS#7: Fixes

2017-12-08 Thread David Howells
:28 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git tags/keys-fixes-20171208 for you to fetch changes up to 54c1fb39fe0495f846539ab765925b008f86801c: X.509: fix comparisons of ->pkey_algo (2017-12-08 1

Re: [PATCH v1 1/2] eeprom: at24: convert magic numbers to structs.

2017-12-08 Thread Sven Van Asbroeck
peda wrote: > It's nice to be able to grep for compatible strings. > > $.02 > Indeed. Bartosz and Peter, I think you're right. Expect a v2 soon.

Re: [RFC PATCH 2/5] perf jevents: add support for arch recommended events

2017-12-08 Thread John Garry
On 08/12/2017 12:29, Jiri Olsa wrote: On Wed, Dec 06, 2017 at 03:20:14PM +, John Garry wrote: On 06/12/2017 13:36, Jiri Olsa wrote: On Wed, Dec 06, 2017 at 12:13:16AM +0800, John Garry wrote: For some architectures (like arm64), there are architecture- defined recommended events. Vendors m

Re: [PATCH v5 net-next] net/tcp: trace all TCP/IP state transition with tcp_set_state tracepoint

2017-12-08 Thread David Miller
From: Yafang Shao Date: Fri, 8 Dec 2017 11:40:23 +0800 > It will looks like these, > > if (sk->sk_protocol == IPPROTO_TCP) > __tcp_set_state(newsk, TCP_SYN_RECV); > else > newsk->sk_state = TCP_SYN_RECV; > > > if (sk->sk_protocol == IPPROTO_TCP) > __tcp_se

ACPI issues on cold power on [bisected]

2017-12-08 Thread Jonathan McDowell
I've been sitting on this for a while and should have spent time to investigate sooner, but it's been an odd failure mode that wasn't quite obvious. In 4.9 if I cold power on my laptop (Dell E7240) it fails to boot - I don't see anything after grub says its booting. In 4.10 onwards the laptop boot

Re: [PATCH 0/4] USB over IP Secuurity fixes

2017-12-08 Thread Shuah Khan
Hi Jakub, On 12/08/2017 08:14 AM, Secunia Research wrote: > Hi Shuah, > > Thanks a lot for the quick fixes. Thanks for finding them and doing all the leg work in pin pointing the issues. > > Please, use this email address: v...@secunia.com > > We have assigned the following CVEs to the issues

Re: [PATCH net-next V2] tuntap: fix possible deadlock when fail to register netdev

2017-12-08 Thread David Miller
From: "Michael S. Tsirkin" Date: Fri, 8 Dec 2017 06:43:44 +0200 > On Fri, Dec 08, 2017 at 12:02:30PM +0800, Jason Wang wrote: >> Private destructor could be called when register_netdev() fail with >> rtnl lock held. This will lead deadlock in tun_free_netdev() who tries >> to hold rtnl_lock. Fixi

Re: [PATCH net-next v4 0/2] net: thunderx: add support for PTP clock

2017-12-08 Thread Richard Cochran
On Fri, Dec 08, 2017 at 01:34:38PM +0300, Aleksey Makarov wrote: > This series adds support for IEEE 1588 Precision Time Protocol > to Cavium ethernet driver. > > The first patch adds support for the Precision Time Protocol Clocks and > Timestamping coprocessor (PTP) found on Cavium processors. >

block: oopses on 4.13.*, 4.14.* and 4.15-rc2 (bisected)

2017-12-08 Thread Michele Ballabio
Hi, kernels 4.13.*, 4.14.* 4.15-rc2 crash on occasion, especially on x86-32 systems. To trigger the problem, run as root: while true do /sbin/udevadm trigger --type=subsystems --action=change /sbin/udevadm trigger --type=devices --action=change /sbin/udevadm settle

Re: [Patch v6 05/12] [media] videodev2.h: Add v4l2 definition for HEVC

2017-12-08 Thread Nicolas Dufresne
Le vendredi 08 décembre 2017 à 14:38 +0530, Smitha T Murthy a écrit : > Add V4L2 definition for HEVC compressed format > > Signed-off-by: Smitha T Murthy > Reviewed-by: Andrzej Hajda > Reviewed-by: Stanimir Varbanov > Acked-by: Hans Verkuil > --- > include/uapi/linux/videodev2.h | 1 + > 1 fi

[PATCH v2 11/13] MIPS: mscc: add ocelot PCB123 device tree

2017-12-08 Thread Alexandre Belloni
Add a device tree for the Microsemi Ocelot PCB123 evaluation board. Signed-off-by: Alexandre Belloni --- arch/mips/boot/dts/mscc/Makefile | 2 ++ arch/mips/boot/dts/mscc/ocelot_pcb123.dts | 27 +++ 2 files changed, 29 insertions(+) create mode 100644 arch/mips/

[PATCH v2 00/13] MIPS: add support for the Microsemi MIPS SoCs

2017-12-08 Thread Alexandre Belloni
Hi, This patch series adds initial support for the Microsemi MIPS SoCs. It is currently focusing on the Microsemi Ocelot (VSC7513, VSC7514). It adds support for the IRQ controller, pinmux and gpio controller and reset control. This produces a kernel that can boot to the console. This is a singl

[PULL] vhost: cleanups and fixes

2017-12-08 Thread Michael S. Tsirkin
The following changes since commit d9e427f6ab8142d6868eb719e6a7851aafea56b6: virtio_balloon: fix increment of vb->num_pfns in fill_balloon() (2017-12-01 16:55:45 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus for yo

Re: [PATCH] scsi: bfa: convert to strlcpy/strlcat

2017-12-08 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG N

[PATCH v2 09/13] MIPS: mscc: Add initial support for Microsemi MIPS SoCs

2017-12-08 Thread Alexandre Belloni
Introduce support for the MIPS based Microsemi Ocelot SoCs. As the plan is to have all SoCs supported only using device tree, the mach directory is simply called mscc. Signed-off-by: Alexandre Belloni --- arch/mips/Kbuild.platforms | 1 + arch/mips/Kconfig | 24 ++ arch/mips/

[PATCH v2 03/13] irqchip: Add a driver for the Microsemi Ocelot controller

2017-12-08 Thread Alexandre Belloni
The Microsemi Ocelot SoC has a pretty simple IRQ controller in its ICPU block. Add a driver for it. Cc: Thomas Gleixner Cc: Jason Cooper Signed-off-by: Alexandre Belloni --- drivers/irqchip/Kconfig | 5 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-mscc-ocelot.c

[PATCH v2 12/13] MIPS: defconfigs: add a defconfig for Microsemi SoCs

2017-12-08 Thread Alexandre Belloni
Add a defconfg that reaches userspace for Microsemi Ocelot. Signed-off-by: Alexandre Belloni --- arch/mips/configs/mscc_defconfig | 84 1 file changed, 84 insertions(+) create mode 100644 arch/mips/configs/mscc_defconfig diff --git a/arch/mips/configs/m

[PATCH v2 08/13] power: reset: Add a driver for the Microsemi Ocelot reset

2017-12-08 Thread Alexandre Belloni
The Microsemi Ocelot SoC has a register allowing to reset the MIPS core. Unfortunately, the syscon-reboot driver can't be used directly (but almost) as the reset control may be disabled using another register. Cc: Sebastian Reichel Cc: linux...@vger.kernel.org Signed-off-by: Alexandre Belloni --

[PATCH v2 07/13] dt-bindings: power: reset: Document ocelot-reset binding

2017-12-08 Thread Alexandre Belloni
Add binding documentation for the Microsemi Ocelot reset block. Cc: Rob Herring Cc: devicet...@vger.kernel.org Cc: Sebastian Reichel Cc: linux...@vger.kernel.org Signed-off-by: Alexandre Belloni --- .../devicetree/bindings/power/reset/ocelot-reset.txt| 17 + 1 file changed,

[PATCH v2 13/13] MAINTAINERS: Add entry for Microsemi MIPS SoCs

2017-12-08 Thread Alexandre Belloni
Add myself as a maintainer for the Microsemi MIPS SoCs. Signed-off-by: Alexandre Belloni --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index aa71ab52fd76..a71fa0ac0abb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9062,6 +9062,13 @@ S:

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