Re: [RFC GIT PULL, v2] RCU changes for v4.12

2017-05-10 Thread Paul E. McKenney
On Wed, May 10, 2017 at 01:17:54PM -0700, Linus Torvalds wrote: > On Wed, May 10, 2017 at 12:54 PM, Paul E. McKenney > wrote: > > > > I am testing a merge with current linus/master, and I looked through > > the commits in -next selected by: > > > > gitk v4.11.. --no-merges --all-match --gr

Re: [PATCH] leds/trigger: system can't enter suspend.

2017-05-10 Thread Jacek Anaszewski
Hi Zhang, Thanks for the patch. I'd rather keep sending uevent on setting trigger to "none". We could get rid of the problem you're trying to fix, by modifying heartbeat_pm_notifier() so that it didn't go through the whole procedure of unregistering/registering the trigger on suspend/resume. In

Re: sparse on scripts/kconfig/*.c

2017-05-10 Thread Dan Carpenter
I have created some new tools to make this process easier. 1) First you still have to edit the Makefile: -HOSTCC = gcc +HOSTCC = ~/progs/smatch/devel/cgcc 2) Build the data with this command: ~/progs/smatch/devel/smatch_scripts/build_generic_data.sh --target scripts/ The -

Re: [kernel-hardening] Re: [PATCH v6 0/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-05-10 Thread Daniel Micay
On Wed, 2017-05-10 at 21:29 +0100, Alan Cox wrote: > > In addition your change to allow it to be used by root in the guest > completely invalidates any protection you have because I can push > > "rm -rf /\n" > > as root in my namespace and exit > > The tty buffers are not flushed across the con

[PATCH] scsi: zero per-cmd driver data for each MQ I/O

2017-05-10 Thread Long Li
From: Long Li Lower layer driver may not initialize private data before use. Zero them out to prevent use of stale data. Signed-off-by: Long Li --- drivers/scsi/scsi_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c inde

Re: [RFC GIT PULL, v2] RCU changes for v4.12

2017-05-10 Thread Linus Torvalds
On Wed, May 10, 2017 at 1:51 PM, Paul E. McKenney wrote: > On Wed, May 10, 2017 at 01:17:54PM -0700, Linus Torvalds wrote: >> >> It kind of implies that the prep work that linux-next does doesn't get >> fully used. > > I did see that from linux-next. For future reference, what should I > have don

Re: [v3 0/9] parallelized "struct page" zeroing

2017-05-10 Thread Matthew Wilcox
On Wed, May 10, 2017 at 02:00:26PM -0400, David Miller wrote: > From: Matthew Wilcox > Date: Wed, 10 May 2017 10:17:03 -0700 > > On Wed, May 10, 2017 at 11:19:43AM -0400, David Miller wrote: > >> I guess it might be clearer if you understand what the block > >> initializing stores do on sparc64.

Re: [PATCH v3] LSM: Enable multiple calls to security_add_hooks() for the same LSM

2017-05-10 Thread Kees Cook
On Wed, May 10, 2017 at 1:48 PM, Mickaël Salaün wrote: > The commit d69dece5f5b6 ("LSM: Add /sys/kernel/security/lsm") extend > security_add_hooks() with a new parameter to register the LSM name, > which may be useful to make the list of currently loaded LSM available > to userspace. However, ther

[GIT PULL] RTC for 4.12

2017-05-10 Thread Alexandre Belloni
Hi Linus, Here is the pull-request for the RTC subsystem for 4.12. I had to generate a new GPG subkey so you may have to refresh my key before verifying the signature The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201: Linux 4.11-rc1 (2017-03-05 12:59:56 -0800) are a

Re: [RFC 09/10] ima: move to generic async completion

2017-05-10 Thread Mimi Zohar
On Sat, 2017-05-06 at 15:59 +0300, Gilad Ben-Yossef wrote: > ima starts several async. crypto ops and waits for their completions. > Move it over to generic code doing the same. > > Signed-off-by: Gilad Ben-Yossef Acked-by: Mimi Zohar > --- > security/integrity/ima/ima_crypto.c | 56 > +

[patch] mm, thp: copying user pages must schedule on collapse

2017-05-10 Thread David Rientjes
We have encountered need_resched warnings in __collapse_huge_page_copy() while doing {clear,copy}_user_highpage() over HPAGE_PMD_NR source pages. mm->mmap_sem is held for write, but the iteration is well bounded. Reschedule as needed. Signed-off-by: David Rientjes --- mm/khugepaged.c | 7 +++--

Re: [PATCHv3 1/2] Input: pwm-vibra: new driver

2017-05-10 Thread Dmitry Torokhov
On Mon, May 08, 2017 at 08:51:28PM +0200, Sebastian Reichel wrote: > On Sun, May 07, 2017 at 02:38:00PM -0700, Dmitry Torokhov wrote: > > > +static int __maybe_unused pwm_vibrator_suspend(struct device *dev) > > > +{ > > > + struct platform_device *pdev = to_platform_device(dev); > > > + struct pwm

Re: [PATCH 07/14] Implement fsopen() to prepare for a mount

2017-05-10 Thread Sargun Dhillon
On Wed, May 10, 2017 at 9:19 AM, David Howells wrote: > Provide an fsopen() system call that starts the process of preparing to > mount, using an fd as a context handle. fsopen() is given the name of the > filesystem that will be used: > > int mfd = fsopen(const char *fsname, int reserved

RE: WMI and Kernel:User interface

2017-05-10 Thread Mario.Limonciello
> -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Wednesday, May 10, 2017 1:12 AM > To: Greg Kroah-Hartman > Cc: Linus Torvalds ; Limonciello, Mario > ; Pali Rohár ; Andy > Shevchenko ; Rafael Wysocki > ; Andy Lutomirski ; LKML ker...@vger.kernel.org>; platfor

Re: WMI and Kernel:User interface

2017-05-10 Thread Darren Hart
On Wed, May 10, 2017 at 10:02:46PM +, mario.limoncie...@dell.com wrote: > > -Original Message- > > From: Darren Hart [mailto:dvh...@infradead.org] > > Sent: Wednesday, May 10, 2017 1:12 AM > > To: Greg Kroah-Hartman > > Cc: Linus Torvalds ; Limonciello, Mario > > ; Pali Rohár ; Andy >

Re: [PATCH v3] LSM: Enable multiple calls to security_add_hooks() for the same LSM

2017-05-10 Thread Casey Schaufler
On 5/10/2017 1:48 PM, Mickaël Salaün wrote: > The commit d69dece5f5b6 ("LSM: Add /sys/kernel/security/lsm") extend > security_add_hooks() with a new parameter to register the LSM name, > which may be useful to make the list of currently loaded LSM available > to userspace. However, there is no clea

Re: [PATCH 1/3] s390/dasd: Adjust buffer output in dasd_hosts_print()

2017-05-10 Thread kbuild test robot
Hi Markus, [auto build test WARNING on s390/features] [also build test WARNING on v4.11 next-20170510] [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/SF-Markus-Elfring/S390-DASD-Fine-tuning-for

Lockdep splat involving all_q_mutex

2017-05-10 Thread Paul E. McKenney
Hello! I got the lockdep splat shown below during some rcutorture testing (which does CPU hotplug operations) on mainline at commit dc9edaab90de ("Merge tag 'acpi-extra-4.12-rc1' of git://git.kernel.org/.../rafael/linux-pm"). My kneejerk reaction was just to reverse the "mutex_lock(&all_q_mutex);"

Re: [RFC 09/10] x86/mm: Rework lazy TLB to track the actual loaded mm

2017-05-10 Thread Andy Lutomirski
On Wed, May 10, 2017 at 1:24 AM, Ingo Molnar wrote: > > * Thomas Gleixner wrote: > >> On Wed, 10 May 2017, Ingo Molnar wrote: >> > >> > * Thomas Gleixner wrote: >> > >> > > On Sun, 7 May 2017, Andy Lutomirski wrote: >> > > > /* context.lock is held for us, so we don't need any locking. */ >> >

Re: [PATCH v2 1/5] pinctrl: qcom: Add ipq8074 pinctrl driver

2017-05-10 Thread Bjorn Andersson
On Thu 04 May 04:53 PDT 2017, Varadarajan Narayanan wrote: > Add initial pinctrl driver to support pin configuration with > pinctrl framework for ipq8074. > > Signed-off-by: Manoharan Vijaya Raghavan > Signed-off-by: Varadarajan Narayanan > --- > .../bindings/pinctrl/qcom,ipq8074-pinctrl.txt

Re: WMI and Kernel:User interface

2017-05-10 Thread Andy Lutomirski
On Wed, May 10, 2017 at 3:02 PM, wrote: > So here's a "more" realistic scenario: > > OEM has support through a WMI function to control keyboard backlight timeouts > and intensity. That same WMI function also can support turning on/off an > individual > USB port. Backlight timeouts are done by

[PATCH] x86/efi: Add EFI_PGT_DUMP support for x86_32, kexec and efi=old_map

2017-05-10 Thread Sai Praneeth Prakhya
From: Sai Praneeth EFI_PGT_DUMP, as the name suggests dumps efi page tables to dmesg during kernel boot. This feature is very useful while debugging page faults/null pointer dereferences to efi related addresses. Presently, this feature is limited only to x86_64, so let's extend it to other efi c

Re: [RFC GIT PULL, v2] RCU changes for v4.12

2017-05-10 Thread Paul E. McKenney
On Wed, May 10, 2017 at 02:08:55PM -0700, Linus Torvalds wrote: > On Wed, May 10, 2017 at 1:51 PM, Paul E. McKenney > wrote: > > On Wed, May 10, 2017 at 01:17:54PM -0700, Linus Torvalds wrote: > >> > >> It kind of implies that the prep work that linux-next does doesn't get > >> fully used. > > > >

Is there an recommended way to refer to bitkeepr commits?

2017-05-10 Thread Eric W. Biederman
(Apologies resent as I forgot to include linux-kernel when I sent this the first time) I am in the process of digging through the intersection of threads, signals, ptrace, and exec and I am encountering bugs that predate 2.6.12-rc2 the first version in our current git tree. I am trying to figu

[PATCH v2] mm: vmscan: scan until it founds eligible pages

2017-05-10 Thread Minchan Kim
Although there are a ton of free swap and anonymous LRU page in elgible zones, OOM happened. balloon invoked oom-killer: gfp_mask=0x17080c0(GFP_KERNEL_ACCOUNT|__GFP_ZERO|__GFP_NOTRACK), nodemask=(null), order=0, oom_score_adj=0 CPU: 7 PID: 1138 Comm: balloon Not tainted 4.11.0-rc6-mm1-zram-002

[RFC] adding of TGID to ftrace output

2017-05-10 Thread Joel Fernandes
Hi Steven, Can we add TGID information along with PID to ftrace output? Something like: # _-=> irqs-off # / _=> need-resched # | / _---=> hardirq/softirq # ||

Re: [PATCH] libertas: Avoid reading past end of buffer

2017-05-10 Thread Joe Perches
On Wed, 2017-05-10 at 12:24 -0700, Kees Cook wrote: > Using memcpy() from a string that is shorter than the length copied means [] > diff --git a/drivers/net/wireless/marvell/libertas/mesh.c > b/drivers/net/wireless/marvell/libertas/mesh.c [] > @@ -1170,17 +1170,11 @@ int lbs_mesh_ethtool_get_sset

Re: [PATCH] libertas: Avoid reading past end of buffer

2017-05-10 Thread Joe Perches
On Wed, 2017-05-10 at 12:24 -0700, Kees Cook wrote: > Using memcpy() from a string that is shorter than the length copied means > the destination buffer is being filled with arbitrary data from the kernel > rodata segment. another bit of trivia: > diff --git a/drivers/net/wireless/marvell/libert

Re: [PATCH v2 05/10] usb: musb: tusb6010_omap: Do not reset the other direction's packet size

2017-05-10 Thread Joe Perches
On Wed, 2017-05-10 at 12:07 -0500, Bin Liu wrote: > On Wed, May 10, 2017 at 11:42:27AM +0300, Peter Ujfalusi wrote: > > We have one register for each EP to set the maximum packet size for both > > TX and RX. > > If for example an RX programming would happen before the previous TX > > transfer finis

Re: [PATCH v2 2/3] nVMX: Implement emulated Page Modification Logging

2017-05-10 Thread Huang, Kai
On 5/11/2017 4:00 AM, Bandan Das wrote: Paolo Bonzini writes: ... Is the purpose of returning 1 to make upper layer code to inject PML full VMEXIt to L1 in nested_ept_inject_page_fault? Yes, it triggers a fault + +gpa = vmcs_read64(GUEST_PHYSICAL_ADDRESS) & ~0xFFFull; + +pa

Re: [PATCH v2 1/3] kvm: x86: Add a hook for arch specific dirty logging emulation

2017-05-10 Thread Huang, Kai
On 5/11/2017 3:53 AM, Bandan Das wrote: Hi Kai, "Huang, Kai" writes: On 5/6/2017 7:25 AM, Bandan Das wrote: When KVM updates accessed/dirty bits, this hook can be used to invoke an arch specific function that implements/emulates dirty logging such as PML. Signed-off-by: Bandan Das --- a

Re: WMI and Kernel:User interface

2017-05-10 Thread Darren Hart
On Wed, May 10, 2017 at 03:50:44PM -0700, Andy Lutomirski wrote: > On Wed, May 10, 2017 at 3:02 PM, wrote: > > So here's a "more" realistic scenario: > > > > OEM has support through a WMI function to control keyboard backlight > > timeouts > > and intensity. That same WMI function also can supp

Re: [PATCH -mm -v10 1/3] mm, THP, swap: Delay splitting THP during swap out

2017-05-10 Thread Minchan Kim
On Wed, May 10, 2017 at 09:56:54AM -0400, Johannes Weiner wrote: > Hi Michan, > > On Tue, May 02, 2017 at 08:53:32AM +0900, Minchan Kim wrote: > > @@ -1144,7 +1144,7 @@ void swap_free(swp_entry_t entry) > > /* > > * Called after dropping swapcache to decrease refcnt to swap entries. > > */ >

Re: WMI and Kernel:User interface

2017-05-10 Thread Darren Hart
On Wed, May 10, 2017 at 10:02:46PM +, mario.limoncie...@dell.com wrote: > This above discussion is confusing because it's referring specifically to > "WMI events". > related to brightness keypresses that don't make sense to go to userspace. Let's elaborate on this point. Why are events not in

Re: [PATCH v8 05/10] powerpc/perf: IMC pmu cpumask and cpuhotplug support

2017-05-10 Thread Stephen Rothwell
Hi, On Wed, 10 May 2017 14:09:53 +0200 (CEST) Thomas Gleixner wrote: > > > +static void nest_change_cpu_context(int old_cpu, int new_cpu) > > +{ > > + int i; > > + > > + for (i = 0; > > +(per_nest_pmu_arr[i] != NULL) && (i < IMC_MAX_PMUS); i++) > > + perf_pmu_migrate_contex

Re: [PATCH] tpm: fix byte order related arithmetic inconsistency in tpm_getcap()

2017-05-10 Thread Luc Van Oostenryck
On Wed, May 10, 2017 at 2:34 PM, Jarkko Sakkinen wrote: > Arithmetic should work but it's not a good practice to do additions, > substractions or multiplications in any other byte order than the CPU > byte order. > > sparse also complains about this. > > /Jarkko Arithmetic should work? let's try

[PATCH 1/3] f2fs: use f2fs_submit_page_bio for ra_meta_pages

2017-05-10 Thread Jaegeuk Kim
This patch avoids to use f2fs_submit_merged_bio for read, which was the only read case. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index ea9c317b5916..8d92f8249000 100644 -

[PATCH 3/3] f2fs: use fio instead of multiple parameters

2017-05-10 Thread Jaegeuk Kim
This patch just changes using fio instead of parameters. Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.c | 41 + 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 38bb675976e2..c9f3a2faee21 100644

[PATCH 2/3] f2fs: remove unnecessary read cases in merged IO flow

2017-05-10 Thread Jaegeuk Kim
Merged IO flow doesn't need to care about read IOs. f2fs_submit_merged_bio -> f2fs_submit_merged_write f2fs_submit_merged_bios -> f2fs_submit_merged_writes f2fs_submit_merged_bio_cond -> f2fs_submit_merged_write_cond Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c| 14 ++--

Re: [PATCH] f2fs: split bio cache

2017-05-10 Thread Jaegeuk Kim
On 05/09, Chao Yu wrote: > Hi Jaegeuk, > > On 2017/5/9 5:23, Jaegeuk Kim wrote: > > Hi Chao, > > > > I can't see a strong reason to split meta from data/node and rename the > > existing > > function names. Instead, how about keeping the existing one while adding > > some > > page types to deal

[PATCH v4 1/2] tpm: Refactor tpm_transmit pulling out tpm_transfer function

2017-05-10 Thread Stefan Berger
Refactor tpm_transmit and pull out code sending the command and receiving the response and put this into tpm_transfer. Signed-off-by: Stefan Berger --- drivers/char/tpm/tpm-interface.c | 121 +++ 1 file changed, 73 insertions(+), 48 deletions(-) diff --git a/

[PATCH v4 2/2] tpm: vtpm_proxy: Implement request_locality function.

2017-05-10 Thread Stefan Berger
Implement the request_locality function. To set the locality on the backend we define vendor-specific TPM 1.2 and TPM 2 ordinals and send a command to the backend to set the locality for the next commands. Signed-off-by: Stefan Berger --- drivers/char/tpm/tpm.h| 1 + drivers/char/tp

[PATCH v4 0/2] Extend the vTPM proxy driver to pass locality

2017-05-10 Thread Stefan Berger
The purpose of this series of patches is to enable the passing of the locality a command is executing in to a recipient, i.e., TPM emulator. To enable this we introduce vendor-specific TPM commands for TPM 1.2 and TPM 2 that the driver sends to the TPM emulator. v3->v4: - addressed Jarkko's comm

[PATCH] perf script: Add --inline option

2017-05-10 Thread Namhyung Kim
The --inline option is to show inlined functions in callchains. For example, $ perf script a.out 5644 11611.467597: 309961 cycles:u: 790 main (/home/namhyung/tmp/perf/a.out) 20511 __libc_start_main (/usr/lib/libc-2.25.so) 8ba _

Re: [PATCH] mnt: allow to add a mount into an existing group

2017-05-10 Thread Andrei Vagin
On Tue, May 09, 2017 at 07:42:00PM -0500, Eric W. Biederman wrote: > Andrey Vagin writes: > > > On Tue, Jan 24, 2017 at 02:03:23PM +1300, Eric W. Biederman wrote: > >> Andrei Vagin writes: > >> > >> > Now a shared group can be only inherited from a source mount. > >> > This patch adds an ability

Re: [PATCH 1/1] remoteproc: fix elf_loader da_to_va translation and writing beyond segment

2017-05-10 Thread Bjorn Andersson
On Wed 03 May 05:12 PDT 2017, Henri Roosen wrote: > Consider a system with 2 memory regions: > 0x1fff8000 - 0x1fff: iram So I presume there's a hole here. > 0x2100 - 0x21007fff: dram > > The .elf file for this system contains the following Program Headers: > Program Headers: > Type

Re: [PATCH 0/2] acpi/button: revert v4.10 behavior

2017-05-10 Thread Rafael J. Wysocki
On Wed, May 10, 2017 at 6:12 PM, Benjamin Tissoires wrote: > The new default 'open' behavior for acpi_lid_initialize_state() is just > wrong. It breaks professional laptops with a docking station [1]. > > Booting the laptop with the LID closed is something common and now there > is no way of knowi

Re: [PATCH] fs: add an ioctl to get an owning userns for a superblock

2017-05-10 Thread Andrei Vagin
On Tue, May 09, 2017 at 07:34:00PM -0500, Eric W. Biederman wrote: > Andrei Vagin writes: > > > The introduced ioctl returns a file descriptor that refers to a owning > > user namespace for a superblock which is associated with a target file > > descriptor. > > > > EPERM is returned if the curren

Re: [kernel-hardening] Re: [PATCH v9 1/4] syscalls: Verify address limit before returning to user-mode

2017-05-10 Thread Andy Lutomirski
On Wed, May 10, 2017 at 1:14 AM, Christoph Hellwig wrote: > On Wed, May 10, 2017 at 09:08:41AM +0100, Al Viro wrote: >> On Wed, May 10, 2017 at 09:37:04AM +0200, Arnd Bergmann wrote: >> >> > > How about trying to remove all of them? If we could actually get rid >> > > of all of them, we could dro

Re: [v5 1/4] ACPICA: IORT: Add Cavium ThunderX2 SMMUv3 model definition.

2017-05-10 Thread Rafael J. Wysocki
On Wednesday, May 10, 2017 05:01:55 PM Geetha sowjanya wrote: > From: Linu Cherian > > Add SMMUv3 model definition for ThunderX2. > > Signed-off-by: Linu Cherian > Signed-off-by: Geetha Sowjanya This is an ACPICA change, but you have not included the ACPICA maintainers into your original CC l

[GIT PULL 2/3] Kbuild misc updates for v4.12

2017-05-10 Thread Masahiro Yamada
Hi Linus, Here are some updates of misc scripts for v4.12. Please pull! The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201: Linux 4.11-rc1 (2017-03-05 12:59:56 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/

[GIT PULL 1/3] Kbuild updates for v4.12

2017-05-10 Thread Masahiro Yamada
Hi Linus, Here are Kbuild updates for v4.12. Please pull! The following changes since commit c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201: Linux 4.11-rc1 (2017-03-05 12:59:56 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.g

[GIT PULL 3/3] Kbuild uapi updates for v4.12

2017-05-10 Thread Masahiro Yamada
Hi Linus, Here are UAPI header export updates. I needed to rebase this on the recent commit to resolve a complex conflict, but it should be OK because this has been for a while in linux-next. For the benefits of this work, please see below. Please pull! The following changes since commit 2868b25

Re: Is there an recommended way to refer to bitkeepr commits?

2017-05-10 Thread Linus Torvalds
On Wed, May 10, 2017 at 3:04 PM, Eric W. Biederman wrote: > > Thomas Gleixner appears to have a tree with all of those same commits > except with the BKrev tags stripped out. That's the best import - so use that tree by Thomas, and just use the git revision numbers in it (and say "tglx's linux-hi

Re: [PATCH -mm -v10 1/3] mm, THP, swap: Delay splitting THP during swap out

2017-05-10 Thread Huang, Ying
Minchan Kim writes: > On Wed, May 10, 2017 at 09:56:54AM -0400, Johannes Weiner wrote: >> Hi Michan, >> >> On Tue, May 02, 2017 at 08:53:32AM +0900, Minchan Kim wrote: >> > @@ -1144,7 +1144,7 @@ void swap_free(swp_entry_t entry) >> > /* >> > * Called after dropping swapcache to decrease refcn

Re: [PATCH] ACPI / GED: use late init to allow other drivers init

2017-05-10 Thread Rafael J. Wysocki
Sorry for the delay. On Tuesday, April 25, 2017 12:24:19 PM Sinan Kaya wrote: > On 4/25/2017 3:01 AM, Lukas Wunner wrote: > > On Sat, Apr 22, 2017 at 12:48 AM, Sinan Kaya wrote: > >> On 4/21/2017 6:43 PM, Rafael J. Wysocki wrote: > >>> +late_initcall(ged_init); > >>> Does this fix the problem? >

Re: [PATCH] KVM: x86: Fix load damaged SSEx MXCSR register

2017-05-10 Thread Wanpeng Li
2017-05-10 23:35 GMT+08:00 Paolo Bonzini : > > > On 10/05/2017 12:19, Wanpeng Li wrote: >>* with old userspace. >>*/ >> - if (xstate_bv & ~kvm_supported_xcr0()) >> + if (xstate_bv & ~kvm_supported_xcr0() || >> + mxcsr & >>

RE: [PATCH 1/2] Revert "ACPI / button: Remove lid_init_state=method mode"

2017-05-10 Thread Zheng, Lv
Hi, Benjiamin > From: Benjamin Tissoires [mailto:benjamin.tissoi...@redhat.com] > Sent: Thursday, May 11, 2017 12:13 AM > To: Rafael J . Wysocki ; Zheng, Lv > Cc: Jiri Eischmann ; linux-a...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: [PATCH 1/2] Revert "ACPI / button: Remove lid_

Re: [PATCH 00/13] block: assorted cleanup for bio splitting and cloning.

2017-05-10 Thread NeilBrown
On Tue, May 02 2017, NeilBrown wrote: > This is a revision of my series of patches working > towards removing the bioset work queues. Hi Jens, could I get some feed-back about your thoughts on this series? Will you apply it? When? Do I need to resend anything? Would you like a git-pull reque

RE: [PATCH 2/2] Revert "ACPI / button: Change default behavior to lid_init_state=open"

2017-05-10 Thread Zheng, Lv
Hi, > From: Benjamin Tissoires [mailto:benjamin.tissoi...@redhat.com] > Subject: [PATCH 2/2] Revert "ACPI / button: Change default behavior to > lid_init_state=open" > > This reverts commit 77e9a4aa9de10cc1418bf9a892366988802a8025. > > Even if the method implementation can be buggy on some plat

Re: [PATCH] ACPI / GED: use late init to allow other drivers init

2017-05-10 Thread Rafael J. Wysocki
On Thursday, April 27, 2017 10:32:07 PM Sinan Kaya wrote: > On 4/25/2017 12:24 PM, Sinan Kaya wrote: > > On 4/25/2017 3:01 AM, Lukas Wunner wrote: > >> On Sat, Apr 22, 2017 at 12:48 AM, Sinan Kaya wrote: > >>> On 4/21/2017 6:43 PM, Rafael J. Wysocki wrote: > +late_initcall(ged_init); > D

RE: [PATCH 1/2] Revert "ACPI / button: Remove lid_init_state=method mode"

2017-05-10 Thread Zheng, Lv
Hi, Benjamin > From: linux-acpi-ow...@vger.kernel.org > [mailto:linux-acpi-ow...@vger.kernel.org] On Behalf Of Zheng, > Lv > Subject: RE: [PATCH 1/2] Revert "ACPI / button: Remove lid_init_state=method > mode" > > Hi, Benjiamin > > > From: Benjamin Tissoires [mailto:benjamin.tissoi...@redhat.c

Re: [PATCH] mtd: nand: gpio: update binding

2017-05-10 Thread Brian Norris
On Mon, May 08, 2017 at 11:26:55AM -0500, Rob Herring wrote: > On Wed, May 03, 2017 at 02:18:24PM +0200, Christophe Leroy wrote: > > This patch updates the binding documentation in accordance with > > commit 44dd182861f99 ("mtd: nand: gpio: make nCE GPIO optional") > > > > Signed-off-by: Christoph

Re: [PATCH -mm -v10 1/3] mm, THP, swap: Delay splitting THP during swap out

2017-05-10 Thread Minchan Kim
On Thu, May 11, 2017 at 08:25:56AM +0900, Minchan Kim wrote: > On Wed, May 10, 2017 at 09:56:54AM -0400, Johannes Weiner wrote: > > Hi Michan, > > > > On Tue, May 02, 2017 at 08:53:32AM +0900, Minchan Kim wrote: > > > @@ -1144,7 +1144,7 @@ void swap_free(swp_entry_t entry) > > > /* > > > * Call

Re: [PATCH v4 2/2] x86/refcount: Implement fast refcount overflow protection

2017-05-10 Thread PaX Team
On 9 May 2017 at 12:01, Kees Cook wrote: > Various differences from PaX: > - uses earlier value reset implementation in assembly > - uses UD0 and refcount exception handler instead of new int vector > - uses .text.unlikely instead of custom named text sections all the above together result in bloa

Re: [RFC] adding of TGID to ftrace output

2017-05-10 Thread Steven Rostedt
On Wed, 10 May 2017 16:04:55 -0700 Joel Fernandes wrote: > Hi Steven, > > Can we add TGID information along with PID to ftrace output? > > Something like: > # _-=> irqs-off > # / _=> need-resched > #

Re: [PATCH] i2c-designware: add i2c gpio recovery option

2017-05-10 Thread Phil Reid
G'day Andy, Thanks for the review. On 10/05/2017 21:13, Andy Shevchenko wrote: On Wed, 2017-05-10 at 13:57 +0200, Tim Sander wrote: This patch contains much input from Phil Reid and has been tested on Intel/Altera Cyclone V SOC Hardware with Altera GPIO's for the SCL and SDA GPIO's. I am still

Re: [f2fs-dev] [PATCH 1/3] f2fs: use f2fs_submit_page_bio for ra_meta_pages

2017-05-10 Thread Chao Yu
Hi Jaegeuk, On 2017/5/11 7:48, Jaegeuk Kim wrote: > This patch avoids to use f2fs_submit_merged_bio for read, which was the only > read case. This makes f2fs losing the chance to merge multiple pages into one bio during reading continuous physical blocks, it may cause potential performance regres

Re: [PATCH] fs: add an ioctl to get an owning userns for a superblock

2017-05-10 Thread Eric W. Biederman
Andrei Vagin writes: > On Tue, May 09, 2017 at 07:34:00PM -0500, Eric W. Biederman wrote: >> Andrei Vagin writes: >> >> > The introduced ioctl returns a file descriptor that refers to a owning >> > user namespace for a superblock which is associated with a target file >> > descriptor. >> > >> >

Re: [PATCH v2 2/2] arm: dts: mt2701: add nor flash node

2017-05-10 Thread Guochun Mao
On Wed, 2017-05-10 at 12:49 +0200, Matthias Brugger wrote: > > On 14/02/17 04:58, Guochun Mao wrote: > > On Sun, 2017-02-12 at 07:35 +0800, Matthias Brugger wrote: > >> > >> On 02/06/2017 08:45 AM, Boris Brezillon wrote: > >>> Hi Guochun, > >>> > >>> On Sun, 5 Feb 2017 12:00:49 +0800 > >>> Guochun

Re: [RFC 00/06] printk: add more new kernel pointer filter options.

2017-05-10 Thread Sergey Senozhatsky
Hello Greg, On (05/05/17 21:06), Greg KH wrote: > Here's a short patch series from Chris Fries and Dave Weinstein that > implement some new restrictions when printing out kernel pointers, as > well as the ability to whitelist kernel pointers where needed. > > These patches are based on work from

Re: [PATCH] sched/deadline: Zero out positive runtime after throttling constrained tasks

2017-05-10 Thread Xunlei Pang
On 05/10/2017 at 09:36 PM, Steven Rostedt wrote: > On Wed, 10 May 2017 21:03:37 +0800 > Xunlei Pang wrote: > >> When a contrained task is throttled by dl_check_constrained_dl(), >> it may carry the remaining positive runtime, as a result when >> dl_task_timer() fires and calls replenish_dl_entity(

Re: [PATCH] ACPI / GED: use late init to allow other drivers init

2017-05-10 Thread Sinan Kaya
On 5/10/2017 8:58 PM, Rafael J. Wysocki wrote: >> When GED driver makes an AML call and the driver on the right side of the >> picture >> is not present, GED driver gets an ACPI error return code. > This means that _EVT evaluation failed, right? > > How does the _EVT in question look like? What

Re: [f2fs-dev] [PATCH 1/3] f2fs: use f2fs_submit_page_bio for ra_meta_pages

2017-05-10 Thread Chao Yu
On 2017/5/11 9:24, Chao Yu wrote: > Hi Jaegeuk, > > On 2017/5/11 7:48, Jaegeuk Kim wrote: >> This patch avoids to use f2fs_submit_merged_bio for read, which was the only >> read case. > > This makes f2fs losing the chance to merge multiple pages into one bio during > reading continuous physical b

Re: jitterentropy init test failure on ARMv7 with gcc 6.2

2017-05-10 Thread Stephan Müller
Am Mittwoch, 10. Mai 2017, 17:40:40 CEST schrieb Octavian Purdila: Hi Octavian, > Hi Stephan, > > Recently I started seeing the following on some of our ARMv7 boards > (IMX7D): > > jitterentropy: Initialization failed with host not compliant with > requirements: 2 > > and I traced this to the

Re: [PATCH v6 19/23] drivers/fsi: Add GPIO based FSI master

2017-05-10 Thread Jeremy Kerr
Hi Chris, > I don't think we'd want this per master. The lock is for the 'top' > master issuing commands. Only the top master can initiate any > transactions on the bus to any devices connected downstream. Downstream > masters such as hub masters, etc... cannot initiate a command. I think what

Re: [PATCH v4 3/5] soc: qcom: Introduce APCS IPC driver

2017-05-10 Thread Jassi Brar
On Thu, May 11, 2017 at 12:30 AM, Bjorn Andersson wrote: > On Tue 09 May 19:33 PDT 2017, Jassi Brar wrote: > >> On Wed, May 10, 2017 at 12:41 AM, Bjorn Andersson >> wrote: >> > On Tue 09 May 09:41 PDT 2017, Jassi Brar wrote: > [..] >> > The part where this piece of hardware differs from the other

Re: [PATCH v7 0/7] Introduce ZONE_CMA

2017-05-10 Thread Joonsoo Kim
Sorry for the late response. I was on a vacation. On Tue, May 02, 2017 at 03:32:29PM +0200, Michal Hocko wrote: > On Tue 02-05-17 13:01:32, Joonsoo Kim wrote: > > On Thu, Apr 27, 2017 at 05:06:36PM +0200, Michal Hocko wrote: > [...] > > > I see this point and I agree that using a specific zone mig

Re: [alsa-devel] [PATCH v2 3/3] ASoC: stm32: Add full duplex support to i2s (fwd)

2017-05-10 Thread Julia Lawall
: Re: [alsa-devel] [PATCH v2 3/3] ASoC: stm32: Add full duplex support to i2s Hi olivier, [auto build test WARNING on asoc/for-next] [also build test WARNING on next-20170510] [cannot apply to v4.11] [if your patch is applied to the wrong git tree, please drop us a note to help improve the

Re: [PATCH] f2fs: split bio cache

2017-05-10 Thread Chao Yu
On 2017/5/11 7:50, Jaegeuk Kim wrote: > On 05/09, Chao Yu wrote: >> Hi Jaegeuk, >> >> On 2017/5/9 5:23, Jaegeuk Kim wrote: >>> Hi Chao, >>> >>> I can't see a strong reason to split meta from data/node and rename the >>> existing >>> function names. Instead, how about keeping the existing one while

Re: [PATCH RT] futex/rtmutex: Cure RT double blocking issue

2017-05-10 Thread Wanpeng Li
2017-05-09 23:11 GMT+08:00 Thomas Gleixner : > RT has a problem when the wait on a futex/rtmutex got interrupted by a > timeout or a signal. task->pi_blocked_on is still set when returning from > rt_mutex_wait_proxy_lock(). The task must acquire the hash bucket lock > after this. > > If the hash bu

Re: [PATCH] f2fs: split bio cache

2017-05-10 Thread Jaegeuk Kim
On 05/11, Chao Yu wrote: > On 2017/5/11 7:50, Jaegeuk Kim wrote: > > On 05/09, Chao Yu wrote: > >> Hi Jaegeuk, > >> > >> On 2017/5/9 5:23, Jaegeuk Kim wrote: > >>> Hi Chao, > >>> > >>> I can't see a strong reason to split meta from data/node and rename the > >>> existing > >>> function names. Inst

Re: [PATCH 0/3] GPU-DRM-Radeon: Fine-tuning for three function implementations

2017-05-10 Thread Michel Dänzer
On 10/05/17 08:30 PM, Christian König wrote: > Am 10.05.2017 um 02:23 schrieb Michel Dänzer: >> On 03/05/17 09:46 PM, Christian König wrote: >>> Am 02.05.2017 um 22:04 schrieb SF Markus Elfring: From: Markus Elfring Date: Tue, 2 May 2017 22:00:02 +0200 Three update suggestions

Re: [f2fs-dev] [PATCH 1/3] f2fs: use f2fs_submit_page_bio for ra_meta_pages

2017-05-10 Thread Jaegeuk Kim
On 05/11, Chao Yu wrote: > Hi Jaegeuk, > > On 2017/5/11 7:48, Jaegeuk Kim wrote: > > This patch avoids to use f2fs_submit_merged_bio for read, which was the only > > read case. > > This makes f2fs losing the chance to merge multiple pages into one bio during > reading continuous physical blocks,

Re: [f2fs-dev] [PATCH 1/3] f2fs: use f2fs_submit_page_bio for ra_meta_pages

2017-05-10 Thread Jaegeuk Kim
On 05/11, Chao Yu wrote: > On 2017/5/11 9:24, Chao Yu wrote: > > Hi Jaegeuk, > > > > On 2017/5/11 7:48, Jaegeuk Kim wrote: > >> This patch avoids to use f2fs_submit_merged_bio for read, which was the > >> only > >> read case. > > > > This makes f2fs losing the chance to merge multiple pages into

Re: [PATCH v3 2/2] dt-bindings: pcie: Add documentation for Mediatek PCIe

2017-05-10 Thread Ryder Lee
On Wed, 2017-05-10 at 12:01 +0200, Arnd Bergmann wrote: > On Wed, May 10, 2017 at 11:31 AM, Ryder Lee wrote: > > On Wed, 2017-05-10 at 10:08 +0200, Arnd Bergmann wrote: > >> On Wed, May 10, 2017 at 4:07 AM, Ryder Lee wrote: > >> > >> > +- ranges: > >> > + - The first three entries are expected t

[PATCH 1/3] securityfs: add the ability to support symlinks

2017-05-10 Thread John Johansen
Signed-off-by: John Johansen Reviewed-by: Seth Arnold --- include/linux/security.h | 12 security/inode.c | 140 +-- 2 files changed, 134 insertions(+), 18 deletions(-) diff --git a/include/linux/security.h b/include/linux/security.h ind

[PATCH 2/3] apparmor: move to per loaddata files, instead of replicating in profiles

2017-05-10 Thread John Johansen
The loaddata sets cover more than just a single profile and should be tracked at the ns level. Move the load data files under the namespace and reference the files from the profiles via a symlink. Signed-off-by: John Johansen Reviewed-by: Seth Arnold --- security/apparmor/apparmorfs.c

[PATCH 3/3] apparmor: virtualize the policy/ directory

2017-05-10 Thread John Johansen
virtualize the apparmor policy/ directory so that the current namespace affects what part of policy is seen. This is done by * creating a new apparmorfs filesystem * creating a magic symlink from securityfs to the correct apparmorfs file in the tree (similar to nsfs use). apparmor fs data an

[RFC][Patch 0/3] securityfs: add the ability to support symlinks

2017-05-10 Thread John Johansen
Currently securityfs does not support the creation/use of symlinks. AppArmor would like to be able to use symlinks to map some policy relationships between profiles and the data set it was loaded from (patch 2), and to create a specialized magic policy tree that maps visible policy to the policy n

Re: [PATCH net-next V4 10/10] vhost_net: try batch dequing from skb array

2017-05-10 Thread Jason Wang
On 2017年05月10日 20:34, Michael S. Tsirkin wrote: On Wed, May 10, 2017 at 11:36:22AM +0800, Jason Wang wrote: We used to dequeue one skb during recvmsg() from skb_array, this could be inefficient because of the bad cache utilization and spinlock touching for each packet. This patch tries to batc

Re: (radeon?) WARNING: drivers/gpu/drm/drm_irq.c:1195 drm_vblank_put (v4.11-12441-g56868a4)

2017-05-10 Thread Michel Dänzer
On 11/05/17 04:33 AM, Tommi Rantala wrote: > Hi, > > I just tested v4.11-12441-g56868a4 on HP xw6600 with radeon graphics, > and I'm seeing the following WARNING triggered constantly. > > I have not seen this earlier e.g. with the distro kernel > 4.10.13-200.fc25.x86_64 > > $ lspci|grep -i amd

Re: Lockdep splat involving all_q_mutex

2017-05-10 Thread Jens Axboe
On 05/10/2017 04:34 PM, Paul E. McKenney wrote: > Hello! > > I got the lockdep splat shown below during some rcutorture testing (which > does CPU hotplug operations) on mainline at commit dc9edaab90de ("Merge > tag 'acpi-extra-4.12-rc1' of git://git.kernel.org/.../rafael/linux-pm"). > My kneejerk

[PATCH] filesystem-dax: fix broken __dax_zero_page_range() conversion

2017-05-10 Thread Dan Williams
The conversion of __dax_zero_page_range() to 'struct dax_operations' caused it to frequently fail. The mistake was treating the @size parameter as a dax mapping length rather than just a length of the clear_pmem() operation. The dax mapping length is assumed to be hard coded as PAGE_SIZE. Without

linux-next: Tree for May 11

2017-05-10 Thread Stephen Rothwell
Hi all, Please do not add any v4.13 destined material in your linux-next included branches until after v4.12-rc1 has been released. Changes since 20170510: The tpmdd tree lost its build failure. Non-merge commits (relative to Linus' tree): 697 763 files changed, 20547 insertions(+),

Re: [RFC] adding of TGID to ftrace output

2017-05-10 Thread Joel Fernandes
Hi Steven, Thanks for your quick reply. On Wed, May 10, 2017 at 6:28 PM, Steven Rostedt wrote: > On Wed, 10 May 2017 16:04:55 -0700 > Joel Fernandes wrote: > >> Hi Steven, >> >> Can we add TGID information along with PID to ftrace output? >> >> Something like: >> #

Re: Lockdep splat involving all_q_mutex

2017-05-10 Thread Paul E. McKenney
On Wed, May 10, 2017 at 08:55:54PM -0600, Jens Axboe wrote: > On 05/10/2017 04:34 PM, Paul E. McKenney wrote: > > Hello! > > > > I got the lockdep splat shown below during some rcutorture testing (which > > does CPU hotplug operations) on mainline at commit dc9edaab90de ("Merge > > tag 'acpi-extra

Re: [PATCH v7 20/26] x86/cpufeature: Add User-Mode Instruction Prevention definitions

2017-05-10 Thread Ricardo Neri
On Sat, 2017-05-06 at 11:04 +0200, Paolo Bonzini wrote: > > > On 05/05/2017 20:17, Ricardo Neri wrote: > > User-Mode Instruction Prevention is a security feature present in > new > > Intel processors that, when set, prevents the execution of a subset > of > > instructions if such instructions are

Re: [f2fs-dev] [PATCH 1/3] f2fs: use f2fs_submit_page_bio for ra_meta_pages

2017-05-10 Thread Chao Yu
On 2017/5/11 10:41, Jaegeuk Kim wrote: > On 05/11, Chao Yu wrote: >> Hi Jaegeuk, >> >> On 2017/5/11 7:48, Jaegeuk Kim wrote: >>> This patch avoids to use f2fs_submit_merged_bio for read, which was the only >>> read case. >> >> This makes f2fs losing the chance to merge multiple pages into one bio d

[PATCH v3 1/4] hwmon: (adt7475) replace find_nearest() with find_closest()

2017-05-10 Thread Chris Packham
The adt7475 has had find_nearest() since it's creation in 2009. Since then find_closest() has been introduced and several drivers have been updated to use it. Update the adt7475 to use find_closest() and remove the now unused find_nearest(). Signed-off-by: Chris Packham --- Changes in v3: - None

<    1   2   3   4   5   6   7   >