Re: general protection fault in kernfs_kill_sb (2)

2018-05-13 Thread Al Viro
On Sun, May 13, 2018 at 11:19:46AM +0900, Tetsuo Handa wrote: > This is what I reported at > https://groups.google.com/d/msg/syzkaller-bugs/ISOJlV2I2QM/qHslGMi3AwAJ . > > We are currently waiting for comments from Al Viro. 1) the damn thing is unusable without javashit. Which gets about the

Re: [PATCH 3/3] arm64: dts: renesas: draak: Describe HDMI input

2018-05-13 Thread Laurent Pinchart
Hello, On Sunday, 13 May 2018 15:57:55 EEST Niklas Söderlund wrote: > On 2018-05-11 12:00:02 +0200, Jacopo Mondi wrote: > > Describe HDMI input connected to VIN4 interface for R-Car D3 Draak > > development board. > > > > Signed-off-by: Jacopo Mondi > > --- > > > >

linux-next: build warning after merge of the block tree

2018-05-13 Thread Stephen Rothwell
Hi all, After merging the block tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/memstick/core/mspro_block.c: In function 'mspro_block_init_disk': drivers/memstick/core/mspro_block.c:1173:24: warning: unused variable 'host' [-Wunused-variable] struct

Re: RTL8723BE performance regression

2018-05-13 Thread Pkshih
On Wed, 2018-05-09 at 13:33 -0700, João Paulo Rechi Vita wrote: > On Tue, May 8, 2018 at 1:37 AM, Pkshih wrote: > > On Mon, 2018-05-07 at 14:49 -0700, João Paulo Rechi Vita wrote: > >> On Tue, May 1, 2018 at 10:58 PM, Pkshih wrote: > >> > On Wed,

CONFIG_KCOV causing crash in svm_vcpu_run()

2018-05-13 Thread Eric Biggers
With CONFIG_KCOV=y and an AMD processor, running the following program crashes the kernel with no output (I'm testing in a VM, so it's using nested virtualization): #include #include #include int main() { int dev, vm, cpu;

Re: CONFIG_KCOV causing crash in svm_vcpu_run()

2018-05-13 Thread Eric Biggers
Sorry, messed up address for KVM mailing list. See message below. On Sun, May 13, 2018 at 08:00:07PM -0700, Eric Biggers wrote: > With CONFIG_KCOV=y and an AMD processor, running the following program crashes > the kernel with no output (I'm testing in a VM, so it's using nested >

Re: [PATCH] rcu: Report a quiescent state when it's exactly in the state

2018-05-13 Thread Byungchul Park
On 2018-05-12 오전 7:41, Joel Fernandes wrote: On Fri, May 11, 2018 at 09:17:46AM -0700, Paul E. McKenney wrote: On Fri, May 11, 2018 at 09:57:54PM +0900, Byungchul Park wrote: Hello folks, I think I wrote the title in a misleading way. Please change the title to something else such as,

Re: [PATCH -resend 01/27] linkage: new macros for assembler symbols

2018-05-13 Thread Randy Dunlap
On 05/10/2018 01:06 AM, Jiri Slaby wrote: > --- > Documentation/asm-annotations.rst | 218 > arch/x86/include/asm/linkage.h| 10 +- > include/linux/linkage.h | 257 > -- > 3 files changed, 475 insertions(+), 10

Re: [PATCH] rcu: Report a quiescent state when it's exactly in the state

2018-05-13 Thread Byungchul Park
On 2018-05-13 오전 2:26, Steven Rostedt wrote: On Sat, 12 May 2018 07:41:19 -0700 "Paul E. McKenney" wrote: Don't get me wrong, this discussion was quite useful to me. We probably need to at least change the comments, and perhaps the code as well. But I agree

[PATCH 02/10] autofs4 - use autofs instead of autofs4 everywhere

2018-05-13 Thread Ian Kent
Update naming within autofs source to be consistent by changing occurrences of autofs4 to autofs. Signed-off-by: Ian Kent --- fs/autofs4/autofs_i.h | 88 fs/autofs4/dev-ioctl.c | 18 ++- fs/autofs4/expire.c| 132 ---

[PATCH 07/10] autofs - delete fs/autofs4 source files

2018-05-13 Thread Ian Kent
Delete the now unused autofs4 module files. Signed-off-by: Ian Kent --- fs/autofs4/autofs_i.h | 273 -- fs/autofs4/dev-ioctl.c | 761 --- fs/autofs4/expire.c| 632 fs/autofs4/init.c |

[PATCH 10/10] autofs - update MAINTAINERS entry for autofs

2018-05-13 Thread Ian Kent
Update the autofs entry in MAINTAINERS to reflect the rename of autofs4 to autofs. Signed-off-by: Ian Kent --- MAINTAINERS |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 58b9861ccf99..6189ff91fda7 100644 ---

[PATCH 05/10] autofs - update fs/autofs4/Kconfig

2018-05-13 Thread Ian Kent
Update Kconfig and add a depricated warning. Signed-off-by: Ian Kent --- fs/autofs4/Kconfig | 32 ++-- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/fs/autofs4/Kconfig b/fs/autofs4/Kconfig index 44727bf18297..53bc592a250d 100644

[PATCH 09/10] autofs - use autofs instead of autofs4 in documentation

2018-05-13 Thread Ian Kent
Finally remove autofs4 references in the filesystems documentation. Signed-off-by: Ian Kent --- Documentation/filesystems/00-INDEX |4 ++-- Documentation/filesystems/autofs-mount-control.txt |8 Documentation/filesystems/autofs.txt

[PATCH 04/10] autofs - create autofs Kconfig and Makefile

2018-05-13 Thread Ian Kent
Create Makefile and Kconfig for autofs module. Signed-off-by: Ian Kent --- fs/Kconfig |1 + fs/Makefile|1 + fs/autofs/Kconfig | 20 fs/autofs/Makefile |7 +++ 4 files changed, 29 insertions(+) create mode 100644

[PATCH 08/10] autofs - rename autofs documentation files

2018-05-13 Thread Ian Kent
There are two files in Documentation/filsystems that should now use autofs rather than autofs4 in their names. Signed-off-by: Ian Kent --- Documentation/filesystems/autofs-mount-control.txt | 407 +++ Documentation/filesystems/autofs.txt | 529

Re: [PATCH 01/10] autofs4 - merge auto_fs.h and auto_fs4.h

2018-05-13 Thread Al Viro
On Mon, May 14, 2018 at 11:03:50AM +0800, Ian Kent wrote: > The autofs module has long since been removed so there's no need to have > two separate include files for autofs. Umm... Why does fs/compat_ioctl.c need either include, actually? > --- a/fs/compat_ioctl.c > +++ b/fs/compat_ioctl.c > @@

[PATCH 03/10] autofs - copy autofs4 to autofs

2018-05-13 Thread Ian Kent
Copy source files from the autofs4 directory to the autofs directory. Signed-off-by: Ian Kent --- fs/autofs/autofs_i.h | 273 ++ fs/autofs/dev-ioctl.c | 761 fs/autofs/expire.c| 632 +

[PATCH 01/10] autofs4 - merge auto_fs.h and auto_fs4.h

2018-05-13 Thread Ian Kent
The autofs module has long since been removed so there's no need to have two separate include files for autofs. Signed-off-by: Ian Kent --- fs/autofs4/autofs_i.h |2 fs/compat_ioctl.c |1 include/uapi/linux/auto_fs.h | 169

Re: [RFC][PATCH 06/10] tracing: Add trigger file for trace_markers tracefs/ftrace/print

2018-05-13 Thread Namhyung Kim
On Fri, May 11, 2018 at 03:49:33PM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > Allow writing to the trace_markers file initiate triggers defined in > tracefs/ftrace/print/trigger file. This will allow of user space to trigger > the same type of

[PATCH 06/10] autofs - update fs/autofs4/Makefile

2018-05-13 Thread Ian Kent
Update Makefile to build from source in fs/autofs instead of fs/autofs4. Signed-off-by: Ian Kent --- fs/autofs4/Makefile |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/autofs4/Makefile b/fs/autofs4/Makefile index a811c1f7d9ab..417dd726d9ef 100644

[PATCH RFC 1/8] rcu: Add comment documenting how rcu_seq_snap works

2018-05-13 Thread Joel Fernandes (Google)
rcu_seq_snap may be tricky for someone looking at it for the first time. Lets document how it works with an example to make it easier. Signed-off-by: Joel Fernandes (Google) --- kernel/rcu/rcu.h | 24 +++- 1 file changed, 23 insertions(+), 1

[PATCH RFC 7/8] rcu: trace CleanupMore condition only if needed

2018-05-13 Thread Joel Fernandes (Google)
Currently the tree RCU clean up code records a CleanupMore trace event even if the GP was already in progress. This makes CleanupMore show up twice for no reason. Avoid it. Signed-off-by: Joel Fernandes (Google) --- kernel/rcu/tree.c | 2 +- 1 file changed, 1

[PATCH RFC 4/8] rcu: Get rid of old c variable from places in tree RCU

2018-05-13 Thread Joel Fernandes (Google)
The 'c' variable was used previously to store the grace period that is being requested. However it is not very meaningful for a code reader, this patch replaces it with gp_seq_start indicating that this is the grace period that was requested. Also updating tracing with the new name. Just a clean

[PATCH RFC 8/8] rcu: Fix cpustart tracepoint gp_seq number

2018-05-13 Thread Joel Fernandes (Google)
cpustart shows a stale gp_seq. This is because rdp->gp_seq is updated only at the end of the __note_gp_changes function. For this reason, use rnp->gp_seq instead. I believe we can't update rdp->gp_seq too early so lets just use the gp_seq from rnp instead. Signed-off-by: Joel Fernandes (Google)

[PATCH RFC 6/8] rcu: Add back the Startedleaf tracepoint

2018-05-13 Thread Joel Fernandes (Google)
In recent discussion [1], the check for whether a leaf believes RCU is not idle, is being added back to funnel locking code, to avoid more locking. In this we are marking the leaf node for a future grace-period and bailing out since a GP is currently in progress. However the tracepoint is missing.

[PATCH RFC 0/8] rcu fixes, clean ups for rcu/dev

2018-05-13 Thread Joel Fernandes (Google)
Hi, Here are some fixes, clean ups and some code comments changes mostly for the new funnel locking, gp_seq changes and some tracing. Its based on latest rcu/dev branch. thanks, - Joel Joel Fernandes (Google) (8): rcu: Add comment documenting how rcu_seq_snap works rcu: Clarify usage of

[PATCH RFC 2/8] rcu: Clarify usage of cond_resched for tasks-RCU

2018-05-13 Thread Joel Fernandes (Google)
Recently we had a discussion about cond_resched unconditionally recording a voluntary context switch [1]. Lets add a comment clarifying that how this API is to be used. [1] https://lkml.kernel.org/r/1526027434-21237-1-git-send-email-byungchul.p...@lge.com Signed-off-by: Joel Fernandes (Google)

[PATCH RFC 5/8] rcu: Use rcu_node as temporary variable in funnel locking loop

2018-05-13 Thread Joel Fernandes (Google)
The funnel locking loop in rcu_start_this_gp uses rcu_root as a temporary variable while walking the combining tree. This causes a tiresome exercise of a code reader reminding themselves that rcu_root may not be root. Lets just call it rcu_node, and then finally when rcu_node is the rcu_root, lets

[PATCH RFC 3/8] rcu: Add back the cpuend tracepoint

2018-05-13 Thread Joel Fernandes (Google)
Commit be4b8beed87d ("rcu: Move RCU's grace-period-change code to ->gp_seq") removed the cpuend grace period trace point. This patch adds it back. Signed-off-by: Joel Fernandes (Google) --- kernel/rcu/tree.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-)

Re: [PATCH 1/2] powerpc: Detect the presence of big-core with interleaved threads

2018-05-13 Thread Michael Neuling
Thanks for posting this... A couple of comments below. On Fri, 2018-05-11 at 16:47 +0530, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > A pair of IBM POWER9 SMT4 cores can be fused together to form a > big-core with 8 SMT threads. This can be discovered via

[PATCH v2 00/13] add power domain support for Rockchip Socs

2018-05-13 Thread Elaine Zhang
add power domain support for RK3036/RK3128/RK3228/PX30 Soc. fix up the wrong value when set power domain up. Change in V2: Fix up the commit message description and Assign author. Caesar Wang (3): dt-bindings: power: add RK3036 SoCs header for power-domain dt-bindings: add binding for rk3036

Re: [PATCH 2/2] powerpc: Enable ASYM_SMT on interleaved big-core systems

2018-05-13 Thread Michael Neuling
On Fri, 2018-05-11 at 16:47 +0530, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > Each of the SMT4 cores forming a fused-core are more or less > independent units. Thus when multiple tasks are scheduled to run on > the fused core, we get the best performance

[PATCH v2 02/13] dt-bindings: add binding for rk3036 power domains

2018-05-13 Thread Elaine Zhang
From: Caesar Wang Add binding documentation for the power domains found on Rockchip RK3036 SoCs. Signed-off-by: Caesar Wang Signed-off-by: Elaine Zhang --- Documentation/devicetree/bindings/soc/rockchip/power_domain.txt | 3

[PATCH v2 03/13] Soc: rockchip: power-domain: add power domain support for rk3036

2018-05-13 Thread Elaine Zhang
From: Caesar Wang This driver is modified to support RK3036 SoC. Signed-off-by: Caesar Wang Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 32 1 file changed, 32

[PATCH v2 04/13] soc: rockchip: power-domain: Fix wrong value when power up pd

2018-05-13 Thread Elaine Zhang
From: Finley Xiao Solve the pd could only ever turn off but never turn them on again, If the pd registers have the writemask bits. Fix up the code error for commit: commit 79bb17ce8edb3141339b5882e372d0ec7346217c Author: Elaine Zhang

[PATCH v2 05/13] dt-bindings: power: add RK3128 SoCs header for power-domain

2018-05-13 Thread Elaine Zhang
According to a description from TRM, add all the power domains. Signed-off-by: Elaine Zhang --- include/dt-bindings/power/rk3128-power.h | 28 1 file changed, 28 insertions(+) create mode 100644 include/dt-bindings/power/rk3128-power.h

[PATCH v2 01/13] dt-bindings: power: add RK3036 SoCs header for power-domain

2018-05-13 Thread Elaine Zhang
From: Caesar Wang According to a description from TRM, add all the power domains. Signed-off-by: Caesar Wang Signed-off-by: Elaine Zhang --- include/dt-bindings/power/rk3036-power.h | 27 +++ 1 file

[PATCH v2 06/13] dt-bindings: add binding for rk3128 power domains

2018-05-13 Thread Elaine Zhang
Add binding documentation for the power domains found on Rockchip RK3128 SoCs. Signed-off-by: Elaine Zhang --- Documentation/devicetree/bindings/soc/rockchip/power_domain.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v2 08/13] dt-bindings: power: add RK3228 SoCs header for power-domain

2018-05-13 Thread Elaine Zhang
According to a description from TRM, add all the power domains. Signed-off-by: Elaine Zhang --- include/dt-bindings/power/rk3228-power.h | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 include/dt-bindings/power/rk3228-power.h diff

[PATCH v2 07/13] soc: rockchip: power-domain: add power domain support for rk3128

2018-05-13 Thread Elaine Zhang
This driver is modified to support RK3128 SoC. Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/rockchip/pm_domains.c index

[PATCH v2 13/13] soc: rockchip: power-domain: add power domain support for px30

2018-05-13 Thread Elaine Zhang
From: Finley Xiao This driver is modified to support PX30 SoC. Signed-off-by: Finley Xiao Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 30 ++ 1 file changed,

[PATCH v2 10/13] soc: rockchip: power-domain: add power domain support for rk3228

2018-05-13 Thread Elaine Zhang
This driver is modified to support RK3228 SoC. Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/rockchip/pm_domains.c

[PATCH v2 11/13] dt-bindings: power: add PX30 SoCs header for power-domain

2018-05-13 Thread Elaine Zhang
From: Finley Xiao According to a description from TRM, add all the power domains. Signed-off-by: Finley Xiao Signed-off-by: Elaine Zhang --- include/dt-bindings/power/px30-power.h | 32

[PATCH v2 12/13] dt-bindings: add binding for px30 power domains

2018-05-13 Thread Elaine Zhang
From: Finley Xiao Add binding documentation for the power domains found on Rockchip PX30 SoCs. Signed-off-by: Finley Xiao Signed-off-by: Elaine Zhang ---

[PATCH v2 09/13] dt-bindings: add binding for rk3228 power domains

2018-05-13 Thread Elaine Zhang
Add binding documentation for the power domains found on Rockchip RK3228 SoCs. Signed-off-by: Elaine Zhang --- Documentation/devicetree/bindings/soc/rockchip/power_domain.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git

Re: [PATCH 3/3] sched/fair: schedutil: explicit update only when required

2018-05-13 Thread Joel Fernandes
On Thu, May 10, 2018 at 04:05:53PM +0100, Patrick Bellasi wrote: > Schedutil updates for FAIR tasks are triggered implicitly each time a > cfs_rq's utilization is updated via cfs_rq_util_change(), currently > called by update_cfs_rq_load_avg(), when the utilization of a cfs_rq has > changed, and

Re: KASAN: use-after-free Write in irq_bypass_register_consumer

2018-05-13 Thread Eric Biggers
On Thu, Apr 05, 2018 at 08:15:24PM -0700, Eric Biggers wrote: > On Mon, Jan 29, 2018 at 01:29:48PM +0800, Tianyu Lan wrote: > > > > > > On 1/27/2018 7:27 AM, Eric Biggers wrote: > > > On Sat, Dec 16, 2017 at 04:37:02PM +0800, Lan, Tianyu wrote: > > > > The root cause is that kvm_irqfd_assign()

Re: [PATCH 3/3] sched/fair: schedutil: explicit update only when required

2018-05-13 Thread Joel Fernandes
On Sat, May 12, 2018 at 11:04:43PM -0700, Joel Fernandes wrote: > On Thu, May 10, 2018 at 04:05:53PM +0100, Patrick Bellasi wrote: > > Schedutil updates for FAIR tasks are triggered implicitly each time a > > cfs_rq's utilization is updated via cfs_rq_util_change(), currently > > called by

Re: BUG: unable to handle kernel paging request in cgroup_mt_destroy_v1

2018-05-13 Thread Eric Biggers
On Wed, Jan 31, 2018 at 05:58:01PM -0800, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > 3da90b159b146672f830bcd2489dd3a1f4e9e089 (Wed Jan 31 03:07:32 2018 +) > Merge tag 'f2fs-for-4.16-rc1' of > git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs > >

Re: [Intel-wired-lan] [PATCH] e1000e: Ignore TSYNCRXCTL when getting I219 clock attributes

2018-05-13 Thread Neftin, Sasha
On 5/10/2018 21:42, Keller, Jacob E wrote: -Original Message- From: Benjamin Poirier [mailto:bpoir...@suse.com] Sent: Thursday, May 10, 2018 12:29 AM To: Kirsher, Jeffrey T Cc: Keller, Jacob E ; Achim Mildenberger ; olouvig...@gmail.com; jaya...@goubiq.com; ehabk...@redhat.com;

another branch for linux-next

2018-05-13 Thread Christoph Hellwig
Hi Stephen, can you please add the for-linus branch of git://git.infradead.org/users/hch/dma-mapping.git to linux-next? You already carry the for-next branch, but it turns out I'll need another branch for late fixes so that for-next can remain unmerged and unrebased.

[PATCH v2] {net, IB}/mlx5: Use 'kvfree()' for memory allocated by 'kvzalloc()'

2018-05-13 Thread Christophe JAILLET
When 'kvzalloc()' is used to allocate memory, 'kvfree()' must be used to free it. Signed-off-by: Christophe JAILLET --- v1 -> v2: More places to update have been added to the patch --- drivers/infiniband/hw/mlx5/cq.c| 2 +-

Re: [PATCH] net/mlx4_core: Fix error handling in mlx4_init_port_info.

2018-05-13 Thread Tariq Toukan
On 02/05/2018 4:31 PM, Tariq Toukan wrote: On 27/04/2018 6:20 PM, Tarick Bedeir wrote: Avoid exiting the function with a lingering sysfs file (if the first call to device_create_file() fails while the second succeeds), and avoid calling devlink_port_unregister() twice. In other words,

[PATCH] remoteproc: Add APSS based Qualcomm ADSP PIL driver for SDM845

2018-05-13 Thread Rohit kumar
This adds Qualcomm ADSP PIL driver support for SDM845 with ADSP bootup and shutdown operation handled from Application Processor SubSystem(APSS). Signed-off-by: Rohit kumar Signed-off-by: RajendraBabu Medisetti Signed-off-by: Krishnamurthy Renu ---

[GIT PULL] dma mapping fix for 4.17-rc5

2018-05-13 Thread Christoph Hellwig
Hi Linus, one trivial dma-mapping regression fix for you. Note that this has NOT been in linux-next as I didn't want to disturb the branch in there which has the 4.18 material. I've asked Stephen to add the for-linus branch in addition to for-next so that this doesn't happen again. In addition

Re: [PATCH v2 7/7] ALSA: usb: add UAC3 BADD profiles support

2018-05-13 Thread Takashi Iwai
On Fri, 11 May 2018 17:36:36 +0200, Jorge wrote: > > > > On 04/05/18 02:24, Ruslan Bilovol wrote: > > Recently released USB Audio Class 3.0 specification > > contains BADD (Basic Audio Device Definition) document > > which describes pre-defined UAC3 configurations. > > > > BADD support is

Re: [PATCH] ALSA: control: fix a redundant-copy issue

2018-05-13 Thread Takashi Iwai
On Sat, 05 May 2018 20:38:03 +0200, Wenwen Wang wrote: > > In snd_ctl_elem_add_compat(), the fields of the struct 'data' need to be > copied from the corresponding fields of the struct 'data32' in userspace. > This is achieved by invoking copy_from_user() and get_user() functions. The > problem

Re: [PATCH v5 03/13] ALSA: hda/ca0132: Add PCI region2 iomap for SBZ

2018-05-13 Thread Takashi Iwai
On Tue, 08 May 2018 19:20:03 +0200, Connor McAdams wrote: > > This patch adds iomapping for the region2 section of memory on the SBZ. > This memory region is used in later patches for setting inputs and > outputs. If the mapping fails, the quirk is changed back to QUIRK_NONE > to avoid attempts

Re: [PATCH v5 00/13] ALSA: hda/ca0132: Patch Series for Recon3Di and Sound Blaster Z Support

2018-05-13 Thread Takashi Iwai
On Tue, 08 May 2018 19:20:00 +0200, Connor McAdams wrote: > > This patchset adds support for the Sound Blaster Z and the Recon3Di. > > In order to figure out how to get these cards to work, I made a program called > QemuHDADump[1], which uses the trace function of qemu to see interactions with >

Re: [PATCH v5 03/23] iommu/vt-d: add a flag for pasid table bound status

2018-05-13 Thread Lu Baolu
Hi, On 05/12/2018 04:53 AM, Jacob Pan wrote: > Adding a flag in device domain into to track whether a guest or typo: ^^info Best regards, Lu Baolu > user PASID table is bound to a device. > > Signed-off-by: Jacob Pan > --- > include/linux/intel-iommu.h |

Re: KASAN: null-ptr-deref Write in linear_transfer

2018-05-13 Thread Eric Biggers
On Wed, Jan 10, 2018 at 10:58:43AM +0100, Takashi Iwai wrote: > On Wed, 10 Jan 2018 09:08:00 +0100, > Eric Biggers wrote: > > > > On Fri, Jan 05, 2018 at 02:58:02AM -0800, syzbot wrote: > > > Hello, > > > > > > syzkaller hit the following crash on > > > 30a7acd573899fd8b8ac39236eff6468b195ac7d >

Re: KASAN: null-ptr-deref Write in linear_transfer

2018-05-13 Thread Takashi Iwai
On Sun, 13 May 2018 09:36:36 +0200, Eric Biggers wrote: > > On Wed, Jan 10, 2018 at 10:58:43AM +0100, Takashi Iwai wrote: > > On Wed, 10 Jan 2018 09:08:00 +0100, > > Eric Biggers wrote: > > > > > > On Fri, Jan 05, 2018 at 02:58:02AM -0800, syzbot wrote: > > > > Hello, > > > > > > > > syzkaller

Re: [PATCH 1/2] KVM: X86: Fix CR3 reserve bits

2018-05-13 Thread Liran Alon
- kernel...@gmail.com wrote: > From: Wanpeng Li > > MSB of CR3 is a reserved bit if the PCIDE bit is not set in CR4. > It should be checked when PCIDE bit is not set, however commit > 'd1cd3ce900441 ("KVM: MMU: check guest CR3 reserved bits based on > its physical address width")'

Re: [PATCH v5 03/23] iommu/vt-d: add a flag for pasid table bound status

2018-05-13 Thread Lu Baolu
Hi again, On 05/12/2018 04:53 AM, Jacob Pan wrote: > Adding a flag in device domain into to track whether a guest or > user PASID table is bound to a device. > > Signed-off-by: Jacob Pan > --- > include/linux/intel-iommu.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [PATCH 2/2] KVM: X86: Fix loss of CR3_PCID_INVD bit when guest writes CR3

2018-05-13 Thread Liran Alon
- kernel...@gmail.com wrote: > From: Wanpeng Li > > SDM volume 3, section 4.10.4: > > * MOV to CR3. The behavior of the instruction depends on the value of > CR4.PCIDE: > — If CR4.PCIDE = 1 and bit 63 of the instruction’s source operand is > 1, the > instruction is not required to

Re: [PATCH 3/3] arm64: dts: renesas: draak: Describe HDMI input

2018-05-13 Thread Simon Horman
On Fri, May 11, 2018 at 12:00:02PM +0200, Jacopo Mondi wrote: > Describe HDMI input connected to VIN4 interface for R-Car D3 Draak > development board. > > Signed-off-by: Jacopo Mondi Hi Niklas, As you reviewed the rest of the series I'm wondering if you're planning to review this patch too.

Re: [PATCH 1/2] KVM: X86: Fix CR3 reserve bits

2018-05-13 Thread Wanpeng Li
2018-05-13 15:53 GMT+08:00 Liran Alon : > > - kernel...@gmail.com wrote: > >> From: Wanpeng Li >> >> MSB of CR3 is a reserved bit if the PCIDE bit is not set in CR4. >> It should be checked when PCIDE bit is not set, however commit >> 'd1cd3ce900441 ("KVM: MMU: check guest CR3 reserved bits

Re: general protection fault in __radix_tree_delete

2018-05-13 Thread Dmitry Vyukov
On Sun, Apr 29, 2018 at 7:00 PM, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > cdface5209349930ae1b51338763c8e029971b97 (Sun Apr 29 03:07:21 2018 +) > Merge tag 'for_linus_stable' of > git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 > syzbot dashboard

Re: [PATCH 1/2] KVM: X86: Fix CR3 reserve bits

2018-05-13 Thread Liran Alon
- kernel...@gmail.com wrote: > 2018-05-13 15:53 GMT+08:00 Liran Alon : > > > > - kernel...@gmail.com wrote: > > > >> From: Wanpeng Li > >> > >> MSB of CR3 is a reserved bit if the PCIDE bit is not set in CR4. > >> It should be checked when PCIDE bit is not set, however commit > >>

Re: [PATCH v3 0/3] mailbox: ACPI: Remove incorrect error message about parsing PCCT

2018-05-13 Thread Rafael J. Wysocki
On Tuesday, May 1, 2018 2:39:04 AM CEST Al Stone wrote: > This set of patches provide some cleanup in ACPI for minor issues > found while correcting a bogus error message (the first two patches), > and the correction for the error message itself (patch 3/3). Note > that patches 1/3 and 2/3 are

QEMU ATA hard disk not detected

2018-05-13 Thread Paul Menzel
Dear Linux folks, In QEMU 2.11 a disk is only detected by the AHCI driver and not by libata. On QEMU’s Standard PC (i440FX + PIIX, 1996), that causes an attached drive not to be detected as that machine doesn’t support AHCI. Here is the output with the machine Standard PC (Q35 + ICH9,

Re: [PATCH] swiotlb: Silent unwanted warning "buffer is full"

2018-05-13 Thread Jean Delvare
On Sat, 12 May 2018 12:02:40 +0200, Christoph Hellwig wrote: > Thanks. > > I manually applied this for 4.17-rc, as the mail unfortunately was > garbled. Sorry about that. Because of the umlauts in the Cc list, the mail was encoded as quoted-printable instead of 7bit. I guess this is what caused

[PATCH 2/2] arm64: Clear the stack

2018-05-13 Thread Alexander Popov
Hello Mark, Thanks a lot for your reply! On 11.05.2018 19:13, Mark Rutland wrote: > On Fri, May 11, 2018 at 06:50:09PM +0300, Alexander Popov wrote: >> On 06.05.2018 11:22, Alexander Popov wrote: >>> On 04.05.2018 14:09, Mark Rutland wrote: >>> + stack_left = sp & (THREAD_SIZE - 1);

Re: [PATCH] kernel/sched/cpufreq_schedutil: remove stale comment

2018-05-13 Thread Rafael J. Wysocki
On Wednesday, May 9, 2018 10:41:54 AM CEST Viresh Kumar wrote: > On 09-05-18, 10:40, Juri Lelli wrote: > > After commit 794a56ebd9a57 ("sched/cpufreq: Change the worker kthread to > > SCHED_DEADLINE") schedutil kthreads are "ignored" for a clock frequency > > selection point of view, so the

Re: [PATCH] Documentation/admin-guide/pm/intel_pstate: fix Active Mode w/o HWP paragraph

2018-05-13 Thread Rafael J. Wysocki
On Tuesday, May 8, 2018 8:36:44 PM CEST Srinivas Pandruvada wrote: > On Tue, 2018-05-08 at 17:12 +0200, Juri Lelli wrote: > > P-state selection algorithm (powersave or performance) is selected by > > echoing the desired choice to scaling_governor sysfs attribute and > > not > > to scaling_cur_freq

Re: [PATCH] tools/power/x86/intel_pstate_tracer: Add optional setting of trace buffer memory allocation

2018-05-13 Thread Rafael J. Wysocki
On Friday, May 4, 2018 3:46:22 PM CEST Doug Smythies wrote: > Allow the user to override the default trace buffer memory allocation > by adding a command line option to override the default. > > The patch also: > > Adds a SIGINT (i.e. CTRL C exit) handler, > so that things can be cleaned up

Re: [PATCH V5] cpufreq: intel_pstate: allow trace in passive mode

2018-05-13 Thread Rafael J. Wysocki
On Thursday, May 3, 2018 8:22:47 AM CEST Doug Smythies wrote: > Allow use of the trace_pstate_sample trace function > when the intel_pstate driver is in passive mode. > Since the core_busy and scaled_busy fields are not > used, and it might be desirable to know which path > through the driver was

Re: [PATCH 2/2] KVM: X86: Fix loss of CR3_PCID_INVD bit when guest writes CR3

2018-05-13 Thread Wanpeng Li
2018-05-13 16:03 GMT+08:00 Liran Alon : > > - kernel...@gmail.com wrote: > >> From: Wanpeng Li >> >> SDM volume 3, section 4.10.4: >> >> * MOV to CR3. The behavior of the instruction depends on the value of >> CR4.PCIDE: >> — If CR4.PCIDE = 1 and bit 63 of the instruction’s source operand is

Re: [PATCH] cpufreq: s3c2440: fix spelling mistake: "divsiors" -> "divisors"

2018-05-13 Thread Rafael J. Wysocki
On Wednesday, May 2, 2018 7:37:21 AM CEST Viresh Kumar wrote: > On 30-04-18, 15:48, Colin King wrote: > > From: Colin Ian King > > > > Trivial fix to spelling mistake in s3c_freq_dbg debug message text. > > > > Signed-off-by: Colin Ian King > > --- > > drivers/cpufreq/s3c2440-cpufreq.c | 2 +-

Re: [PATCH 0/3] PM / core: Clean up suspend/resume diagnostic messages

2018-05-13 Thread Rafael J. Wysocki
On Thursday, April 26, 2018 11:36:20 PM CEST Bjorn Helgaas wrote: > These are pretty minor cleanups to the suspend/resume diagnostic messages. > > The first two are trivial. The third may break scripts that parse dmesg > output. I looked at scripts/bootgraph.pl, and I don't think it is >

Re: [PATCH v3] PM / wakeup: use seq_open() to show wakeup stats

2018-05-13 Thread Rafael J. Wysocki
On Wednesday, April 25, 2018 12:59:31 PM CEST Ganesh Mahendran wrote: > single_open() interface requires that the whole output must > fit into a single buffer. This will lead to timeout when > system memory is not in a good situation. > > This patch use seq_open() to show wakeup stats. This

Re: [PATCH v3 4/6] KVM: x86: hyperv: simplistic HVCALL_FLUSH_VIRTUAL_ADDRESS_{LIST,SPACE} implementation

2018-05-13 Thread Vitaly Kuznetsov
Radim Krčmář writes: > 2018-04-16 13:08+0200, Vitaly Kuznetsov: ... > >> +/* >> + * vcpu->arch.cr3 may not be up-to-date for running vCPUs so we >> + * can't analyze it here, flush TLB regardless of the specified >> + * address space. >> +

Re: [PATCH] cpufreq: fix speedstep_detect_processor()'s return type

2018-05-13 Thread Rafael J. Wysocki
On Wednesday, April 25, 2018 4:46:47 AM CEST Viresh Kumar wrote: > On 24-04-18, 15:14, Luc Van Oostenryck wrote: > > speedstep_detect_processor() is declared as returing an > > 'enum speedstep_processor' but use an 'int' in its definition. > > > > Fix this by using 'enum speedstep_processor' in

Re: [PATCH] PM: docs: sleep-states: Fix a typo ("includig")

2018-05-13 Thread Rafael J. Wysocki
On Wednesday, April 25, 2018 12:07:03 PM CEST Jonathan Neuschäfer wrote: > Signed-off-by: Jonathan Neuschäfer > --- > Documentation/admin-guide/pm/sleep-states.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/admin-guide/pm/sleep-states.rst >

Re: [PATCH 1/2] KVM: X86: Fix CR3 reserve bits

2018-05-13 Thread Wanpeng Li
2018-05-13 16:28 GMT+08:00 Liran Alon : > > - kernel...@gmail.com wrote: > >> 2018-05-13 15:53 GMT+08:00 Liran Alon : >> > >> > - kernel...@gmail.com wrote: >> > >> >> From: Wanpeng Li >> >> >> >> MSB of CR3 is a reserved bit if the PCIDE bit is not set in CR4. >> >> It should be checked

KASAN: use-after-free Read in corrupted

2018-05-13 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:427fbe89261d Merge branch 'next' of git://git.kernel.org/p.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=148eb01780 kernel config: https://syzkaller.appspot.com/x/.config?x=fcce42b221691ff9

Re: [PATCH v3] mm: Change return type to vm_fault_t

2018-05-13 Thread Joe Perches
On Sat, 2018-05-12 at 19:51 -0700, Dan Williams wrote: > On Sat, May 12, 2018 at 12:14 PM, Souptick Joarder > wrote: > > > > It'd be nicer to realign the 2nd and 3rd arguments > > > > on the subsequent lines. > > > > > > > > vm_fault_t (*fault)(const struct vm_special_mapping *sm, > > > >

Re: [PATCH V2] mlx4_core: allocate ICM memory in page size chunks

2018-05-13 Thread Tariq Toukan
On 11/05/2018 10:23 PM, Qing Huang wrote: When a system is under memory presure (high usage with fragments), the original 256KB ICM chunk allocations will likely trigger kernel memory management to enter slow path doing memory compact/migration ops in order to complete high order memory

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

2018-05-13 Thread Dmitry Vyukov
On Sun, May 13, 2018 at 10:56 AM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:427fbe89261d Merge branch 'next' of git://git.kernel.org/p.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=148eb01780 > kernel config:

Re: [PATCH] scsi: libosd: Remove VLA usage

2018-05-13 Thread Boaz Harrosh
On 03/05/18 01:55, Kees Cook wrote: > On the quest to remove all VLAs from the kernel[1] this rearranges the > code to avoid a VLA warning under -Wvla (gcc doesn't recognize "const" > variables as not triggering VLA creation). Additionally cleans up variable > naming to avoid 80 character column

Re: [PATCH 1/2] KVM: X86: Fix CR3 reserve bits

2018-05-13 Thread Liran Alon
- kernel...@gmail.com wrote: > 2018-05-13 16:28 GMT+08:00 Liran Alon : > > > > - kernel...@gmail.com wrote: > > > >> 2018-05-13 15:53 GMT+08:00 Liran Alon : > >> > > >> > - kernel...@gmail.com wrote: > >> > > >> >> From: Wanpeng Li > >> >> > >> >> MSB of CR3 is a reserved bit if the

Re: [PATCH 2/5] media: docs: clarify relationship between crop and selection APIs

2018-05-13 Thread Hans Verkuil
On 04/03/2018 11:15 PM, Luca Ceresoli wrote: > Having two somewhat similar and largely overlapping APIs is confusing, > especially since the older one appears in the docs before the newer > and most featureful counterpart. > > Clarify all of this in several ways: > - swap the two sections > -

Re: [PATCH 1/5] media: docs: selection: fix typos

2018-05-13 Thread Hans Verkuil
On 04/03/2018 11:15 PM, Luca Ceresoli wrote: Please add a commit message here. Yes, it can be as simple as 'Fixed typos in the selection documentation.' Regards, Hans > Cc: Hans Verkuil > Signed-off-by: Luca Ceresoli > --- > Documentation/media/uapi/v4l/selection-api-004.rst | 2 +-

Re: [PATCH 1/2] KVM: X86: Fix CR3 reserve bits

2018-05-13 Thread Wanpeng Li
2018-05-13 17:09 GMT+08:00 Liran Alon : > > - kernel...@gmail.com wrote: > >> 2018-05-13 16:28 GMT+08:00 Liran Alon : >> > >> > - kernel...@gmail.com wrote: >> > >> >> 2018-05-13 15:53 GMT+08:00 Liran Alon : >> >> > >> >> > - kernel...@gmail.com wrote: >> >> > >> >> >> From: Wanpeng Li

Re: [PATCH 3/5] media: docs: selection: rename files to something meaningful

2018-05-13 Thread Hans Verkuil
On 04/03/2018 11:15 PM, Luca Ceresoli wrote: > These files have an automatically-generated numbering. Replaname them Replaname -> Replace > to something that suggests their meaning. to -> with Regards, Hans > > Reported-by: Hans Verkuil > Cc: Hans Verkuil > Signed-off-by: Luca

Re: [PATCH 1/5] media: docs: selection: fix typos

2018-05-13 Thread Hans Verkuil
Hi Luca, My apologies for the long delay in reviewing this. It all looks very good and if you can post a v2 with these small issues fixed, then I'll merge it for 4.18. Regards, Hans On 05/13/2018 11:13 AM, Hans Verkuil wrote: > On 04/03/2018 11:15 PM, Luca Ceresoli wrote: > > Please

[PATCH v2] KVM: X86: Fix CR3 reserve bits

2018-05-13 Thread Wanpeng Li
From: Wanpeng Li MSB of CR3 is a reserved bit if the PCIDE bit is not set in CR4. It should be checked when PCIDE bit is not set, however commit 'd1cd3ce900441 ("KVM: MMU: check guest CR3 reserved bits based on its physical address width")' removes the bit 63 checking unconditionally. This

Re: [PATCH v5 04/23] iommu/vt-d: add bind_pasid_table function

2018-05-13 Thread Lu Baolu
Hi, On 05/12/2018 04:53 AM, Jacob Pan wrote: > Add Intel VT-d ops to the generic iommu_bind_pasid_table API > functions. > > The primary use case is for direct assignment of SVM capable > device. Originated from emulated IOMMU in the guest, the request goes > through many layers (e.g. VFIO). Upon

Re: [PATCH][RFC v2] ACPI: acpi_pad: Do not launch acpi_pad threads on idle cpus

2018-05-13 Thread Rafael J. Wysocki
On Saturday, May 5, 2018 1:53:22 PM CEST Chen Yu wrote: > According to current implementation of acpi_pad driver, > it does not make sense to spawn any power saving threads > on the cpus which are already idle - it might bring > unnecessary overhead on these idle cpus and causes power > waste. So

<    1   2   3   4   5   6   7   >