[PATCH AUTOSEL 4.9 18/26] hexagon: modify ffs() and fls() to return int

2018-09-30 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit 5c41aaad409c097cf1ef74f2c649fed994744ef5 ] Building drivers/mtd/nand/raw/nandsim.c on arch/hexagon/ produces a printk format build warning. This is due to hexagon's ffs() being coded as returning long instead of int. Fix the printk format warning by changin

[PATCH AUTOSEL 4.9 16/26] dm thin metadata: try to avoid ever aborting transactions

2018-09-30 Thread Sasha Levin
From: Joe Thornber [ Upstream commit 3ab91828166895600efd9cdc3a0eb32001f7204a ] Committing a transaction can consume some metadata of it's own, we now reserve a small amount of metadata to cover this. Free metadata reported by the kernel will not include this reserve. If any of the reserve has

[PATCH AUTOSEL 4.14 31/37] r8169: Clear RTL_FLAG_TASK_*_PENDING when clearing RTL_FLAG_TASK_ENABLED

2018-09-30 Thread Sasha Levin
From: Kai-Heng Feng [ Upstream commit 6ad56901300afd8e614d296fdc356550b77f ] After system suspend, sometimes the r8169 doesn't work when ethernet cable gets pluggued. This issue happens because rtl_reset_work() doesn't get called from rtl8169_runtime_resume(), after system suspend. In rtl_

[PATCH AUTOSEL 4.14 30/37] drm/amdgpu: fix error handling in amdgpu_cs_user_fence_chunk

2018-09-30 Thread Sasha Levin
From: Christian König [ Upstream commit 0165de983272d1fae0809ed9db47c46a412279bc ] Slowly leaking memory one page at a time :) Signed-off-by: Christian König Reviewed-by: Andrey Grodzovsky Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2

[PATCH AUTOSEL 4.9 10/26] net/mlx5: Consider PCI domain in search for next dev

2018-09-30 Thread Sasha Levin
From: Daniel Jurgens [ Upstream commit df7ddb2396cd162e64aaff9401be05e31e438961 ] The PCI BDF is not unique. PCI domain must also be considered when searching for the next physical device during lag setup. Example below: mlx5_core :01:00.0: MLX5E: StrdRq(1) RqSz(8) StrdSz(128) RxCqeCmprss(0

[PATCH AUTOSEL 4.9 13/26] fs/cifs: suppress a string overflow warning

2018-09-30 Thread Sasha Levin
From: Stephen Rothwell [ Upstream commit bcfb84a996f6fa90b5e6e2954b2accb7a4711097 ] A powerpc build of cifs with gcc v8.2.0 produces this warning: fs/cifs/cifssmb.c: In function ‘CIFSSMBNegotiate’: fs/cifs/cifssmb.c:605:3: warning: ‘strncpy’ writing 16 bytes into a region of size 1 overflows t

[PATCH AUTOSEL 4.14 15/37] USB: yurex: Check for truncation in yurex_read()

2018-09-30 Thread Sasha Levin
From: Ben Hutchings [ Upstream commit 14427b86837a4baf1c121934c6599bdb67dfa9fc ] snprintf() always returns the full length of the string it could have printed, even if it was truncated because the buffer was too small. So in case the counter value is truncated, we will over-read from in_buffer a

[PATCH AUTOSEL 4.14 05/37] HID: hid-saitek: Add device ID for RAT 7 Contagion

2018-09-30 Thread Sasha Levin
From: Harry Mallon [ Upstream commit 43822c98f2ebb2cbd5e467ab72bbcdae7f0caa22 ] Signed-off-by: Harry Mallon Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-ids.h| 1 + drivers/hid/hid-saitek.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/hid/hi

[PATCH AUTOSEL 4.14 24/37] perf/x86/intel: Add support/quirk for the MISPREDICT bit on Knights Landing CPUs

2018-09-30 Thread Sasha Levin
From: Jacek Tomaka [ Upstream commit 16160c1946b702dcfa95ef63389a56deb2f1c7cb ] Problem: perf did not show branch predicted/mispredicted bit in brstack. Output of perf -F brstack for profile collected Before: 0x4fdbcd/0x4fdc03/-/-/-/0 0x45f4c1/0x4fdba0/-/-/-/0 0x45f544/0x45f4bb/-/-/-/0 0x

[PATCH AUTOSEL 4.14 27/37] arch/hexagon: fix kernel/dma.c build warning

2018-09-30 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit 200f351e27f014fcbf69b544b0b4b72aeaf45fd3 ] Fix build warning in arch/hexagon/kernel/dma.c by casting a void * to unsigned long to match the function parameter type. ../arch/hexagon/kernel/dma.c: In function 'arch_dma_alloc': ../arch/hexagon/kernel/dma.c:51:5

[PATCH AUTOSEL 4.14 29/37] arm64: jump_label.h: use asm_volatile_goto macro instead of "asm goto"

2018-09-30 Thread Sasha Levin
From: Miguel Ojeda [ Upstream commit 13aceef06adfaf93d52e01e28a8bc8a0ad471d83 ] All other uses of "asm goto" go through asm_volatile_goto, which avoids a miscompile when using GCC < 4.8.2. Replace our open-coded "asm goto" statements with the asm_volatile_goto macro to avoid issues with older to

[PATCH AUTOSEL 4.18 56/65] drm/amdgpu: fix error handling in amdgpu_cs_user_fence_chunk

2018-09-30 Thread Sasha Levin
From: Christian König [ Upstream commit 0165de983272d1fae0809ed9db47c46a412279bc ] Slowly leaking memory one page at a time :) Signed-off-by: Christian König Reviewed-by: Andrey Grodzovsky Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2

[PATCH AUTOSEL 4.14 23/37] net: ena: fix missing calls to READ_ONCE

2018-09-30 Thread Sasha Levin
From: Netanel Belgazal [ Upstream commit 28abf4e9c9201eda5c4d29ea609d07e877b464b8 ] Add READ_ONCE calls where necessary (for example when iterating over a memory field that gets updated by the hardware). Signed-off-by: Netanel Belgazal Signed-off-by: David S. Miller Signed-off-by: Sasha Levin

[PATCH AUTOSEL 4.14 25/37] dm thin metadata: try to avoid ever aborting transactions

2018-09-30 Thread Sasha Levin
From: Joe Thornber [ Upstream commit 3ab91828166895600efd9cdc3a0eb32001f7204a ] Committing a transaction can consume some metadata of it's own, we now reserve a small amount of metadata to cover this. Free metadata reported by the kernel will not include this reserve. If any of the reserve has

[PATCH AUTOSEL 4.18 49/65] netfilter: conntrack: timeout interface depend on CONFIG_NF_CONNTRACK_TIMEOUT

2018-09-30 Thread Sasha Levin
From: Pablo Neira Ayuso [ Upstream commit a874752a10da113f513980e28f562d946d3f829d ] Now that cttimeout support for nft_ct is in place, these should depend on CONFIG_NF_CONNTRACK_TIMEOUT otherwise we can crash when dumping the policy if this option is not enabled. [ 71.600121] BUG: unable to

[PATCH AUTOSEL 4.14 33/37] s390/qeth: don't dump past end of unknown HW header

2018-09-30 Thread Sasha Levin
From: Julian Wiedmann [ Upstream commit 0ac1487c4b2de383b91ecad1be561b8f7a2c15f4 ] For inbound data with an unsupported HW header format, only dump the actual HW header. We have no idea how much payload follows it, and what it contains. Worst case, we dump past the end of the Inbound Buffer and

[PATCH AUTOSEL 4.14 22/37] net: ena: fix driver when PAGE_SIZE == 64kB

2018-09-30 Thread Sasha Levin
From: Netanel Belgazal [ Upstream commit ef5b0771d247379c90c8bf1332ff32f7f74bff7f ] The buffer length field in the ena rx descriptor is 16 bit, and the current driver passes a full page in each ena rx descriptor. When PAGE_SIZE equals 64kB or more, the buffer length field becomes zero. To solve

[PATCH AUTOSEL 4.14 12/37] Revert "iio: temperature: maxim_thermocouple: add MAX31856 part"

2018-09-30 Thread Sasha Levin
From: Matt Ranostay [ Upstream commit 65099ea85e885c3ea1272eca8774b771419d8ce8 ] This reverts commit 535fba29b3e1afef4ba201b3c69a6992583ec0bd. Seems the submitter (er me, hang head in shame) didn't look at the datasheet enough to see that the registers are quite different. This needs to be rev

[PATCH AUTOSEL 4.18 62/65] xen/manage: don't complain about an empty value in control/sysrq node

2018-09-30 Thread Sasha Levin
From: Vitaly Kuznetsov [ Upstream commit 87dffe86d406bee8782cac2db035acb9a28620a7 ] When guest receives a sysrq request from the host it acknowledges it by writing '\0' to control/sysrq xenstore node. This, however, make xenstore watch fire again but xenbus_scanf() fails to parse empty value wit

[PATCH AUTOSEL 4.18 36/65] dm raid: fix rebuild of specific devices by updating superblock

2018-09-30 Thread Sasha Levin
From: Heinz Mauelshagen [ Upstream commit c44a5ee803d2b7ed8c2e6ce24a5c4dd60778886e ] Update superblock when particular devices are requested via rebuild (e.g. lvconvert --replace ...) to avoid spurious failure with the "New device injected into existing raid set without 'delta_disks' or 'rebuild

[PATCH AUTOSEL 4.18 46/65] perf/x86/intel: Add support/quirk for the MISPREDICT bit on Knights Landing CPUs

2018-09-30 Thread Sasha Levin
From: Jacek Tomaka [ Upstream commit 16160c1946b702dcfa95ef63389a56deb2f1c7cb ] Problem: perf did not show branch predicted/mispredicted bit in brstack. Output of perf -F brstack for profile collected Before: 0x4fdbcd/0x4fdc03/-/-/-/0 0x45f4c1/0x4fdba0/-/-/-/0 0x45f544/0x45f4bb/-/-/-/0 0x

[PATCH AUTOSEL 4.18 45/65] net: ena: fix missing calls to READ_ONCE

2018-09-30 Thread Sasha Levin
From: Netanel Belgazal [ Upstream commit 28abf4e9c9201eda5c4d29ea609d07e877b464b8 ] Add READ_ONCE calls where necessary (for example when iterating over a memory field that gets updated by the hardware). Signed-off-by: Netanel Belgazal Signed-off-by: David S. Miller Signed-off-by: Sasha Levin

[PATCH AUTOSEL 4.18 53/65] hexagon: modify ffs() and fls() to return int

2018-09-30 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit 5c41aaad409c097cf1ef74f2c649fed994744ef5 ] Building drivers/mtd/nand/raw/nandsim.c on arch/hexagon/ produces a printk format build warning. This is due to hexagon's ffs() being coded as returning long instead of int. Fix the printk format warning by changin

[PATCH AUTOSEL 4.18 43/65] net: ena: fix potential double ena_destroy_device()

2018-09-30 Thread Sasha Levin
From: Netanel Belgazal [ Upstream commit fe870c77efdf8682252545cbd3d29800d8379efc ] ena_destroy_device() can potentially be called twice. To avoid this, check that the device is running and only then proceed destroying it. Signed-off-by: Netanel Belgazal Signed-off-by: David S. Miller Signed-

[PATCH AUTOSEL 4.18 59/65] s390/qeth: don't dump past end of unknown HW header

2018-09-30 Thread Sasha Levin
From: Julian Wiedmann [ Upstream commit 0ac1487c4b2de383b91ecad1be561b8f7a2c15f4 ] For inbound data with an unsupported HW header format, only dump the actual HW header. We have no idea how much payload follows it, and what it contains. Worst case, we dump past the end of the Inbound Buffer and

[PATCH AUTOSEL 4.18 41/65] net: ena: fix driver when PAGE_SIZE == 64kB

2018-09-30 Thread Sasha Levin
From: Netanel Belgazal [ Upstream commit ef5b0771d247379c90c8bf1332ff32f7f74bff7f ] The buffer length field in the ena rx descriptor is 16 bit, and the current driver passes a full page in each ena rx descriptor. When PAGE_SIZE equals 64kB or more, the buffer length field becomes zero. To solve

[PATCH AUTOSEL 4.18 32/65] drm/nouveau/TBDdevinit: don't fail when PMU/PRE_OS is missing from VBIOS

2018-09-30 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit 0a6986c6595e9afd20ff7280dab36431c1e467f8 ] This Falcon application doesn't appear to be present on some newer systems, so let's not fail init if we can't find it. TBD: is there a way to determine whether it *should* be there? Signed-off-by: Ben Skeggs Signed

[PATCH AUTOSEL 4.18 33/65] drm/nouveau/disp: fix DP disable race

2018-09-30 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit e04cfdc9b7398c60dbc70212415ea63b6c6a93ae ] If a HPD pulse signalling the need to retrain the link occurs between the KMS driver releasing the output and the supervisor interrupt that finishes the teardown, it was possible get a NULL-ptr deref. Avoid this by ma

[PATCH AUTOSEL 4.18 25/65] nvmet-rdma: fix possible bogus dereference under heavy load

2018-09-30 Thread Sasha Levin
From: Sagi Grimberg [ Upstream commit 8407879c4e0d7731f6e7e905893cecf61a7762c7 ] Currently we always repost the recv buffer before we send a response capsule back to the host. Since ordering is not guaranteed for send and recv completions, it is posible that we will receive a new request from th

[PATCH AUTOSEL 4.18 26/65] bnxt_re: Fix couple of memory leaks that could lead to IOMMU call traces

2018-09-30 Thread Sasha Levin
From: Somnath Kotur [ Upstream commit f40f299bbe806a2e2c8b0d7cdda822fa3bdd171b ] 1. DMA-able memory allocated for Shadow QP was not being freed. 2. bnxt_qplib_alloc_qp_hdr_buf() had a bug wherein the SQ pointer was erroneously pointing to the RQ. But since the corresponding free_qp_hdr_buf

[PATCH AUTOSEL 4.18 24/65] USB: yurex: Check for truncation in yurex_read()

2018-09-30 Thread Sasha Levin
From: Ben Hutchings [ Upstream commit 14427b86837a4baf1c121934c6599bdb67dfa9fc ] snprintf() always returns the full length of the string it could have printed, even if it was truncated because the buffer was too small. So in case the counter value is truncated, we will over-read from in_buffer a

[PATCH AUTOSEL 4.18 20/65] RDMA/ucma: check fd type in ucma_migrate_id()

2018-09-30 Thread Sasha Levin
From: Jann Horn [ Upstream commit 0d23ba6034b9cf48b8918404367506da3e4b3ee5 ] The current code grabs the private_data of whatever file descriptor userspace has supplied and implicitly casts it to a `struct ucma_file *`, potentially causing a type confusion. This is probably fine in practice beca

[PATCH AUTOSEL 4.18 07/65] HID: hid-saitek: Add device ID for RAT 7 Contagion

2018-09-30 Thread Sasha Levin
From: Harry Mallon [ Upstream commit 43822c98f2ebb2cbd5e467ab72bbcdae7f0caa22 ] Signed-off-by: Harry Mallon Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-ids.h| 1 + drivers/hid/hid-saitek.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/hid/hi

[PATCH AUTOSEL 4.18 29/65] dm raid: fix reshape race on small devices

2018-09-30 Thread Sasha Levin
From: Heinz Mauelshagen [ Upstream commit 38b0bd0cda07d34ad6f145fce675ead74739c44e ] Loading a new mapping table, the dm-raid target's constructor retrieves the volatile reshaping state from the raid superblocks. When the new table is activated in a following resume, the actual reshape position

[PATCH AUTOSEL 4.18 04/65] HID: add support for Apple Magic Keyboards

2018-09-30 Thread Sasha Levin
From: Sean O'Brien [ Upstream commit ee345492437043a79db058a3d4f029ebcb52089a ] USB device Vendor 05ac (Apple) Device 026c (Magic Keyboard with Numeric Keypad) Bluetooth devices Vendor 004c (Apple) Device 0267 (Magic Keyboard) Device 026c (Magic Keyboard

[PATCH AUTOSEL 4.18 18/65] Revert "iio: temperature: maxim_thermocouple: add MAX31856 part"

2018-09-30 Thread Sasha Levin
From: Matt Ranostay [ Upstream commit 65099ea85e885c3ea1272eca8774b771419d8ce8 ] This reverts commit 535fba29b3e1afef4ba201b3c69a6992583ec0bd. Seems the submitter (er me, hang head in shame) didn't look at the datasheet enough to see that the registers are quite different. This needs to be rev

[PATCH AUTOSEL 4.18 01/65] netfilter: xt_cluster: add dependency on conntrack module

2018-09-30 Thread Sasha Levin
From: Martin Willi [ Upstream commit c1dc2912059901f97345d9e10c96b841215fdc0f ] The cluster match requires conntrack for matching packets. If the netns does not have conntrack hooks registered, the match does not work at all. Implicitly load the conntrack hook for the family, exactly as many ot

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

2018-09-30 Thread Dave Chinner
On Sun, Sep 30, 2018 at 03:16:52PM +0100, Alan Cox wrote: > > > CAP_SYS_ADMIN is also a bit weird because low level access usually > > > implies you can bypass access controls so you should also check > > > CAP_SYS_DAC ? > > > > Do you mean CAP_DAC_READ_SEARCH as per the newer handle syscalls? >

Re: [PATCH V7 3/8] clocksource: add C-SKY SMP timer

2018-09-30 Thread Guo Ren
On Sun, Sep 30, 2018 at 09:22:30PM +0200, Daniel Lezcano wrote: > On 30/09/2018 18:18, Guo Ren wrote: > > This timer is used by SMP system and use mfcr/mtcr instruction > > to access the regs. > > > > Changelog: > > - Remove #define CPUHP_AP_CSKY_TIMER_STARTING > > - Add CPUHP_AP_CSKY_TIMER_STAR

Re: [PATCH] ARM: disable ARMv6 for Clang older than 8.0

2018-09-30 Thread Joe Perches
On Mon, 2018-10-01 at 00:22 +0200, Stefan Agner wrote: > The kernel passes the ArmV6K architecture to the compiler when > using the multi platform selection and enabling ARMv6. Clang > older than version 8.0 emit assembly with an non-existing CPU, > which then makes the assembler fail. Prevent the

[RFC 1/2] ns: introduce binfmt_misc namespace

2018-09-30 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- fs/proc/namespaces.c | 3 + include/linux/binfmt_namespace.h | 51 +++ include/linux/nsproxy.h | 2 + include/linux/proc_ns.h | 2 + include/linux/user_namespace.h | 1 + include/uapi/linux/sched.h | 1 + i

[RFC 0/2] ns: introduce binfmt_misc namespace

2018-09-30 Thread Laurent Vivier
This series introduces a new namespace for binfmt_misc. This allows to define a new interpreter for each new container. But the main goal is to be able to chroot to a directory using a binfmt_misc interpreter without being root. I have a modified version of unshare at: g...@github.com:vivier/

[RFC 2/2] binfmt_misc: move data to binfmt_namespace

2018-09-30 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- fs/binfmt_misc.c | 50 +--- include/linux/binfmt_namespace.h | 12 kernel/binfmt_namespace.c| 11 +++ 3 files changed, 49 insertions(+), 24 deletions(-) diff --git a/fs/binfmt_misc.c b/fs/binfmt_mi

[PATCH] staging: rtl8723bs: clean up clang warning on extraneous parentheses

2018-09-30 Thread Colin King
From: Colin Ian King There are extraneous parantheses that are causing clang to produce a warning so remove these. Clean up 3 clang warnings: equality comparison with extraneous parentheses [-Wparentheses-equality] Signed-off-by: Colin Ian King --- drivers/staging/rtl8723bs/core/rtw_security.

Re: [LKP] [rcutorture] 5aa56a54ce: WARNING:at_kernel/rcu/rcutorture.c:#rcu_torture_fwd_prog

2018-09-30 Thread Paul E. McKenney
On Sun, Sep 30, 2018 at 11:16:14AM +0800, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: 5aa56a54ce92761e974f93592f69b75b8c2398a8 ("rcutorture: Add call_rcu() > flooding forward-progress tests") > https://git.kernel.org/cgit/linux/kernel/git/paulmc

Re: [PATCH 0/3] namei: implement various scoping AT_* flags

2018-09-30 Thread Mickaël Salaün
On 9/30/18 23:46, Jann Horn wrote: > On Sun, Sep 30, 2018 at 10:39 PM Mickaël Salaün wrote: >> As a side note, I'm still working on Landlock which can achieve the same >> goal but in a more flexible and dynamic way: https://landlock.io > > Isn't Landlock mostly intended for userspace that wants

[PATCH] ARM: disable ARMv6 for Clang older than 8.0

2018-09-30 Thread Stefan Agner
The kernel passes the ArmV6K architecture to the compiler when using the multi platform selection and enabling ARMv6. Clang older than version 8.0 emit assembly with an non-existing CPU, which then makes the assembler fail. Prevent the user from selecting ARMv6 when using Clang before 8.0. Signed-

[PATCHv1 11/14] power: supply: ds2780: fix race-condition in bin attribute registration

2018-09-30 Thread Sebastian Reichel
This is a follow-up patch to the previous one, which fixed a race-condition during registration of the attribute group. This fixes the same issue for the binary attributes by adding them to the properly registered group. As a side effect the code is further cleaned up. Signed-off-by: Sebastian Rei

[PATCHv1 14/14] power: supply: ds2781: switch to devm_power_supply_register

2018-09-30 Thread Sebastian Reichel
Simplify/Cleanup the driver by switching to devm_power_supply_register and dropping the driver's remove function. Signed-off-by: Sebastian Reichel --- drivers/power/supply/ds2781_battery.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/power/supply/d

[PATCHv1 07/14] power: supply: bq24257: fix race-condition in sysfs registration

2018-09-30 Thread Sebastian Reichel
This registers custom sysfs properties using the native functionality of the power-supply framework, which cleans up the code a bit and fixes a race-condition. Before this patch the sysfs attributes were not properly registered to udev. Signed-off-by: Sebastian Reichel --- drivers/power/supply/b

[PATCHv1 06/14] power: supply: bq24190_charger: fix race-condition in sysfs registration

2018-09-30 Thread Sebastian Reichel
This registers custom sysfs properties using the native functionality of the power-supply framework, which cleans up the code a bit and fixes a race-condition. Before this patch the sysfs attributes were not properly registered to udev. Signed-off-by: Sebastian Reichel --- drivers/power/supply/b

[PATCHv1 12/14] power: supply: ds2781: fix race-condition in bin attribute registration

2018-09-30 Thread Sebastian Reichel
This is a follow-up patch to the previous one, which fixed a race-condition during registration of the attribute group. This fixes the same issue for the binary attributes by adding them to the properly registered group. As a side effect the code is further cleaned up. Signed-off-by: Sebastian Rei

[PATCHv1 13/14] power: supply: ds2780: switch to devm_power_supply_register

2018-09-30 Thread Sebastian Reichel
Simplify/Cleanup the driver by switching to devm_power_supply_register and dropping the driver's remove function. Signed-off-by: Sebastian Reichel --- drivers/power/supply/ds2780_battery.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/power/supply/d

[PATCHv1 09/14] power: supply: charger-manager: fix race-condition in sysfs registration

2018-09-30 Thread Sebastian Reichel
This registers custom sysfs properties using the native functionality of the power-supply framework, which cleans up the code a bit and fixes a race-condition. Before this patch the sysfs attributes were not properly registered to udev. Signed-off-by: Sebastian Reichel --- drivers/power/supply/c

[PATCHv1 08/14] power: supply: charger-manager: simplify generation of sysfs attribute group name

2018-09-30 Thread Sebastian Reichel
This is a simple cleanup and there should be no functional changes. Signed-off-by: Sebastian Reichel --- drivers/power/supply/charger-manager.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/supply/charger

[PATCHv1 10/14] power: supply: pcf50633: fix race-condition in sysfs registration

2018-09-30 Thread Sebastian Reichel
This registers custom sysfs properties using the native functionality of the power-supply framework, which cleans up the code a bit and fixes a race-condition. Before this patch the sysfs attributes were not properly registered to udev. Signed-off-by: Sebastian Reichel --- drivers/power/supply/p

[PATCHv1 05/14] power: supply: lp8788: fix race-condition in sysfs registration

2018-09-30 Thread Sebastian Reichel
This registers custom sysfs properties using the native functionality of the power-supply framework, which cleans up the code a bit and fixes a race-condition. Before this patch the sysfs attributes were not properly registered to udev. Signed-off-by: Sebastian Reichel --- drivers/power/supply/l

[PATCHv1 03/14] power: supply: ds2780: fix race-condition in sysfs registration

2018-09-30 Thread Sebastian Reichel
This registers custom sysfs properties using the native functionality of the power-supply framework, which cleans up the code a bit and fixes a race-condition. Before this patch the sysfs attributes were not properly registered to udev. Signed-off-by: Sebastian Reichel --- drivers/power/supply/d

[PATCHv1 02/14] power: supply: bq2415x: fix race-condition in sysfs registration

2018-09-30 Thread Sebastian Reichel
This registers custom sysfs properties using the native functionality of the power-supply framework, which cleans up the code a bit and fixes a race-condition. Before this patch the sysfs attributes were not properly registered to udev. Signed-off-by: Sebastian Reichel --- drivers/power/supply/b

[PATCHv1 04/14] power: supply: ds2781: fix race-condition in sysfs registration

2018-09-30 Thread Sebastian Reichel
This registers custom sysfs properties using the native functionality of the power-supply framework, which cleans up the code a bit and fixes a race-condition. Before this patch the sysfs attributes were not properly registered to udev. Signed-off-by: Sebastian Reichel --- drivers/power/supply/d

[PATCHv1 01/14] power: supply: core: add support for custom sysfs attributes

2018-09-30 Thread Sebastian Reichel
Add functionality to setup device specific sysfs attributes in a race condition free manner Signed-off-by: Sebastian Reichel --- drivers/power/supply/power_supply_core.c | 1 + include/linux/power_supply.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/power/supply/p

[PATCHv1 00/14] power: supply: Fix custom sysfs attribute registration

2018-09-30 Thread Sebastian Reichel
Hi, Udev may not detect sysfs attributes, that have been added after the device has been created. Code doing that is racy [0]. The power-supply class properly registers its attributes when the device is created, but some drivers add additional custom attributes in a racy way. The first patch from

Re: [PATCH 0/3] namei: implement various scoping AT_* flags

2018-09-30 Thread Jann Horn
On Sun, Sep 30, 2018 at 10:39 PM Mickaël Salaün wrote: > As a side note, I'm still working on Landlock which can achieve the same > goal but in a more flexible and dynamic way: https://landlock.io Isn't Landlock mostly intended for userspace that wants to impose a custom Mandatory Access Control

[PATCH] fs/exofs: Remove ignored __weak attribute

2018-09-30 Thread Nathan Chancellor
Clang warns that the __weak attribute is going to be ignored on g_attr_inode_data because it's not in the correct location (needs to be after the type). In file included from fs/exofs/dir.c:35: In file included from fs/exofs/exofs.h:41: fs/exofs/common.h:186:21: warning: 'weak' attribute only appl

Re: [PATCH 01/19] staging: rtl8188eu: cleanup inconsistent indenting

2018-09-30 Thread Joe Perches
On Sun, 2018-09-30 at 21:52 +0200, Michael Straube wrote: > Cleanup all inconsistent indenting reported by smatch. There are also some others like: drivers/staging/rtl8188eu/core/rtw_mlme.c:1752: WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (8, 24) 1750: if ((ndi

[PATCH v6 2/4] mm: move is_kernel_rodata() to asm-generic/sections.h

2018-09-30 Thread Bartosz Golaszewski
Export this routine so that we can use it later in devm_kstrdup_const() and devm_kfree(). Signed-off-by: Bartosz Golaszewski Reviewed-by: Bjorn Andersson Acked-by: Mike Rapoport Acked-by: Rasmus Villemoes Reviewed-by: Geert Uytterhoeven --- include/asm-generic/sections.h | 14 ++

[PATCH v6 1/4] devres: constify p in devm_kfree()

2018-09-30 Thread Bartosz Golaszewski
Make devm_kfree() signature uniform with that of kfree(). To avoid compiler warnings: cast p to (void *) when calling devres_destroy(). Signed-off-by: Bartosz Golaszewski Reviewed-by: Bjorn Andersson Reviewed-by: Geert Uytterhoeven Acked-by: Rasmus Villemoes --- drivers/base/devres.c | 5 +++

[PATCH v6 4/4] mailbox: tegra-hsp: use devm_kstrdup_const()

2018-09-30 Thread Bartosz Golaszewski
Use devm_kstrdup_const() in the tegra-hsp driver. This mostly serves as an example of how to use this new routine to shrink driver code. Also use devm_kzalloc() instead of regular kzalloc() to get shrink the driver even more. Doorbell objects are only removed in the driver's remove callback so it

[PATCH v6 3/4] devres: provide devm_kstrdup_const()

2018-09-30 Thread Bartosz Golaszewski
Provide a resource managed version of kstrdup_const(). This variant internally calls devm_kstrdup() on pointers that are outside of .rodata section and returns the string as is otherwise. Make devm_kfree() check if the passed pointer doesn't point to .rodata and if so - don't actually destroy the

[PATCH v6 0/4] devres: provide and use devm_kstrdup_const()

2018-09-30 Thread Bartosz Golaszewski
This series implements devm_kstrdup_const() together with some prerequisite changes and uses it in tegra-hsp driver. v1 -> v2: - fixed the changelog in the patch implementing devm_kstrdup_const() - fixed the kernel doc - moved is_kernel_rodata() to asm-generic/sections.h - fixed constness v2 -> v

Re: [PATCH RESEND] twl4030_charger: fix charging current out-of-bounds

2018-09-30 Thread Pavel Machek
On Mon 2018-09-17 07:20:35, Andreas Kemnade wrote: > the charging current uses unsigned int variables, if we step back > if the current is still low, we would run into negative which > means setting the target to a huge value. > Better add checks here. Do you expect this to happen in practice? Too

[PATCH 05/19] staging: rtl8188eu: add spaces around '*' in odm_hwconfig.c

2018-09-30 Thread Michael Straube
Add spaces around '*' in odm_hwconfig.c to follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/

[PATCH 03/19] staging: rtl8188eu: remove wrapper odm_SignalScaleMapping()

2018-09-30 Thread Michael Straube
The function odm_SignalScaleMapping() is just a wrapper for odm_SignalScaleMapping_92CSeries(). Rename odm_SignalScaleMapping_92CSeries() to odm_SignalScaleMapping() and remove the wrapper. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 7 +-- 1 file chang

[PATCH 09/19] staging: rtl8188eu: rename parameter of odm_EVMdbToPercentage()

2018-09-30 Thread Michael Straube
Rename parameter of odm_EVMdbToPercentage() to avoid CamelCase. Value -> value Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/odm_hwconfig.c b/drivers/staging/r

[PATCH 02/19] staging: rtl8188eu: rename odm_HWConfig

2018-09-30 Thread Michael Straube
Rename source and header file to avoid CamelCase. odm_HWConfig.c -> odm_hwconfig.c odm_HWConfig.h -> odm_hwconfig.h Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/Makefile | 2 +- .../staging/rtl8188eu/hal/{odm_HWConfig.c => odm_hwconfig.c}| 0 .../

[PATCH 07/19] staging: rtl8188eu: rename parameter of odm_QueryRxPwrPercentage()

2018-09-30 Thread Michael Straube
Rename parameter of odm_QueryRxPwrPercentage() to avoid CamelCase. AntPower -> antpower Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/odm_hwconfig.c b/driv

[PATCH 12/19] staging: rtl8188eu: rename variable in odm_SignalScaleMapping()

2018-09-30 Thread Michael Straube
Rename variable in odm_SignalScaleMapping() to avoid CamelCase. RetSig -> retsig Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/odm_hwconfig.c

[PATCH 04/19] staging: rtl8188eu: add spaces around '+' in odm_hwconfig.c

2018-09-30 Thread Michael Straube
Add spaces around '+' in odm_hwconfig.c to follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/odm_hwconfig.c b

[PATCH 15/19] staging: rtl8188eu: simplify block comment in pwrseq.c

2018-09-30 Thread Michael Straube
Simplify block comment to a single line to clear a checkpatch warning. WARNING: Block comments use * on subsequent lines Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/pwrseq.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/ha

[PATCH 13/19] staging: rtl8188eu: rename odm_SignalScaleMapping()

2018-09-30 Thread Michael Straube
Rename odm_SignalScaleMapping to avoid CamelCase. odm_SignalScaleMapping -> odm_signal_scale_mapping Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/odm_hwconfi

[PATCH 14/19] staging: rtl8188eu: correct block comment in bb_cfg.c

2018-09-30 Thread Michael Straube
Correct block comment to clear a checkpatch warning. WARNING: Block comments should align the * on each line Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/bb_cfg.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/bb_cfg.

[PATCH 10/19] staging: rtl8188eu: rename odm_EVMdbToPercentage()

2018-09-30 Thread Michael Straube
Rename odm_EVMdbToPercentage() to avoid CamelCase. odm_EVMdbToPercentage -> odm_evm_db_to_percentage Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/odm_hwconfig.

[PATCH 19/19] staging: rtl8188eu: fix spelling mistake in comment

2018-09-30 Thread Michael Straube
Fix a spelling mistake reported by checkpatch. Caculate -> Calculate Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_rtl8188e.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/hal/odm_rtl8188e.c b/drivers/staging/rtl8188eu/hal/o

[PATCH 06/19] staging: rtl8188eu: replace tabs with spaces in odm_hwconfig.c

2018-09-30 Thread Michael Straube
Replace tabs with spaces in odm_hwconfig.c where appropriate. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/odm_hwconfig.c b/drivers/staging/rtl8188eu/hal/odm_

[PATCH 01/19] staging: rtl8188eu: cleanup inconsistent indenting

2018-09-30 Thread Michael Straube
Cleanup all inconsistent indenting reported by smatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_efuse.c| 2 +- .../staging/rtl8188eu/core/rtw_ieee80211.c| 2 +- drivers/staging/rtl8188eu/core/rtw_led.c | 4 ++-- drivers/staging/rtl8188eu/core/rtw_mlme

[PATCH 18/19] staging: rtl8188eu: remove braces from single if statement

2018-09-30 Thread Michael Straube
Remove braces from single line if statement. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_rtl8188e.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/odm_rtl8188e.c b/drivers/staging/rtl8188eu/hal

[PATCH 08/19] staging: rtl8188eu: rename odm_QueryRxPwrPercentage()

2018-09-30 Thread Michael Straube
Rename odm_QueryRxPwrPercentage() to avoid CamelCase. odm_QueryRxPwrPercentage -> odm_query_rxpwrpercentage Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/od

[PATCH 17/19] staging: rtl8188eu: remove unnecessary parentheses in odm_rtl8188e.c

2018-09-30 Thread Michael Straube
Remove unnecessary parentheses in odm_rtl8188e.c. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_rtl8188e.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/odm_rtl8188e.c b/drivers/staging/rtl8

[PATCH 11/19] staging: rtl8188eu: rename parameter of odm_SignalScaleMapping()

2018-09-30 Thread Michael Straube
Rename parameter of odm_SignalScaleMapping() to avoid CamelCase. CurrSig -> currsig Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/odm_hwconfig.c | 31 ++-- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/odm_hwconfi

[PATCH 16/19] staging: rtl8188eu: add spaces around '+' in fw.c

2018-09-30 Thread Michael Straube
Add spaces around '+' in fw.c to follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/fw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/fw.c b/drivers/staging/rtl8188eu/hal

Re: [PATCH 0/3] namei: implement various scoping AT_* flags

2018-09-30 Thread Mickaël Salaün
As a side note, I'm still working on Landlock which can achieve the same goal but in a more flexible and dynamic way: https://landlock.io Regards, Mickaël On 9/29/18 12:34, Aleksa Sarai wrote: > The need for some sort of control over VFS's path resolution (to avoid > malicious paths resulting in

[GIT PULL] ARM: SoC fixes

2018-09-30 Thread Olof Johansson
Hi Linus, Greg, The following changes since commit a132bb90414bfad4f8ee23cb45fe6946a89b167d: Merge tag 'sunxi-fixes-for-4.19' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into fixes (2018-09-08 10:04:37 -0700) are available in the git repository at: git://git.kernel.org/

Re: [PATCH V7 3/8] clocksource: add C-SKY SMP timer

2018-09-30 Thread Daniel Lezcano
On 30/09/2018 18:18, Guo Ren wrote: > This timer is used by SMP system and use mfcr/mtcr instruction > to access the regs. > > Changelog: > - Remove #define CPUHP_AP_CSKY_TIMER_STARTING > - Add CPUHP_AP_CSKY_TIMER_STARTING in cpuhotplug.h > - Support csky mp timer alpha version. > - Just use l

"You are easily replacable" Bruce Peren's message to past contributors.

2018-09-30 Thread freedomfromruin
"Any actual kernel developers who leave will be replaced by one of the other 4000 active this year. If they have been vociferous about their rights to entirely unlimited conduct (and all of the side-issues that seem to come with that) it may be that the folks on the kernel mailing list are alre

Licenses and revocability, in a paragraph or less. (for the lay-man)

2018-09-30 Thread freedomfromruin
As has been stated in easily accessible terms elsewhere: "Most courts hold that simple, non-exclusive licenses with unspecified durations that are silent on revocability are revocable at will. This means that the licensor may terminate the license at any time, with or without cause." + Versio

The free software conservancy is wrong.

2018-09-30 Thread freedomfromruin
Gnu GPL version 2, section 0: "Each licensee is addressed as "you". " The "you" is not referring to the licensor (copyright owner). It is referring to the licensees and then future sub-licensees/additional-licensees receiving the work from said previous licensee. It is independently clear fr

[GIT PULL] Qualcomm Driver updates for 4.20

2018-09-30 Thread Andy Gross
The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/agross/linux.git tags/qcom-drivers-for-4.20 for you to fetch changes up to 579fde69d

[GIT PULL] Qualcomm Device Tree updates for 4.20

2018-09-30 Thread Andy Gross
The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/agross/linux.git tags/qcom-dts-for-4.20 for you to fetch changes up to ca02f96b95ca1

[GIT PULL] Qualcomm ARM64 Defconfig updates for 4.20

2018-09-30 Thread Andy Gross
The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/agross/linux.git tags/qcom-arm64-defconfig-for-4.20 for you to fetch changes up to 1

[GIT PULL] Qualcomm ARM64 DT updates for 4.20

2018-09-30 Thread Andy Gross
The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3: Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/agross/linux.git tags/qcom-arm64-for-4.20 for you to fetch changes up to 6db0483cf62

<    1   2   3   4   >