[PATCH 1/5] cpufreq: Use cpumask_copy instead of cpumask_or to copy a mask

2015-10-11 Thread Viresh Kumar
Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 25c4c15103a0..b32521432db4 100644 --- a/drivers/cpufreq/cpufreq.c +++

[PATCH 4/5] cpufreq: create cpu/cpufreq/policyX directories

2015-10-11 Thread Viresh Kumar
The cpufreq sysfs interface had been a bit inconsistent as one of the CPUs for a policy had a real directory within its sysfs 'cpuX' directory and all other CPUs had links to it. That also made the code a bit complex as we need to take care of moving the sysfs directory if the CPU containing the

[PATCH 5/5] cpufreq: Drop redundant check for inactive policies

2015-10-11 Thread Viresh Kumar
We just made sure policy->cpu is online and this check will always fail as the policy is active. Drop it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c

4.3 group scheduling regression

2015-10-11 Thread Mike Galbraith
(change subject, CCs) On Sun, 2015-10-11 at 04:25 +0200, Mike Galbraith wrote: > > Is the interactivity the same (horrible) at fe32d3cd5e8e (ie, before the > > load tracking rewrite from Yuyang)? It is the rewrite, 9d89c257dfb9c51a532d69397f6eed75e5168c35. Watching 8 single hog groups vs 1

Re: [PATCH v2 1/1] x86/early_printk: Use __iomem address space for IO

2015-10-11 Thread Thomas Gleixner
Andy, On Fri, 9 Oct 2015, Andy Shevchenko wrote: > #ifdef CONFIG_PCI > static void mem32_serial_out(unsigned long addr, int offset, int value) > { > - u32 *vaddr = (u32 *)addr; > + void __iomem *vaddr = (void __iomem *)addr; > /* shift implied by pointer type */ >

Re: [PATCH v3 1/4] usb: gadget: f_midi: free usb request when done

2015-10-11 Thread Clemens Ladisch
Felipe Balbi wrote: > Clemens Ladisch writes: >> Felipe Tonello wrote: >>> req->actual == req->length means that there is no data left to enqueue, >> >> This condition is not checked in the patch. >> >>> so free the request. >>> >>> Signed-off-by: Felipe F. Tonello

Re: [PATCH v3 1/5] ARM: sunxi: Add R8 support

2015-10-11 Thread Maxime Ripard
On Fri, Oct 09, 2015 at 10:20:29PM +0800, Chen-Yu Tsai wrote: > On Fri, Oct 9, 2015 at 4:42 PM, Maxime Ripard > wrote: > > The R8 is a new Allwinner SoC based on the A13. While both are very > > similar, there's still a few differences. Introduce a new compatible

Re: [PATCH v3 3/5] ARM: sun5i: dt: Move uart3 pinctrl node to common DTSI

2015-10-11 Thread Maxime Ripard
On Fri, Oct 09, 2015 at 10:22:40PM +0800, Chen-Yu Tsai wrote: > On Fri, Oct 9, 2015 at 4:42 PM, Maxime Ripard > wrote: > > The uart3 pins are shared between the A10s and A13, move the pinctrl node > > to the common DTSI to avoid duplication. > > > >

Re: [PATCH RFC 1/1] irqchip/GICv2m: Add support for multiple v2m frames

2015-10-11 Thread Duc Dang
On Fri, Oct 9, 2015 at 2:10 AM, Marc Zyngier wrote: > Hi Duc, > > On 08/10/15 08:48, Duc Dang wrote: >> GICv2m driver currently only supports single v2m frame. This >> patch extend this driver to support multiple v2m frames. All of >> the v2m frames will be own by a single

Re: [Linux] Linux PID algorithm is BRAINDEAD!

2015-10-11 Thread Dave Goel
Ted, Here's a method to achieve the same goal (no immediate pid re-use), but without using any queues whatsoever: All freshly available PIDs are entered into PoolA. Every N seconds, a timer moves PoolA->PoolB, and PoolB->Free PIDs. And, the current PID allocation algo continues its allocation

Re: [PATCH v6 1/2] ARM: irqchip: mxs: prepare driver for HW with different offsets

2015-10-11 Thread Thomas Gleixner
Oleksij, On Sat, 10 Oct 2015, Oleksij Rempel wrote: The proper subject line starts with: irqchip/mxs: > Some HW has similar functionality but different register offsets. > Make sure we can change offsets dynamically. The patch does way more than that. I told you in V2 already: > > You

Re: [RFC PATCH 0/2] VFIO no-iommu

2015-10-11 Thread Michael S. Tsirkin
On Fri, Oct 09, 2015 at 12:40:56PM -0600, Alex Williamson wrote: > Recent patches for UIO have been attempting to add MSI/X support, > which unfortunately implies DMA support, which users have been > enabling anyway, but was never intended for UIO. VFIO on the other > hand expects an IOMMU to

Re: [PATCH 1/6] mmput: use notifier chain to call subsystem exit handler.

2015-10-11 Thread David Woodhouse
On Tue, 2014-07-08 at 13:03 -0400, Jerome Glisse wrote: > > Now regarding the device side, if we were to cleanup inside the file release > callback than we would be broken in front of fork. Imagine the following : > - process A open device file and mirror its address space (hmm or kfd) >

Re: [PATCH v7 1/2] efi: export efi_capsule_supported() function symbol

2015-10-11 Thread Matt Fleming
On Sun, 11 Oct, at 02:28:30PM, Kweh Hock Leong wrote: > > -Original Message- > > From: Matt Fleming [mailto:m...@console-pimps.org] > > Sent: Sunday, October 11, 2015 6:02 AM > > > > I agree that it makes sense to fold this patch into your PATCH 2, because > > then > > we know why we

Re: [PATCH v3] scsi: ufs: add ioctl interface for query request

2015-10-11 Thread Arnd Bergmann
On Sunday 11 October 2015 11:02:34 yga...@codeaurora.org wrote: > > > > no need for the #ifdef here. > > in include\scsi\scsi_host.h > the hook - compat_ioctl is defined inside #ifdef CONFIG_COMPAT > > #ifdef CONFIG_COMPAT > int (* compat_ioctl)(struct scsi_device *dev, int cmd, void

[tip:x86/apic] x86/io_apic: Make eoi_ioapic_pin() static

2015-10-11 Thread tip-bot for Andy Shevchenko
Commit-ID: 4faefda97bc1be6ca909ba0fd0927ea78f37f67e Gitweb: http://git.kernel.org/tip/4faefda97bc1be6ca909ba0fd0927ea78f37f67e Author: Andy Shevchenko AuthorDate: Fri, 9 Oct 2015 17:24:45 +0300 Committer: Thomas Gleixner

Re: [PATCH 2/3] hwrng: stm32 - add support for STM32 HW RNG

2015-10-11 Thread Daniel Thompson
On 5 October 2015 at 10:22, Daniel Thompson wrote: > On 4 October 2015 at 11:32, Linus Walleij wrote: >> On Sat, Oct 3, 2015 at 10:35 PM, Daniel Thompson >> 3. I took out the datasheet for Nomadik STn8820 and it seems that >> the hardware is

Re: [PATCH v4] scsi: ufs: add ioctl interface for query request

2015-10-11 Thread Arnd Bergmann
On Sunday 11 October 2015 14:22:12 Yaniv Gardi wrote: > * @cookie: cookie data > @@ -5106,6 +5308,10 @@ static struct scsi_host_template > ufshcd_driver_template = { > .eh_device_reset_handler = ufshcd_eh_device_reset_handler, > .eh_host_reset_handler =

[PATCH] gpio: add tps65218 gpio driver

2015-10-11 Thread Nicolas Saenz Julienne
Driver for the GPIO block found in ti's tps65218 pmics. The device has two GPIOs and one GPO pin which can be configured as follows: GPIO1: -general-purpose, open-drain output controlled by GPO1 user bit and/or sequencer -DDR3 reset input signal from SOC. Signal is either

Re: [PATCH v3 4/5] ARM: sun5i: dt: Add UART3 CTS and RTS pins

2015-10-11 Thread Maxime Ripard
On Fri, Oct 09, 2015 at 10:24:56PM +0800, Chen-Yu Tsai wrote: > On Fri, Oct 9, 2015 at 4:42 PM, Maxime Ripard > wrote: > > Add a separate pinctrl node for the UART3 CTS and RTS pins shared between > > the A10s and A13. > > > > Signed-off-by: Maxime Ripard

Re: [PATCH 2/4] Staging: rtl8712: Use ether_addr_equal() over memcmp()

2015-10-11 Thread Joe Perches
On Sun, 2015-10-11 at 16:42 +0530, punit vara wrote: > following are the two structure need to be consider for alignment. > > struct iw_pmksa { > __u32 cmd; /* 0 4 */ > struct sockaddrbssid;/* 416 */ > __u8

RE: [RFC PATCH 0/2] VFIO no-iommu

2015-10-11 Thread Varun Sethi
Hi Alex, Thanks for the patch Alex. This would also require support in Qemu to expose the physical address to the VM. Are you looking at that part as well? Regards Varun -Original Message- From: iommu-boun...@lists.linux-foundation.org [mailto:iommu-boun...@lists.linux-foundation.org]

Re: [RFC PATCH 0/2] VFIO no-iommu

2015-10-11 Thread Alex Williamson
On Sun, 2015-10-11 at 17:29 +, Varun Sethi wrote: > Hi Alex, > Thanks for the patch Alex. This would also require support in Qemu to expose > the physical address to the VM. Are you looking at that part as well? Quoting from below: It should be obvious, but I always feel obligated

Re: [RFC PATCH 0/2] VFIO no-iommu

2015-10-11 Thread Michael S. Tsirkin
On Sun, Oct 11, 2015 at 09:28:09PM +0300, Michael S. Tsirkin wrote: > On Fri, Oct 09, 2015 at 12:40:56PM -0600, Alex Williamson wrote: > > Recent patches for UIO have been attempting to add MSI/X support, > > which unfortunately implies DMA support, which users have been > > enabling anyway, but

Re: [RFC] nohz: no update idle entry time on get_cpu_idle/iowait_time_us()

2015-10-11 Thread Thomas Gleixner
On Mon, 28 Sep 2015, Yunhong Jiang wrote: > Currently the get_cpu_idle/iowait_time_us() updates the idle_entrytime. > When it's invoked from another CPU and the target CPU has been on idle > already, it will update the idle_entrytime to now, which is incorrect. > > However, the

Linux 4.3-rc5

2015-10-11 Thread Linus Torvalds
The 4.3 release cycle continues to be fairly smooth - knock wood. There's nothing particularly worrying here: we had some annoying fallout from the new strscpy stuff (it's not actually *used* anywhere yet, but we had build failures on some architectures), and a vfs layer change uncovered an

Re: [PATCH v5 1/3] initialize each mbigen device node as a interrupt controller.

2015-10-11 Thread Thomas Gleixner
On Sun, 11 Oct 2015, Marc Zyngier wrote: > On Sun, 11 Oct 2015 11:54:49 +0200 > Thomas Gleixner wrote: > > > On Sat, 10 Oct 2015, Marc Zyngier wrote: > > > On Sat, 10 Oct 2015 17:01:32 +0800 > > > "majun (F)" wrote: > > > > But there is a problem If i

Re: [PATCH v3] ARM: dts: sunxi: Add regulators for LeMaker BananaPi

2015-10-11 Thread Maxime Ripard
On Thu, Oct 08, 2015 at 12:18:36AM +0200, Timo Sigurdsson wrote: > sun7i-a20-bananapi.dts doesn't contain regulator nodes for the AXP209 PMU > driver, so add them to allow for voltage-scaling with cpufreq-dt. Also > add board-specific OPP to use slightly higher voltages at lower > frequencies

Re: [PATCH v3 5/5] ARM: sun5i: Add C.H.I.P DTS

2015-10-11 Thread Maxime Ripard
On Fri, Oct 09, 2015 at 11:22:23PM +0800, Chen-Yu Tsai wrote: > On Fri, Oct 9, 2015 at 4:42 PM, Maxime Ripard > wrote: > > The C.H.I.P. is a small SBC with an Allwinner R8, 8GB of NAND, 512MB of > > RAM, USB host and OTG, a wifi / bluetooth combo chip, an

Re: [PATCH 1/1] I have a board it block on i8259A_shutdown when I want to poweroff. It is not always re-produce.

2015-10-11 Thread Thomas Gleixner
Figo, On Sat, 10 Oct 2015, Figo wrote: Thanks for resending, but let me clarify a few things. Subject line: [PATCH 1/1] I have a board it block on i8259A_shutdown when I want to poweroff. It is not always re-produce. That's not a proper patch subject line. It should start with the

[PATCHv4 2/2] ARM: multi_v7_defconfig: Enable rtl8152 ethernet driver for Odroid-XU4

2015-10-11 Thread Anand Moon
Odroid XU4 has a RTL8153-CG gigabit Ethernet adapter, connected over USB 3.0. Signed-off-by: Anand Moon Reviewed-by: Krzysztof Kozlowski --- Changes: Fixed the commit message thanks to Krzysztof KozlowskAdded reviewed by Krzysztof Kozlowski

[PATCHv4 1/2] ARM: exynos_defconfig: Enable rtl8152 ethernet driver for Odroid-XU4

2015-10-11 Thread Anand Moon
Odroid XU4 has a RTL8153-CG gigabit Ethernet adapter, connected over USB 3.0. Signed-off-by: Anand Moon Reviewed-by: Krzysztof Kozlowski --- Changes: Fixed the commit message thanks to Krzysztof Kozlowski Added reviewed by Krzysztof

Re: [PATCH 1/3] sched: select_task_rq() should check cpu_active() like select_fallback_rq()

2015-10-11 Thread Oleg Nesterov
On 10/10, Oleg Nesterov wrote: > > I do not understand the cpu_active() check in select_fallback_rq(). > x86 doesn't need it, and the recent commit dd9d3843755d "sched: Fix > cpu_active_mask/cpu_online_mask race" documents the fact that on any > architecture we can ignore !active starting from

Re: [PATCH] timer: Lazily wakup nohz CPU when adding new timer.

2015-10-11 Thread Thomas Gleixner
On Mon, 28 Sep 2015, Yunhong Jiang wrote: > static void internal_add_timer(struct tvec_base *base, struct timer_list > *timer) > { > + bool kick_nohz = false; > + > /* Advance base->jiffies, if the base is empty */ > if (!base->all_timers++) > base->timer_jiffies =

Re: [PATCH 1/3] sched: select_task_rq() should check cpu_active() like select_fallback_rq()

2015-10-11 Thread Thomas Gleixner
On Sun, 11 Oct 2015, Oleg Nesterov wrote: > On 10/10, Oleg Nesterov wrote: > > > > I do not understand the cpu_active() check in select_fallback_rq(). > > x86 doesn't need it, and the recent commit dd9d3843755d "sched: Fix > > cpu_active_mask/cpu_online_mask race" documents the fact that on any >

[tip:x86/platform] x86/intel-mid: Make intel_mid_ops static

2015-10-11 Thread tip-bot for Andy Shevchenko
Commit-ID: d1f0f6c72c14af8a27a6549e0623f7cd61805e83 Gitweb: http://git.kernel.org/tip/d1f0f6c72c14af8a27a6549e0623f7cd61805e83 Author: Andy Shevchenko AuthorDate: Fri, 9 Oct 2015 17:25:41 +0300 Committer: Thomas Gleixner

[tip:x86/cpufeature] x86/cpu/intel: Enable X86_FEATURE_NONSTOP_TSC_S3 for Merrifield

2015-10-11 Thread tip-bot for Andy Shevchenko
Commit-ID: 1cc0166752d598a69f6bb99381d828cbfb5fa9a5 Gitweb: http://git.kernel.org/tip/1cc0166752d598a69f6bb99381d828cbfb5fa9a5 Author: Andy Shevchenko AuthorDate: Thu, 8 Oct 2015 18:56:26 +0300 Committer: Thomas Gleixner

Re: [RFC PATCH 0/2] VFIO no-iommu

2015-10-11 Thread Alex Williamson
On Sun, 2015-10-11 at 21:29 +0300, Michael S. Tsirkin wrote: > On Sun, Oct 11, 2015 at 09:28:09PM +0300, Michael S. Tsirkin wrote: > > On Fri, Oct 09, 2015 at 12:40:56PM -0600, Alex Williamson wrote: > > > Recent patches for UIO have been attempting to add MSI/X support, > > > which unfortunately

Re: [PATCH 2/3] hwrng: stm32 - add support for STM32 HW RNG

2015-10-11 Thread Daniel Thompson
On 5 October 2015 at 10:22, Daniel Thompson wrote: > On 4 October 2015 at 11:32, Linus Walleij wrote: >> On Sat, Oct 3, 2015 at 10:35 PM, Daniel Thompson >> wrote: >> Then this construct: >> >>> +static int

Re: [patch] sched: disable task group re-weighting on the desktop

2015-10-11 Thread paul . szabo
Dear Mike, Did you check whether setting min_- and max_interval e.g. as per https://lkml.org/lkml/2015/10/11/34 would help with your issue (instead of your "horrible gs destroying" patch)? Cheers, Paul Paul Szabo p...@maths.usyd.edu.au http://www.maths.usyd.edu.au/u/psz/ School of

[tip:timers/core] timers: Use __fls in apply_slack()

2015-10-11 Thread tip-bot for Rasmus Villemoes
Commit-ID: 3e17510cbc3e75cae0c96fa38ca469ffe754aedf Gitweb: http://git.kernel.org/tip/3e17510cbc3e75cae0c96fa38ca469ffe754aedf Author: Rasmus Villemoes AuthorDate: Fri, 2 Oct 2015 09:45:30 +0200 Committer: Thomas Gleixner CommitDate: Sun,

[tip:timers/core] clock: Remove return statement from void functions

2015-10-11 Thread tip-bot for Guillaume Gomez
Commit-ID: 784e452870c028a03e42af3bd437ec45a88dfe6d Gitweb: http://git.kernel.org/tip/784e452870c028a03e42af3bd437ec45a88dfe6d Author: Guillaume Gomez AuthorDate: Wed, 23 Sep 2015 13:19:19 +0200 Committer: Thomas Gleixner CommitDate: Sun,

Re: [PATCH] clock: Remove unneeded return statement from void

2015-10-11 Thread Thomas Gleixner
On Wed, 23 Sep 2015, Guillaume Gomez wrote: FYI, the proper subsystem is clocksource not clock > Signed-off-by: Guillaume Gomez > --- > kernel/time/clocksource.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel/time/clocksource.c

[tip:timers/core] clocksource: Remove return statement from void functions

2015-10-11 Thread tip-bot for Guillaume Gomez
Commit-ID: cfed432d7f4114e16e0163bcfe65e96f0c304493 Gitweb: http://git.kernel.org/tip/cfed432d7f4114e16e0163bcfe65e96f0c304493 Author: Guillaume Gomez AuthorDate: Wed, 23 Sep 2015 13:19:19 +0200 Committer: Thomas Gleixner CommitDate: Sun,

[tip:timers/core] timers: Use __fls in apply_slack()

2015-10-11 Thread tip-bot for Rasmus Villemoes
Commit-ID: 9fc4468d546b6eb55b0aa5b04b0c36238ebf57e7 Gitweb: http://git.kernel.org/tip/9fc4468d546b6eb55b0aa5b04b0c36238ebf57e7 Author: Rasmus Villemoes AuthorDate: Fri, 2 Oct 2015 09:45:30 +0200 Committer: Thomas Gleixner CommitDate: Sun,

Re: [PATCH] powerpc/mpc5xxx: Use of_get_next_parent to simplify code

2015-10-11 Thread Julia Lawall
On Sun, 11 Oct 2015, Christophe JAILLET wrote: > of_get_next_parent can be used to simplify the while() loop and > avoid the need of a temp variable. Can you do something with the loop in __of_translate_address, in drivers/of/address.c? Is there not an iterator for this? julia > >

[PATCH net-next] RDS-TCP: Reset tcp callbacks if re-using an outgoing socket in rds_tcp_accept_one()

2015-10-11 Thread Sowmini Varadhan
Consider the following "duelling syn" sequence between two peers A and B: A B SYN1 --> <-- SYN2 SYN2ACK --> Note that the SYN/ACK has already been sent out by TCP before rds_tcp_accept_one() gets

Re: [PATCH] icmp: Fixed bug in raw sockets causing incorrect ICMP SNMP counter values

2015-10-11 Thread Ben Cox
Forgive me for possibly being a little stupid here (This is my first patch to Linux so I am slightly over my head) Is this issue not addressed above the file where the following check is done? if (iphlen > length) goto error_free; On Sun, Oct 11, 2015 at 11:10 PM, Eric Dumazet

Re: Updated scalable urandom patchkit

2015-10-11 Thread Theodore Ts'o
On Sun, Oct 11, 2015 at 12:35:46AM -0400, George Spelvin wrote: > > One is the final write back of add_ptr on the last line of > _mix_pool_bytes. It actually writes i, which includes the per-cpu nonce, > and will have it jumping all over without the steady progression that > the mixing

Re: [PATCH] icmp: Fixed bug in raw sockets causing incorrect ICMP SNMP counter values

2015-10-11 Thread Eric Dumazet
On Sun, 2015-10-11 at 15:43 -0700, Eric Dumazet wrote: > But your code reads 21th byte. BTW, nice catch ! Your patch only need a small addition. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

Re: [PATCH] icmp: Fixed bug in raw sockets causing incorrect ICMP SNMP counter values

2015-10-11 Thread Eric Dumazet
On Sun, 2015-10-11 at 23:17 +0100, Ben Cox wrote: > Forgive me for possibly being a little stupid here (This is my first > patch to Linux so I am slightly over my head) > > Is this issue not addressed above the file where the following check is done? > > if (iphlen > length) > goto

Re: [PATCH v2] HID: multitouch: Fetch feature reports on demand for Win8 devices

2015-10-11 Thread Jiri Kosina
On Wed, 7 Oct 2015, Mika Westerberg wrote: > Some newer Intel Skylake based Dell laptops with Win8 precision touchpad > fail when initial feature reports are fetched from it. Below is an example > output with some additional debug included: > > i2c_hid i2c-DLL0704:01: Fetching the HID

[PATCH v10 00/46] Richacls

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher Here is another update of the richacl patch queue. I would like to ask for feedback so that the core and local filesystem code (patches 1-24) can be merged in the 4.4 merge window. Changes since the last posting (https://lwn.net/Articles/659350/):

[PATCH v10 11/46] vfs: Add get_richacl and set_richacl inode operations

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher These operations are similar to the get_acl and set_acl operations for POSIX ACLs. The distinction between access and default ACLs doesn't exist for richacls. Signed-off-by: Andreas Gruenbacher --- include/linux/fs.h | 2 ++

[PATCH v10 14/46] richacl: Check if an acl is equivalent to a file mode

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher ACLs are considered equivalent to file modes if they only consist of owner@, group@, and everyone@ entries, the owner@ permissions do not depend on whether the owner is a member in the owning group, and no inheritance flags are set. This test is

[PATCH v10 15/46] richacl: Create-time inheritance

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher When a new file is created, it can inherit an acl from its parent directory; this is similar to how default acls work in POSIX (draft) ACLs. As with POSIX ACLs, if a file inherits an acl from its parent directory, the intersection between the

[PATCH v10 21/46] ext4: Add richacl feature flag

2015-10-11 Thread Andreas Gruenbacher
From: "Aneesh Kumar K.V" This feature flag selects richacl instead of posix acl support on the file system. In addition, the "acl" mount option is needed for enabling either of the two kinds of acls. Signed-off-by: Aneesh Kumar K.V

[PATCH v10 25/46] richacl: acl editing helper functions

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher The file masks in richacls make chmod and creating new files more efficient than having to apply file permission bits to the acl directly. They also allow us to regain permissions from an acl even after a restrictive chmod, because the permissions

[PATCH v10 24/46] xfs: Add richacl support

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher The richacl feature flag (mkfs.xfs -m richacl=1) determines whether an xfs filesystem supports posix acls or richacls. Richacls are stored in "system.richacl" xattrs. If richacls are not compiled into the kernel, mounting richacl filesystems will

[PATCH v10 23/46] xfs: Make xfs_set_mode non-static

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher Make xfs_set_mode non-static and move it from xfs_acl.c into xfs_inode.c. Signed-off-by: Andreas Gruenbacher --- fs/xfs/xfs_acl.c | 18 -- fs/xfs/xfs_inode.c | 18 ++ fs/xfs/xfs_inode.h | 2

[PATCH v10 20/46] ext4: Add richacl support

2015-10-11 Thread Andreas Gruenbacher
From: "Aneesh Kumar K.V" Support the richacl permission model in ext4. The richacls are stored in "system.richacl" xattrs. Richacls need to be enabled by tune2fs or at file system create time. Signed-off-by: Aneesh Kumar K.V

[PATCH v10 27/46] richacl: Propagate everyone@ permissions to other aces

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher The trailing everyone@ allow ace can grant permissions to all file classes including the owner and group class. Before we can apply the other mask to this entry to turn it into an "other class" entry, we need to ensure that members of the owner or

[PATCH v10 31/46] richacl: Apply the file masks to a richacl

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher Put all the pieces of the acl transformation puzzle together for computing a richacl which has the file masks "applied" so that the standard nfsv4 access check algorithm can be used on the richacl. Signed-off-by: Andreas Gruenbacher

[PATCH v10 33/46] nfsd: Keep list of acls to dispose of in compoundargs

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher We will decode acls in requests into richacls. Even if unlikely, there can be more than one acl in a single request; those richacls need to be richacl_put() at the end of the request instead of kfree()d, so keep a list of acls in compoundargs for

[PATCH v10 30/46] richacl: Isolate the owner and group classes

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher When applying the file masks to an acl, we need to ensure that no process gets more permissions than allowed by its file mask. This may require inserting an owner@ deny ace to ensure this if the owner mask contains fewer permissions than the group

[PATCH v10 13/46] richacl: Update the file masks in chmod()

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher Doing a chmod() sets the file mode, which includes the file permission bits. When a file has a richacl, the permissions that the richacl grants need to be limited to what the new file permission bits allow. This is done by setting the file masks

[PATCH v10 18/46] richacl: Add richacl xattr handler

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher Add richacl xattr handler implementing the xattr operations based on the get_richacl and set_richacl inode operations. Signed-off-by: Andreas Gruenbacher --- fs/richacl_xattr.c| 78

[PATCH v10 19/46] vfs: Add richacl permission checking

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher Hook the richacl permission checking function into the vfs. Signed-off-by: Andreas Gruenbacher --- fs/namei.c | 51 +-- fs/posix_acl.c | 6 +++--- 2 files changed, 52

[PATCH v10 17/46] richacl: xattr mapping functions

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher Map between "system.richacl" xattrs and the in-kernel representation. Signed-off-by: Andreas Gruenbacher --- fs/Makefile | 2 +- fs/richacl_xattr.c| 220

[PATCH v10 22/46] xfs: Fix error path in xfs_get_acl

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher Error codes from xfs_attr_get other than -ENOATTR were not properly reported. Fix that, and clean the code up somewhat. In addition, the declaration of struct xfs_inode in xfs_acl.h isn't needed. Signed-off-by: Andreas Gruenbacher

[PATCH v10 44/46] nfs: Add richacl support

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher Add support for the "system.richacl" xattr in nfs. The existing "system.nfs4_acl" xattr on nfs doesn't map user and group names to uids and gids; the "system.richacl" xattr does, and only keeps the on-the-wire names when there is no mapping. This

[PATCH v10 41/46] sunrpc: Add xdr_init_encode_pages

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher Initialize xdr_stream and xdr_buf from a pages array, for encoding into the pages. Signed-off-by: Andreas Gruenbacher --- include/linux/sunrpc/xdr.h | 2 ++ net/sunrpc/xdr.c | 25 + 2 files

[PATCH v10 43/46] nfs: Remove unused xdr page offsets in getacl/setacl arguments

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher The arguments passed around for getacl and setacl xdr encoding, struct nfs_setaclargs and struct nfs_getaclargs, both contain an array of pages, an offset into the first page, and the length of the page data. The offset is unused as it is always

[PATCH v10 42/46] nfs: Fix GETATTR bitmap verification

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher When decoding GETATTR replies, the client checks the attribute bitmap for which attributes the server has sent. It misses bits at the word boundaries, though; fix that. Signed-off-by: Andreas Gruenbacher --- fs/nfs/nfs4xdr.c

[PATCH 0/7] staging: make non-modular code explicitly non-modular

2015-10-11 Thread Paul Gortmaker
[resending; forgot to add lkml to Cc: -- sorry for those who get this 2x] In a previous merge window, we made changes to allow better delineation between modular and non-modular code in commit 0fd972a7d91d6e15393c449492a04d94c0b89351 ("module: relocate module_init from init.h to module.h"). This

[PATCH v10 37/46] nfsd: Add support for the MAY_CREATE_{FILE,DIR} permissions

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher For local file systems, the vfs performs the necessary permission checks for operations like creating files and directories. NFSd duplicates several of those checks. The vfs checks have been extended to check for additional permissions like

[PATCH v10 35/46] nfsd: Add richacl support

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher On file systems with richacls enabled, get and set richacls directly instead of converting from / to posix acls. Signed-off-by: Andreas Gruenbacher Acked-by: J. Bruce Fields --- fs/nfsd/acl.h | 3

[PATCH v10 36/46] nfsd: Add support for the v4.1 dacl attribute

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher Richacls support the Automatic Inheritance permission propagation mechanism as specified in NFSv4.1. Over NFS, this requires support for the dacl attribute: compared to the acl attribute, the dacl attribute has an additional flags field which

[PATCH v10 38/46] richacl: Add support for unmapped identifiers

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher Some remote file systems like nfs may return user or group identifiers that cannot be mapped to local uids / gids. Allow to represent such unmapped identifiers in richacls. (We still cannot represent unmapped owners and owning groups, however.)

[PATCH 3/7] drivers/staging: make android tegra_ion.c properly tristate

2015-10-11 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/staging/android/ion/Kconfig:config ION_TEGRA drivers/staging/android/ion/Kconfig:tristate "Ion for Tegra" ...which led me to incorrectly conclude this file was built modular earlier. However the above CONFIG is just used

[PATCH v10 32/46] richacl: Create richacl from mode values

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher A file can have "no acl" in the sense that only the file mode permission bits determine access. In that case, the getxattr system call fails with errno == ENODATA (No such attribute). Over the NFSv4 protocol, a file always has an acl, and we

[PATCH v10 26/46] richacl: Move everyone@ aces down the acl

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher The POSIX standard puts processes which are not the owner or a member in the owning group or which match any ace other then everyone@ on the other file class. We only know if a process is in the other class after processing the entire acl. Move

[PATCH v10 28/46] richacl: Set the owner permissions to the owner mask

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher In the write-through case, change the acl so that owner@ is granted the permissions set in the owner mask (to match what the permission check algorithm grants the owner). Signed-off-by: Andreas Gruenbacher Reviewed-by: J.

[PATCH v10 29/46] richacl: Set the other permissions to the other mask

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher Change the acl so that everyone@ is granted the permissions set in the other mask. Signed-off-by: Andreas Gruenbacher Reviewed-by: J. Bruce Fields --- fs/richacl_compat.c | 41

[PATCH v10 46/46] richacl: uapi header split

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher Signed-off-by: Andreas Gruenbacher --- include/linux/richacl.h| 119 + include/linux/richacl_xattr.h | 17 +- include/uapi/linux/Kbuild | 2 +

[PATCH v10 45/46] nfs: Add support for the v4.1 dacl attribute

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher The dacl attribute includes Automatic Inheritance flags not supported by the acl attribute. it is only supported in NFS version 4.1 and higher. On systems where NFS version 4.0 is still the default, an additional mount option is needed: mount

[PATCH 5/7] drivers/staging: make android lowmemorykiller.c explicitly non-modular

2015-10-11 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/staging/android/Kconfig:config ANDROID_LOW_MEMORY_KILLER drivers/staging/android/Kconfig:bool "Android Low Memory Killer" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular

[PATCH 2/2] drivers/irqchip: make irq-renesas-irqc.c explicitly non-modular

2015-10-11 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/irqchip/Kconfig:config RENESAS_IRQC drivers/irqchip/Kconfig:bool ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading

[PATCH 4/7] drivers/staging: make android sw_sync.c explicitly non-modular

2015-10-11 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: staging/android/Kconfig:config SW_SYNC staging/android/Kconfig:bool "Software synchronization objects" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially

[PATCH 1/2] drivers/irqchip: make irq-renesas-intc-irqpin.c explicitly non-modular

2015-10-11 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/irqchip/Kconfig:config RENESAS_INTC_IRQPIN drivers/irqchip/Kconfig:bool ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when

[PATCH 0/2] irqchip: make non-modular code explicitly non-modular

2015-10-11 Thread Paul Gortmaker
In a previous merge window, we made changes to allow better delineation between modular and non-modular code in commit 0fd972a7d91d6e15393c449492a04d94c0b89351 ("module: relocate module_init from init.h to module.h"). This allows us to now ensure module code looks modular and non-modular code

[PATCH v10 40/46] sunrpc: Allow to demand-allocate pages to encode into

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher When encoding large, variable-length objects such as acls into xdr_bufs, it is easier to allocate buffer pages on demand rather than precomputing the required buffer size. Signed-off-by: Andreas Gruenbacher ---

Re: [PATCH] icmp: Fixed bug in raw sockets causing incorrect ICMP SNMP counter values

2015-10-11 Thread Eric Dumazet
On Sun, 2015-10-11 at 15:44 -0700, Eric Dumazet wrote: > On Sun, 2015-10-11 at 15:43 -0700, Eric Dumazet wrote: > > > But your code reads 21th byte. > > BTW, nice catch ! Maybe the following one. 1) We properly set transport header 2) We use icmp_hdr() helper. diff --git a/net/ipv4/raw.c

[PATCH 7/7] drivers/staging: make emxx_udc.c explicitly non-modular

2015-10-11 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/staging/emxx_udc/Kconfig:config USB_EMXX drivers/staging/emxx_udc/Kconfig: bool "EMXX USB Function Device Controller" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code

[PATCH v10 39/46] ext4: Don't allow unmapped identifiers in richacls

2015-10-11 Thread Andreas Gruenbacher
From: Andreas Gruenbacher Don't allow acls which contain unmapped identifiers: they are meaningful for remote file systems only. Signed-off-by: Andreas Gruenbacher --- fs/ext4/richacl.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 2/7] drivers/staging: make android ion_page_pool.c explicitly non-modular

2015-10-11 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/staging/android/ion/Kconfig:menuconfig ION drivers/staging/android/ion/Kconfig:bool "Ion Memory Manager" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is

[PATCH 1/7] drivers/staging: make android ashmem.c explicitly non-modular

2015-10-11 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/staging/android/Kconfig:config ASHMEM drivers/staging/android/Kconfig:bool "Enable the Anonymous Shared Memory Subsystem" ...meaning that it currently is not being built as a module by anyone. Lets remove the

[PATCH 6/7] drivers/staging: make android timed_output.c explicitly non-modular

2015-10-11 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/staging/android/Kconfig:config ANDROID_TIMED_OUTPUT drivers/staging/android/Kconfig:bool "Timed output class driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code

Re: [PATCH 2/2] ext2: Add locking for DAX faults

2015-10-11 Thread Dave Chinner
[Nit: please send all patches of the series to the same list of recipients. Otherwise people with list based filters end up with the series spread across different mailboxes and people not subscribed to all lists don't get the full series and so are lacking in context for proper review. ] On Fri,

Re: [PATCH] icmp: Fixed bug in raw sockets causing incorrect ICMP SNMP counter values

2015-10-11 Thread Ben Cox
Nice! That works in my head at least, Sorry about not seeing that fairly glaring memory issue there. Are you sure " skb->transport_header += iphlen; " won't have a knock on affect when it's given to NF_HOOK ( as in, would a potential userspace program get something it does not expect anymore ) ?

<    1   2   3   4   5   6   7   >