[PATCH 2/6] KVM: VMX: cleanup check for invalid EPT violation

2017-03-08 Thread Paolo Bonzini
handle_ept_violation is checking for "guest-linear-address invalid" + "paging-structure walk", which is a sign of a bug in KVM. However, _all_ EPT violations without a valid guest linear address are paging structure walks, because those EPT violations happen when loading the guest PDPTEs. So

Re: [PATCH 22/29] drivers, scsi: convert iscsi_task.refcount from atomic_t to refcount_t

2017-03-08 Thread Chris Leech
On Mon, Mar 06, 2017 at 04:21:09PM +0200, Elena Reshetova wrote: > refcount_t type and corresponding API should be > used instead of atomic_t when the variable is used as > a reference counter. This allows to avoid accidental > refcounter overflows that might lead to use-after-free > situations. >

Re: v4.10: kernel stack frame pointer .. has bad value (null)

2017-03-08 Thread Linus Torvalds
On Wed, Mar 8, 2017 at 9:37 AM, Josh Poimboeuf wrote: > > It does seem to make it bigger. With Pavel's config on gcc 6, if I add > -maccumulate-outgoing-args: > > That's 3.8% more text on x86-32. That's even more than I expected. I would have expected the -mregparm=3 to

[PATCH 2/2 v3] dt-bindings: display: imx: entry for AUS mode

2017-03-08 Thread Martin Kaiser
Allow setting the AUS mode for a display from the device tree. Use an optional boolean property. AUS mode can be set only on imx21 and compatible chipsets. Signed-off-by: Martin Kaiser --- v3: use a boolean DT property instead of the register value separate patches for DT

Re: [PATCH v11 2/9] mmc: cavium: Add core MMC driver for Cavium SOCs

2017-03-08 Thread Jan Glauber
On Wed, Mar 08, 2017 at 10:45:19AM +0100, Ulf Hansson wrote: [...] > > May I ask why you dislike the bitfields? Or maybe it is easier when I > > explain why I decided to keep them: > > My main concern is that is different compared to how we deal with > endian issues in the kernel. > > I just

Re: [PATCH] x86, kasan: add KASAN checks to atomic operations

2017-03-08 Thread Will Deacon
On Wed, Mar 08, 2017 at 03:20:41PM +, Mark Rutland wrote: > On Wed, Mar 08, 2017 at 02:42:10PM +0100, Dmitry Vyukov wrote: > > I think if we scope compiler atomic builtins to KASAN/KTSAN/KMSAN (and > > consequently x86/arm64) initially, it becomes more realistic. For the > > tools we don't

[resend PATCH 2/2] eventpoll.h: add missing epoll event masks

2017-03-08 Thread Greg KH
[resend due to me forgetting to cc: linux-api the first time around I posted these back on Feb 23] From: Greg Kroah-Hartman For some reason these values are not in the uapi header file, so any libc has to define it themselves. To prevent them from needing to do

Re: counting file descriptors with a cgroup controller

2017-03-08 Thread Tejun Heo
On Wed, Mar 08, 2017 at 10:52:18AM +0100, Krzysztof Opasiak wrote: > Well detecting failures of open is not enough and it has couple of problems: > > 1) open(2) is not the only syscall which creates fd. In addition to other > syscalls like socket(2), dup(2), some ioctl() on drivers (for example

[PATCH 3/6] kvm: x86: MMU support for EPT accessed/dirty bits

2017-03-08 Thread Paolo Bonzini
This prepares the MMU paging code for EPT accessed and dirty bits, which can be enabled optionally at runtime. Code that updates the accessed and dirty bits will need a pointer to the struct kvm_mmu. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/paging_tmpl.h | 23

Re: [PATCH 1/1] x86/cqm: Cqm requirements

2017-03-08 Thread David Carrillo-Cisneros
On Wed, Mar 8, 2017 at 12:30 AM, Thomas Gleixner wrote: > Stephane, > > On Tue, 7 Mar 2017, Stephane Eranian wrote: >> On Tue, Mar 7, 2017 at 12:04 PM, Luck, Tony wrote: >> >> That's all nice and good, but I still have no coherent explanation why >> >>

Re: Subject: [PATCH v4] USB:Core: BugFix: Proper handling of Race Condition when two USB class drivers try to call init_usb_class simultaneously

2017-03-08 Thread gre...@linuxfoundation.org
On Tue, Mar 07, 2017 at 04:35:37AM +, Ajay Kaher wrote: >   >   >   > > On Fri, 3 Mar 2017, Ajay Kaher wrote: > >  > > > > usb_class->kref is not accessible outside the file.c > > > > as usb_class is _static_ inside the file.c and > > > > pointer of usb_class->kref is not passed anywhere. > >

Re: linux-next: build failure after merge of the rcu tree

2017-03-08 Thread Paul E. McKenney
On Wed, Mar 08, 2017 at 12:16:05PM +1100, Stephen Rothwell wrote: > Hi Paul, > > On Mon, 13 Feb 2017 17:43:24 +1100 Stephen Rothwell > wrote: > > > > On Sun, 12 Feb 2017 20:37:48 -0800 "Paul E. McKenney" > > wrote: > > > > > > I chickened out

Re: [Question] devm_kmalloc() for DMA ?

2017-03-08 Thread Masahiro Yamada
Hi Robin, 2017-03-08 20:15 GMT+09:00 Robin Murphy : > On 08/03/17 10:59, Masahiro Yamada wrote: >> Hi experts, >> >> I have a question about >> how to allocate DMA-safe buffer. >> >> >> In my understanding, kmalloc() returns >> memory with DMA safe alignment >> in order to

Re: [tpmdd-devel] [PATCH] vTPM: Fix missing NULL check

2017-03-08 Thread Jason Gunthorpe
On Tue, Mar 07, 2017 at 11:12:43PM -0500, Hon Ching(Vicky) Lo wrote: > On Mon, 2017-03-06 at 16:19 -0700, Jason Gunthorpe wrote: > > Also, how does locking work here? Does the vio core prevent > > tpm_ibmvtpm_get_desired_dma and tpm_ibmvtpm_remove from running > > concurrently? > > No, vio core

Re: [PATCH v3] Input: sparse-keymap - use a managed allocation for keymap copy

2017-03-08 Thread Dmitry Torokhov
On Wed, Mar 08, 2017 at 09:22:17AM +0100, Michał Kępień wrote: > Some platform drivers use devm_input_allocate_device() together with > sparse_keymap_setup() in their .probe callbacks. While using the former > simplifies error handling, using the latter necessitates calling > sparse_keymap_free()

[PATCH 0/6] KVM: nVMX: nested EPT improvements and A/D bits, RDRAND and RDSEED exits

2017-03-08 Thread Paolo Bonzini
Patches 1-4 implement nested EPT A/D bits and GB pages. As a side effect, this fixes one vmx.flat failure on machines with EPT A/D bits. It should be possible to implement PML on top of this with host support for A/D bits only. Patches 5-6 implement nested RDRAND and RDSEED exiting. Tested

[PATCH 5/6] KVM: VMX: add missing exit reasons

2017-03-08 Thread Paolo Bonzini
In order to simplify adding exit reasons in the future, the array of exit reason names is now also sorted by exit reason code. Signed-off-by: Paolo Bonzini --- arch/x86/include/uapi/asm/vmx.h | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-)

[resend PATCH 1/2] eventpoll.h: fix epoll event masks

2017-03-08 Thread Greg KH
[resend due to me forgetting to cc: linux-api the first time around I posted these back on Feb 23] From: Greg Kroah-Hartman When userspace tries to use these defines, it complains that it needs to be an unsigned 1 that is shifted, so libc implementations have to

Re: [musl] Re: [PATCH resent] uapi libc compat: allow non-glibc to opt out of uapi definitions

2017-03-08 Thread Carlos O'Donell
On 03/08/2017 11:25 AM, Rich Felker wrote: > On Wed, Mar 08, 2017 at 10:53:00AM -0500, Carlos O'Donell wrote: >> On 11/11/2016 07:08 AM, Felix Janda wrote: >>> Currently, libc-compat.h detects inclusion of specific glibc headers, >>> and defines corresponding _UAPI_DEF_* macros, which in turn are

[PATCH 1/2] i2c: do not leave semaphore armed when copying properties fails

2017-03-08 Thread Dmitry Torokhov
We should not leave i2c_register_board_info() early, without unlocking the __i2c_board_lock. Fixes: b0c1e95ab44f ("i2c: copy device properties when using ...") Signed-off-by: Dmitry Torokhov --- drivers/i2c/i2c-boardinfo.c | 6 -- 1 file changed, 4 insertions(+),

[PATCH 2/2] i2c: allow attaching IRQ resources to i2c_board_info

2017-03-08 Thread Dmitry Torokhov
Simple integer for interrupt number is not expressive enough, as it does not convey interrupt trigger type that should be used. Let's allow attaching array of resources to the board info and have i2c core parse first IRQ resource and set up interrupt trigger as needed. Signed-off-by: Dmitry

Re: [PATCH 5/6] PCI/ASPM: Actually configure the L1 substate settings to the device

2017-03-08 Thread James Morse
Hi! On 03/01/17 06:34, Rajat Jain wrote: > Add code to actually configure the L1 substate settigns on the > upstream and downstream device, while taking care of the rules > dictated by the PCIe spec. While testing hibernate on an arm64 juno with v4.11-rc1, I get a NULL pointer dereference from

Re: [PATCH v2 6/9] mm: set mapping error when launder_pages fails

2017-03-08 Thread Jeff Layton
On Wed, 2017-03-08 at 18:01 +, Trond Myklebust wrote: > On Wed, 2017-03-08 at 11:29 -0500, Jeff Layton wrote: > > If launder_page fails, then we hit a problem writing back some inode > > data. Ensure that we communicate that fact in a subsequent fsync > > since > > another task could still

[PATCH] [media] solo6x10: release vb2 buffers in solo_stop_streaming()

2017-03-08 Thread Anton Sviridenko
Fixes warning that appears in dmesg after closing V4L2 userspace application that plays video from the display device (first device from V4L2 device nodes provided by solo, usually /dev/video0 when no other V4L2 devices are present). Encoder device nodes are not affected. Can be reproduced by

Dell Inspiron 5558/0VNM2T hangs at resume from suspend when USB 3 is enabled

2017-03-08 Thread Diego Viola
It hangs on resume from suspend if I have USB 3.0 enabled on the BIOS, it works fine with ehci_hcd or USB 2.0. The way I reproduce the problem is with this command: $ i3lock && systemctl suspend This is what I see on the screen when it hangs:

problem with block: Move bdi_unregister() to del_gendisk() commit 165a5e22fafb127ecb5914e12e8c32a1f0d3f820

2017-03-08 Thread Arthur Marsh
On one of my pc's I have 2 PATA disks (one, WDC below is used for booting, the other SAMSUNG is not mounted), plus an IBM SCSI disk using a DPT 2044W controller with eata driver and sometimes a Verbatim Storengo USB stick. On recent 4.10.0+ kernel builds (i386), the resulting kernel would

Re: opaque types instead of union epoll_data

2017-03-08 Thread Greg KH
On Wed, Mar 08, 2017 at 12:34:07PM -0500, Carlos O'Donell wrote: > On 03/07/2017 12:59 PM, Greg KH wrote: > > On Tue, Mar 07, 2017 at 09:33:57AM -0500, Carlos O'Donell wrote: > >> I don't know anyone else who is working on this problem. Though I > >> have a vested interested in it as a glibc

Re: [PATCH v2 6/9] mm: set mapping error when launder_pages fails

2017-03-08 Thread Trond Myklebust
On Wed, 2017-03-08 at 11:29 -0500, Jeff Layton wrote: > If launder_page fails, then we hit a problem writing back some inode > data. Ensure that we communicate that fact in a subsequent fsync > since > another task could still have it open for write. > > Signed-off-by: Jeff Layton

[TRIVIAL PATCH 0/2] kprobes: a couple of trivial changes

2017-03-08 Thread Naveen N. Rao
Two trivial fixes for kprobes: - one, to document NOKPROBE_SYMBOL() in kprobe tracer doc - two, change __kprobes to NOKPROBE_SYMBOL() for kprobe_exceptions_notify() I noticed the latter while making this change for arch/powerpc. - Naveen Naveen N. Rao (2): doc: trace/kprobes: add

Re: [PATCH] mm: drop "wait" parameter from write_one_page

2017-03-08 Thread John Hubbard
On 03/08/2017 03:30 AM, Jeff Layton wrote: [...] Thanks for having a look. That blurb in the changelog refers to the kerneldoc comment over write_one_page below... No existing caller uses this on normal files, so none of them need it. Signed-off-by: Jeff Layton [...]

[PATCH 4/6] kvm: nVMX: support EPT accessed/dirty bits

2017-03-08 Thread Paolo Bonzini
Now use bit 6 of EPTP to optionally enable A/D bits for EPTP. Another thing to change is that, when EPT accessed and dirty bits are not in use, VMX treats accesses to guest paging structures as data reads. When they are in use (bit 6 of EPTP is set), they are treated as writes and the

SGX notes from KS/LPC

2017-03-08 Thread Andy Lutomirski
Hi- Here are my notes on SGX issues from KS/LPC. It seems that I never emailed it out to a public list -- oops. It may contain any number of typos or outright errors. +++ cut here +++ === Background and terminology === An enclave is an SGX enclave. Once launched, unless the enclave is

Re: [PATCH 0/6] Enable parallel page migration

2017-03-08 Thread Anshuman Khandual
On 02/17/2017 04:54 PM, Anshuman Khandual wrote: > This patch series is base on the work posted by Zi Yan back in > November 2016 (https://lkml.org/lkml/2016/11/22/457) but includes some > amount clean up and re-organization. This series depends on THP migration > optimization patch series

[PATCH v3 0/2] Enable mss rproc support on msm8996

2017-03-08 Thread Avaneesh Kumar Dwivedi
This Patch series fix the comment received on v2 patchset. Major changes w.r.t. patchset v2 is as below. 1- move majority of hypervisor call related changes into scm driver which were earlier in q6v5 rproc driver, which was not compatible to existing design.

[PATCH v3 2/2] remoteproc: qcom: Enable mss rproc support on msm8996

2017-03-08 Thread Avaneesh Kumar Dwivedi
This patch add msm8996 mss reset sequence and other minor changes for enabling mss rproc support. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 1 + drivers/remoteproc/qcom_q6v5_pil.c | 161

[PATCH v3 1/2] soc: qcom: Add support of scm call for mss rproc to share access of ddr

2017-03-08 Thread Avaneesh Kumar Dwivedi
This patch add scm call support to make hypervisor call to enable access of fw regions in ddr to mss subsystem on arm-v8 arch soc's. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/firmware/qcom_scm-64.c | 25 +++ drivers/firmware/qcom_scm.c| 93

[PATCH 1/3] Documentation: phy: Fix repetition of word 'the'

2017-03-08 Thread sayli karnik
The patch replaces 'the the' with 'the' in the documantation. Signed-off-by: sayli karnik --- Documentation/phy.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/phy.txt b/Documentation/phy.txt index 0aa994b..383cdd8 100644 ---

RE: [PATCH 3/5] fs, xfs: convert xlog_ticket.t_ref from atomic_t to refcount_t

2017-03-08 Thread Reshetova, Elena
> On Wed, Mar 8, 2017 at 7:50 AM, Christoph Hellwig wrote: > >> - ASSERT(atomic_read(>t_ref) > 0); > >> - atomic_inc(>t_ref); > >> + ASSERT(refcount_read(>t_ref) > 0); > >> + refcount_inc(>t_ref); > > > > With strict refcount semantics refcount_inc should

[PATCH 3/6] mm/migrate: Add copy_pages_mthread function

2017-03-08 Thread Anshuman Khandual
From: Zi Yan This change adds a new function copy_pages_mthread to enable multi threaded page copy which can be utilized during migration. This function splits the page copy request into multiple threads which will handle individual chunk and send them as jobs to

Re: [PATCH v7 kernel 2/5] virtio-balloon: VIRTIO_BALLOON_F_CHUNK_TRANSFER

2017-03-08 Thread Wei Wang
On 03/08/2017 12:01 PM, Michael S. Tsirkin wrote: On Fri, Mar 03, 2017 at 01:40:27PM +0800, Wei Wang wrote: From: Liang Li Add a new feature bit, VIRTIO_BALLOON_F_CHUNK_TRANSFER. Please check the implementation patch commit for details about this feature. better squash

[PATCH 1/3] mm, vmscan: fix zone balance check in prepare_kswapd_sleep

2017-03-08 Thread Mel Gorman
From: Shantanu Goel The check in prepare_kswapd_sleep needs to match the one in balance_pgdat since the latter will return as soon as any one of the zones in the classzone is above the watermark. This is specially important for higher order allocations since balance_pgdat

[PATCH 2/3] mm, vmscan: Only clear pgdat congested/dirty/writeback state when balanced

2017-03-08 Thread Mel Gorman
A pgdat tracks if recent reclaim encountered too many dirty, writeback or congested pages. The flags control whether kswapd writes pages back from reclaim context, tags pages for immediate reclaim when IO completes, whether processes block on wait_iff_congested and whether kswapd blocks when too

[PATCH 0/3] Reduce amount of time kswapd sleeps prematurely v2

2017-03-08 Thread Mel Gorman
Changelog since v1 o Rebase to 4.11-rc1 o Add small clarifying comment based on review The series is unusual in that the first patch fixes one problem and introduces of other issues that are noted in the changelog. Patch 2 makes a minor modification that is worth considering on its own but leaves

Re: [v6 PATCH 00/21] x86: Enable User-Mode Instruction Prevention

2017-03-08 Thread Ricardo Neri
On Wed, 2017-03-08 at 08:46 -0800, Andy Lutomirski wrote: > On Wed, Mar 8, 2017 at 8:29 AM, Stas Sergeev wrote: > > 08.03.2017 19:06, Andy Lutomirski пишет: > >> > >> On Wed, Mar 8, 2017 at 6:08 AM, Stas Sergeev wrote: > >>> > >>> 08.03.2017 03:32, Ricardo Neri пишет:

Re: [PATCH] drivers: Remove OF dependency in drv260x driver

2017-03-08 Thread Jingkui Wang
Sorry.. my text editor was misconfigured. Will fix and send again. On Wed, Mar 8, 2017 at 5:08 PM, Dmitry Torokhov wrote: > On Wed, Mar 08, 2017 at 04:54:02PM -0800, Jingkui Wang wrote: >> As the driver is using generic device properties, it should work >> properly

Re: [LSF/MM TOPIC][LSF/MM,ATTEND] shared TLB, hugetlb reservations

2017-03-08 Thread Mike Kravetz
On 01/10/2017 03:02 PM, Mike Kravetz wrote: > Another more concrete topic is hugetlb reservations. Michal Hocko > proposed the topic "mm patches review bandwidth", and brought up the > related subject of areas in need of attention from an architectural > POV. I suggested that hugetlb

Re: [f2fs-dev] [PATCH] f2fs: don't allow rename unencrypted file to encrypted directory

2017-03-08 Thread Chao Yu
On 2017/3/8 21:35, Kinglong Mee wrote: > On 3/8/2017 20:08, Chao Yu wrote: >> In commit d9cdc9033181 ("ext4 crypto: enforce context consistency") we >> declared that: >> >> 2) All files or directories in a directory must be protected using the >> same key as their containing directory. >> >>

Re: [PATCH -mm -v6 1/9] mm, swap: Make swap cluster size same of THP size on x86_64

2017-03-08 Thread Huang, Ying
Hi, Matthew, Matthew Wilcox writes: > On Wed, Mar 08, 2017 at 03:26:05PM +0800, Huang, Ying wrote: >> In this patch, the size of the swap cluster is changed to that of the >> THP (Transparent Huge Page) on x86_64 architecture (512). This is for >> the THP swap support on

Re: [PATCH v17 2/3] usb: USB Type-C connector class

2017-03-08 Thread Peter Chen
On Wed, Mar 08, 2017 at 06:44:47AM -0800, Guenter Roeck wrote: > On 03/07/2017 10:50 PM, Peter Chen wrote: > > > You mean type-C trigger an ACPI event, and this ACPI event can notify > related USB controller driver doing role switch? > >>> > >>>No (firmware programs the dual-role

[PATCH v2] don't forget to call pd_online_fn when activate policy

2017-03-08 Thread Zhou Chengming
When we activate policy on the request_queue, we will create policy_date for all the existing blkgs of the request_queue, so we should call pd_init_fn() and pd_online_fn() on these newly created policy_data. Signed-off-by: Zhou Chengming --- block/blk-cgroup.c | 6

[RESEND PATCH v3 1/2] dt-bindings: i2c: Add Mediatek MT2701 i2c binding

2017-03-08 Thread Jun Gao
From: Jun Gao Add MT2701 i2c binding to i2c-mt6577.txt and there is no need to modify i2c driver. Signed-off-by: Jun Gao --- .../devicetree/bindings/i2c/i2c-mt6577.txt | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff

[RESEND PATCH v3 2/2] arm: dts: Add Mediatek MT2701 i2c device node

2017-03-08 Thread Jun Gao
From: Jun Gao Add MT2701 i2c device node. Signed-off-by: Jun Gao --- arch/arm/boot/dts/mt2701-evb.dts | 42 ++ arch/arm/boot/dts/mt2701.dtsi| 42 ++ 2 files changed, 84

Re: [RFC PATCH 3/3] WIP: PCI: rockchip: add remove() support

2017-03-08 Thread Brian Norris
On Wed, Mar 08, 2017 at 03:37:48PM -0800, Brian Norris wrote: > I haven't quite figured out the right way to invert pci_remap_iospace(). > I guess no one supports this yet? Jeffy Chen pointed out to me that there's a pci_unmap_iospace() as of 4.8. Looks like that should probably do the job. I'll

Re: [Question] devm_kmalloc() for DMA ?

2017-03-08 Thread Masahiro Yamada
Hi Russell, Lars-Peter, Thanks for your expert comments. 2017-03-09 6:33 GMT+09:00 Lars-Peter Clausen : > On 03/08/2017 10:19 PM, Russell King - ARM Linux wrote: >> On Wed, Mar 08, 2017 at 09:44:17PM +0100, Lars-Peter Clausen wrote: >>> On 03/08/2017 08:59 PM, Russell King -

Re: [PATCH net-next 0/5] sunvnet: better connection management

2017-03-08 Thread Shannon Nelson
On 3/6/2017 3:15 PM, Shannon Nelson wrote: These patches remove some problems in handling of carrier state with the ldmvsw vswitch, remove an xoff misuse in sunvnet, and add stats for debug and tracking of point-to-point connections between the ldom VMs. Further testing shows a problem in one

Re: [PATCH] mm,hugetlb: compute page_size_log properly

2017-03-08 Thread Anshuman Khandual
On 03/09/2017 01:09 AM, Andi Kleen wrote: >> One example of the problems with extra layers what this patch fixes: >> mmap_pgoff() should never be using SHM_HUGE_* logic. This was >> introduced by: >> >>091d0d55b28 (shm: fix null pointer deref when userspace specifies invalid >> hugepage size)

[PATCH] powerpc: asm: convert directive .llong to .8byte

2017-03-08 Thread Tobin C. Harding
.llong is an undocumented PPC specific directive. The generic equivalent is .quad, but even better (because it's self describing) is .8byte. Convert directives .llong -> .8byte Signed-off-by: Tobin C. Harding --- Fixes: issue #33 (github) Patch is not tested. Has been built on

Re: [PATCH] pinctrl: samsung: fix segfault when using external interrupts on s3c24xx

2017-03-08 Thread Tomasz Figa
2017-03-09 1:34 GMT+09:00 Krzysztof Kozlowski : > On Mon, Mar 06, 2017 at 09:15:16AM -0400, Sergio Prado wrote: >> Hi Krzysztof, >> >> > > This is a regression from commit >> > > 8b1bd11c1f8f529057369c5b3702d13fd24e2765. >> > >> > Checkpatch should complain here about commit

[PATCH v2] platform/x86: dell-laptop: Handle return error form dell_get_intensity.

2017-03-08 Thread Arvind Yadav
Here, This patch is to handle a return error from dell_get_intensity. This change is done using Coccinelle. Signed-off-by: Arvind Yadav --- drivers/platform/x86/dell-laptop.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/platform/x86/dell-laptop.c

Re: [PATCH] net: sun: sunhme: use new api ethtool_{get|set}_link_ksettings

2017-03-08 Thread David Miller
From: Philippe Reynes Date: Sun, 5 Mar 2017 22:25:39 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > As I don't have the hardware, I'd be very pleased if > someone may test this patch. > >

RCU used on incoming CPU before rcu_cpu_starting() called

2017-03-08 Thread Paul E. McKenney
Hello! I am seeing the following splat in rcutorture testing of v4.11-rc1: [ 30.694013] = [ 30.694013] WARNING: suspicious RCU usage [ 30.694013] 4.11.0-rc1+ #1 Not tainted [ 30.694013] - [ 30.694013]

Re: [PATCH v2] net: smsc: smc91x: use new api ethtool_{get|set}_link_ksettings

2017-03-08 Thread David Miller
From: Philippe Reynes Date: Sat, 4 Mar 2017 12:42:39 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > As I don't have the hardware, I'd be very pleased if > someone may test this patch. > >

Re: [PATCH] net: smsc: smc911x: use new api ethtool_{get|set}_link_ksettings

2017-03-08 Thread David Miller
From: Philippe Reynes Date: Tue, 28 Feb 2017 23:49:38 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > As I don't have the hardware, I'd be very pleased if > someone may test this patch. > >

Re: [PATCH] net: sun: niu: use new api ethtool_{get|set}_link_ksettings

2017-03-08 Thread David Miller
From: Philippe Reynes Date: Sat, 4 Mar 2017 17:50:06 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > As I don't have the hardware, I'd be very pleased if > someone may test this patch. > >

Re: [PATCH] net: sun: cassini: use new api ethtool_{get|set}_link_ksettings

2017-03-08 Thread David Miller
From: Philippe Reynes Date: Sat, 4 Mar 2017 16:16:12 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > As I don't have the hardware, I'd be very pleased if > someone may test this patch. > >

Re: [RFC 08/11] mm: make ttu's return boolean

2017-03-08 Thread Minchan Kim
Hi John, On Tue, Mar 07, 2017 at 11:13:26PM -0800, John Hubbard wrote: > On 03/01/2017 10:39 PM, Minchan Kim wrote: > >try_to_unmap returns SWAP_SUCCESS or SWAP_FAIL so it's suitable for > >boolean return. This patch changes it. > > Hi Minchan, > > So, up until this patch, I definitely like the

Re: kexec regression since 4.9 caused by efi

2017-03-08 Thread Dave Young
Add efi/kexec list. On 03/08/17 at 12:16pm, Omar Sandoval wrote: > Hi, everyone, > > Since 4.9, kexec results in the following panic on some of our servers: > > [0.001000] general protection fault: [#1] SMP > [0.001000] Modules linked in: > [0.001000] CPU: 0 PID: 0 Comm:

RE: [PATCH 22/29] drivers, scsi: convert iscsi_task.refcount from atomic_t to refcount_t

2017-03-08 Thread Reshetova, Elena
> On Mon, Mar 06, 2017 at 04:21:09PM +0200, Elena Reshetova wrote: > > refcount_t type and corresponding API should be > > used instead of atomic_t when the variable is used as > > a reference counter. This allows to avoid accidental > > refcounter overflows that might lead to use-after-free > >

RE: [Xen-devel] [PATCH 29/29] drivers, xen: convert grant_map.users from atomic_t to refcount_t

2017-03-08 Thread Reshetova, Elena
> On 03/08/2017 08:49 AM, Reshetova, Elena wrote: > >> On 03/06/2017 09:21 AM, Elena Reshetova wrote: > >>> refcount_t type and corresponding API should be > >>> used instead of atomic_t when the variable is used as > >>> a reference counter. This allows to avoid accidental > >>> refcounter

Re: kexec regression since 4.9 caused by efi

2017-03-08 Thread Omar Sandoval
On Thu, Mar 09, 2017 at 10:21:36AM +0800, Dave Young wrote: > I have no esrt machine to test, can you share the full kernel log with > efi=debug in kernel cmdline? > > *) normal boot kernel log without the reverting > *) kexec boot log with and without the reverting Attached. [0.00]

[PATCH] drivers, scsi: convert fc_fcp_pkt.ref_cnt from atomic_t to refcount_t

2017-03-08 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by:

[PATCH 3/3] mm, vmscan: Prevent kswapd sleeping prematurely due to mismatched classzone_idx

2017-03-08 Thread Mel Gorman
kswapd is woken to reclaim a node based on a failed allocation request from any eligible zone. Once reclaiming in balance_pgdat(), it will continue reclaiming until there is an eligible zone available for the zone it was woken for. kswapd tracks what zone it was recently woken for in

[PATCH 3/3] Documentation: cpu-freq: cpu-drivers: Fix repetition of word 'to'

2017-03-08 Thread sayli karnik
The patch replaces 'to to' with 'to' in the documentation. Signed-off-by: sayli karnik --- Documentation/cpu-freq/cpu-drivers.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/cpu-freq/cpu-drivers.txt

[PATCH 2/3] Documentation: ABI: testing: sysfs-bus-pci: Fix repetition of word 'the'

2017-03-08 Thread sayli karnik
The patch replaces 'the the' with 'the' in the documentation. Signed-off-by: sayli karnik --- Documentation/ABI/testing/sysfs-bus-pci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/ABI/testing/sysfs-bus-pci

[PATCH 0/3] Fix unintentional repetition of words

2017-03-08 Thread sayli karnik
Fix typos in the form of consecutive repetition of words. sayli karnik (3): Documentation: phy: Fix repetition of word 'the' Documentation: ABI: testing: sysfs-bus-pci: Fix repetition of word 'the' Documentation: cpu-freq: cpu-drivers: Fix repetition of word 'to'

Re: [PATCH 3/6] dax: add tracepoint infrastructure, PMD tracing

2017-03-08 Thread Mike Marshall
This is a reply to a thread from back in Nov 2016... Linus> The thing is, with function tracing, you *can* get the return value Linus> and arguments. Sure, you'll probably need to write eBPF and just Linus> attach it to that fentry call point, and yes, if something is inlined Linus> you're just

Re: [RFC PATCH net] net: Work around lockdep limitation in sockets that use sockets

2017-03-08 Thread David Howells
David Miller wrote: > I guess this is fine, but I think you can use one of the two "sk_padding" > bits in struct sock instead of making the structure larger. It shouldn't make the structure larger since there's a hole in the structure: unsigned int

Re: [TRIVIAL PATCH 2/2] kprobes: Convert kprobe_exceptions_notify to use NOKPROBE_SYMBOL

2017-03-08 Thread Masami Hiramatsu
On Wed, 8 Mar 2017 22:34:15 +0530 "Naveen N. Rao" wrote: > commit fc62d0207ae0 ("kprobes: Introduce weak variant of > kprobe_exceptions_notify()") used the __kprobes annotation to exclude > kprobe_exceptions_notify from being probed. Since NOKPROBE_SYMBOL() is a

Re: [PATCH v2] selinux: check for address length in selinux_socket_bind()

2017-03-08 Thread David Miller
From: Alexander Potapenko Date: Mon, 6 Mar 2017 19:46:14 +0100 > KMSAN (KernelMemorySanitizer, a new error detection tool) reports use of > uninitialized memory in selinux_socket_bind(): ... > (the line numbers are relative to 4.8-rc6, but the bug persists upstream) > > ,

Re: [PATCH v5 04/19] net: e100: Replace PCI pool old API

2017-03-08 Thread Peter Senna Tschudin
On Wed, Mar 08, 2017 at 02:40:25PM -0800, Jeff Kirsher wrote: > On Wed, 2017-03-08 at 17:19 +0100, Romain Perier wrote: > > The PCI pool API is deprecated. This commit replaces the PCI pool old > > API by the appropriate function with the DMA pool API. > > > > Signed-off-by: Romain Perier

Re: [PATCH 2/4] ubifs: Fix unlink code wrt. double hash lookups

2017-03-08 Thread Hyunchul Lee
Richard, this patch works well. but i found some trivial mistakes. On Thu, Feb 09, 2017 at 10:28:35PM +0100, Richard Weinberger wrote: > When removing an encrypted file with a long anem and without having > the key we have to be able to locate and remove the directory entry > via a double hash.

Re: linux-4.11-rc1/drivers/gpu/drm/exynos/exynos5433_drm_decon.c:681: suspicious mask ?

2017-03-08 Thread Inki Dae
Hello David, Thanks for report. 2017년 03월 06일 19:05에 David Binderman 이(가) 쓴 글: > Hello there, > > linux-4.11-rc1/drivers/gpu/drm/exynos/exynos5433_drm_decon.c:681]: (warning) > Result of operator '|' is always true if one operand is non-zero. Did you > intend to use '&'? > Right. this is

[PATCH] mm,hugetlb: compute page_size_log properly

2017-03-08 Thread Davidlohr Bueso
The SHM_HUGE_* stuff was introduced in: 42d7395feb5 (mm: support more pagesizes for MAP_HUGETLB/SHM_HUGETLB) It unnecessarily adds another layer, specific to sysv shm, without anything special about it: the macros are identical to the MAP_HUGE_* stuff, which in turn does correctly describe

Re: [RFC PATCH] sched/wait: Introduce new, more compact wait_event*() primitives

2017-03-08 Thread Ingo Molnar
* Linus Torvalds wrote: > On Wed, Mar 8, 2017 at 12:37 AM, Ingo Molnar wrote: > > > > The idea is to allow call sites to supply the 'condition' function as > > free-form C > > code, while pushing everything else into non-macro form: there's a

[PATCH v2] net: initialize msg.msg_flags in recvfrom

2017-03-08 Thread Alexander Potapenko
KMSAN reports a use of uninitialized memory in put_cmsg() because msg.msg_flags in recvfrom haven't been initialized properly. The flag values don't affect the result on this path, but it's still a good idea to initialize them explicitly. Signed-off-by: Alexander Potapenko ---

Re: [PATCH 1/3] usb: orion-echi: Add support for the Armada 3700

2017-03-08 Thread Gregory CLEMENT
Hi Andrew, On mer., mars 08 2017, Andrew Lunn wrote: > Hi Gregory [...] Thanks for your comments I will fix the typos and the wording. >> +#define USB_SBUSCFG 0x90 >> +#define USB_SBUSCFG_BAWR0x6 >> +#define USB_SBUSCFG_BARD0x3 >>

Re: [PATCH 2/3] usb: host: Allow to build ehci orion with mvebu SoCs

2017-03-08 Thread Gregory CLEMENT
Hi Andrew, On mer., mars 08 2017, Andrew Lunn wrote: > On Wed, Mar 08, 2017 at 05:24:22PM +0100, Gregory CLEMENT wrote: >> The mvebu ARM64 SoCs no more select PLAT_ORION but some of them as the >> Armada 37xx use the EHCI orion controller. This patch allow to build >> the

Re: linux-next: build failure after merge of the rcu tree

2017-03-08 Thread Paul E. McKenney
On Wed, Mar 08, 2017 at 11:13:38AM +0100, Daniel Vetter wrote: > On Wed, Mar 08, 2017 at 12:16:45PM +1100, Stephen Rothwell wrote: > > Hi Paul, > > > > After merging the rcu tree, today's linux-next build (x86_64 allmodconfig) > > failed like this: > > > > In file included from

Re: RFC: SysRq nice-all-RT-tasks is broken

2017-03-08 Thread Steven Rostedt
[ Added Peter Update: Laurent noticed that sysrq 'n' (nice-all-RT-tasks) calls __sched_setscheduler() form interrupt context. At the start of that function, there's a BUG_ON(in_interrupt()). The reason for that was due to the rt mutex pi code calling wait_lock. Which was not irq

[PATCH v2] mm, page_alloc: Add missing check for memory holes

2017-03-08 Thread Luck, Tony
From: Tony Luck commit 13ad59df67f19788f6c22985b1a33e466eceb643 ("mm, page_alloc: avoid page_to_pfn() when merging buddies") moved the check for memory holes out of page_is_buddy() and had the callers do the check. But this wasn't done correctly in one place which caused

Re: [PATCH 2/3] usb: host: Allow to build ehci orion with mvebu SoCs

2017-03-08 Thread Andrew Lunn
On Wed, Mar 08, 2017 at 05:24:22PM +0100, Gregory CLEMENT wrote: > The mvebu ARM64 SoCs no more select PLAT_ORION but some of them as the > Armada 37xx use the EHCI orion controller. This patch allow to build > the driver when ARCH_MVEBU is selected. The mvebu ARM64 SoCs no longer selects

Re: XTS Crypto Not Found In /proc/crypto Even After Compiled for 4.10.1.

2017-03-08 Thread Krzysztof Kozlowski
On Mon, Mar 06, 2017 at 03:29:48PM -0600, Nathan Royce wrote: > OK, I just tried 4.10.0 and the output is looking the same. > > I can't say my setup is all that odd. The cryptographic use is only > with the swap partition found in my original email (seen in Herbert's > reply). You have quite

Re: [PATCH v2 3/4] ntb_hw_amd: Print kernel messages with the ntb device not the pci one

2017-03-08 Thread Jon Mason
On Tue, Jan 10, 2017 at 05:33:38PM -0700, Logan Gunthorpe wrote: > Now that macros are open it's pretty clear that these should print > using the NTB struct device not the PCI one. > > Signed-off-by: Logan Gunthorpe I believe that using the PCI dev here makes it more

Re: RFC: SysRq nice-all-RT-tasks is broken

2017-03-08 Thread Steven Rostedt
On Wed, 8 Mar 2017 16:23:35 +0100 Laurent Dufour wrote: > I got it on Power and on X86_64, but I guess it should happen in all > architectures. > Here are the steps to recreate it : > 1. Create a RT task : sudo chrt -f 50 /bin/sleep 99 > 2. On the console trigger

[PATCH v2 4/9] nilfs2: set the mapping error when calling SetPageError on writeback

2017-03-08 Thread Jeff Layton
In a later patch, we're going to want to make the fsync codepath not do a TestClearPageError call as that can override the error set in the address space. To do that though, we need to ensure that filesystems that are relying on the PG_error bit for reporting writeback errors also set an error in

Re: [v6 PATCH 00/21] x86: Enable User-Mode Instruction Prevention

2017-03-08 Thread Stas Sergeev
08.03.2017 19:46, Andy Lutomirski пишет: No no, since I meant prot mode, this is not what I need. I would never need to disable UMIP as to allow the prot mode apps to do SLDT. Instead it would be good to have an ability to provide a replacement for the dummy emulation that is currently being

Re: [PATCH] irq: generic-chip: provide irq_free_generic_chip()

2017-03-08 Thread Bartosz Golaszewski
2017-03-08 18:00 GMT+01:00 Bartosz Golaszewski : > Some users of irq_alloc_generic_chip() are modules which can be > removed (e.g. gpio-ml-ioh) but have no means of freeing the allocated > generic chip. Provide a function for that. > > Signed-off-by: Bartosz Golaszewski

Re: [PATCH v3 0/8] try to reduce fragmenting fallbacks

2017-03-08 Thread Johannes Weiner
On Tue, Mar 07, 2017 at 02:15:37PM +0100, Vlastimil Babka wrote: > Last year, Johannes Weiner has reported a regression in page mobility > grouping [1] and while the exact cause was not found, I've come up with some > ways to improve it by reducing the number of allocations falling back to >

[PATCH v2 5/9] dax: set error in mapping when writeback fails

2017-03-08 Thread Jeff Layton
In order to get proper error codes from fsync, we must set an error in the mapping range when writeback fails. Signed-off-by: Jeff Layton --- fs/dax.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/dax.c b/fs/dax.c index de622d4282a6..a601137286ed

Re: opaque types instead of union epoll_data

2017-03-08 Thread Carlos O'Donell
On 03/07/2017 12:59 PM, Greg KH wrote: > On Tue, Mar 07, 2017 at 09:33:57AM -0500, Carlos O'Donell wrote: >> I don't know anyone else who is working on this problem. Though I >> have a vested interested in it as a glibc maintainer, since it would >> be nice to avoid duplicate headers where

<    1   2   3   4   5   6   7   8   9   10   >