Re: Code of Conduct: Let's revamp it.

2018-09-25 Thread Eric S. Raymond
Theodore Y. Ts'o : > There have been those who have characterized the GPL as being more > than just a license, but also a political statement. And yet, many > projects, include Linus, use the GPL without necessarily subscribing > to all of Richard Stallman's positions, political or otherwise. The

Re: POSIX violation by writeback error

2018-09-25 Thread Theodore Y. Ts'o
On Tue, Sep 25, 2018 at 07:35:11PM +0200, Adam Borowski wrote: > Isn't this what the snippet for O_TMPFILE in "man 2 open" does?: > > char path[PATH_MAX]; > fd = open("/path/to/dir", O_TMPFILE | O_RDWR, > S_IRUSR | S_IWU

Editing for 5

2018-09-25 Thread Heather
Want editing for your photos? We can help you for this. We can do cutting out and retouching for your ecommerce photos, jewelry photos retouching, portrait photos or wedding photos. Turnaround time is fast Send us one photo, we wil do testing for you. Thanks, Heather

Re: [PATCH v14 09/19] x86/mm: x86/sgx: Signal SEGV_SGXERR for #PFs w/ PF_SGX

2018-09-25 Thread Andy Lutomirski
Minor nit: On Tue, Sep 25, 2018 at 6:12 AM Jarkko Sakkinen wrote: > > From: Sean Christopherson > > by (c) as the kernel doesn't really have any other reasonable option, > e.g. we could kill the task or panic, but neither is warranted. Not killing the task is quite nice, but... > + /* >

Re: [PATCH 06/21] platform: goldfish: pipe: Add DMA support to goldfish pipe

2018-09-25 Thread Roman Kiryanov
Hi, thank you for looking into my patches. > A whole new api needs some others to review it becides just me. Please > get some more signed off by on this. Yes, I will find more people. > If you have a spdx line, you don't need the gpl boiler-plate text > either. Agree. > But, this is a uapi f

[PATCH v11 00/26] guest dedicated crypto adapters

2018-09-25 Thread Tony Krowiak
From: Tony Krowiak Notes: = Patches 1-2 (by David) are posted with this series because they are not currently available in our master branch, upon which this series is based, and because this series is dependent upon them. This patch series works with the v8 QEMU patches. Abstract: =

[PATCH v11 01/26] KVM: s390: vsie: simulate VCPU SIE entry/exit

2018-09-25 Thread Tony Krowiak
From: David Hildenbrand VCPU requests and VCPU blocking right now don't take care of the vSIE (as it was not necessary until now). But we want to have synchronous VCPU requests that will also be handled before running the vSIE again. So let's simulate a SIE entry of the VCPU when calling the sie

[PATCH v11 02/26] KVM: s390: introduce and use KVM_REQ_VSIE_RESTART

2018-09-25 Thread Tony Krowiak
From: David Hildenbrand When we change the crycb (or execution controls), we also have to make sure that the vSIE shadow datastructures properly consider the changed values before rerunning the vSIE. We can achieve that by simply using a VCPU request now. This has to be a synchronous request (==

[PATCH v11 05/26] s390: vfio-ap: register matrix device with VFIO mdev framework

2018-09-25 Thread Tony Krowiak
From: Tony Krowiak Registers the matrix device created by the VFIO AP device driver with the VFIO mediated device framework. Registering the matrix device will create the sysfs structures needed to create mediated matrix devices each of which will be used to configure the AP matrix for a guest an

[PATCH v11 03/26] KVM: s390: refactor crypto initialization

2018-09-25 Thread Tony Krowiak
From: Tony Krowiak This patch refactors the code that initializes and sets up the crypto configuration for a guest. The following changes are implemented via this patch: 1. Introduces a flag indicating AP instructions executed on the guest shall be interpreted by the firmware. This flag is

[PATCH v11 06/26] s390: vfio-ap: sysfs interfaces to configure adapters

2018-09-25 Thread Tony Krowiak
From: Tony Krowiak Introduces two new sysfs attributes for the VFIO mediated matrix device for assigning AP adapters to and unassigning AP adapters from a mediated matrix device. The IDs of the AP adapters assigned to the mediated matrix device will be stored in an AP mask (APM). The bits in the

[PATCH v11 11/26] s390: vfio-ap: implement mediated device open callback

2018-09-25 Thread Tony Krowiak
From: Tony Krowiak Implements the open callback on the mediated matrix device. The function registers a group notifier to receive notification of the VFIO_GROUP_NOTIFY_SET_KVM event. When notified, the vfio_ap device driver will get access to the guest's kvm structure. The open callback must ensu

[PATCH v11 10/26] KVM: s390: interfaces to clear CRYCB masks

2018-09-25 Thread Tony Krowiak
From: Tony Krowiak Introduces a new KVM function to clear the APCB0 and APCB1 in the guest's CRYCB. This effectively clears all bits of the APM, AQM and ADM masks configured for the guest. The VCPUs are taken out of SIE to ensure the VCPUs do not get out of sync. Signed-off-by: Tony Krowiak Ack

[PATCH v11 12/26] s390: vfio-ap: implement VFIO_DEVICE_GET_INFO ioctl

2018-09-25 Thread Tony Krowiak
From: Tony Krowiak Adds support for the VFIO_DEVICE_GET_INFO ioctl to the VFIO AP Matrix device driver. This is a minimal implementation, as vfio-ap does not use I/O regions. Signed-off-by: Tony Krowiak Reviewed-by: Pierre Morel Reviewed-by: Cornelia Huck Acked-by: Halil Pasic Tested-by: Mic

[PATCH v11 08/26] s390: vfio-ap: sysfs interfaces to configure control domains

2018-09-25 Thread Tony Krowiak
From: Tony Krowiak Provides the sysfs interfaces for: 1. Assigning AP control domains to the mediated matrix device 2. Unassigning AP control domains from a mediated matrix device 3. Displaying the control domains assigned to a mediated matrix device The IDs of the AP control domains assig

[PATCH v11 07/26] s390: vfio-ap: sysfs interfaces to configure domains

2018-09-25 Thread Tony Krowiak
From: Tony Krowiak Introduces two new sysfs attributes for the VFIO mediated matrix device for assigning AP domains to and unassigning AP domains from a mediated matrix device. The IDs of the AP domains assigned to the mediated matrix device will be stored in an AP queue mask (AQM). The bits in

[PATCH v11 13/26] s390: vfio-ap: zeroize the AP queues

2018-09-25 Thread Tony Krowiak
From: Tony Krowiak Let's call PAPQ(ZAPQ) to zeroize a queue for each queue configured for a mediated matrix device when it is released. Zeroizing a queue resets the queue, clears all pending messages for the queue entries and disables adapter interruptions associated with the queue. Signed-off-

[PATCH v11 09/26] s390: vfio-ap: sysfs interface to view matrix mdev matrix

2018-09-25 Thread Tony Krowiak
From: Tony Krowiak Provides a sysfs interface to view the AP matrix configured for the mediated matrix device. The relevant sysfs structures are: /sys/devices/vfio_ap/matrix/ .. [mdev_supported_types] . [vfio_ap-passthrough] [devices] ...[$uuid]

[PATCH v11 04/26] s390: vfio-ap: base implementation of VFIO AP device driver

2018-09-25 Thread Tony Krowiak
From: Tony Krowiak Introduces a new AP device driver. This device driver is built on the VFIO mediated device framework. The framework provides sysfs interfaces that facilitate passthrough access by guests to devices installed on the linux host. The VFIO AP device driver will serve two purposes:

[PATCH v11 14/26] s390: vfio-ap: implement VFIO_DEVICE_RESET ioctl

2018-09-25 Thread Tony Krowiak
From: Tony Krowiak Implements the VFIO_DEVICE_RESET ioctl. This ioctl zeroizes all of the AP queues assigned to the guest. Signed-off-by: Tony Krowiak Reviewed-by: Halil Pasic Reviewed-by: Pierre Morel Reviewed-by: Cornelia Huck Tested-by: Michael Mueller Tested-by: Farhan Ali Tested-by: P

[PATCH v11 15/26] KVM: s390: Clear Crypto Control Block when using vSIE

2018-09-25 Thread Tony Krowiak
From: Pierre Morel When we clear the Crypto Control Block (CRYCB) used by a guest level 2, the vSIE shadow CRYCB for guest level 3 must be updated before the guest uses it. We achieve this by using the KVM_REQ_VSIE_RESTART synchronous request for each vCPU belonging to the guest to force the rel

[PATCH v11 16/26] KVM: s390: vsie: Do the CRYCB validation first

2018-09-25 Thread Tony Krowiak
From: Pierre Morel We need to handle the validity checks for the crycb, no matter what the settings for the keywrappings are. So lets move the keywrapping checks after we have done the validy checks. Signed-off-by: Pierre Morel Signed-off-by: Tony Krowiak Reviewed-by: Janosch Frank Reviewed-b

[PATCH v11 18/26] KVM: s390: vsie: Allow CRYCB FORMAT-2

2018-09-25 Thread Tony Krowiak
From: Pierre Morel When the guest and the host both use CRYCB FORMAT-2, we copy the guest's FORMAT-1 APCB to a FORMAT-1 shadow APCB. This patch also cleans up the shadow_crycb() function. Signed-off-by: Pierre Morel Signed-off-by: Tony Krowiak --- arch/s390/kvm/vsie.c | 114 +

[PATCH v11 23/26] KVM: s390: vsie: allow guest FORMAT-0 CRYCB on host FORMAT-2

2018-09-25 Thread Tony Krowiak
From: Pierre Morel When the guest schedules a SIE with a FORMAT-0 CRYCB, we are able to schedule it in the host with a FORMAT-2 CRYCB if the host uses FORMAT-2 Signed-off-by: Pierre Morel Signed-off-by: Tony Krowiak --- arch/s390/kvm/vsie.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletio

[PATCH v11 24/26] KVM: s390: device attrs to enable/disable AP interpretation

2018-09-25 Thread Tony Krowiak
From: Tony Krowiak Introduces two new VM crypto device attributes (KVM_S390_VM_CRYPTO) to enable or disable AP instruction interpretation from userspace via the KVM_SET_DEVICE_ATTR ioctl: * The KVM_S390_VM_CRYPTO_ENABLE_APIE attribute enables hardware interpretation of AP instructions executed

[PATCH v11 21/26] KVM: s390: vsie: allow guest FORMAT-0 CRYCB on host FORMAT-1

2018-09-25 Thread Tony Krowiak
From: Pierre Morel When the guest schedules a SIE with a FORMAT-0 CRYCB, we are able to schedule it in the host with a FORMAT-1 CRYCB if the host uses FORMAT-1 or FORMAT-0. Signed-off-by: Pierre Morel Signed-off-by: Tony Krowiak --- arch/s390/kvm/vsie.c | 14 ++ 1 file changed, 10

[PATCH v11 22/26] KVM: s390: vsie: allow guest FORMAT-1 CRYCB on host FORMAT-2

2018-09-25 Thread Tony Krowiak
From: Pierre Morel When the guest schedules a SIE with a CRYCB FORMAT-1 CRYCB, we are able to schedule it in the host with a FORMAT-2 CRYCB if the host uses FORMAT-2. Signed-off-by: Pierre Morel Signed-off-by: Tony Krowiak --- arch/s390/kvm/vsie.c | 33 - 1 fil

[PATCH v11 25/26] KVM: s390: CPU model support for AP virtualization

2018-09-25 Thread Tony Krowiak
From: Tony Krowiak Introduces two new CPU model facilities to support AP virtualization for KVM guests: 1. AP Query Configuration Information (QCI) facility is installed. This is indicated by setting facilities bit 12 for the guest. The kernel will not enable this facility for the gues

[PATCH v11 19/26] KVM: s390: vsie: allow CRYCB FORMAT-1

2018-09-25 Thread Tony Krowiak
From: Pierre Morel When the host and guest both use a FORMAT-1 CRYCB, we copy the guest's FORMAT-0 APCB to a shadow CRYCB for use by vSIE. Signed-off-by: Pierre Morel Signed-off-by: Tony Krowiak --- arch/s390/kvm/vsie.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/

[PATCH v11 20/26] KVM: s390: vsie: allow CRYCB FORMAT-0

2018-09-25 Thread Tony Krowiak
From: Pierre Morel When the host and the guest both use a FORMAT-0 CRYCB, we copy the guest's FORMAT-0 APCB to a shadow CRYCB for use by vSIE. Signed-off-by: Pierre Morel Signed-off-by: Tony Krowiak --- arch/s390/kvm/vsie.c | 20 +--- 1 file changed, 17 insertions(+), 3 deleti

[PATCH v11 17/26] KVM: s390: vsie: Make use of CRYCB FORMAT2 clear

2018-09-25 Thread Tony Krowiak
From: Pierre Morel The comment preceding the shadow_crycb function is misleading, we effectively accept FORMAT2 CRYCB in the guest. When using FORMAT2 in the host we do not need to or with FORMAT1. Signed-off-by: Pierre Morel Signed-off-by: Tony Krowiak Reviewed-by: Janosch Frank Reviewed-by

[PATCH v11 26/26] s390: doc: detailed specifications for AP virtualization

2018-09-25 Thread Tony Krowiak
From: Tony Krowiak This patch provides documentation describing the AP architecture and design concepts behind the virtualization of AP devices. It also includes an example of how to configure AP devices for exclusive use of KVM guests. Signed-off-by: Tony Krowiak Reviewed-by: Halil Pasic ---

Re: [PATCH] remoteproc: qcom: pas: Add QCS404 remoteprocs

2018-09-25 Thread Bjorn Andersson
On Tue 25 Sep 03:18 PDT 2018, Sibi Sankar wrote: > On 2018-09-20 22:52, Bjorn Andersson wrote: > > diff --git a/drivers/remoteproc/qcom_adsp_pil.c > > b/drivers/remoteproc/qcom_adsp_pil.c > > index da2254ea1135..fcbb816a9698 100644 > > --- a/drivers/remoteproc/qcom_adsp_pil.c > > +++ b/drivers/remo

[RFC PATCH v2 0/1] Pipe busy wait

2018-09-25 Thread subhra mazumdar
This patch introduces busy waiting for pipes similar to network sockets. When pipe is full or empty a thread busy waits for some microseconds before sleeping. This avoids the sleep and wakeup overhead and improves performance in case wakeup happens very fast. It uses a new field in pipe_inode_info

[RFC PATCH v2 1/1] pipe: busy wait for pipe

2018-09-25 Thread subhra mazumdar
Introduce pipe_ll_usec field for pipes that indicates the amount of micro seconds a thread should spin if pipe is empty or full before sleeping. This is similar to network sockets. Workloads like hackbench in pipe mode benefits significantly from this by avoiding the sleep and wakeup overhead. Othe

Re: different capability from different namespace required for prctl_set_mm_exe_file

2018-09-25 Thread TongZhang
I can see there are two problems, First: In kernel/sys.c:2117 capable(CAP_SYS_RESOURCE), seems that ns_capable should be used to check capability against user namespace, instead of init_user_ns. Because a process in a user namespace may call prctl system call and this should be checked agains

general protection fault in rb_erase

2018-09-25 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:846e8dd47c26 Merge tag 'scsi-fixes' of git://git.kernel.or.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15c874a140 kernel config: https://syzkaller.appspot.com/x/.config?x=dfb440e26f0a6f6f da

possible deadlock in path_openat

2018-09-25 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:2dd68cc7fd8c Merge gitolite.kernel.org:/pub/scm/linux/kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=111a60e640 kernel config: https://syzkaller.appspot.com/x/.config?x=22a62640793a83c9 da

Re: Code of Conduct: Let's revamp it.

2018-09-25 Thread Michael Woods
On 22/09/18 00:15, Theodore Y. Ts'o wrote: > People can decide who they want to respond to, but I'm going to gently > suggest that before people think about responding to a particular > e-mail, that they do a quick check using "git log --author=xy...@example.com" > then decide how much someone

Re: [PATCH v3.1 1/2] device property: Add device_get_bd_address() and fwnode_get_bd_address()

2018-09-25 Thread Matthias Kaehlcke
Hi Sakari, thanks for the reviews On Wed, Sep 26, 2018 at 12:33:22AM +0300, Sakari Ailus wrote: > Hi Matthias, > > On Tue, Sep 25, 2018 at 12:10:13PM -0700, Matthias Kaehlcke wrote: > > Provide an API for Bluetooth drivers to retrieve the Bluetooth Device > > address (BD_ADDR) for a device. If t

ASAP

2018-09-25 Thread Margaret Kwan Wing Han
I have a deal for you reply for more details. Kind Regards, Ms Margaret KWAN Wing Han

Re: [PATCH 4.14 000/173] 4.14.72-stable review

2018-09-25 Thread Dan Rue
On Tue, Sep 25, 2018 at 11:07:33AM +0200, Greg Kroah-Hartman wrote: > On Mon, Sep 24, 2018 at 01:50:34PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.72 release. > > There are 173 patches in this series, all will be posted as a response > > to this

Re: [PATCH v3 0/2] staging: bcm2835-camera: Clean up completed TODO

2018-09-25 Thread Scott Branden
Looks good now. On 18-09-25 01:33 AM, Aymen Qader wrote: Update the bcm2835-camera driver to remove a TODO and an unused header include. These were made unnecessary in commit 7e8dbea41032 ("staging: bcm2835-camera: Remove explicit cache flush operations") Aymen Qader (2): staging: bcm2835-

Re: [PATCH] iio: magnetometer: Add support for PNI RM3100 9-axis magnetometer

2018-09-25 Thread Song Qiang
On Mon, Sep 24, 2018 at 03:23:52PM -0700, Rob Herring wrote: > On Thu, Sep 20, 2018 at 09:13:40PM +0800, Song Qiang wrote: > > PNI RM3100 magnetometer is a high resolution, large signal immunity > > magnetometer, composed of 3 single sensors and a processing chip. > > PNI is currently not in the ve

Re: [PATCH -next] nfsd: remove set but not used variable 'dirp'

2018-09-25 Thread J. Bruce Fields
Thanks, applying for 4.20.--b. On Tue, Sep 25, 2018 at 11:22:53AM +, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > fs/nfsd/vfs.c: In function 'nfsd_create': > fs/nfsd/vfs.c:1279:16: warning: > variable 'dirp' set but not used [-Wunused-but-set-variable] > > Signed-o

Re: Code of Conduct: Let's revamp it.

2018-09-25 Thread Bernd Petrovitsch
On 25/09/2018 19:14, \0xDynamite wrote: [...] >>> So, is code a *published* item? Most of the public can't read it. >> >> I cannot read (or understand) neither Russian nor Chinese nor almost any >> natural (let alone dead) languages of the world. I'm pretty sure that >> I'm not the only one;-) >>

Re: Leaking path for set_task_comm

2018-09-25 Thread TongZhang
Yes, this is exactly what I am saying. A process can change its own name using prctl or /proc/self/comm. prctl is protected by security_task_prctl, whereas /proc/self/comm is not protected by this LSM hook. A system admin may expect to use security_task_prctl to block all attempt to change proce

[PATCH 1/2 -mm] mm: mremap: dwongrade mmap_sem to read when shrinking

2018-09-25 Thread Yang Shi
Other than munmap, mremap might be used to shrink memory mapping too. Use __do_munmap() to shrink mapping with downgrading mmap_sem to read. MREMAP_FIXED and MREMAP_MAYMOVE are more complicated to adopt this optimization since they need manipulate vmas after do_munmap(), downgrading mmap_sem may c

[PATCH 2/2 -mm] mm: brk: dwongrade mmap_sem to read when shrinking

2018-09-25 Thread Yang Shi
brk might be used to shinrk memory mapping too. Use __do_munmap() to shrink mapping with downgrading mmap_sem to read. Cc: Michal Hocko Cc: Kirill A. Shutemov Cc: Matthew Wilcox Cc: Laurent Dufour Cc: Vlastimil Babka Cc: Andrew Morton Signed-off-by: Yang Shi --- mm/mmap.c | 35

Naming confusion and code comments for security_kernel_(post_)read_file

2018-09-25 Thread TongZhang
When we were doing code review, we found and feel that the current name and description of security_kernel_read_file and security_kernel_post_read_file, and corresponding document/code comment in include/linux/lsm_hooks.h is confusing and kind of misleading as we discovered that security_kernel_

Leaking Path in XFS's ioctl interface(missing LSM check)

2018-09-25 Thread TongZhang
Hi, I'm bringing up this issue again to let of LSM developers know the situation, and would like to know your thoughts. Several weeks ago I sent an email to the security list to discuss the issue where XFS's ioctl interface can do things like vfs_readlink without asking LSM's permission, which w

Re: [patch v2] mm, thp: always specify ineligible vmas as nh in smaps

2018-09-25 Thread David Rientjes
On Tue, 25 Sep 2018, Andrew Morton wrote: > > > > It is also used in > > > > automated testing to ensure that vmas get disabled for thp > > > > appropriately > > > > and we used "nh" since that is how PR_SET_THP_DISABLE previously > > > > enforced > > > > this, and those tests now break. > >

[Patch v2 4/4] x86/speculation: Add prctl to control indirect branch speculation per process

2018-09-25 Thread Tim Chen
To migitgate possible app to app attack from branch target buffer poisoning, a new prctl is provided to control branch speculation for applications in user app. The following interfaces are provided: prctl(PR_SET_SPECULATION_CTRL, PR_INDIR_BRANCH, PR_SPEC_DISABLE, 0, 0); - Disable branch target s

[Patch v2 1/4] x86/speculation: Option to select app to app mitigation for spectre_v2

2018-09-25 Thread Tim Chen
Jiri Kosina's patch makes IBPB and STIBP available for general spectre v2 app to app mitigation. IBPB will be issued for switching to an app that's not ptraceable by the previous app and STIBP will be always turned on. However, app to app exploit is in general difficult due to address space layou

[Patch v2 0/4] Provide options to enable spectre_v2 userspace-userspace protection

2018-09-25 Thread Tim Chen
I have merged Tom's changes to extend the patchset for AMD cpus, and also added a prctl option to control per process indirect branch speculation per Peter's comments. Tim Changes: v2: 1. Extend per process STIBP to AMD cpus 2. Add prctl option to control per process indirect branch speculation 3

Re: [PATCH v3] f2fs: submit cached bio to avoid endless PageWriteback

2018-09-25 Thread Chao Yu
On 2018/9/26 8:20, Jaegeuk Kim wrote: > On 09/21, Chao Yu wrote: >> On 2018/9/18 10:14, Chao Yu wrote: >>> On 2018/9/18 10:02, Jaegeuk Kim wrote: On 09/18, Chao Yu wrote: > On 2018/9/18 9:37, Jaegeuk Kim wrote: >> On 09/18, Chao Yu wrote: >>> On 2018/9/18 9:04, Jaegeuk Kim wrote: >

[Patch v2 2/4] x86/speculation: Provide application property based STIBP protection

2018-09-25 Thread Tim Chen
This patch provides an application property based spectre_v2 protection with STIBP against attack from another app from a sibling hyper-thread. For security sensitive non-dumpable app, STIBP will be turned on before switching to it for Intel processors vulnerable to spectre_v2. Signed-off-by: Tim

[Patch v2 3/4] x86/speculation: Extend per process STIBP to AMD cpus.

2018-09-25 Thread Tim Chen
From: Thomas Lendacky We extend the app to app spectre v2 mitigation using STIBP to the AMD cpus. We need to take care of special cases for AMD cpu's update of SPEC_CTRL MSR to avoid double writing of MSRs from update to SSBD and STIBP. Originally-by: Thomas Lendacky Signed-off-by: Tim Chen --

Re: Leaking Path in XFS's ioctl interface(missing LSM check)

2018-09-25 Thread Dave Chinner
On Tue, Sep 25, 2018 at 08:51:50PM -0400, TongZhang wrote: > Hi, > > I'm bringing up this issue again to let of LSM developers know the situation, > and would like to know your thoughts. > Several weeks ago I sent an email to the security list to discuss the issue > where > XFS's ioctl interface

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

2018-09-25 Thread Song Qiang
On Tue, Sep 25, 2018 at 02:30:54PM +0100, Jonathan Cameron wrote: > On Tue, 25 Sep 2018 11:17:24 +0800 > Song Qiang wrote: > > > PNI RM3100 is a high resolution, large signal immunity magnetometer, > > composed of 3 single sensors and a processing chip with MagI2C Interface. > > > > Following fu

Re: [Resend PATCH 5/5] arm: dts: mt7623: add display subsystem related device nodes

2018-09-25 Thread CK Hu
Hi, Ryder: On Wed, 2018-09-05 at 22:09 +0800, Ryder Lee wrote: > Add display subsystem related device nodes for MT7623. > > Cc: CK Hu > Signed-off-by: chunhui dai > Signed-off-by: Bibby Hsieh > Signed-off-by: Ryder Lee > --- > I forgot to sort nodes in my previous mail. Sorry for the inconven

Re: [PATCH] media: card_utils: remove duplicated include file

2018-09-25 Thread zhong jiang
On 2018/9/26 2:20, Greg KH wrote: > On Thu, Sep 20, 2018 at 01:04:02PM +0800, zhong jiang wrote: >> delay.h and dma-mapping.h have duplicated include. hence just remove >> redundant file. >> >> Signed-off-by: zhong jiang >> --- >> drivers/misc/genwqe/card_utils.c | 2 -- >> 1 file changed, 2 dele

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

2018-09-25 Thread Song Qiang
On Tue, Sep 25, 2018 at 10:36:54PM +0800, Phil Reid wrote: > On 25/09/2018 9:30 PM, Jonathan Cameron wrote: > > > +static irqreturn_t rm3100_trigger_handler(int irq, void *p) > > > +{ > > > + struct iio_poll_func *pf = p; > > > + struct iio_dev *indio_dev = pf->indio_dev; > > > + struct rm3100_data

[PATCH 0/7] Remove errors building drivers/DRIVERNAME

2018-09-25 Thread Leonardo Brás
This Patchset changes some driver's Makefile to allow them building using the command 'make drivers/DRIVERNAME', if compatible. The changed drivers would return error if the above command was run on them, after an x86 allyesconfig. The main reason of this patchset is to allow building lists of d

[PATCH 1/7] drivers: dio: Avoids building driver if CONFIG_DIO is disabled

2018-09-25 Thread Leonardo Brás
Avoids building driver if 'make drivers/dio/' is called and CONFIG_DIO is disabled. Signed-off-by: Leonardo Brás --- drivers/dio/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dio/Makefile b/drivers/dio/Makefile index ae92d17083f2..f5cffe232448 100644 --- a/

[PATCH resend] phy: renesas: convert to SPDX identifiers

2018-09-25 Thread Kuninori Morimoto
From: Kuninori Morimoto This patch updates license to use SPDX-License-Identifier instead of verbose license text. Signed-off-by: Kuninori Morimoto Reviewed-by: Simon Horman --- Kishon 2weeks past, resend patch drivers/phy/renesas/Kconfig | 1 + drivers/phy/renesas/Makefile | 1 + 2 file

[PATCH 2/7] drivers: nubus: Avoids building driver if CONFIG_NUBUS is disabled

2018-09-25 Thread Leonardo Brás
Avoids building driver if 'make drivers/nubus/' is called and CONFIG_NUBUS is disabled. Avoids building proc.o if CONFIG_PROC_FS is enabled but CONFIG_NUBUS is disabled. Signed-off-by: Leonardo Brás --- drivers/nubus/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --gi

[PATCH 3/7] drivers: parisc: Avoids building driver if CONFIG_PARISC is disabled

2018-09-25 Thread Leonardo Brás
Avoids building driver if 'make drivers/parisc/' is called and CONFIG_PARISC is disabled. Signed-off-by: Leonardo Brás --- drivers/parisc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/parisc/Makefile b/drivers/parisc/Makefile index 3cd5e6cb8478..80049d763aa

[PATCH 4/7] drivers: zorro: Avoids building proc.o if CONFIG_ZORRO is disabled

2018-09-25 Thread Leonardo Brás
Avoids building proc.o if 'make drivers/zorro/' is called and CONFIG_ZORRO is disabled, even if CONFIG_PROC_FS is enabled. Signed-off-by: Leonardo Brás --- drivers/zorro/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/zorro/Makefile b/drivers/zorro/Makefile i

[PATCH 5/7] drivers: s390: Avoids building drivers if ARCH is not s390.

2018-09-25 Thread Leonardo Brás
Avoids building s390 drivers if 'make drivers/s390/' is called but ARCH is not s390. Signed-off-by: Leonardo Brás --- drivers/s390/Makefile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/s390/Makefile b/drivers/s390/Makefile index a863b0462b43..0575f02dba45 1

[PATCH 6/7] drivers: oprofile: Avoids building driver from direct make command

2018-09-25 Thread Leonardo Brás
Creates new Makefile to avoid building driver if 'make drivers/oprofile/' is called directly. This driver is usually built from arch/$ARCH and seems to have no meaning building alone. Signed-off-by: Leonardo Brás --- drivers/oprofile/Makefile | 1 + 1 file changed, 1 insertion(+) create mode 1

[PATCH 7/7] drivers: hwtracing: Adds Makefile to enable building from directory.

2018-09-25 Thread Leonardo Brás
Adds Makefile to enable building the driver using 'make drivers/hwtracing/'. Changes drivers/Makefile to call the new Makefile directly. It enables user building this driver without building the whole drivers/ subtree. Signed-off-by: Leonardo Brás --- drivers/Makefile | 4 +--- drivers

Re: [PATCH v2 2/2] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

2018-09-25 Thread kbuild test robot
Hi Yi, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/x86/core] [also build test ERROR on v4.19-rc5 next-20180925] [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

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

2018-09-25 Thread Song Qiang
On Tue, Sep 25, 2018 at 11:20:18PM +0530, Himanshu Jha wrote: > On Tue, Sep 25, 2018 at 11:17:24AM +0800, Song Qiang wrote: > > PNI RM3100 is a high resolution, large signal immunity magnetometer, > > composed of 3 single sensors and a processing chip with MagI2C Interface. > > > > Following funct

Re: [PATCH v2 07/11] arm: dts: imx7: Update coresight binding for hardware ports

2018-09-25 Thread Shawn Guo
On Wed, Sep 12, 2018 at 02:53:48PM +0100, Suzuki K Poulose wrote: > Switch to the updated coresight bindings. > > Cc: Shawn Guo > Cc: Sascha Hauer > Cc: Pengutronix Kernel Team > Cc: Fabio Estevam > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose Applied, thanks.

linux-next: manual merge of the vfio tree with the vfs tree

2018-09-25 Thread Stephen Rothwell
Hi Alex, Today's linux-next merge of the vfio tree got a conflict in: drivers/vfio/Kconfig between commit: f57d445eb317 ("Make anon_inodes unconditional") from the vfs tree and commit: cf3f98c7f466 ("drivers/vfio: Allow type-1 IOMMU instantiation with all ARM/ARM64 IOMMUs") from the v

Re: [PATCH v2] staging: mt7621-mmc: Fix single statement macros in sd.c

2018-09-25 Thread NeilBrown
On Tue, Sep 25 2018, Joe Perches wrote: > On Tue, 2018-09-25 at 20:49 +0200, Greg Kroah-Hartman wrote: >> On Sun, Sep 23, 2018 at 06:31:32AM -0700, Joe Perches wrote: >> > On Sun, 2018-09-23 at 15:08 +0530, Nishad Kamdar wrote: >> > > This patch fixes a few single statement macros in sd.c. >> > >

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

2018-09-25 Thread Phil Reid
On 26/09/2018 9:49 AM, Song Qiang wrote: On Tue, Sep 25, 2018 at 10:36:54PM +0800, Phil Reid wrote: On 25/09/2018 9:30 PM, Jonathan Cameron wrote: +static irqreturn_t rm3100_trigger_handler(int irq, void *p) +{ + struct iio_poll_func *pf = p; + struct iio_dev *indio_dev = pf->indio_

Re: [Resend PATCH 5/5] arm: dts: mt7623: add display subsystem related device nodes

2018-09-25 Thread Ryder Lee
On Wed, 2018-09-26 at 09:37 +0800, CK Hu wrote: > Hi, Ryder: > > On Wed, 2018-09-05 at 22:09 +0800, Ryder Lee wrote: > > Add display subsystem related device nodes for MT7623. > > > > Cc: CK Hu > > Signed-off-by: chunhui dai > > Signed-off-by: Bibby Hsieh > > Signed-off-by: Ryder Lee > > ---

Re: [PATCH 3/5] lib: Add umoddi3 and udivmoddi4 of GCC library routines

2018-09-25 Thread Zong Li
Christoph Hellwig 於 2018年9月25日 週二 下午11:25寫道: > > On Tue, Sep 25, 2018 at 10:19:55AM +0800, Zong Li wrote: > > The RV32 need the umoddi3 to do modulo when the operands are long long > > type, like other libraries implementation such as ucmpdi2, lshrdi3 and > > so on. I encounter the undefined refer

Re: [PATCH] of: unittest: Disable interrupt node tests for old world MAC systems

2018-09-25 Thread Frank Rowand
Hi Guenter, Moving in the right direction, but some comments below. On 09/25/18 10:32, Guenter Roeck wrote: > On systems with OF_IMAP_OLDWORLD_MAC set in of_irq_workarounds, the > devicetree interrupt parsing code is different, causing unit tests of > devicetree interrupt nodes to fail. Due to a

Re: [Resend PATCH 5/5] arm: dts: mt7623: add display subsystem related device nodes

2018-09-25 Thread Ryder Lee
On Tue, 2018-09-25 at 17:48 +0200, Matthias Brugger wrote: > > On 05/09/2018 16:09, Ryder Lee wrote: > > Add display subsystem related device nodes for MT7623. > > > > Cc: CK Hu > > Signed-off-by: chunhui dai > > Signed-off-by: Bibby Hsieh > > Signed-off-by: Ryder Lee > > --- > > I forgot to

Re: [PATCH 3/4] MIPS: BMIPS: Remove special handling of CONFIG_MIPS_ELF_APPENDED_DTB=y

2018-09-25 Thread Florian Fainelli
On 9/25/2018 11:08 AM, Yasha Cherikovsky wrote: The ELF appended dtb can be accessed now via 'fw_passed_dtb'. Signed-off-by: Yasha Cherikovsky Reviewed-by: Florian Fainelli Cc: Kevin Cernekee Cc: Florian Fainelli Cc: Ralf Baechle Cc: Paul Burton Cc: James Hogan Cc: linux-m...@linux

Re: leaking path in android binder: set_nice

2018-09-25 Thread Theodore Y. Ts'o
On Tue, Sep 25, 2018 at 01:52:57PM -0400, Stephen Smalley wrote: > On 09/25/2018 01:27 PM, Tong Zhang wrote: > > Kernel Version: 4.18.5 > > > > Problem Description: > > > > When setting nice value, it is checked by LSM function > > security_task_setnice(). > > see kernel/sched/core.c:3972 SYSCAL

Re: [PATCH v5 04/12] PCI: brcmstb: add dma-range mapping for inbound traffic

2018-09-25 Thread Florian Fainelli
On 9/24/2018 8:01 AM, Jim Quinlan wrote: On Mon, Sep 24, 2018 at 4:25 AM Ard Biesheuvel wrote: On Fri, 21 Sep 2018 at 19:41, Jim Quinlan wrote: On Thu, Sep 20, 2018 at 5:39 PM Florian Fainelli wrote: On 09/20/2018 02:33 PM, Ard Biesheuvel wrote: On 20 September 2018 at 14:31, Florian

Re: [PATCH] of: unittest: Disable interrupt node tests for old world MAC systems

2018-09-25 Thread Guenter Roeck
On 09/25/2018 07:49 PM, Frank Rowand wrote: Hi Guenter, Moving in the right direction, but some comments below. On 09/25/18 10:32, Guenter Roeck wrote: On systems with OF_IMAP_OLDWORLD_MAC set in of_irq_workarounds, the devicetree interrupt parsing code is different, causing unit tests of dev

[PATCH v2 2/4] power: supply: core: Introduce properties to present the battery OCV table

2018-09-25 Thread Baolin Wang
Some battery driver will use the open circuit voltage (OCV) value to look up the corresponding battery capacity percent in one certain degree Celsius. Thus this patch provides some battery properties to present the OCV table temperatures and OCV capacity table values. Suggested-by: Sebastian Reich

[PATCH v2 3/4] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation

2018-09-25 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum SC27XX series PMICs fuel gauge unit device, which is used to calculate the battery capacity. Signed-off-by: Baolin Wang --- Changes from v1: - Renamed GPIO property. - Use standand battery properties instead of 'sprd,inner-resist' and

[PATCH v2 4/4] power: supply: Add Spreadtrum SC27XX fuel gauge unit driver

2018-09-25 Thread Baolin Wang
This patch adds the Spreadtrum SC27XX serial PMICs fuel gauge support, which is used to calculate the battery capacity. Original-by: Yuanjiang Yu Signed-off-by: Baolin Wang --- Changes from v1: - Use battery standard properties to get internal resistance and ocv table. - Change devm_gpiod_get_

[PATCH v2 1/4] power: supply: core: Introduce one property to present the battery internal resistance

2018-09-25 Thread Baolin Wang
Introduce one property to present the battery internal resistance for battery information. Signed-off-by: Baolin Wang --- Changes from v1: - New patch in v2. --- .../devicetree/bindings/power/supply/battery.txt |2 ++ drivers/power/supply/power_supply_core.c |3 +++ include/

Re: [PATCH 4.14 000/173] 4.14.72-stable review

2018-09-25 Thread Rafael Tinoco
Greg, > > > This is the start of the stable review cycle for the 4.14.72 release. > > > There are 173 patches in this series, all will be posted as a response > > > to this one. If anyone has any issues with these being applied, please > > > let me know. > > > > > > Responses should be made by We

Re: [PATCH v12 1/2] leds: core: Introduce LED pattern trigger

2018-09-25 Thread Baolin Wang
On 26 September 2018 at 04:00, Jacek Anaszewski wrote: > Hi Baolin, > > On 09/25/2018 01:15 PM, Baolin Wang wrote: >> On 23 September 2018 at 20:25, Jacek Anaszewski >> wrote: >>> On 09/22/2018 09:44 PM, Pavel Machek wrote: On Sat 2018-09-22 00:18:13, Pavel Machek wrote: > On Sat 2018-09

Re: Leaking path for set_task_comm

2018-09-25 Thread Theodore Y. Ts'o
On Tue, Sep 25, 2018 at 08:44:39PM -0400, TongZhang wrote: > Yes, this is exactly what I am saying. > A process can change its own name using prctl or /proc/self/comm. > prctl is protected by security_task_prctl, whereas /proc/self/comm is not > protected by this LSM hook. > > A system admin may

[PATCHv2] misc: genwqe: remove duplicated include and order header files alphabetically in card_utils.c

2018-09-25 Thread zhong jiang
dma-mapping.h and delay.h have included twice. It is unnecessary. Meanwhile, Arrange header files in alphabetical sequence to improve readability. Signed-off-by: zhong jiang --- drivers/misc/genwqe/card_utils.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff

[PATCH V2] mm: Recheck page table entry with page table lock held

2018-09-25 Thread Aneesh Kumar K.V
We clear the pte temporarily during read/modify/write update of the pte. If we take a page fault while the pte is cleared, the application can get SIGBUS. One such case is with remap_pfn_range without a backing vm_ops->fault callback. do_fault will return SIGBUS in that case. cpu 0

Re: [PATCH] parisc: Remove PTE load and fault check from L2_ptep macro

2018-09-25 Thread Guenter Roeck
Hi, On Sun, Sep 23, 2018 at 10:55:18AM -0400, John David Anglin wrote: > This change removes the PTE load and present check from the L2_ptep > macro. The load and check for kernel pages is now done in the tlb_lock > macro. This avoids a double load and check for user pages. The load > and check

[PATCH] Allow hwrng to initialize crng.

2018-09-25 Thread Louis Collard
Some systems, for example embedded systems, do not generate enough entropy on boot through interrupts, and boot may be blocked for several minutes waiting for a call to getrandom to complete. Currently, random data is read from a hwrng when it is registered, and is loaded into primary_crng. This d

Re: [GIT PULL] ARM: at91: SoC for 4.20

2018-09-25 Thread Olof Johansson
On Tue, Sep 25, 2018 at 12:37:35PM +0200, Alexandre Belloni wrote: > Arnd, Olof, > > Most changes are shuffling around the maintainers entries. There are > also two PM non urgent fixes. > > This one as a trivial conflict with the staging tree solved in linux-next. > > The following changes since

Re: [GIT PULL] ARM: at91: DT for 4.20

2018-09-25 Thread Olof Johansson
On Tue, Sep 25, 2018 at 12:42:26PM +0200, Alexandre Belloni wrote: > Arnd, Olof, > > Here are the DT changes for 4.20. Mostly cleanups and small additions. > > The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: > > Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) > > are a

Re: [GIT PULL] STi DT update for v4.20 round 1

2018-09-25 Thread Olof Johansson
On Tue, Sep 25, 2018 at 04:21:26PM +, Patrice CHOTARD wrote: > Hi Arnd, Kevin, Olof > > PLease consider this first round of STi dts update for v4.20 > > The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: > > Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) > > are avai

<    2   3   4   5   6   7   8   >