[PATCH v4 00/13] perf/core: Generalise event exclusion checking

2019-01-07 Thread Andrew Murray
Many PMU drivers do not have the capability to exclude counting events that occur in specific contexts such as idle, kernel, guest, etc. These drivers indicate this by returning an error in their event_init upon testing the events attribute flags. However this approach requires that each time a ne

[PATCH v4 04/13] alpha: perf/core: use PERF_PMU_CAP_NO_EXCLUDE

2019-01-07 Thread Andrew Murray
As the Alpha PMU doesn't support context exclusion let's advertise the PERF_PMU_CAP_NO_EXCLUDE capability. This ensures that perf will prevent us from handling events where any exclusion flags are set. Let's also remove the now unnecessary check for exclusion flags. This change means that __hw_per

[PATCH v4 03/13] perf/core: add PERF_PMU_CAP_NO_EXCLUDE for exclusion incapable PMUs

2019-01-07 Thread Andrew Murray
Many PMU drivers do not have the capability to exclude counting events that occur in specific contexts such as idle, kernel, guest, etc. These drivers indicate this by returning an error in their event_init upon testing the events attribute flags. This approach is error prone and often inconsistent

[PATCH v4 01/13] perf/doc: update design.txt for exclude_{host|guest} flags

2019-01-07 Thread Andrew Murray
Update design.txt to reflect the presence of the exclude_host and exclude_guest perf flags. Signed-off-by: Andrew Murray --- tools/perf/design.txt | 4 1 file changed, 4 insertions(+) diff --git a/tools/perf/design.txt b/tools/perf/design.txt index a28dca2..0453ba2 100644 --- a/tools/perf/

[PATCH v4 05/13] arm: perf: conditionally use PERF_PMU_CAP_NO_EXCLUDE

2019-01-07 Thread Andrew Murray
The ARM PMU driver can be used to represent a variety of ARM based PMUs. Some of these PMUs do not provide support for context exclusion, where this is the case we advertise the PERF_PMU_CAP_NO_EXCLUDE capability to ensure that perf prevents us from handling events where any exclusion flags are set

[PATCH v4 06/13] arm: perf/core: use PERF_PMU_CAP_NO_EXCLUDE for exclude incapable PMUs

2019-01-07 Thread Andrew Murray
For drivers that do not support context exclusion let's advertise the PERF_PMU_CAP_NO_EXCLUDE capability. This ensures that perf will prevent us from handling events where any exclusion flags are set. Let's also remove the now unnecessary check for exclusion flags. Signed-off-by: Andrew Murray Ac

[PATCH v4 11/13] x86: perf/core: use PERF_PMU_CAP_NO_EXCLUDE for exclude incapable PMUs

2019-01-07 Thread Andrew Murray
For x86 PMUs that do not support context exclusion let's advertise the PERF_PMU_CAP_NO_EXCLUDE capability. This ensures that perf will prevent us from handling events where any exclusion flags are set. Let's also remove the now unnecessary check for exclusion flags. This change means that amd/iomm

[PATCH v4 12/13] perf/core: remove unused perf_flags

2019-01-07 Thread Andrew Murray
Now that perf_flags is not used we remove it. Signed-off-by: Andrew Murray --- include/uapi/linux/perf_event.h | 2 -- tools/include/uapi/linux/perf_event.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index 9de8780

[PATCH v4 08/13] drivers/perf: perf/core: use PERF_PMU_CAP_NO_EXCLUDE for exclude incapable PMUs

2019-01-07 Thread Andrew Murray
For drivers that do not support context exclusion let's advertise the PERF_PMU_CAP_NO_EXCLUDE capability. This ensures that perf will prevent us from handling events where any exclusion flags are set. Let's also remove the now unnecessary check for exclusion flags. This change means that qcom_{l2|

[PATCH v4 10/13] x86: perf/core: use PERF_PMU_CAP_NO_EXCLUDE for exclude incapable PMUs

2019-01-07 Thread Andrew Murray
For drivers that do not support context exclusion let's advertise the PERF_PMU_CAP_NOEXCLUDE capability. This ensures that perf will prevent us from handling events where any exclusion flags are set. Let's also remove the now unnecessary check for exclusion flags. Signed-off-by: Andrew Murray ---

[PATCH v4 13/13] drivers/perf: use PERF_PMU_CAP_NO_EXCLUDE for Cavium TX2 PMU

2019-01-07 Thread Andrew Murray
The Cavium ThunderX2 UNCORE PMU driver doesn't support any event filtering. Let's advertise the PERF_PMU_CAP_NO_EXCLUDE capability to simplify the code. Signed-off-by: Andrew Murray --- drivers/perf/thunderx2_pmu.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dri

[PATCH v4 09/13] powerpc: perf/core: use PERF_PMU_CAP_NO_EXCLUDE for exclude incapable PMUs

2019-01-07 Thread Andrew Murray
For PowerPC PMUs that do not support context exclusion let's advertise the PERF_PMU_CAP_NO_EXCLUDE capability. This ensures that perf will prevent us from handling events where any exclusion flags are set. Let's also remove the now unnecessary check for exclusion flags. Signed-off-by: Andrew Murra

[PATCH v4 07/13] drivers/perf: perf/core: use PERF_PMU_CAP_NO_EXCLUDE for exclude incapable PMUs

2019-01-07 Thread Andrew Murray
For drivers that do not support context exclusion let's advertise the PERF_PMU_CAP_NO_EXCLUDE capability. This ensures that perf will prevent us from handling events where any exclusion flags are set. Let's also remove the now unnecessary check for exclusion flags. Signed-off-by: Andrew Murray Ac

Re: [PATCH] ASoC: rt298: Variable "val" and "buf" in rt298_jack_detect() could be uninitialized

2019-01-07 Thread Mark Brown
On Fri, Jan 04, 2019 at 01:52:53PM -0800, Yizhuo wrote: > { > struct snd_soc_dapm_context *dapm; > unsigned int val, buf; > + int ret = 0; It's bad practice to just initailize like this without a reason - it tends to just mask actual cases where we miss error handling by ensuring

[PATCH 1/5 v8] regulator: gpio: Convert to use descriptors

2019-01-07 Thread Linus Walleij
This converts the GPIO regulator driver to use decriptors only. We have to let go of the array gpio handling: the fetched descriptors are handled individually anyway, and the array retrieveal function does not make it possible to retrieve each GPIO descriptor with unique flags. Instead get them on

[PATCH 2/5 v8] regulator: fixed/gpio: Pull inversion/OD into gpiolib

2019-01-07 Thread Linus Walleij
This pushes the handling of inversion semantics and open drain settings to the GPIO descriptor and gpiolib. All affected board files are also augmented. This is especially nice since we don't have to have any confusing flags passed around to the left and right littering the fixed and GPIO regulato

[PATCH 5/5 v8] regulator: core: Only support passing enable GPIO descriptors

2019-01-07 Thread Linus Walleij
Now that we changed all providers to pass descriptors into the core for enable GPIOs instead of a global GPIO number, delete the support for passing GPIO numbers in, and we get a cleanup and size reduction in the core, and from a GPIO point of view we use the modern, cleaner interface. Signed-off-

[PATCH 3/5 v8] regulator: fixed/gpio: Update device tree bindings

2019-01-07 Thread Linus Walleij
Deprecate the open drain binding for fixed regulator and indicate that we prefer this to be passed in the GPIO phandle flags. Clarify that the line inversion semantics for fixed and GPIO regulators completely overrides the active low flags in the phandle flags. Unfortunately this can not be chang

[PATCH 4/5 v8] regulator: gpio: Simplify probe path

2019-01-07 Thread Linus Walleij
Use devm_* managed device resources and create a local struct device *dev variable to simplify the code inside probe(). Signed-off-by: Linus Walleij --- ChangeLog v7->v8: - Rebase on v5.0-rc1. ChangeLog v6->v7: - Resend with the rest. ChangeLog v3->v6: - Rebase on top of the other changes. - Chan

Re: [PATCH 11/11] KVM/MMU: Flush tlb in the kvm_age_rmapp()

2019-01-07 Thread Paolo Bonzini
On 07/01/19 04:42, Tianyu Lan wrote: >> I'm assuming you're >> clearing young to avoid the flush in kvm_mmu_notifier_clear_flush_young(), >> but keeping that flush is silly since it will never be invoked. Just >> squash this patch with patch 10/11 so that you can remove the unnecessary >> flush in

Re: [RFC v2 0/6] x86: dynamic indirect branch promotion

2019-01-07 Thread Peter Zijlstra
On Thu, Jan 03, 2019 at 02:18:15PM -0800, Andi Kleen wrote: > Nadav Amit writes: > > > > - Do we use periodic learning or not? Josh suggested to reconfigure the > > branches whenever a new target is found. However, I do not know at > > this time how to do learning efficiently, without making l

Re: [PATCH v3] usb: hub: add retry routine after intr URB submit error

2019-01-07 Thread Greg KH
On Tue, Nov 20, 2018 at 03:34:38PM +0100, Nicolas Saenz Julienne wrote: > The hub sends hot-plug events to the host trough it's interrupt URB. The > driver takes care of completing the URB and re-submitting it. Completion > errors are handled in the hub_event() work, yet submission errors are > ign

Re: [PATCH 2/2] /proc/stat: Add sysctl parameter to control irq counts latency

2019-01-07 Thread Alexey Dobriyan
On Mon, Jan 07, 2019 at 07:58:40AM -0800, Matthew Wilcox wrote: > On Mon, Jan 07, 2019 at 10:12:58AM -0500, Waiman Long wrote: > > A new "fs/proc-stat-irqs-latency-ms" sysctl parameter is now added to > > No. No, no, no, no, no. No. > > Stop adding new sysctls for this kind of thing. It's jus

Re: [RFC RESEND PATCH 0/7] Add driver for dvfsrc and add support for active state of scpsys on mt8183

2019-01-07 Thread Georgi Djakov
Hi Henry, On 1/7/19 13:04, Henry Chen wrote: > On Thu, 2019-01-03 at 14:53 -0800, Stephen Boyd wrote: >> Quoting Henry Chen (2019-01-02 06:09:51) >>> The patchsets add support for MediaTek hardware module named DVFSRC >>> (dynamic voltage and frequency scaling resource collector). The DVFSRC is >>

Re: [PATCH 3/11] KVM: Add spte's point in the struct kvm_mmu_page

2019-01-07 Thread Paolo Bonzini
On 04/01/19 09:53, lantianyu1...@gmail.com wrote: > @@ -332,6 +332,7 @@ struct kvm_mmu_page { > int root_count; /* Currently serving as active root */ > unsigned int unsync_children; > struct kvm_rmap_head parent_ptes; /* rmap pointers to parent sptes */ > + u64 *spte

Re: [PATCH 0/4] Add driver for globaltop GNSS receivers

2019-01-07 Thread Johan Hovold
On Mon, Jan 07, 2019 at 05:21:58PM +0100, Loys Ollivier wrote: > > On Fri 04 Jan 2019 at 09:19, Johan Hovold wrote: > > > On Thu, Jan 03, 2019 at 05:04:35PM +0100, Loys Ollivier wrote: > >> > >> As suggested by Neil Armstrong - this GNSS device seems to behave like > >> most generic GNSS receive

Re: general protection fault in __smc_diag_dump

2019-01-07 Thread Ursula Braun
On 01/02/2019 12:29 PM, Eric Dumazet wrote: > > > On 01/02/2019 02:41 AM, syzbot wrote: >> Hello, >> >> syzbot found the following crash on: >> >> HEAD commit:    28e8c4bc8eb4 Merge tag 'rtc-4.21' of git://git.kernel.org/.. >> git tree:   upstream >> console output: https://syzkaller.appsp

Re: [PATCH 4/11] KVM/MMU: Introduce tlb flush with range list

2019-01-07 Thread Paolo Bonzini
On 04/01/19 09:53, lantianyu1...@gmail.com wrote: > struct kvm_mmu_page { > struct list_head link; > + > + /* > + * Tlb flush with range list uses struct kvm_mmu_page as list entry > + * and all list operations should be under protection of mmu_lock. > + */ > + struct

[PATCH] x86/kvm: convert to DEFINE_DEBUGFS_ATTRIBUTE

2019-01-07 Thread Peng Hao
From: Peng Hao The preferred strategy to define debugfs attributes is to use the DEFINE_DEBUGFS_ATTRIBUTE() macro and to use debugfs_create_file_unsafe(). Signed-off-by: Peng Hao --- arch/x86/kvm/debugfs.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ar

Re: [PATCH] Input: goodix - decouple irq and reset lines

2019-01-07 Thread Gonzalez, Alex
Hi Bastien, >Given that we do have access to the datasheet, it would also be useful >for the patch to mention where in the datasheet it says that the reset >line can be left pulled-up, The pin description table on section 4, on the "Reset pin" row, contains a remark as follows: External 10K pul

[PATCH V2 0/2] input: rotary-encoder: Support key events

2019-01-07 Thread Donghoon Han
This patchset supports generating EV_KEY, instead of EV_REL. An example could be a volume knob, with key events: - KEY_VOLUMEDOWN / KEY_VOLUMEUP [tested on imx6q platform, full period, half period] Donghoon Han (2): Input: rotary_encoder - Support key events Input: rotaty-encoder - Add

[PATCH V2 1/2] Input: rotary_encoder - Support key events

2019-01-07 Thread Donghoon Han
From: Steven Han Support generating EV_KEY pair, instead of EV_REL. Signed-off-by: Donghoon Han Cc: Dmitry Torokhov Cc: Daniel Mack To: linux-in...@vger.kernel.org --- V2: added missing input_sync() --- drivers/input/misc/rotary_encoder.c | 24 ++-- 1 file changed, 22 ins

[PATCH V2 2/2] Input: rotaty-encoder - Add DT binding document

2019-01-07 Thread Donghoon Han
Add DT binding document for rotary-encoder, keycode options. Signed-off-by: Donghoon Han Cc: Dmitry Torokhov Cc: Daniel Mack Cc: devicet...@vger.kernel.org To: linux-in...@vger.kernel.org --- .../devicetree/bindings/input/rotary-encoder.txt | 12 1 file changed, 12 insertions(

Re: [PATCH] Input: goodix - decouple irq and reset lines

2019-01-07 Thread Gonzalez, Alex
> >If it doesn't work with the vendor code, then we might not want to make >it work with our driver either. > Thanks Bastien. The vendor code does seem to require both INT and RESET gpios.

Re: [PATCH] tipc: fix memory leak in tipc_nl_compat_publ_dump

2019-01-07 Thread David Miller
From: "Gustavo A. R. Silva" Date: Sat, 5 Jan 2019 10:52:23 -0600 > There is a memory leak in case genlmsg_put fails. > > Fix this by freeing *args* before return. > > Addresses-Coverity-ID: 1476406 ("Resource leak") > Fixes: 46273cf7e009 ("tipc: fix a missing check of genlmsg_put") > Signed-off

Re: [PATCH RT] rtmutex: Flush block plug on __down_read()

2019-01-07 Thread Sebastian Andrzej Siewior
On 2019-01-04 15:33:21 [-0500], Scott Wood wrote: > __down_read() bypasses the rtmutex frontend to call > rt_mutex_slowlock_locked() directly, and thus it needs to call > blk_schedule_flush_flug() itself. we don't do this in the spin_lock() case because !RT doesn't do it. We do it for rtmutex beca

Re: [PATCH v2] media: venus: add debugfs support

2019-01-07 Thread Al Viro
On Mon, Jan 07, 2019 at 07:59:00PM +0530, Malathi Gottam wrote: > +static struct dentry *venus_debugfs_init_drv(void) > +{ > + bool ok = false; > + struct dentry *dir = NULL; > + > + dir = debugfs_create_dir("venus", NULL); > + if (IS_ERR_OR_NULL(dir)) { > + dir = NULL;

Re: [RFC PATCH 2/3] crypto: Add Xilinx SHA3 driver

2019-01-07 Thread Eric Biggers
Hi Kalyani, On Mon, Jan 07, 2019 at 02:32:55PM +0530, Kalyani Akula wrote: > This patch adds SHA3 driver suuport for the Xilinx > ZynqMP SoC. > > Signed-off-by: Kalyani Akula [...] > + > +static struct ahash_alg sha3_alg = { > + .init = zynqmp_sha_init, > + .update = zy

Re: [PATCH] scsi: sd: Make protection lookup tables static

2019-01-07 Thread Bart Van Assche
On Mon, 2019-01-07 at 22:41 +0800, John Garry wrote: > Currently the protection lookup tables in sd_prot_flag_mask() and > sd_prot_op() are declared non-static. As such, they will be rebuilt for > each respective function call. > > Optimise by making them static. > > This saves ~100B object code

Re: [PATCH] ASoC: rt274: Variable "buf" in function rt274_jack_detect() could be uninitialized

2019-01-07 Thread Mark Brown
On Fri, Jan 04, 2019 at 12:27:08PM -0800, Yizhuo wrote: > In function rt274_jack_detect(), local variable "buf" could > be uninitialized if function regmap_read() returns -EINVAL. > However, it will be used to calculate "hp" and "mic" and > make their value unpredictable while those value are used

Re: [PATCH 2/2] /proc/stat: Add sysctl parameter to control irq counts latency

2019-01-07 Thread Waiman Long
On 01/07/2019 11:33 AM, Alexey Dobriyan wrote: > On Mon, Jan 07, 2019 at 07:58:40AM -0800, Matthew Wilcox wrote: >> On Mon, Jan 07, 2019 at 10:12:58AM -0500, Waiman Long wrote: >>> A new "fs/proc-stat-irqs-latency-ms" sysctl parameter is now added to >> No. No, no, no, no, no. No. >> >> Stop addi

[PATCH v2] ASoC: tlv320aic32x4: Kernel OOPS while entering DAPM standby mode

2019-01-07 Thread b-ak
During the bootup of the kernel, the DAPM bias level is in the OFF state. As soon as the DAPM framework kicks in it pushes the codec into STANDBY state. The probe function doesn't prepare the clock, and STANDBY state does a clk_disable_unprepare() without checking the previous state. This leads to

Re: [RFC PATCH 0/4] x86_64/mm: remove bottom-up allocation style by pushing forward the parsing of mem hotplug info

2019-01-07 Thread Dave Hansen
On 1/7/19 12:24 AM, Pingfan Liu wrote: > Background about the defect of the current bottom-up allocation style, take > the following scenario: > | unmovable node | movable node | > | kaslr-kernel |subtree of pgtable for phy<->virt | > > Although kaslr-kernel c

Re: kernel BUG at mm/huge_memory.c:LINE!

2019-01-07 Thread Konstantin Khlebnikov
On 03.01.2019 13:43, syzbot wrote: Hello, syzbot found the following crash on: HEAD commit:    4cd1b60def51 Add linux-next specific files for 20190102 git tree:   linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=147760d340 kernel config:  https://syzkaller.appspot.co

Re: [PATCH v3] crypto: talitos - fix ablkcipher for CONFIG_VMAP_STACK

2019-01-07 Thread Christophe Leroy
Le 04/01/2019 à 16:24, Horia Geanta a écrit : On 1/4/2019 5:17 PM, Horia Geanta wrote: On 12/21/2018 10:07 AM, Christophe Leroy wrote: [snip] IV cannot be on stack when CONFIG_VMAP_STACK is selected because the stack cannot be DMA mapped anymore. This looks better, thanks. This patch copi

Re: [PATCH 1/1] net: bridge: fix a bug on using a neighbour cache entry without checking its state

2019-01-07 Thread David Miller
From: kchen Date: Sun, 6 Jan 2019 11:28:13 +0800 > From: JianJhen Chen > > When handling DNAT'ed packets on a bridge device, the neighbour cache entry > from lookup was used without checking its state. It means that a cache entry > in the NUD_STALE state will be used directly instead of enteri

Re: [PATCH] sched: fix a potential double-fetch bug in sched_copy_attr

2019-01-07 Thread Peter Zijlstra
On Tue, Dec 25, 2018 at 04:16:47PM -0600, Kangjie Lu wrote: > "uattr->size" is copied in from user space and checked. However, it is > copied in again after the security check. A malicious user may race to > change it. The fix checks if uattr->size is ever changed after the > check. > > Signed-off

Re: [RFC PATCH 2/4] x86/setup: parse acpi to get hotplug info before init_mem_mapping()

2019-01-07 Thread Dave Hansen
On 1/7/19 12:24 AM, Pingfan Liu wrote: > At present, memblock bottom-up allocation can help us against stamping over > movable node in very high probability. Is this what you are fixing? Making a "high probability", a certainty? Is this the problem? > diff --git a/arch/x86/kernel/setup.c b/ar

[PATCH] cifs: fix memory leak of an allocated cifs_ntsd structure

2019-01-07 Thread Colin King
From: Colin Ian King The call to SMB2_queary_acl can allocate memory to pntsd and also return a failure via a call to SMB2_query_acl (and then query_info). This occurs when query_info allocates the structure and then in query_info the call to smb2_validate_and_copy_iov fails. Currently the failur

[PATCH] arm/mach-sa1100/simpad.c: Remove duplicate header

2019-01-07 Thread Souptick Joarder
Remove linux/gpio/machine.h which is included more than once. Signed-off-by: Souptick Joarder --- arch/arm/mach-sa1100/simpad.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-sa1100/simpad.c b/arch/arm/mach-sa1100/simpad.c index 406487e..c7fb9a7 100644 --- a/arch/arm/mach-sa110

Re: [PATCH net v3 1/4] umh: add exit routine for UMH process

2019-01-07 Thread Taehee Yoo
On Tue, 8 Jan 2019 at 00:25, David Miller wrote: > > From: Taehee Yoo > Date: Mon, 7 Jan 2019 21:10:14 +0900 > > > @@ -679,6 +688,29 @@ static int proc_cap_handler(struct ctl_table *table, > > int write, > > return 0; > > } > > > > +void exit_umh(struct task_struct *tsk) > > +{ > > +

Re: [PATCH 2/2] kprobes: Mark ftrace mcount handler functions nokprobe

2019-01-07 Thread kbuild test robot
Hi Masami, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.0-rc1 next-20190107] [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

[PATCH] arch/arm/mm: Remove duplicate header

2019-01-07 Thread Souptick Joarder
Remove duplicate headers which are included twice. Signed-off-by: Souptick Joarder --- arch/arm/mm/mmu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index f5cc1cc..dde3032 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -23,7 +23,6 @@ #in

[PATCH] IB/cm: Use struct_size() in kmalloc()

2019-01-07 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct foo { int stuff; void *entry[]; }; instance = kmalloc(sizeof(struct foo

Re: [PATCH] scsi: sd: Make protection lookup tables static

2019-01-07 Thread John Garry
On 07/01/2019 16:57, Bart Van Assche wrote: On Mon, 2019-01-07 at 22:41 +0800, John Garry wrote: Currently the protection lookup tables in sd_prot_flag_mask() and sd_prot_op() are declared non-static. As such, they will be rebuilt for each respective function call. Optimise by making them stati

Re: [PATCH 0/2] kprobes: Fix kretprobe incorrect stacking order problem

2019-01-07 Thread Andrea Righi
On Mon, Jan 07, 2019 at 10:31:34PM +0900, Masami Hiramatsu wrote: > Hello, > > On recent talk with Andrea, I started more precise investigation on > the kernel panic with kretprobes on notrace functions, which Francis > had been reported last year ( https://lkml.org/lkml/2017/7/14/466 ). > > At f

[PATCH] staging: rtl8188eu: Add device code for D-Link DWA-121 rev B1

2019-01-07 Thread Michael Straube
This device was added to the stand-alone driver on github. Add it to the staging driver as well. Link: https://github.com/lwfinger/rtl8188eu/commit/a0619a07cd1e Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/driv

Re: [PATCH 2/2] kprobes: Mark ftrace mcount handler functions nokprobe

2019-01-07 Thread Steven Rostedt
On Mon, 7 Jan 2019 15:55:36 +0100 Andrea Righi wrote: > On Mon, Jan 07, 2019 at 10:32:32PM +0900, Masami Hiramatsu wrote: > > Mark ftrace mcount handler functions nokprobe since > > probing on these functions with kretprobe pushes > > return address incorrectly on kretprobe shadow stack. > > > >

[PATCH] dmaengine: tegra210-adma: Use struct_size() in devm_kzalloc()

2019-01-07 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct foo { int stuff; void *entry[]; }; instance = devm_kzalloc(dev, sizeof(

Re: [PATCH] rpmsg: core: Make remove handler for rpmsg driver optional.

2019-01-07 Thread Bjorn Andersson
On Mon 07 Jan 03:38 PST 2019, Pi-Hsun Shih wrote: > Most other bus (for example, SPI, i2c) have the remove handler for > driver optional. Make remove handler for rpmsg driver optional too. > > Signed-off-by: Pi-Hsun Shih Thanks Pi-Hsun, applied. Regards, Bjorn > --- > drivers/rpmsg/rpmsg_cor

[PATCH] fbdev: offb: Fix OF node name handling

2019-01-07 Thread Rob Herring
Commit 5c63e407aaab ("fbdev: Convert to using %pOFn instead of device_node.name") changed how the OF FB driver handles the OF node name. This missed the case where the node name is passed to offb_init_palette_hacks(). This results in a NULL ptr dereference in strncmp and breaks any system except on

Re: [PATCH] video: offb: Pass actual name in offb_init_palette_hacks

2019-01-07 Thread Rob Herring
On Wed, Jan 2, 2019 at 2:03 PM Mathieu Malaterre wrote: > > Bartlomiej, > > Do you need an Acked-by from Rob, or can you take it in the next round > of fixes for v4.20 ? Sorry, I missed this. > > Just to repeat myself, previous code would call > offb_init_palette_hacks(), which in turn would do:

[PATCH] arch/arm/xen: Remove duplicate header

2019-01-07 Thread Souptick Joarder
Remove duplicate header which is included twice. Signed-off-by: Souptick Joarder --- arch/arm/xen/mm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/xen/mm.c b/arch/arm/xen/mm.c index cb44aa2..e1d44b9 100644 --- a/arch/arm/xen/mm.c +++ b/arch/arm/xen/mm.c @@ -7,7 +7,6 @@ #include

[PATCH] cpufreq: e_powersaver: Use struct_size() in kzalloc()

2019-01-07 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct foo { int stuff; void *entry[]; }; instance = kzalloc(sizeof(struct foo

Re: [PATCH] scsi: sd: Make protection lookup tables static

2019-01-07 Thread Bart Van Assche
On Mon, 2019-01-07 at 17:27 +, John Garry wrote: > On 07/01/2019 16:57, Bart Van Assche wrote: > > On Mon, 2019-01-07 at 22:41 +0800, John Garry wrote: > > > Currently the protection lookup tables in sd_prot_flag_mask() and > > > sd_prot_op() are declared non-static. As such, they will be rebui

linux-kernel@vger.kernel.org scan copy of payment

2019-01-07 Thread AFB Metal Çelik Steel
Dear linux-kernel@vger.kernel.org Sorry for the delay find the attachment of the payment slip and send me the new account in which i will make the remainig balance payment to. kindly reply me as soon as possible Best regards, MOHAMMED ALI AFB Metal Çelik Steel Tel: +966 1 -4576780 Fax: +966

Re: [PATCH v5 10/15] KVM: s390: add functions to (un)register GISC with GISA

2019-01-07 Thread Michael Mueller
On 04.01.19 14:19, Cornelia Huck wrote: On Wed, 2 Jan 2019 18:29:00 +0100 Pierre Morel wrote: On 19/12/2018 20:17, Michael Mueller wrote: Add the IAM (Interruption Alert Mask) to the architecture specific kvm struct. This mask in the GISA is used to define for which ISC a GIB alert can be

Re: [PATCH 0/5 v2][RFC] Encryption and authentication for hibernate snapshot image

2019-01-07 Thread joeyli
Hi Pavel, Thanks for your review! On Sun, Jan 06, 2019 at 07:10:27PM +0100, Pavel Machek wrote: > Hi! > > > This patchset is the implementation of encryption and authentication > > for hibernate snapshot image. The image will be encrypted by AES and > > authenticated by HMAC. > > Ok, so you en

[PATCH] IB/usnic: Use struct_size() in kmalloc()

2019-01-07 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct foo { int stuff; void *entry[]; }; instance = kmalloc(sizeof(struct foo

Re: [PATCH 2/2] kprobes: Mark ftrace mcount handler functions nokprobe

2019-01-07 Thread kbuild test robot
Hi Masami, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.0-rc1 next-20190107] [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

Re: [PATCH] ASoC: tlv320aic32x4: Kernel OOPS while entering DAPM standby mode

2019-01-07 Thread b-ak
On Mon, Jan 07, 2019 at 12:59:07PM +, Mark Brown wrote: > On Sat, Jan 05, 2019 at 10:16:22AM +0530, b-ak wrote: > > > > > Hi Mark, > > > > Fixed the build error. > > > > Thanks, > > Bhargav > > > > Please submit patches following the process covered in > submitting-patches.rst, don't send

Re: [RFC PATCH 4/4] x86/mm: remove bottom-up allocation style for x86_64

2019-01-07 Thread Dave Hansen
On 1/7/19 12:24 AM, Pingfan Liu wrote: > There are two acheivements by this patch. > -1st. keep the subtree of pgtable away from movable node. > Background about the defect of the current bottom-up allocation style, take > the following scenario: > | unmovable node | movable node

Re: [PATCH] x86: only use ERMS for user copies for larger sizes

2019-01-07 Thread Linus Torvalds
On Mon, Jan 7, 2019 at 1:55 AM David Laight wrote: > > I needed to open-code one part because it wants to do copy_to_user() > from a PCIe address buffer (which has to work). It will never work for memcpy_fromio(). Any driver that thinks it will copy from io space to user space absolutely *has* to

[PATCH] md-linear: use struct_size() in kzalloc()

2019-01-07 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct foo { int stuff; void *entry[]; }; instance = kzalloc(sizeof(struct foo

[PATCH v2] ASoC: tlv320aic32x4: Kernel OOPS while entering DAPM standby mode

2019-01-07 Thread b-ak
During the bootup of the kernel, the DAPM bias level is in the OFF state. As soon as the DAPM framework kicks in it pushes the codec into STANDBY state. The probe function doesn't prepare the clock, and STANDBY state does a clk_disable_unprepare() without checking the previous state. This leads to

[PATCH] phy: ti: Fix compilation failures without REGMAP

2019-01-07 Thread Jason Gunthorpe
This driver requires regmap or the compile fails: drivers/phy/ti/phy-gmii-sel.c:43:27: error: array type has incomplete element type ‘struct reg_field’ const struct reg_field (*regfields)[PHY_GMII_SEL_LAST]; Add it to kconfig. Signed-off-by: Jason Gunthorpe --- drivers/phy/ti/Kconfig | 1 +

Re: [PATCH v6 1/5] dt-bindings: leds: Add pattern initialization from Device Tree

2019-01-07 Thread Pavel Machek
On Fri 2019-01-04 11:08:40, Krzysztof Kozlowski wrote: > Document new led-pattern property for initialization of LED triggers. > The property format is trigger-specific (except being array of > integers). For pattern trigger, the explanation of pattern format was > moved to a common file shared wi

Re: [PATCH v6 2/5] leds: Add helper for getting default pattern from Device Tree

2019-01-07 Thread Pavel Machek
Hi! > Multiple LED triggers might need to access default pattern so add a > helper for that. > > } > EXPORT_SYMBOL_GPL(led_update_brightness); > > +u32 *led_get_default_pattern(struct led_classdev *led_cdev, unsigned int > *size) > +{ > + struct device_node *np = dev_of_node(led_cdev->de

[RFC] device-tree: resets properties, reset topology, and shared resets

2019-01-07 Thread Geert Uytterhoeven
Hi Rob, Mark, Best Wishes for 2019! Can you please provide your opinion on parsing the whole device tree for "resets" phandle properties to find shared resets, cfr. patch [1] below? This is a prerequisite for safe generic reset handling for virtualization on DT-based platforms, cfr. patc

Re: [PATCH v5 02/11] ata: pata_acpi: Make PCI dependency explicit

2019-01-07 Thread Rafael J. Wysocki
On Mon, Jan 7, 2019 at 4:42 PM Jens Axboe wrote: > > On 1/7/19 7:17 AM, Bartlomiej Zolnierkiewicz wrote: > > > > On 01/07/2019 12:12 PM, Rafael J. Wysocki wrote: > >> On Wed, Jan 2, 2019 at 7:11 PM Sinan Kaya wrote: > >>> > >>> After 'commit 5d32a66541c4 ("PCI/ACPI: Allow ACPI to be built without

Re: [PATCH] xfs: correct statx's result_mask value

2019-01-07 Thread Darrick J. Wong
On Mon, Jan 07, 2019 at 04:53:10AM -0500, Su Yanjun wrote: > For statx syscall, xfs return the wrong result_mask. > > Signed-off-by: Su Yanjun > --- > fs/xfs/xfs_iops.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c > index f48ffd7..3811457 100

Re: [PATCH v5 12/15] KVM: s390: do not restore IAM immediately before SIE entry

2019-01-07 Thread Michael Mueller
On 03.01.19 16:00, Pierre Morel wrote: On 19/12/2018 20:17, Michael Mueller wrote: The IAM shall no be restored when deliverable interruptions are delivered to vcpus by means of the PSW swap mechanism. That would trigger the GIB alert millicode although we know that SIE will be able to handle

Re: [PATCH RFC 2/4] include/linux/compiler.h: allow memory operands

2019-01-07 Thread Will Deacon
On Wed, Jan 02, 2019 at 03:57:54PM -0500, Michael S. Tsirkin wrote: > We don't really care whether the variable is in-register > or in-memory. Relax the constraint accordingly. > > Signed-off-by: Michael S. Tsirkin > --- > include/linux/compiler.h | 2 +- > 1 file changed, 1 insertion(+), 1 dele

Re: "flip_done timed out" messages causing huge increase in boot time

2019-01-07 Thread Daniel Kamil Kozar
I submitted the bug report at https://bugs.freedesktop.org/show_bug.cgi?id=109245 . The dmesg log is attached to the bug report. Daniel On Mon, 7 Jan 2019 at 14:34, Ville Syrjälä wrote: > > On Sat, Jan 05, 2019 at 12:47:12AM +0100, Daniel Kamil Kozar wrote: > > Hello. > > After upgrading the ker

[PATCH] phy: ti: Fix compilation failures without REGMAP

2019-01-07 Thread Jason Gunthorpe
This driver requires regmap or the compile fails: drivers/phy/ti/phy-gmii-sel.c:43:27: error: array type has incomplete element type ‘struct reg_field’ const struct reg_field (*regfields)[PHY_GMII_SEL_LAST]; Add it to kconfig. Signed-off-by: Jason Gunthorpe --- drivers/phy/ti/Kconfig | 1 +

[PATCH] crypto: testmgr - split akcipher tests by a key type

2019-01-07 Thread Vitaly Chikunov
Before this, if akcipher_testvec have `public_key_vec' set to true (i.e. having a public key) only sign/encrypt test is performed, but verify/decrypt test is skipped. With a public key we could do encrypt and verify, but to sign and decrypt a private key is required. This logic is correct for enc

Re: [RFC PATCH 3/3] arm64: add a new config option KTEST_RUNNABLE

2019-01-07 Thread Mark Brown
On Mon, Jan 07, 2019 at 02:43:57PM +, Mark Rutland wrote: > Is it possible to use an allyesconfig rather than an allmodconfig? That > would leave all relevant options built-in. The allyesconfig would make it more difficult to apply this approach to real hardware which is part of the goal here

Re: [PATCH] hv_balloon: avoid touching uninitialized struct page during tail onlining

2019-01-07 Thread Sasha Levin
On Mon, Jan 07, 2019 at 02:44:30PM +0100, Vitaly Kuznetsov wrote: David Hildenbrand writes: On 04.01.19 15:19, Vitaly Kuznetsov wrote: Hyper-V memory hotplug protocol has 2M granularity and in Linux x86 we use 128M. To deal with it we implement partial section onlining by registering custom pa

Re: kernel BUG at kernel/sched/core.c:3490!

2019-01-07 Thread Oleg Nesterov
On 01/07, Qian Cai wrote: > > > On 1/7/19 8:52 AM, Peter Zijlstra wrote: > > On Tue, Jan 01, 2019 at 12:44:35AM -0500, Qian Cai wrote: > >> Running some mmap() workloads to put the system on low memory situation > >> with > >> swapping and OOM, and then it trigger this BUG(), > >> > >> void __nore

Re: [PATCH] x86/speculation: Add document to describe Spectre and its mitigations

2019-01-07 Thread Tim Chen
On 12/31/18 8:22 AM, Ben Greear wrote: > > > On 12/21/2018 05:17 PM, Tim Chen wrote: >> >> If you don't worry about security and performance is paramount, then >> boot with "nospectre_v2".  That's explained in the document. > > There seem to be lots of different variants of this type of problem.

Re: [PATCH] Staging: iio: ad7192: replaced bool in struct

2019-01-07 Thread Himanshu Jha
On Wed, Jan 02, 2019 at 01:25:27PM -0800, Matt Ranostay wrote: > > > On Dec 24, 2018, at 01:58, Himanshu Jha wrote: > > > >> On Fri, Dec 21, 2018 at 03:26:26PM -0800, Amir Mahdi Ghorbanian wrote: > >> Replaced bool in struct with unsigned int bitfield to conserve space and > >> more clearly defi

Re: [RFC PATCH 3/3] arm64: add a new config option KTEST_RUNNABLE

2019-01-07 Thread Mark Rutland
On Mon, Jan 07, 2019 at 05:55:31PM +, Mark Brown wrote: > On Mon, Jan 07, 2019 at 02:43:57PM +, Mark Rutland wrote: > > > Is it possible to use an allyesconfig rather than an allmodconfig? That > > would leave all relevant options built-in. > > The allyesconfig would make it more difficul

Re: [PATCH] xfs: correct statx's result_mask value

2019-01-07 Thread Darrick J. Wong
On Mon, Jan 07, 2019 at 09:52:29AM -0800, Darrick J. Wong wrote: > On Mon, Jan 07, 2019 at 04:53:10AM -0500, Su Yanjun wrote: > > For statx syscall, xfs return the wrong result_mask. > > > > Signed-off-by: Su Yanjun > > --- > > fs/xfs/xfs_iops.c | 3 +++ > > 1 file changed, 3 insertions(+) > >

Re: [PATCH 4.19 000/170] 4.19.14-stable review

2019-01-07 Thread Guenter Roeck
On Mon, Jan 07, 2019 at 01:30:27PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.14 release. > There are 170 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

Re: [PATCH v2 17/17] power: supply: olpc_battery: Add OLPC XO 1.75 support

2019-01-07 Thread Lubomir Rintel
On Sun, 2018-12-02 at 15:34 -0800, Darren Hart wrote: > On Fri, Nov 16, 2018 at 05:24:03PM +0100, Lubomir Rintel wrote: > > The battery and the protocol are essentially the same as OLPC XO 1.5, > > but the responses from the EC are LSB first. > > > > Signed-off-by: Lubomir Rintel > > Acked-by: Pa

[PATCH] kernel/sys.c: Fix UNAME26 for 5.0

2019-01-07 Thread Jonathan Neuschäfer
UNAME26 is a mechanism to report Linux's version as 2.6.x, for compatibility with old/broken software. Because of the way it is implemented, it needs to be adjusted to handle version 5.0. Signed-off-by: Jonathan Neuschäfer --- kernel/sys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

Re: [PATCH] xfs: correct statx's result_mask value

2019-01-07 Thread Eric Sandeen
On 1/7/19 11:52 AM, Darrick J. Wong wrote: > On Mon, Jan 07, 2019 at 04:53:10AM -0500, Su Yanjun wrote: >> For statx syscall, xfs return the wrong result_mask. >> >> Signed-off-by: Su Yanjun >> --- >> fs/xfs/xfs_iops.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/fs/xfs/xfs_i

Re: general protection fault in put_pid

2019-01-07 Thread Manfred Spraul
On 1/3/19 11:18 PM, Shakeel Butt wrote: Hi Manfred, On Sun, Dec 23, 2018 at 4:26 AM Manfred Spraul wrote: Hello Dmitry, On 12/23/18 10:57 AM, Dmitry Vyukov wrote: I can reproduce this infinite memory consumption with the C program: https://gist.githubusercontent.com/dvyukov/03ec54b3429ade16f

Re: [PATCH v4 05/10] KVM/x86: expose MSR_IA32_PERF_CAPABILITIES to the guest

2019-01-07 Thread Jim Mattson
On Mon, Jan 7, 2019 at 1:09 AM Wei Wang wrote: > > On 01/03/2019 11:25 PM, Jim Mattson wrote: > > On Wed, Jan 2, 2019 at 11:55 PM Wei Wang wrote: > > > >> Right, thanks. Probably better to change it to below: > >> > >> msr_info->data = 0; > >> data = native_read_msr(MSR_IA32_PERF_CAPABILITIES); >

Re: [PATCH 4.20 000/145] 4.20.1-stable review

2019-01-07 Thread Guenter Roeck
On Mon, Jan 07, 2019 at 01:30:37PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.20.1 release. > There are 145 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

<    5   6   7   8   9   10   11   12   13   14   >