KASAN: use-after-free Read in task_is_descendant

2018-10-21 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:270b77a0f30e Merge tag 'drm-fixes-2018-10-20-1' of git://a.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=116f4ad940 kernel config: https://syzkaller.appspot.com/x/.config?x=b3f55cb3dfcc6c33 da

Re: KASAN: use-after-free Read in task_is_descendant

2018-10-21 Thread Tetsuo Handa
On 2018/10/21 16:10, syzbot wrote: > BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:188 > [inline] > BUG: KASAN: use-after-free in task_is_descendant.part.2+0x610/0x670 > security/yama/yama_lsm.c:295 > Read of size 8 at addr 8801c4666b20 by task syz-executor3/12722 >

Re: [Ksummit-discuss] [PATCH 5/7] Code of Conduct Interpretation: Put in the proper URL for the committee

2018-10-21 Thread Greg KH
On Sat, Oct 20, 2018 at 09:01:57PM +0200, Geert Uytterhoeven wrote: > Hi Greg, > > On Sat, Oct 20, 2018 at 3:53 PM Greg Kroah-Hartman > wrote: > > There was a blank reference for how to find the Code of Conduct > > Committee. Fix that up by pointing it to the correct kernel.org website > > page

Re: [PATCH] memblock: remove stale #else and the code it protects

2018-10-21 Thread Mike Rapoport
On October 19, 2018 11:17:30 AM GMT+03:00, Wei Yang wrote: >Which tree it applies? To mmotm of the end of September. >On Thu, Sep 27, 2018 at 08:03:45PM +0300, Mike Rapoport wrote: >>During removal of HAVE_MEMBLOCK definition, the #else clause of the >> >> #ifdef CONFIG_HAVE_MEMBLOCK >>

[RESEND PATCH v3 07/13] KVM/nVMX: Use kvm_vcpu_map when mapping the virtual APIC page

2018-10-21 Thread KarimAllah Ahmed
Use kvm_vcpu_map when mapping the virtual APIC page since using kvm_vcpu_gpa_to_page() and kmap() will only work for guest memory that has a "struct page". One additional semantic change is that the virtual host mapping lifecycle has changed a bit. It now has the same lifetime of the pinning of th

Re: [PATCH v3 07/13] KVM/nVMX: Use kvm_vcpu_map when mapping the virtual APIC page

2018-10-21 Thread Raslan, KarimAllah
Sorry! please ignore this patch in favor of its RESEND. I realized that a few  lines from it leaked into another patch series. The "RESEND" should have this  fixed. On Sun, 2018-10-21 at 00:22 +0200, KarimAllah Ahmed wrote: > Use kvm_vcpu_map when mapping the virtual APIC page since using > kvm_vc

Re: [Ksummit-discuss] [PATCH 6/7] Code of Conduct: Change the contact email address

2018-10-21 Thread Theodore Y. Ts'o
On Sat, Oct 20, 2018 at 03:14:20PM -0400, jonsm...@gmail.com wrote: > > Which is why the lawyers need to go over this document and I haven't > seen anything posted from them. In the same vein Mauro is concerned > that the way this is code is written it is a binding contract in > Brazil. My unders

Re: [PATCH] staging: iio: ad2s1210: Switch to the gpio descriptor interface

2018-10-21 Thread Slawomir Stepien
On paź 21, 2018 11:49, Nishad Kamdar wrote: > Use the gpiod interface instead of the deprecated old non-descriptor > interface. Hi! See my comments below. > Signed-off-by: Nishad Kamdar > --- > drivers/staging/iio/resolver/ad2s1210.c | 110 +++- > drivers/staging/iio/resolv

Re: [PATCH v2 2/3] leds: upboard: Add LED support

2018-10-21 Thread Pavel Machek
On Sat 2018-10-20 14:17:58, Andy Shevchenko wrote: 1;2802;0c> On Fri, Oct 19, 2018 at 8:27 PM Dan O'Donovan wrote: > > > > From: Javier Arteaga > > > > Allow userspace to use the on-board LEDs as "upboard::". > > > > > +#include > > +#include > > +#include > > +#include > > +#include > >

Was It That

2018-10-21 Thread Abdwabbo Maddah
-- Dear, I had sent you a mail but i don't think you received it that's why am writing you again. It is important you get back to me as soon as you can. Abdwabbo Maddah

[tip:x86/mm] x86/mm: Kill stray kernel fault handling comment

2018-10-21 Thread tip-bot for Dave Hansen
Commit-ID: 162041425193602b15774c61740ad8e7dc157df3 Gitweb: https://git.kernel.org/tip/162041425193602b15774c61740ad8e7dc157df3 Author: Dave Hansen AuthorDate: Fri, 19 Oct 2018 07:08:42 -0700 Committer: Ingo Molnar CommitDate: Sun, 21 Oct 2018 10:58:10 +0200 x86/mm: Kill stray kernel f

Re: [Ksummit-discuss] [PATCH 6/7] Code of Conduct: Change the contact email address

2018-10-21 Thread Greg KH
On Sun, Oct 21, 2018 at 04:27:57AM -0400, Theodore Y. Ts'o wrote: > On Sat, Oct 20, 2018 at 03:14:20PM -0400, jonsm...@gmail.com wrote: > > > > Which is why the lawyers need to go over this document and I haven't > > seen anything posted from them. In the same vein Mauro is concerned > > that the

Re: [PATCH] staging: iio: ad2s1210: Switch to the gpio descriptor interface

2018-10-21 Thread Slawomir Stepien
On paź 21, 2018 10:31, Slawomir Stepien wrote: > On paź 21, 2018 11:49, Nishad Kamdar wrote: > > -static int ad2s1210_setup_gpios(struct ad2s1210_state *st) > > +static int ad2s1210_setup_gpios(struct spi_device *spi, > > + struct ad2s1210_state *st) > > This change is no

[RFC] Merging ftrace_stack, perf_callchain, oprofile->backtrace and stack_trace

2018-10-21 Thread Aleksa Sarai
Hi all, I'm currently working on a patchset to make kretprobes produce reasonable stack traces[1], and it appears this is a generic problem across the entire kernel -- you can see the same kretprobe_trampoline() issue when using ftrace just as much as bpf_trace. However, in working on this patch,

KASAN: use-after-free Read in wait_for_completion

2018-10-21 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:270b77a0f30e Merge tag 'drm-fixes-2018-10-20-1' of git://a.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=152bb70940 kernel config: https://syzkaller.appspot.com/x/.config?x=b3f55cb3dfcc6c33 da

Re: [RFC] Merging ftrace_stack, perf_callchain, oprofile->backtrace and stack_trace

2018-10-21 Thread Aleksa Sarai
On 2018-10-21, Aleksa Sarai wrote: > However, in working on this patch, I've noticed that there appear to be > several different implementations of "get the stack trace from this > pt_regs" which all appear quite similar. Namely: > > * struct ftrace_stack; Sorry, I made a mistake here. ftrace_

Re: [PATCH] fs: ufs: Remove switch statement from ufs_set_de_type function

2018-10-21 Thread Phillip Potter
On Sun, Oct 21, 2018 at 08:30:35AM +0300, Amir Goldstein wrote: > On Sun, Oct 21, 2018 at 1:27 AM Matthew Wilcox wrote: > > > > On Sat, Oct 20, 2018 at 11:09:57PM +0100, Phillip Potter wrote: > > > Remove switch statement from ufs_set_de_type function in fs/ufs/util.h > > > header and replace with

Re: KASAN: use-after-free Read in kvm_put_kvm

2018-10-21 Thread Paolo Bonzini
On 20/10/2018 18:57, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:    8c60c36d0b8c Add linux-next specific files for 20181019 > git tree:   linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=12d808b540 > kernel config:  https://syzkal

Re: [PATCH v2 1/2] x86/cpufeature: Add facility to match microcode revisions

2018-10-21 Thread Thomas Gleixner
Andi, On Sat, 20 Oct 2018, Andi Kleen wrote: > On Sat, Oct 20, 2018 at 10:19:37AM +0200, Thomas Gleixner wrote: > > On Fri, 19 Oct 2018, Andi Kleen wrote: > > There is no point to return the pointer because it's not a compound > > structure. If you want to provide the possibility to use the index

I NEED YOUR HELP URGENTLY!!!

2018-10-21 Thread GEN KELVIN
Compliment of the day to you. I am Gen.Kelvin W Howard, I am sending this brief letter to solicit your partnership of Sixteen Million Two Hundred Thousand United States Dollars ($16,200,000). I shall send you more information and procedures when I receive positive response from you.Best Regards

[PULL REQUEST] i2c for 4.19

2018-10-21 Thread Wolfram Sang
Greg, please pull another driver bugfix and MAINTAINERS addition from I2C. Thanks, Wolfram The following changes since commit 35a7f35ad1b150ddf59a41dcac7b2fa32982be0e: Linux 4.19-rc8 (2018-10-15 07:20:24 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linu

Re: [PATCH] fs: ufs: Remove switch statement from ufs_set_de_type function

2018-10-21 Thread Amir Goldstein
On Sun, Oct 21, 2018 at 12:57 PM Phillip Potter wrote: > > On Sun, Oct 21, 2018 at 08:30:35AM +0300, Amir Goldstein wrote: > > On Sun, Oct 21, 2018 at 1:27 AM Matthew Wilcox wrote: > > > > > > On Sat, Oct 20, 2018 at 11:09:57PM +0100, Phillip Potter wrote: > > > > Remove switch statement from ufs

Applied "spi: Allow building SPI_BCM63XX_HSSPI on ARM-based SoCs" to the spi tree

2018-10-21 Thread Mark Brown
The patch spi: Allow building SPI_BCM63XX_HSSPI on ARM-based SoCs has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Re: [PATCH v1 3/3] ASoC: soc-core: fix platform name vs. of_node assignement

2018-10-21 Thread Mark Brown
On Fri, Oct 19, 2018 at 11:22:46AM +0100, Jon Hunter wrote: > Looking at snd_soc_init_platform(), it seems that the platform pointer > can be allocated by the machine driver and so if it is not allocated by > the core, then I don't think we should clear it here. Seems we need a > way to determine

Re: [RFC v4 0/2] WhiteEgret LSM module

2018-10-21 Thread Steve Kemp
This is an interesting idea, and an evolution since the initial approach which was submitted based upon xattr attributes. I still find the idea of using attributes simpler to manage though, since they're easy to add, and audit for. I suspect the biggest objection to this module is that maintainin

Re: [PATCH 3/3] staging: rtl8188eu: rename variable isCCKrate - style

2018-10-21 Thread Joe Perches
On Sat, 2018-10-20 at 13:08 +0200, Michael Straube wrote: > Rename the variable isCCKrate to avoid CamelCase. > isCCKrate -> is_cck_rate [] > diff --git a/drivers/staging/rtl8188eu/hal/odm_hwconfig.c > b/drivers/staging/rtl8188eu/hal/odm_hwconfig.c [] > @@ -71,19 +71,20 @@ static void odm_RxPhySta

Re: [PATCH 09/10] tools iio: Override CFLAGS assignments

2018-10-21 Thread Jonathan Cameron
On Tue, 16 Oct 2018 17:06:14 +0200 Jiri Olsa wrote: > So user could specify outside CFLAGS values. Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to poke at them. Thanks Jonathan > > Cc: Jonathan Cameron > Cc: Hartmut Knaack > Cc: Lars-Peter Clausen

Re: 32-bit PTI with THP = userspace corruption

2018-10-21 Thread Pavel Machek
On Tue 2018-09-18 14:00:30, Alan Cox wrote: > On Tue, 11 Sep 2018 14:12:22 +0200 > Joerg Roedel wrote: > > > On Tue, Sep 11, 2018 at 02:58:10PM +0300, Meelis Roos wrote: > > > The machines where I have PAE off are the ones that have less memory. > > > PAE is off just for performance reasons, not

[PATCH] devres: fix a typo

2018-10-21 Thread Rami Rosen
Signed-off-by: Rami Rosen This patch fixes a typo in lib/devres.c. --- lib/devres.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/devres.c b/lib/devres.c index faccf1a..f64cc21 100644 --- a/lib/devres.c +++ b/lib/devres.c @@ -290,7 +290,7 @@ static void pcim_iomap_rele

[PATCH RESEND V4 0/9] clk: add imx7ulp clk support

2018-10-21 Thread A.s. Dong
This is a rebased version of below patch series against latest clk tree. [PATCH RESEND V3 0/9] clk: add imx7ulp clk support https://lkml.org/lkml/2018/3/16/310 It only updates the license to SPDX format as well as a minor fix of pllv4. This patch series intends to add imx7ulp clk support. i.MX7U

[PATCH RESEND V4 1/9] clk: clk-divider: add CLK_DIVIDER_ZERO_GATE clk support

2018-10-21 Thread A.s. Dong
For dividers with zero indicating clock is disabled, instead of giving a warning each time like "clkx: Zero divisor and CLK_DIVIDER_ALLOW_ZERO not set" in exist code, we'd like to introduce enable/disable function for it. e.g. 000b - Clock disabled 001b - Divide by 1 010b - Divide by 2 ... Set rat

[PATCH RESEND V4 9/9] clk: imx: add imx7ulp clk driver

2018-10-21 Thread A.s. Dong
i.MX7ULP Clock functions are under joint control of the System Clock Generation (SCG) modules, Peripheral Clock Control (PCC) modules, and Core Mode Controller (CMC)1 blocks The clocking scheme provides clear separation between M4 domain and A7 domain. Except for a few clock sources shared between

[PATCH RESEND V4 8/9] clk: imx: implement new clk_hw based APIs

2018-10-21 Thread A.s. Dong
Clock providers are recommended to use the new struct clk_hw based API, so implement IMX clk_hw based provider helpers functions to the new approach. Signed-off-by: Dong Aisheng --- ChangeLog: v2->v4: * no changes v1->v2: new patches --- drivers/clk/imx/clk.c | 22 ++ drivers/

[PATCH RESEND V4 4/9] clk: imx: add pfdv2 support

2018-10-21 Thread A.s. Dong
The pfdv2 is designed for PLL Fractional Divide (PFD) observed in System Clock Generation (SCG) module in IMX ULP SoC series. e.g. i.MX7ULP. NOTE pfdv2 can only be operated when clk is gated. Cc: Stephen Boyd Cc: Michael Turquette Cc: Shawn Guo Cc: Anson Huang Cc: Bai Ping Signed-off-by: Don

[PATCH RESEND V4 7/9] clk: imx: make mux parent strings const

2018-10-21 Thread A.s. Dong
As the commit 2893c379461a ("clk: make strings in parent name arrays const"), let's make the parent strings const, otherwise we may meet the following warning when compiling: drivers/clk/imx/clk-imx7ulp.c: In function 'imx7ulp_clocks_init': drivers/clk/imx/clk-imx7ulp.c:73:35: warning: passing arg

[PATCH RESEND V4 3/9] clk: imx: add pllv4 support

2018-10-21 Thread A.s. Dong
pllv4 is designed for System Clock Generation (SCG) module observed in IMX ULP SoC series. e.g. i.MX7ULP. The SCG modules generates clock used to derive processor, system, peripheral bus and external memory interface clocks while this patch intends to support the PLL part. Cc: Stephen Boyd Cc: M

[PATCH RESEND V4 2/9] clk: fractional-divider: add CLK_FRAC_DIVIDER_ZERO_BASED flag support

2018-10-21 Thread A.s. Dong
Adding CLK_FRAC_DIVIDER_ZERO_BASED flag to indicate the numerator and denominator value in register are start from 0. This can be used to support frac dividers like below: Divider output clock = Divider input clock x [(frac +1) / (div +1)] where frac/div in register is: 000b - Divide by 1. 001b -

[PATCH RESEND V4 5/9] clk: imx: add composite clk support

2018-10-21 Thread A.s. Dong
The imx composite clk is designed for Peripheral Clock Control (PCC) module observed in IMX ULP SoC series. e.g. i.MX7ULP. NOTE pcc can only be operated when clk is gated. Cc: Stephen Boyd Cc: Michael Turquette Cc: Shawn Guo Cc: Anson Huang Cc: Bai Ping Signed-off-by: Dong Aisheng --- Chan

[PATCH RESEND V4 6/9] dt-bindings: clock: add imx7ulp clock binding doc

2018-10-21 Thread A.s. Dong
i.MX7ULP Clock functions are under joint control of the System Clock Generation (SCG) modules, Peripheral Clock Control (PCC) modules, and Core Mode Controller (CMC)1 blocks Note IMX7ULP has two clock domains: M4 and A7. This binding doc is only for A7 clock domain. Cc: Rob Herring Cc: Mark Rutl

RE: [PATCH RESEND V4 0/9] clk: add imx7ulp clk support

2018-10-21 Thread A.s. Dong
Hi Stephen, In case you might miss to queue this series into your review list, so I resend this series again. This series actually has been pending for a couple of months without comments. Hopefully you could help find some time to handle it when you're free. Thanks Regards Dong Aisheng >

Re: [PATCH 1/2] iio: adc: Add ad7124 support

2018-10-21 Thread Jonathan Cameron
On Thu, 18 Oct 2018 14:04:53 +0300 Stefan Popa wrote: > The ad7124-4 and ad7124-8 are a family of 4 and 8 channel sigma-delta ADCs > with 24-bit precision and reference. > > Three power modes are available which in turn affect the output data rate: > * Full power: 9.38 SPS to 19,200 SPS > * Mi

Re: [PATCH v2 3/3] dt-bindings: iio: adc: Add docs for ad7124

2018-10-21 Thread Jonathan Cameron
On Fri, 19 Oct 2018 10:47:45 +0300 Stefan Popa wrote: > Add support for Analog Devices AD7124 4-channels and 8-channels ADC. > > Signed-off-by: Stefan Popa I'm not certain on how to do reg for the channels. Input from Devicetree people please! Given I would imagine this is very similar to so

Re: [PATCH v4 3/3] iio: magnetometer: Add driver support for PNI RM3100

2018-10-21 Thread Jonathan Cameron
On Wed, 17 Oct 2018 16:00:02 +0800 Song Qiang wrote: > On 2018/10/12 下午8:53, Himanshu Jha wrote: > > Hi Qiang, > > > > On Fri, Oct 12, 2018 at 04:36:01PM +0800, Song Qiang wrote: > >> > >> On 2018年10月12日 15:35, Song Qiang wrote: > >>> PNI RM3100 is a high resolution, large signal immunity mag

Re: [PATCH 1/3] i2c:ocores: stop transfer on timeout

2018-10-21 Thread Peter Korsgaard
On Mon, Jun 25, 2018 at 6:14 PM Federico Vaga wrote: Hi, and sorry for the slow response. > Detecting a timeout is ok, but we also need to assert a STOP command on > the bus in order to prevent it from generating interrupts when there are > no on going transfers. > > Example: very long transmiss

Re: [PATCH 2/3] i2c:ocores: do not handle IRQ if IF is not set

2018-10-21 Thread Peter Korsgaard
On Mon, Jun 25, 2018 at 6:14 PM Federico Vaga wrote: > > If the Interrupt Flag (IF) is not set, we should not handle the IRQ: > - the line can be shared with other devices > - it can be a spurious interrupt > > To avoid reading twice the status register, the ocores_process() function > expects it

Re: [PATCH v4 3/3] iio: magnetometer: Add driver support for PNI RM3100

2018-10-21 Thread Jonathan Cameron
On Thu, 18 Oct 2018 16:24:15 +0800 Song Qiang wrote: > On 2018/10/13 下午6:19, Jonathan Cameron wrote: > > On Fri, 12 Oct 2018 15:35:36 +0800 > > Song Qiang wrote: > > > >> PNI RM3100 is a high resolution, large signal immunity magnetometer, > >> composed of 3 single sensors and a processing chi

Re: [PATCH v5 1/2] dt-bindings: iio: vadc: Update example to include unit address for node 'usb-id-nopull'

2018-10-21 Thread Jonathan Cameron
On Thu, 18 Oct 2018 12:40:10 -0700 Matthias Kaehlcke wrote: > On Fri, Oct 12, 2018 at 10:15:23AM -0700, Matthias Kaehlcke wrote: > > On Fri, Oct 05, 2018 at 03:47:43PM -0500, Rob Herring wrote: > > > On Wed, Oct 03, 2018 at 05:14:31PM -0700, Matthias Kaehlcke wrote: > > > > The node has a reg

Re: [PATCH 3/3] i2c:ocores: add polling interface

2018-10-21 Thread Peter Korsgaard
On Mon, Jun 25, 2018 at 6:14 PM Federico Vaga wrote: > > This driver assumes that an interrupt line is always available for > the I2C master. This is not always the case and this patch adds support > for a polling version based on workqueue. It probably makes sense to make it the switch between i

Re: [PATCH v2] Staging iio: adc: Match parenthesis alignment

2018-10-21 Thread Jonathan Cameron
On Wed, 17 Oct 2018 22:31:47 -0300 Marcelo Schmitt wrote: > Change close parenthesis alignment to match respective open parenthesis at > iio/drivers/staging/iio/adc/ad7606.c line 379. > This makes the file more compliant with the preferred coding style for the > linux kernel. Hi Marcelo, Nice cl

Re: [PATCH][V2] iio: adc: ina2xx: add in early -EINVAL returns in case statements

2018-10-21 Thread Jonathan Cameron
On Tue, 16 Oct 2018 20:26:57 +0200 Stefan Brüns wrote: > On Dienstag, 16. Oktober 2018 18:14:18 CEST Colin King wrote: > > From: Colin Ian King > > > > Static analysis with CoverityScan is throwing warnings that specific > > case statements are missing breaks. Rather than adding breaks, add >

Re: [PATCH v2] staging: iio: ad7816: Switch to the gpio descriptor interface

2018-10-21 Thread Jonathan Cameron
On Thu, 18 Oct 2018 09:40:00 +0200 Lars-Peter Clausen wrote: > On 10/18/2018 09:28 AM, Phil Reid wrote: > [...] > >> +    chip->rdwr_pin = devm_gpiod_get(&spi_dev->dev, "rdwr", GPIOD_IN); > >> +    if (IS_ERR(chip->rdwr_pin)) { > >> +    ret = PTR_ERR(chip->rdwr_pin); > >> +    dev_err(&s

Re: Interrupts, smp_load_acquire(), smp_store_release(), etc.

2018-10-21 Thread Alan Stern
On Sat, 20 Oct 2018, Paul E. McKenney wrote: > On Sat, Oct 20, 2018 at 10:22:29PM +0200, Andrea Parri wrote: > > [...] > > > > > The second (informal) litmus test has a more interesting Linux-kernel > > > counterpart: > > > > > > void t1_interrupt(void) > > > { > > > r0 = READ_ONCE

[PATCH 0/2] tracing: Fix synthetic event parser

2018-10-21 Thread Masami Hiramatsu
Hi, I found another bug in synthetic event. This is a small fix, but confusingly, there is also a bug in a test case. Steve, since the testcase bugfix ([2/2]) breaks the test result unless corresponding fix ([1/2]), I would like to ask you to send these fixes from your tree. Shuah, could you give

[PATCH 1/2] tracing: Return -ENOENT if there is no target synthetic event

2018-10-21 Thread Masami Hiramatsu
Return -ENOENT error if there is no target synthetic event. This notices an operation failure to user as below; # echo 'wakeup_latency u64 lat; pid_t pid;' > synthetic_events # echo '!wakeup' >> synthetic_events sh: write error: No such file or directory Fixes: 4b147936fa50 ('tracing: Add s

[PATCH 2/2] selftests/ftrace: Fix synthetic event test to delete event correctly

2018-10-21 Thread Masami Hiramatsu
Fix the synthetic event test case to remove event correctly. If redirecting command to synthetic_event file without append mode, it cleans up all existing events and execute (parse) the command. This means "delete event" always fails to find the target event. Since previous synthetic event has a b

Re: [PATCH v2 1/2] x86/cpufeature: Add facility to match microcode revisions

2018-10-21 Thread Borislav Petkov
On Sun, Oct 21, 2018 at 12:20:47PM +0200, Thomas Gleixner wrote: > struct x86_cpu_check { Btw, if we have to be precise, this struct is no "check" struct either. > u8 vendor; > u8 family; > u8 model; > u8 stepping; > }; If anything, it is a x86_cpu_typ

[PATCH] pfn_t: force '~' to be parsed as an unary operator

2018-10-21 Thread Sebastien Boisvert
Tracing the event "fs_dax:dax_pmd_insert_mapping" with perf produces this warning: [fs_dax:dax_pmd_insert_mapping] unknown op '~' It is printed in process_op (tools/lib/traceevent/event-parse.c) because '~' is parsed as a binary operator. perf reads the format of fs_dax:dax_pmd_insert_mappi

Re: [PATCH v6 3/5] seccomp: add a way to get a listener fd from ptrace

2018-10-21 Thread Tycho Andersen
On Wed, Oct 17, 2018 at 06:15:47PM +, Michael Tirado wrote: > Tycho, Sorry for the duplicate, I forgot to CC the list :( > > On Wed, Oct 17, 2018 at 3:00 PM Tycho Andersen wrote: > > > > > > That's one of the use cases, but there are a large number of others. I > > discuss a few in patch 1: >

Re: [PATCH v7 1/6] seccomp: add a return code to trap to userspace

2018-10-21 Thread Tycho Andersen
On Wed, Oct 17, 2018 at 03:21:02PM -0700, Kees Cook wrote: > On Wed, Oct 17, 2018 at 1:29 PM, Tycho Andersen wrote: > > On Thu, Sep 27, 2018 at 02:31:24PM -0700, Kees Cook wrote: > >> On Thu, Sep 27, 2018 at 8:11 AM, Tycho Andersen wrote: > >> > @@ -60,4 +62,29 @@ struct seccomp_data { > >> >

Re: [PATCH 01/34] vfs: syscall: Add open_tree(2) to reference or clone a mount [ver #12]

2018-10-21 Thread Eric W. Biederman
David Howells writes: > From: Al Viro > > open_tree(dfd, pathname, flags) > > Returns an O_PATH-opened file descriptor or an error. > dfd and pathname specify the location to open, in usual > fashion (see e.g. fstatat(2)). flags should be an OR of > some of the following: > * AT_PATH_EMPT

Re: [PATCH 03/34] teach move_mount(2) to work with OPEN_TREE_CLONE [ver #12]

2018-10-21 Thread Eric W. Biederman
David Howells writes: > From: Al Viro > > Allow a detached tree created by open_tree(..., OPEN_TREE_CLONE) to be > attached by move_mount(2). > > If by the time of final fput() of OPEN_TREE_CLONE-opened file its tree is > not detached anymore, it won't be dissolved. move_mount(2) is adjusted >

INFO: rcu detected stall in sys_creat

2018-10-21 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8c60c36d0b8c Add linux-next specific files for 20181019 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=160c924540 kernel config: https://syzkaller.appspot.com/x/.config?x=8b6d7c4c81535e89 dashb

Re: [PATCH 1/2] staging: iio: ad7606: Move out of staging

2018-10-21 Thread Jonathan Cameron
On Thu, 18 Oct 2018 12:10:32 +0300 Stefan Popa wrote: > Move ad7606 ADC driver out of staging and into the mainline. > > Signed-off-by: Stefan Popa Hi Stefan, Great to be moving forward on this. A few comments inline. There are some somewhat old school structures in here we can do better no

[PATCH] ALSA: hda/ca0132 - Actually fix microphone issue

2018-10-21 Thread Connor McAdams
This patch fixes the microphone issue for all cards. The previous fix worked on the ZxR, but not on the AE-5 or Z. This patch has been tested to work for all cards. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 73 ++-- 1 file changed, 3

Re: 4.14 backport request for dbdda842fe96f: "printk: Add console owner and waiter logic to load balance console writes"

2018-10-21 Thread Daniel Wang
Just got back from vacation. Thanks for the continued discussion. Just so I understand the current state. Looks like we've got a pretty good explanation of what's going on (though not completely sure), and backporting Steven's patches is still the way to go? I see that Sergey had sent an RFC series

[PATCH v6 5/8] ARM: dts: tegra20: Add clock entry to External Memory Controller

2018-10-21 Thread Dmitry Osipenko
Add clock entry into the EMC DT node. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 526f623f201a..dcad6d6128cf 100644 --- a/arch/arm/boot/dts/tegra20.dtsi

[PATCH v6 3/8] dt: bindings: Move tegra20-emc binding to memory-controllers directory

2018-10-21 Thread Dmitry Osipenko
Move tegra20-emc binding to the memory-controllers directory for consistency with the other Tegra memory bindings. Signed-off-by: Dmitry Osipenko Acked-by: Rob Herring --- .../{arm/tegra => memory-controllers}/nvidia,tegra20-emc.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) ren

[PATCH v6 6/8] clk: tegra20: Turn EMC clock gate into divider

2018-10-21 Thread Dmitry Osipenko
Kernel should never gate the EMC clock as it causes immediate lockup, so removing clk-gate functionality doesn't affect anything. Turning EMC clk gate into divider allows to implement glitch-less EMC scaling, avoiding reparenting to a backup clock. Signed-off-by: Dmitry Osipenko Acked-by: Peter D

[PATCH v6 0/8] Tegra20 External Memory Controller driver

2018-10-21 Thread Dmitry Osipenko
Changelog: v6: - Driver now handles "refresh request overflow" interrupt by reporting error message. - EMC rate is set during driver initialization to ensure that clock divider is in a proper state. v5: - Fixed wrong EMC clock divider type in the "Turn

[PATCH v6 7/8] clk: tegra20: Check whether direct PLLM sourcing is turned off for EMC

2018-10-21 Thread Dmitry Osipenko
Ensure that direct PLLM sourcing is turned off for EMC as we don't support that configuration in the clk driver. Signed-off-by: Dmitry Osipenko Acked-by: Peter De Schrijver Acked-by: Stephen Boyd --- drivers/clk/tegra/clk-tegra20.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH v6 8/8] memory: tegra: Introduce Tegra20 EMC driver

2018-10-21 Thread Dmitry Osipenko
Introduce driver for the External Memory Controller (EMC) found on Tegra20 chips, which controls the external DRAM on the board. The purpose of this driver is to program memory timing for external memory on the EMC clock rate change. Signed-off-by: Dmitry Osipenko Acked-by: Peter De Schrijver --

[PATCH v6 4/8] ARM: dts: tegra20: Add interrupt entry to External Memory Controller

2018-10-21 Thread Dmitry Osipenko
Add interrupt entry into the EMC DT node. Signed-off-by: Dmitry Osipenko Acked-by: Peter De Schrijver --- arch/arm/boot/dts/tegra20.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 20869757d32f..526f623f201a 100644 --

[PATCH v6 2/8] dt: bindings: tegra20-emc: Document clock property

2018-10-21 Thread Dmitry Osipenko
Embedded memory controller has a corresponding clock, document the clock property. Signed-off-by: Dmitry Osipenko Acked-by: Rob Herring --- .../devicetree/bindings/arm/tegra/nvidia,tegra20-emc.txt| 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm

[PATCH v6 1/8] dt: bindings: tegra20-emc: Document interrupt property

2018-10-21 Thread Dmitry Osipenko
EMC has a dedicated interrupt that is used to notify about completion of HW operations. Document the interrupt property. Signed-off-by: Dmitry Osipenko Acked-by: Rob Herring Acked-by: Peter De Schrijver --- .../devicetree/bindings/arm/tegra/nvidia,tegra20-emc.txt| 2 ++ 1 file changed,

[PATCH v1] soc/tegra: pmc: Drop locking from tegra_powergate_is_powered()

2018-10-21 Thread Dmitry Osipenko
This fixes splats like the one below if CONFIG_DEBUG_ATOMIC_SLEEP=y and machine (Tegra30) booted with SMP=n or all secondary CPU's are put offline. Locking isn't needed because it protects atomic operation. # echo 0 | tee /sys/devices/system/cpu/cpu[1-3]/online BUG: sleeping function called from

[PATCH 2/2] perf script: flush output stream after events in verbose mode

2018-10-21 Thread Milian Wolff
When the perf script output is written to a terminal stream, the normal output of `perf script` would get buffered, but its debug output would be written directly. This made it quite hard to figure out where a given debug output is coming from. We can improve on this by flushing the output buffer a

[PATCH 1/2] perf script: allow extended console debug output

2018-10-21 Thread Milian Wolff
The script tool isn't using a browser, yet use_browser wasn't set explicitly to zero. This in turn lead to confusing output such as: ``` $ perf script -vvv ... ... overlapping maps in /home/milian/foobar (disable tui for more info) ... ``` Explicitly set use_browser to 0 now, which gives us the e

Re: [PATCH v5 4/6] power: supply: core: Add some helpers to use the battery OCV capacity table

2018-10-21 Thread Sebastian Reichel
Hi, On Fri, Oct 19, 2018 at 06:53:13PM +0800, Baolin Wang wrote: > We have introduced some battery properties to present the OCV table > temperatures and OCV capacity table values. Thus this patch add OCV > temperature and OCV table for battery information, as well as providing > some helper funct

Re: [PATCH v5 3/6] dt-bindings: power: Introduce properties to present the battery OCV capacity table

2018-10-21 Thread Sebastian Reichel
Hi, On Fri, Oct 19, 2018 at 06:53:12PM +0800, Baolin Wang wrote: > Some battery driver will use the open circuit voltage (OCV) value to look > up the corresponding battery capacity percent in one certain degree Celsius. > Thus this patch provides some battery properties to present the OCV table >

Re: [PATCH v5 5/6] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation

2018-10-21 Thread Sebastian Reichel
Hi, On Fri, Oct 19, 2018 at 06:53:14PM +0800, Baolin Wang wrote: > This patch adds the binding documentation for Spreadtrum SC27XX series PMICs > fuel gauge unit device, which is used to calculate the battery capacity. > > Signed-off-by: Baolin Wang > Reviewed-by: Linus Walleij > Reviewed-by: R

Re: [PATCH v5 2/6] power: supply: core: Add one field to present the battery internal resistance

2018-10-21 Thread Sebastian Reichel
Hi, On Fri, Oct 19, 2018 at 06:53:11PM +0800, Baolin Wang wrote: > Add one field for 'struct power_supply_battery_info' to present the battery > factory internal resistance. > > Signed-off-by: Baolin Wang > Reviewed-by: Linus Walleij > --- Looks good to me. -- Sebastian > Changes from v4: >

Re: [PATCH v5 6/6] power: supply: Add Spreadtrum SC27XX fuel gauge unit driver

2018-10-21 Thread Sebastian Reichel
Hi, On Fri, Oct 19, 2018 at 06:53:15PM +0800, Baolin Wang wrote: > This patch adds the Spreadtrum SC27XX serial PMICs fuel gauge support, > which is used to calculate the battery capacity. > > Original-by: Yuanjiang Yu > Signed-off-by: Baolin Wang > Acked-by: Linus Walleij > --- Looks mostly

Re: [PATCH v5 1/6] dt-bindings: power: Introduce one property to present the battery internal resistance

2018-10-21 Thread Sebastian Reichel
Hi, On Fri, Oct 19, 2018 at 06:53:10PM +0800, Baolin Wang wrote: > The internal resistance of a battery is not a constant in its life cycle, > this varies over the age of the battery or temperature and so on. But we > just want use one constant battery internal resistance to estimate the > battery

Re: [PATCH] power: supply: fix spelling mistake "Gauage" -> "Guage"

2018-10-21 Thread Sebastian Reichel
Hi, On Sat, Oct 13, 2018 at 04:27:27PM +0100, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in MODULE_DESCRIPTION text > > Signed-off-by: Colin Ian King > --- Thanks, queued with typo in subject fixed. -- Sebastian > drivers/power/supply/ds2780_battery.c | 2

Re: [PATCH] power: max8925: mark expected switch fall-through

2018-10-21 Thread Sebastian Reichel
Hi, On Thu, Oct 04, 2018 at 03:56:36PM +0200, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Addresses-Coverity-ID: 201510 ("Missing break in switch") > Signed-off-by: Gustavo A. R. Silva > --- Than

Re: [PATCH v5 1/2] x86/speculation: apply IBPB more strictly to avoid cross-process data leak

2018-10-21 Thread Pavel Machek
Hi! > In order to minimize the performance impact (for usecases that do require > spectrev2 protection), issue the barrier only in cases when switching between > processess where the victim can't be ptraced by the potential attacker (as in > such cases, the attacker doesn't have to bother with bra

[PATCH v2 4/4] staging: rtl8188eu: change type of is_cck_rate - style

2018-10-21 Thread Michael Straube
The variable is_cck_rate is used for boolean values, so change the type from u8 to bool. The initializations to zero and use of ternary operator in the assignments are unnecessary, remove them as well. Suggested-by: Joe Perches Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/od

[PATCH v2 1/4] staging: rtl8188eu: simplify odm_evm_db_to_percentage()

2018-10-21 Thread Michael Straube
Use clamp() to simplify code in odm_evm_db_to_percentage(). Signed-off-by: Michael Straube --- v1 -> v2: Added patch with suggestions from Joe Perches applied. drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCH v2 2/4] staging: rtl8188eu: rename variable Max_spatial_stream - style

2018-10-21 Thread Michael Straube
Rename the variable Max_spatial_stream to avoid CamelCase. Max_spatial_stream -> max_spatial_stream Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/odm_hwconf

[PATCH v2 3/4] staging: rtl8188eu: rename variable isCCKrate - style

2018-10-21 Thread Michael Straube
Rename the variable isCCKrate to avoid CamelCase. isCCKrate -> is_cck_rate Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/odm_hwconfig.c b/drivers/

Re: [PULL REQUEST] i2c for 4.19

2018-10-21 Thread Greg KH
On Sun, Oct 21, 2018 at 12:40:06PM +0200, Wolfram Sang wrote: > Greg, > > please pull another driver bugfix and MAINTAINERS addition from I2C. > > Thanks, > >Wolfram > > > The following changes since commit 35a7f35ad1b150ddf59a41dcac7b2fa32982be0e: > > Linux 4.19-rc8 (2018-10-15 07:20:2

Re: [PATCH 3/3] staging: rtl8188eu: rename variable isCCKrate - style

2018-10-21 Thread Michael Straube
On 10/21/18 2:26 PM, Joe Perches wrote: It would be sensible to convert is_cck_rate from u8 to bool at the same time and remove the ternary ? true : false too. As well, perhaps remove its apparently unnecessary initialization. I've added a patch and resent the series. Thank you. Michael

Re: [PATCH v8 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings

2018-10-21 Thread Bjorn Andersson
On Sun 23 Sep 03:33 PDT 2018, Taniya Das wrote: > diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt > b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt > new file mode 100644 > index 000..c06941c > --- /dev/null > +++ b/Documentation/devicetree/bindings/c

[PATCH 1/5] pinctrl: intel: pinctrl-baytrail: simplify getting .driver_data

2018-10-21 Thread Wolfram Sang
We should get 'driver_data' from 'struct device' directly. Going via platform_device is an unneeded step back and forth. Signed-off-by: Wolfram Sang --- Build tested only. buildbot is happy. drivers/pinctrl/intel/pinctrl-baytrail.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) d

[PATCH 5/5] pinctrl: pinctrl-at91-pio4: simplify getting .driver_data

2018-10-21 Thread Wolfram Sang
We should get 'driver_data' from 'struct device' directly. Going via platform_device is an unneeded step back and forth. Signed-off-by: Wolfram Sang --- Build tested only. buildbot is happy. drivers/pinctrl/pinctrl-at91-pio4.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff -

Re: [RFC PATCH v2] soc: qcom: rmtfs_mem: Control remoteproc from rmtfs_mem

2018-10-21 Thread Bjorn Andersson
On Sun 30 Sep 08:56 PDT 2018, Sibi Sankar wrote: > From: Bjorn Andersson > > rmtfs_mem provides access to physical storage and is crucial for the > operation of the Qualcomm modem subsystem. > > The rmtfs_mem implementation must be available before the modem > subsystem is booted and a solution

Re: Broken dwarf unwinding - wrong stack pointer register value?

2018-10-21 Thread Milian Wolff
On Sonntag, 21. Oktober 2018 00:39:51 CEST Milian Wolff wrote: > Hey all, > > I'm on the quest to figure out why perf regularly fails to unwind (some) > samples. I am seeing very strange behavior, where an apparently wrong stack > pointer value is read from the register - see below for more inform

Re: [PATCH -tip] kprobes/x86: Use preempt_enable() in optimized_callback()

2018-10-21 Thread Peter Zijlstra
On Sat, Oct 20, 2018 at 06:47:53PM +0900, Masami Hiramatsu wrote: > Since commit a19b2e3d7839 ("kprobes/x86: Remove IRQ disabling from > ftrace-based/optimized kprobes”) removes local_irq_save/restore() > from optimized_callback(), the handler does not protected against > reschedule interrupt. If i

Re: [PATCH V9 11/21] csky: Atomic operations

2018-10-21 Thread Peter Zijlstra
On Tue, Oct 16, 2018 at 10:58:30AM +0800, Guo Ren wrote: > diff --git a/arch/csky/include/asm/spinlock.h > b/arch/csky/include/asm/spinlock.h > new file mode 100644 > index 000..0474603 > --- /dev/null > +++ b/arch/csky/include/asm/spinlock.h > @@ -0,0 +1,274 @@ > +/* SPDX-License-Identifier:

[RFC PATCH v2 03/17] dt-bindings: cpufreq: Add binding for NVIDIA Tegra20/30

2018-10-21 Thread Dmitry Osipenko
Add device-tree binding that describes CPU frequency-scaling hardware found on NVIDIA Tegra20/30 SoC's. Signed-off-by: Dmitry Osipenko --- .../cpufreq/nvidia,tegra20-cpufreq.txt| 96 +++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindin

  1   2   >