[PATCH] drm: Reduce object size of drm_dev_printk/DRM_DEV_ uses

2017-09-25 Thread Joe Perches
Remove unnecessary function_name and prefix arguments. Removing these arguments reduces object size. prefix is used to add an "ERROR" prefix to the format for DRM_DEV_ERROR and is an empty string for all other uses. This string can be added instead by the DRM_DEV_ERROR macro. function_name is use

[PATCH] HID: hyperv: pr_err() strings should end with newlines

2017-09-25 Thread Arvind Yadav
pr_err() messages should terminated with a new-line to avoid other messages being concatenated onto the end. Signed-off-by: Arvind Yadav --- drivers/hid/hid-hyperv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-hyperv.c b/drivers/hid/hid-hyperv.c index 6039

Re: [PATCH] rtc: ds1374: wdt:support suspend/resume for watchdog

2017-09-25 Thread Alexandre Belloni
Hi, On 25/09/2017 at 19:58:44 +0800, winton.liu wrote: > When enable CONFIG_RTC_DRV_DS1374_WDT use as watchdog, > in suspend mode, watchdog is still working but no daemon > patting the watchdog. The system will reboot if timeout. > So disable watchdog in suspend and recover it in resume. > That

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

2017-09-25 Thread Kamil Konieczny
On 19.09.2017 21:03, Krzysztof Kozlowski wrote: > On Fri, Sep 15, 2017 at 07:50:06PM +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 dif

Re: [RFC PATCH v3 1/2] membarrier: Provide register expedited private command

2017-09-25 Thread Boqun Feng
On Sun, Sep 24, 2017 at 02:23:04PM +, Mathieu Desnoyers wrote: [...] > >> > >> copy_mm() is performed without holding current->sighand->siglock, so > >> it appears to be racing with concurrent membarrier register cmd. > > > > Speak of racing, I think we currently have a problem if we do a > >

[PATCH 3/8] sched/debug: Remove unused variable

2017-09-25 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/debug.c |2 -- 1 file changed, 2 deletions(-) --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -461,8 +461,6 @@ static char *task_group_path(struct task } #endif -static const char stat_nam[] = TASK_STATE_TO_CHAR_STR; - st

[PATCH 2/8] sched: Convert TASK_state to hex

2017-09-25 Thread Peter Zijlstra
Bit patterns are easier in hex. Signed-off-by: Peter Zijlstra (Intel) --- include/linux/sched.h | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -65,23 +65,23 @@ struct task_group; */ /* Used i

[PATCH 8/8] sched: Add explicit TASK_PARKED printing

2017-09-25 Thread Peter Zijlstra
Currently TASK_PARKED is masqueraded as TASK_INTERRUPTIBLE, give it its own print state because it will not in fact get woken by regular wakeups and is a long-term state. This requires moving TASK_PARKED into the TASK_REPORT mask, and since that latter needs to be a contiguous bitmask, we need to

[PATCH 5/8] sched/trace: Use common task-state helpers

2017-09-25 Thread Peter Zijlstra
Remove yet another task-state char instance. Signed-off-by: Peter Zijlstra (Intel) --- include/linux/sched.h |2 -- kernel/trace/trace_output.c | 21 ++--- kernel/trace/trace_sched_wakeup.c | 12 ++-- 3 files changed, 12 insertions(+), 23 deletio

[PATCH 6/8] sched: Add explicit TASK_IDLE printing

2017-09-25 Thread Peter Zijlstra
Markus reported that kthreads that idle using TASK_IDLE instead of TASK_INTERRUPTIBLE are reported in as TASK_UNINTERRUPTIBLE and things like htop mark those red. This is undesirable, so add an explicit state for TASK_IDLE. Reported-by: Markus Trippelsdorf Signed-off-by: Peter Zijlstra (Intel)

[PATCH 1/8] sched: Consistent task-state printing

2017-09-25 Thread Peter Zijlstra
Currently get_task_state() and task_state_to_char() report different states, create a number of common helpers and unify the reported state space. Signed-off-by: Peter Zijlstra (Intel) --- fs/proc/array.c | 15 ++- include/linux/sched.h | 26 +++--- 2 fi

Re: [PATCH net-next] net: mvpp2: phylink support

2017-09-25 Thread Russell King - ARM Linux
On Mon, Sep 25, 2017 at 01:53:03PM +0200, Antoine Tenart wrote: > On Mon, Sep 25, 2017 at 11:45:32AM +0100, Russell King - ARM Linux wrote: > > Can you describe what the GoP link IRQ is doing please? > > In cases where there is no PHY connected to the MAC and no SFP cage is > used. One example is

[PATCH 4/8] sched/trace: Fix trace_sched_switch task-state printing

2017-09-25 Thread Peter Zijlstra
Convert trace_sched_switch to use the common task-state helpers and fix the "X" and "Z" order, possibly they ended up in the wrong order because TASK_REPORT has them in the wrong order too. Signed-off-by: Peter Zijlstra (Intel) --- include/linux/sched.h|2 +- include/trace/events/sch

[PATCH 0/8] sched: Rework task state printing

2017-09-25 Thread Peter Zijlstra
With wider usage of TASK_IDLE came a few user visible annoyances. Markus reported that TASK_IDLE is reported as TASK_UNINTERRUPTIBLE and some tools like htop mark those highly visible, which is not warranted for TASK_IDLE. This patch set reworks the task-state printing and introduces explicit hand

[PATCH 7/8] sched: Ignore TASK_IDLE for SysRq-W

2017-09-25 Thread Peter Zijlstra
Markus reported that tasks in TASK_IDLE state are reported by SysRq-W, which results in undesirable clutter. Reported-by: Markus Trippelsdorf Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/core.c | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) --- a/ker

[PATCH] rtc: ds1374: wdt:support suspend/resume for watchdog

2017-09-25 Thread winton.liu
When enable CONFIG_RTC_DRV_DS1374_WDT use as watchdog, in suspend mode, watchdog is still working but no daemon patting the watchdog. The system will reboot if timeout. So disable watchdog in suspend and recover it in resume. Signed-off-by: winton.liu <18502523...@163.com> --- drivers/rtc/rtc-ds

Re: [PATCH] drm: Reduce object size of drm_dev_printk/DRM_DEV_ uses

2017-09-25 Thread Jani Nikula
On Mon, 25 Sep 2017, Joe Perches wrote: > Remove unnecessary function_name and prefix arguments. > Removing these arguments reduces object size. > > prefix is used to add an "ERROR" prefix to the format for > DRM_DEV_ERROR and is an empty string for all other uses. > This string can be added inste

Re: [PATCH 3.18 00/42] 3.18.72-stable review

2017-09-25 Thread Greg Kroah-Hartman
On Mon, Sep 25, 2017 at 04:05:41AM -0700, Guenter Roeck wrote: > On 09/24/2017 11:29 PM, Greg Kroah-Hartman wrote: > > On Sun, Sep 24, 2017 at 06:02:56PM -0700, Guenter Roeck wrote: > > > On 09/24/2017 01:27 PM, Greg Kroah-Hartman wrote: > > > > This is the start of the stable review cycle for the

Re: [PATCH v3 04/20] mm: VMA sequence count

2017-09-25 Thread Peter Zijlstra
On Fri, Sep 15, 2017 at 02:38:51PM +0200, Laurent Dufour wrote: > > /* > > * well... answering your question - it seems raw versions of seqcount > > * functions don't call lockdep's lock_acquire/lock_release... > > * > > * but I have never told you that. never. > > */ > > Hum... I'm not

Re: [v8 0/4] cgroup-aware OOM killer

2017-09-25 Thread Michal Hocko
I would really appreciate some feedback from Tejun, Johannes here. On Wed 20-09-17 14:53:41, Roman Gushchin wrote: > On Mon, Sep 18, 2017 at 08:14:05AM +0200, Michal Hocko wrote: > > On Fri 15-09-17 08:23:01, Roman Gushchin wrote: > > > On Fri, Sep 15, 2017 at 12:58:26PM +0200, Michal Hocko wrote:

Re: [RFC PATCH v3 1/2] membarrier: Provide register expedited private command

2017-09-25 Thread Peter Zijlstra
On Mon, Sep 25, 2017 at 08:10:54PM +0800, Boqun Feng wrote: > > static void membarrier_register_private_expedited(void) > > { > > struct task_struct *p = current; > > > > if (READ_ONCE(p->mm->membarrier_private_expedited)) > > return; > > membarrier_arch_reg

Re: usb/wireless/rsi_91x: use-after-free write in __run_timers

2017-09-25 Thread Kalle Valo
Andrey Konovalov writes: > On Mon, Sep 25, 2017 at 6:26 AM, Kalle Valo wrote: >> Andrey Konovalov writes: >> >>> I've got the following report while fuzzing the kernel with syzkaller. >>> >>> On commit 6e80ecdddf4ea6f3cd84e83720f3d852e6624a68 (Sep 21). >>> >>> ==

[PATCH] kbuild: drop unused symverfile in Makefile.modpost

2017-09-25 Thread Cao jin
Since commit 040fcc819, symverfile has been replaced with kernelsymfile and modulesymfile. Signed-off-by: Cao jin --- scripts/Makefile.modpost | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost index 16923ba..756d14f 100644 --- a/scripts/Makefi

Re: [PATCH] drm: Reduce object size of drm_dev_printk/DRM_DEV_ uses

2017-09-25 Thread Joe Perches
On Mon, 2017-09-25 at 15:16 +0300, Jani Nikula wrote: > On Mon, 25 Sep 2017, Joe Perches wrote: > > Remove unnecessary function_name and prefix arguments. > > Removing these arguments reduces object size. > > > > prefix is used to add an "ERROR" prefix to the format for > > DRM_DEV_ERROR and is a

Re: [patch] mremap.2: Add description of old_size == 0 functionality

2017-09-25 Thread Michal Hocko
On Tue 19-09-17 14:11:19, Florian Weimer wrote: > On 09/18/2017 07:11 PM, Mike Kravetz wrote: [...] > > I can drop this wording, but would still like to suggest memfd_create as > > the preferred method of creating duplicate mappings. It would be good if > > others on Cc: could comment as well. >

[PATCH v10 3/7] edac,soc: thunderx: Add wrapper for EDAC LMC PCI device

2017-09-25 Thread Jan Glauber
Cavium SOCs contain a memory controller that is presented as a PCI device. This PCI device will be used by an EDAC driver and by a PMU driver. To allow both subsystems to access the device a small wrapper is introduced that multi-plexes PCI probe and removal calls of the device to the EDAC driver.

[PATCH v10 4/7] edac,soc: thunderx: Add wrapper for EDAC OCX PCI device

2017-09-25 Thread Jan Glauber
Cavium SOCs contain an processor interconnect that is presented as a PCI device. This PCI device will be used by an EDAC driver and by a PMU driver. To allow both subsystems to access the device a small wrapper is introduced that multi-plexes PCI probe and removal calls of the device to the EDAC d

[PATCH v10 7/7] perf: cavium: Add Documentation

2017-09-25 Thread Jan Glauber
Document Cavium SoC PMUs. Signed-off-by: Jan Glauber --- Documentation/perf/cavium-pmu.txt | 75 +++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/perf/cavium-pmu.txt diff --git a/Documentation/perf/cavium-pmu.txt b/Documentation/perf/ca

[PATCH v10 5/7] perf: cavium: Support memory controller PMU counters

2017-09-25 Thread Jan Glauber
Add support for the PMU counters on Cavium SOC memory controllers. This patch also adds generic functions to allow supporting more devices with PMU counters. Properties of the LMC PMU counters: - not stoppable - fixed purpose - read-only - one PCI device per memory controller Signed-off-by: Jan

[PATCH v10 6/7] perf: cavium: Support transmit-link PMU counters

2017-09-25 Thread Jan Glauber
Add support for the transmit-link (OCX TLK) PMU counters found on Caviums SOCs with a processor interconnect. Properties of the OCX TLK counters: - per-unit control - fixed purpose - writable - one PCI device with multiple TLK units Signed-off-by: Jan Glauber --- drivers/perf/Kconfig

Re: [patch v2] mremap.2: Add description of old_size == 0 functionality

2017-09-25 Thread Michal Hocko
On Wed 20-09-17 09:25:42, Michael Kerrisk wrote: [...] > BUGS >Before Linux 4.14, if old_size was zero and the mapping referred >to by old_address was a private mapping (mmap(2) MAP_PRIVATE), >mremap() created a new private mapping unrelated to the original >

[PATCH v10 1/7] edac: thunderx: Remove suspend/resume support

2017-09-25 Thread Jan Glauber
The memory controller on ThunderX/OcteonTX systems does not support power management. Therefore remove the suspend/resume callbacks. Signed-off-by: Jan Glauber --- drivers/edac/thunderx_edac.c | 25 - 1 file changed, 25 deletions(-) diff --git a/drivers/edac/thunderx_eda

[PATCH v10 2/7] perf: export perf_event_update_userpage()

2017-09-25 Thread Jan Glauber
Export perf_event_update_userpage(). This change is needed to allow building a PMU driver as a kernel module. Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Signed-off-by: Jan Glauber --- kernel/events/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/events/

[PATCH v10 0/7] Cavium ARM64 uncore PMU support

2017-09-25 Thread Jan Glauber
Add support for various PMU counters found on the Cavium ThunderX and OcteonTx SoC. The PMU driver provides common "uncore" functions to avoid code duplication and support adding more device PMUs (like L2 cache) in the future. Changes to v9: - Fix build error in first EDAC patch - Use alphabetic

Re: [GIT PULL] Pull request for 4.14 for IPMI

2017-09-25 Thread Corey Minyard
I haven't seen this show up.  Is it too late? Thanks, -corey On 09/17/2017 09:02 PM, Corey Minyard wrote: I wanted to let this sit in linux-next for as long as possible, since some of the changes came in later than I would have liked.  And I was hoping you would wait until Monday to do 4.14-

usb/sound/bcd2000: warning in bcd2000_init_device

2017-09-25 Thread Andrey Konovalov
Hi! I've got the following report while fuzzing the kernel with syzkaller. On commit e19b205be43d11bff638cad4487008c48d21c103 (4.14-rc2). It seems that there's no check of the endpoint type. usb 1-1: BOGUS urb xfer, pipe 1 != type 3 [ cut here ] WARNING: CPU: 0 PID: 1846

Re: [PATCH net 1/3] net: mvpp2: fix the dma_mask and coherent_dma_mask settings for PPv2.2

2017-09-25 Thread Antoine Tenart
On Thu, Sep 21, 2017 at 10:07:18AM -0700, David Miller wrote: > From: Antoine Tenart > Date: Thu, 21 Sep 2017 16:24:13 +0200 > > > That's also the default when the platform does not allocate dma_mask. > > That's the problem that needs to be fixed then. OK, I'll drop this patch until I find a pr

usb/media/uvc: warning in uvc_scan_chain_forward/__list_add

2017-09-25 Thread Andrey Konovalov
Hi! I've got the following report while fuzzing the kernel with syzkaller. On commit e19b205be43d11bff638cad4487008c48d21c103 (4.14-rc2). list_add double add: new=880069084010, prev=880069084010, next=880067d22298. [ cut here ] WARNING: CPU: 1 PID: 1846 at lib

usb/media/lmedm04: GPF in lme2510_int_read/usb_pipe_endpoint

2017-09-25 Thread Andrey Konovalov
Hi! I've got the following report while fuzzing the kernel with syzkaller. On commit e19b205be43d11bff638cad4487008c48d21c103 (4.14-rc2). usb 1-1: new full-speed USB device number 2 using dummy_hcd gadgetfs: connected gadgetfs: disconnected gadgetfs: connected usb 1-1: config 63 interface 0 alts

usb/sound/line6: trying to register non-static key in podhd_disconnect

2017-09-25 Thread Andrey Konovalov
Hi! I've got the following report while fuzzing the kernel with syzkaller. On commit e19b205be43d11bff638cad4487008c48d21c103 (4.14-rc2). INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 1 PID: 1845 Comm:

Re: [patch] mremap.2: Add description of old_size == 0 functionality

2017-09-25 Thread Florian Weimer
On 09/25/2017 02:35 PM, Michal Hocko wrote: What would be the usecase. I mean why don't you simply create a new mapping by a plain mmap when you have no guarantee about the same content? I plan to use it for creating an unbounded number of callback thunks at run time, from a single set of page

usb/sound/line6: warning in line6_start_listen/usb_submit_urb

2017-09-25 Thread Andrey Konovalov
Hi! I've got the following report while fuzzing the kernel with syzkaller. On commit e19b205be43d11bff638cad4487008c48d21c103 (4.14-rc2). It seems there's no check on the actual endpoint type. usb 1-1: BOGUS urb xfer, pipe 3 != type 1 [ cut here ] WARNING: CPU: 0 PID: 24

Re: [patch v2] mremap.2: Add description of old_size == 0 functionality

2017-09-25 Thread Michael Kerrisk (man-pages)
On 25 September 2017 at 14:36, Michal Hocko wrote: > On Wed 20-09-17 09:25:42, Michael Kerrisk wrote: > [...] >> BUGS >>Before Linux 4.14, if old_size was zero and the mapping referred >>to by old_address was a private mapping (mmap(2) MAP_PRIVATE), >>mremap() cre

Re: [PATCH v2 3/5] clk: aspeed: Add platform driver and register PLLs

2017-09-25 Thread Andrew Jeffery
On Thu, 2017-09-21 at 13:56 +0930, Joel Stanley wrote: > This registers a platform driver to set up all of the non-core clocks. >  > The clocks that have configurable rates are now registered. >  > Signed-off-by: Joel Stanley > --- >  drivers/clk/clk-aspeed.c | 129 > +

Re: [RFC PATCH v3 1/2] membarrier: Provide register expedited private command

2017-09-25 Thread Mathieu Desnoyers
- On Sep 25, 2017, at 8:25 AM, Peter Zijlstra pet...@infradead.org wrote: > On Mon, Sep 25, 2017 at 08:10:54PM +0800, Boqun Feng wrote: >> > static void membarrier_register_private_expedited(void) >> > { >> > struct task_struct *p = current; >> > >> > if (READ_ONCE(p->mm->memb

Wiki updates

2017-09-25 Thread David Sterba
Hi, I've updated the Status page and synced the manual pages from btrfs-progs git. The status of various features is split to one more column, Performance. There's a section for each 'mostly OK' status below the table and linked from the note. This will hopefully be more understandable than just

Re: Wiki updates

2017-09-25 Thread David Sterba
dang, not meant for linux-kernel@, please ignore.

Re: [PATCH] microblaze: Add missing kvm_para.h to Kbuild

2017-09-25 Thread Michal Hocko
On Tue 19-09-17 16:54:54, Michal Simek wrote: > Running make allmodconfig;make is throwing compilation error: > CC kernel/watchdog.o > In file included from ./include/linux/kvm_para.h:4:0, > from kernel/watchdog.c:29: > ./include/uapi/linux/kvm_para.h:32:26: fatal error: asm

Re: [PATCH V7 1/2] dma-mapping: Rework dma_get_cache_alignment()

2017-09-25 Thread Christoph Hellwig
> index aba7138..e2c5d9e 100644 > --- a/arch/mips/include/asm/dma-mapping.h > +++ b/arch/mips/include/asm/dma-mapping.h > @@ -39,4 +39,6 @@ static inline void arch_setup_dma_ops(struct device *dev, > u64 dma_base, > #endif > } > > +int mips_get_cache_alignment(struct device *dev); All the oth

Re: [PATCH] nvme: make controller 'state' sysfs attribute pollable

2017-09-25 Thread Christoph Hellwig
On Mon, Sep 25, 2017 at 10:23:16AM +0200, Hannes Reinecke wrote: > > We could have such an interface I assume. But it would suck to maintain > > yet another state (we are already having enough trouble to have a > > coherent controller state machine). > > Weell ... we could be using a notifier chai

Re: [patch] mremap.2: Add description of old_size == 0 functionality

2017-09-25 Thread Michal Hocko
On Mon 25-09-17 14:40:42, Florian Weimer wrote: > On 09/25/2017 02:35 PM, Michal Hocko wrote: > > What would be the usecase. I mean why don't you simply create a new > > mapping by a plain mmap when you have no guarantee about the same > > content? > > I plan to use it for creating an unbounded nu

[PATCH] sched/core: Fix a potential double fetch bug on attr->size

2017-09-25 Thread Meng Xu
From: Meng Xu `attr->size` after the second fetch `copy_from_user(attr, uattr, size)`, can be different from what is initially fetched in and checked `get_user(size, &uattr->size)` by racing condition in the userspace. The issue and the patch are both similar to commit f12f42a (in kernel/events/

Re: [PATCH] sched/core: Fix a potential double fetch bug on attr->size

2017-09-25 Thread Meng Xu
Hi Peter, I am sorry, I thought the patch is included in the forwarded email. I just resent the patch. Please check. Best Regards, Meng On 09/25/2017 03:31 AM, Peter Zijlstra wrote: On Sat, Sep 23, 2017 at 10:05:56PM -0400, Meng Xu wrote: Hi Peter and Ingo, As a reminder, this is a very simi

Re: [PATCH v1 4/4] KVM/vmx: enable lbr for the guest

2017-09-25 Thread Wei Wang
On 09/25/2017 05:16 PM, Paolo Bonzini wrote: On 25/09/2017 06:44, Wei Wang wrote: Passthrough the LBR stack to the guest, and auto switch the stack MSRs upon VMEntry and VMExit. Signed-off-by: Wei Wang This has to be enabled separately for each guest, because it may prevent live migration to

Re: [PATCH v2 5/5] clk: aspeed: Add reset controller

2017-09-25 Thread Andrew Jeffery
On Thu, 2017-09-21 at 13:56 +0930, Joel Stanley wrote: > There are some resets that are not associated with gates. These are > represented by a reset controller. >  > Signed-off-by: Joel Stanley > --- >  drivers/clk/clk-aspeed.c | 82 > +++- >  include/d

Re: [PATCH v2 1/4] Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script

2017-09-25 Thread Jiri Olsa
On Sun, Sep 24, 2017 at 07:12:24PM +0800, yuzhoujian wrote: > Signed-off-by: yuzhoujian you're missing changelogs in all 4 patches.. you need to describe the change in here.. check 'git log' on kernel tee for examples jirka > --- > tools/perf/builtin-script.c | 3 +++ > tools/perf/util/tool.h

[PATCH 0/4] Replace PID bitmap with IDR API implementation

2017-09-25 Thread Gargi Sharma
This patch series replaces kernel bitmap implementation of PID allocation with IDR API. The following are the stats for pid and pid_namespace object files before and after the replacement. There is a noteworthy change between the IDR and bitmap implementation. Before text databss

Re: Memory hotplug regression in 4.13

2017-09-25 Thread Michal Hocko
On Thu 21-09-17 00:40:34, Seth Forshee wrote: > On Wed, Sep 20, 2017 at 11:29:31AM +0200, Michal Hocko wrote: > > Hi, > > I am currently at a conference so I will most probably get to this next > > week but I will try to ASAP. > > > > On Tue 19-09-17 11:41:14, Seth Forshee wrote: > > > Hi Michal,

[PATCH] crypto: talitos - fix AEAD for sha224 on non sha224 capable chips

2017-09-25 Thread Christophe Leroy
sha224 AEAD test fails with: [2.803125] talitos ff02.crypto: DEUISR 0x_ [2.808743] talitos ff02.crypto: MDEUISR 0x8010_ [2.814678] talitos ff02.crypto: DESCBUF 0x20731f21_0018 [2.820616] talitos ff02.crypto: DESCBUF 0x0628d64c_001

[PATCH] crypto: talitos - fix setkey to check key weakness

2017-09-25 Thread Christophe Leroy
Crypto manager test report the following failures: [3.061081] alg: skcipher: setkey failed on test 5 for ecb-des-talitos: flags=100 [3.069342] alg: skcipher-ddst: setkey failed on test 5 for ecb-des-talitos: flags=100 [3.077754] alg: skcipher-ddst: setkey failed on test 5 for ecb-des-

[PATCH 2/4] idr: Add a function idr_get()

2017-09-25 Thread Gargi Sharma
idr_get(namespace, id) returns a NULL if id is not present in the idr tree or returns the pointer to the struct if id is present in the idr tree. With this function in the idr library, code for pid allocation can be simplified by calling this function instead of looking through the pidhash. Signed

[PATCH 4/4] pid: Remove pidhash

2017-09-25 Thread Gargi Sharma
pidhash is no longer required as all the information can be looked up from idr tree. Also, nr_hashed represented the number of pids that had been hashed. Since, nr_hashed is no longer relevant, it has been renamed to pid_allocated. Signed-off-by: Gargi Sharma --- include/linux/init_task.h |

Re: [PATCH V7 1/2] dma-mapping: Rework dma_get_cache_alignment()

2017-09-25 Thread Robin Murphy
On 25/09/17 10:46, Huacai Chen wrote: > Make dma_get_cache_alignment() to accept a 'dev' argument. As a result, > it can return different alignments due to different devices' I/O cache > coherency. > > Currently, MIPS is the only architecture which support coherent & non- > coherent devices co-exi

[PATCH 3/4] pid.c: Replace pidhash lookup with idr_get()

2017-09-25 Thread Gargi Sharma
pidhash is no longer required as all the functionalities are present in the idr tree associated with the namespace. nr can be looked up in the namespace by idr_get(). Signed-off-by: Gargi Sharma --- kernel/pid.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/kernel

[PATCH 1/4] pid: Replace pid bitmap implementation with IDR API

2017-09-25 Thread Gargi Sharma
This patch replaces the current bitmap implemetation for Process ID allocation. Functions that are no longer required, for example, free_pidmap(), alloc_pidmap(), etc. are removed. The rest of the functions are modified to use the IDR API. The change was made to make the PID allocation less complex

Re: [PATCH v1 1/4] KVM/vmx: re-write the msr auto switch feature

2017-09-25 Thread Wei Wang
On 09/25/2017 07:54 PM, Paolo Bonzini wrote: On 25/09/2017 06:44, Wei Wang wrote: +static void update_msr_autoload_count_max(void) +{ + u64 vmx_msr; + int n; + + /* +* According to the Intel SDM, if Bits 27:25 of MSR_IA32_VMX_MISC is +* n, then (n + 1) * 512

[PATCH net v2 0/3] net: mvpp2: various fixes

2017-09-25 Thread Antoine Tenart
Hi all, This series contains 3 fixes for the Marvell PPv2 driver. Thanks! Antoine Since v1: - Removed one patch about dma masks as it would need a better fix. - Added one fix about the MAC Tx clock source selection. Antoine Tenart (1): net: mvpp2: do not select the internal source clock

[PATCH net v2 2/3] net: mvpp2: fix port list indexing

2017-09-25 Thread Antoine Tenart
From: Yan Markman The private port_list array has a list of pointers to mvpp2_port instances. This list is allocated given the number of ports enabled in the device tree, but the pointers are set using the port-id property. If on a single port is enabled, the port_list array will be of size 1, bu

[PATCH net v2 1/3] net: mvpp2: fix parsing fragmentation detection

2017-09-25 Thread Antoine Tenart
From: Stefan Chulski Parsing fragmentation detection failed due to wrong configured parser TCAM entry's. Some traffic was marked as fragmented in RX descriptor, even it wasn't IP fragmented. The hardware also failed to calculate checksums which lead to use software checksum and caused performance

[PATCH net v2 3/3] net: mvpp2: do not select the internal source clock

2017-09-25 Thread Antoine Tenart
This patch stops the internal MAC Tx clock from being enabled as the internal clock isn't used. The definition used for the bit controlling this behaviour is renamed as well as it was wrongly named (bit 4 of GMAC_CTRL_2_REG). Fixes: 3919357fb0bb ("net: mvpp2: initialize the GMAC when using a port"

Re: [PATCH v2] perf report: Fix debug messages with --call-graph option

2017-09-25 Thread Jiri Olsa
On Sat, Sep 23, 2017 at 04:18:14PM +0800, Mengting Zhang wrote: > With --call-graph option, perf report can display call chains using > type, min percent threshold, optional print limit and order. And the > default call-graph parameter is 'graph,0.5,caller,function,percent'. > > Before this patch,

[PATCH] PM / core: Drop legacy class suspend/resume operations

2017-09-25 Thread Rafael J. Wysocki
From: Rafael J. Wysocki There are no classes using the legacy suspend/resume operations in the tree any more, so drop these operations and update the code referring to them accordingly. Signed-off-by: Rafael J. Wysocki --- drivers/base/power/main.c | 32 +--- incl

Re: [PATCH net-next] net: mvpp2: phylink support

2017-09-25 Thread Antoine Tenart
On Mon, Sep 25, 2017 at 01:13:43PM +0100, Russell King - ARM Linux wrote: > On Mon, Sep 25, 2017 at 01:53:03PM +0200, Antoine Tenart wrote: > > On Mon, Sep 25, 2017 at 11:45:32AM +0100, Russell King - ARM Linux wrote: > > > Can you describe what the GoP link IRQ is doing please? > > > > In cases w

Re: [PATCHv2] mm: Account pud page tables

2017-09-25 Thread Kirill A. Shutemov
On Mon, Sep 25, 2017 at 01:54:30PM +0200, Michal Hocko wrote: > On Mon 25-09-17 10:39:13, Kirill A. Shutemov wrote: > > On machine with 5-level paging support a process can allocate > > significant amount of memory and stay unnoticed by oom-killer and > > memory cgroup. The trick is to allocate a l

RFC: mcu_tty: Trying to open /dev/ttyUSB0 and lock access from a kernel driver

2017-09-25 Thread Ulf Samuelsson
Trying to open /dev/ttyUSB from a kernel driver (which works), but locking the serial port so noone else can access it does not work. Any advice would be appreciated. BACKGROUND: I have a piece of hardware where I/O functions are implemented in a slave flash microcontroller (A) which controls

[PATCH v5] PCI: quirks: update Cavium ThunderX ACS quirk implementation

2017-09-25 Thread Vadim Lomovtsev
This commit makes Cavium PCI ACS quirk applicable only to Cavium ThunderX (CN8XXX) family PCIE Root Ports which has limited PCI capabilities in terms of no ACS support advertisement. However, the RTL internally implements similar protection as if ACS had completion/request redirection, upstream for

Re: [PATCH net v2 2/3] net: mvpp2: fix port list indexing

2017-09-25 Thread Antoine Tenart
On Mon, Sep 25, 2017 at 02:59:47PM +0200, Antoine Tenart wrote: > From: Yan Markman > > The private port_list array has a list of pointers to mvpp2_port > instances. This list is allocated given the number of ports enabled in > the device tree, but the pointers are set using the port-id property.

Re: [PATCH 1/4] pid: Replace pid bitmap implementation with IDR API

2017-09-25 Thread Rik van Riel
On Mon, 2017-09-25 at 08:56 -0400, Gargi Sharma wrote: > This patch replaces the current bitmap implemetation for > Process ID allocation. Functions that are no longer required, > for example, free_pidmap(), alloc_pidmap(), etc. are removed. > The rest of the functions are modified to use the IDR A

Re: [PATCH net v2 1/3] net: mvpp2: fix parsing fragmentation detection

2017-09-25 Thread Antoine Tenart
On Mon, Sep 25, 2017 at 02:59:46PM +0200, Antoine Tenart wrote: > From: Stefan Chulski > > Parsing fragmentation detection failed due to wrong configured > parser TCAM entry's. Some traffic was marked as fragmented in RX > descriptor, even it wasn't IP fragmented. The hardware also failed to > ca

Re: [PATCH] wireless: iwlwifi: fix minor code style issues

2017-09-25 Thread Coelho, Luciano
On Sat, 2017-09-23 at 12:31 +0200, Christoph Böhmwalder wrote: > Fixes three trivial issues as reported by checkpatch.pl, namely two > switch/case indentation issues and one alignment issue in a multiline comment. > > Signed-off-by: Christoph Böhmwalder > --- Thanks, applied to our internal tree

Re: [patch] mremap.2: Add description of old_size == 0 functionality

2017-09-25 Thread Florian Weimer
On 09/25/2017 02:52 PM, Michal Hocko wrote: So, how are you going to deal with the CoW and the implementation which basically means that the newm mmap content is not the same as the original one? I don't understand why CoW would kick in. The approach I outlined is desirable because it avoids

[Kernel.org Helpdesk #46182] Re: Linux 4.14-rc2 (bad patch file on kernel.org)

2017-09-25 Thread Konstantin Ryabitsev via RT
On 2017-09-24 22:57:37, rdun...@infradead.org wrote: > On 09/24/17 17:03, Linus Torvalds wrote: > > I'm back to my usual Sunday release schedule, and rc2 is out there in > > all the normal places. > > Downloading & applying 4.14-rc2 [patch] >

Re: [PATCHv7 00/19] Boot-time switching between 4- and 5-level paging for 4.15

2017-09-25 Thread Kirill A. Shutemov
On Mon, Sep 18, 2017 at 01:55:34PM +0300, Kirill A. Shutemov wrote: > The basic idea is to implement the same logic as pgtable-nop4d.h provides, > but at runtime. > > Runtime folding is only implemented for CONFIG_X86_5LEVEL=y case. With the > option disabled, we do compile-time folding as before.

Re: [PATCH 2/4] idr: Add a function idr_get()

2017-09-25 Thread Rik van Riel
On Mon, 2017-09-25 at 08:56 -0400, Gargi Sharma wrote: > idr_get(namespace, id) returns a NULL if id is not present > in the idr tree or returns the pointer to the struct if id is > present in the idr tree. With this function in the idr library, > code for pid allocation can be simplified by callin

Re: [PATCH 3/4] pid.c: Replace pidhash lookup with idr_get()

2017-09-25 Thread Rik van Riel
On Mon, 2017-09-25 at 08:56 -0400, Gargi Sharma wrote: > pidhash is no longer required as all the functionalities > are present in the idr tree associated with the namespace. > nr can be looked up in the namespace by idr_get(). > > Signed-off-by: Gargi Sharma > --- >  kernel/pid.c | 10 +-

Re: [PATCH v2 5/5] media: atmel-isc: Rework the format list

2017-09-25 Thread Hans Verkuil
Hi Wenyou, On 18/09/17 08:39, Wenyou Yang wrote: > To improve the readability of code, split the format array into two, > one for the format description, other for the register configuration. > Meanwhile, add the flag member to indicate the format can be achieved > from the sensor or be produced b

Re: [PATCH] PM / core: Drop legacy class suspend/resume operations

2017-09-25 Thread Greg Kroah-Hartman
On Mon, Sep 25, 2017 at 02:56:44PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > There are no classes using the legacy suspend/resume operations in > the tree any more, so drop these operations and update the code > referring to them accordingly. > > Signed-off-by: Rafael J. Wyso

[PATCH] percpu: make this_cpu_generic_read() atomic w.r.t. interrupts

2017-09-25 Thread Mark Rutland
As raw_cpu_generic_read() is a plain read from a raw_cpu_ptr() address, it's possible (albeit unlikely) that the compiler will split the access across multiple instructions. In this_cpu_generic_read() we disable preemption but not interrupts before calling raw_cpu_generic_read(). Thus, an interrup

Re: usb/media/lmedm04: GPF in lme2510_int_read/usb_pipe_endpoint

2017-09-25 Thread Malcolm Priestley
On 25/09/17 13:39, Andrey Konovalov wrote: Hi! I've got the following report while fuzzing the kernel with syzkaller. On commit e19b205be43d11bff638cad4487008c48d21c103 (4.14-rc2). usb 1-1: new full-speed USB device number 2 using dummy_hcd gadgetfs: connected gadgetfs: disconnected gadgetfs

Re: [PATCH] KEYS: prevent KEYCTL_READ on negative key

2017-09-25 Thread David Howells
Eric Biggers wrote: > Putting the check in key_validate() would make lookups with > KEY_LOOKUP_PARTIAL stop returning negative keys, which would break > keyctl_describe(), keyctl_chown(), keyctl_setperm(), keyctl_set_timeout(), > keyctl_get_security() on negative keys. I presume those are suppos

[PATCH 0/9] vITS Migration fixes and reset

2017-09-25 Thread Eric Auger
This series fixes various bugs observed when saving/restoring the ITS state before the guest writes the ITS registers (on first boot or after reset/reboot). This is a follow up of Wanghaibin's series [1] plus additional patches following additional code review. It also proposes one ITS reset imple

[PATCH 9/9] KVM: arm/arm64: vgic-its: Implement KVM_DEV_ARM_ITS_CTRL_RESET

2017-09-25 Thread Eric Auger
On reset we clear the valid bits of GITS_CBASER and GITS_BASER. We also clear command queue registers and free the device, collection and lpi lists. Signed-off-by: Eric Auger --- arch/arm/include/uapi/asm/kvm.h | 1 + arch/arm64/include/uapi/asm/kvm.h | 1 + virt/kvm/arm/vgic/vgic-its.c

[PATCH 5/9] KVM: arm/arm64: vgic-its: Check GITS_CBASER validity before processing commands

2017-09-25 Thread Eric Auger
At the moment vgic_its_process_commands() does not check the CBASER is valid before processing any command. Let's fix that. Also rename cbaser local variable into cbaser_pa to avoid any confusion with the full register. Signed-off-by: Eric Auger --- virt/kvm/arm/vgic/vgic-its.c | 13 ---

[PATCH 7/9] KVM: arm/arm64: vgic-its: free caches when GITS_BASER Valid bit is cleared

2017-09-25 Thread Eric Auger
When the GITS_BASER.Valid gets cleared, the data structures in guest RAM are not provisionned anymore. The device, collection and LPI lists stored in the in-kernel ITS represent the same information in some form of cache. So let's void the cache. Signed-off-by: Eric Auger --- virt/kvm/arm/vgic/v

[PATCH 8/9] KVM: arm/arm64: Document KVM_DEV_ARM_ITS_CTRL_RESET

2017-09-25 Thread Eric Auger
At the moment, the in-kernel emulated ITS is not properly reset. On guest restart/reset some registers keep their old values and internal structures like device, ITE, collection lists are not freed. This may lead to various bugs. Among them, we can have incorrect state backup or failure when savin

[PATCH 3/9] KVM: arm/arm64: vgic-its: Improve error reporting on device table save

2017-09-25 Thread Eric Auger
At the moment the device table save() returns -EINVAL if vgic_its_check_id() fails to return the gpa of the entry associated to the device/collection id. Let vgic_its_check_id() return an int instead of a bool and return a more precised error value: - EINVAL in case the id is out of range - EFAULT

[PATCH 6/9] KVM: arm/arm64: vgic-its: new helper functions to free the caches

2017-09-25 Thread Eric Auger
From: wanghaibin We create 2 new functions that frees the device and collection lists. this is currently called by vgic_its_destroy() and we will add other callers in subsequent patches. We also remove the check on its->device_list.next as it looks unnecessary: The kvm device is removed by kvm_

Re: [PATCH] Bluetooth: btmrvl: *_err() and *_info() strings should end with newlines

2017-09-25 Thread Marcel Holtmann
Hi Arvind, > pr_err(), dev_err() and pr_info() messages should terminated with > a new-line to avoid other messages being concatenated onto the end. > > Signed-off-by: Arvind Yadav > --- > drivers/bluetooth/btmrvl_sdio.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) patch has bee

[PATCH 1/9] KVM: arm/arm64: vgic-its: fix return value for restore

2017-09-25 Thread Eric Auger
From: wanghaibin This patch fix the migrate restore tables failure. The same scene, at the destination, the restore tables interface traversal guest memory, and check the dte/ite is valid or not. If all dtes/ites are invalid, we will do try next one, and the last it will take the 1 return value

[PATCH 2/9] KVM: arm/arm64: vgic-its: Always allow clearing GITS_CREADR/CWRITER

2017-09-25 Thread Eric Auger
If the GITS_CBASER Size field is 0, which can correspond to a reset value, the userspace fails to set the GITS_CREADR/CWRITER offsets to 0. This failure is not justified. Let's allow this setting which can also correspond to a reset value. Signed-off-by: Eric Auger --- need to CC stable --- v

<    1   2   3   4   5   6   7   8   9   >