[PATCH net-next 02/10] devlink: Add param get command

2018-07-04 Thread Moshe Shemesh
Add param get command which gets data per parameter. Option to dump the parameters data per device. Signed-off-by: Moshe Shemesh Signed-off-by: Jiri Pirko --- include/uapi/linux/devlink.h | 11 ++ net/core/devlink.c | 250 +++ 2 files changed,

Re: [PATCH v2] leds: ledtrig-morse: send out morse code

2018-07-04 Thread Greg KH
On Wed, Jul 04, 2018 at 09:34:43AM +0200, Willy Tarreau wrote: > Hi Pavel, > > On Wed, Jul 04, 2018 at 08:53:05AM +0200, Pavel Machek wrote: > > As I stated before, I don't think morse encoder belongs in kernel. > > On the opposite, I think that the kernel needs to be a bit more autonomous > when

[PATCH 3/3] staging: rtl8188eu: rename Hal8188ERateAdaptive

2018-07-04 Thread Michael Straube
Rename header and source file to avoid CamelCase. Hal8188ERateAdaptive.h -> hal8188e_rate_adaptive.h Hal8188ERateAdaptive.c -> hal8188e_rate_adaptive.c Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/Makefile | 2 +- .../hal/{Hal8188ERateAdaptive.c => h

Re: [PATCH v3 4/4] arm64: dts: mediatek: add mt6765 support

2018-07-04 Thread Mars Cheng
Hi Marc On Wed, 2018-07-04 at 08:59 +0100, Marc Zyngier wrote: > On 04/07/18 08:47, Mars Cheng wrote: > > Hi Marc > > > > On Wed, 2018-07-04 at 08:35 +0100, Marc Zyngier wrote: > >> On 04/07/18 02:52, Mars Cheng wrote: > >>> This adds basic chip support for MT6765 SoC. > >>> > >>> Signed-off-by:

[PATCH 2/3] staging: rtl8188eu: rename Hal8188EPhyReg.h

2018-07-04 Thread Michael Straube
Rename header file to avoid CamelCase. Hal8188EPhyReg.h -> hal8188e_phy_reg.h Signed-off-by: Michael Straube --- .../rtl8188eu/include/{Hal8188EPhyReg.h => hal8188e_phy_reg.h} | 0 drivers/staging/rtl8188eu/include/rtl8188e_hal.h| 2 +- 2 files changed, 1 insertion(+), 1 deleti

[PATCH 1/3] staging: rtl8188eu: rename Hal8188EPhyCfg.h

2018-07-04 Thread Michael Straube
Rename header file to avoid CamelCase. Hal8188EPhyCfg.h -> hal8188e_phy_cfg.h Signed-off-by: Michael Straube --- .../rtl8188eu/include/{Hal8188EPhyCfg.h => hal8188e_phy_cfg.h} | 0 drivers/staging/rtl8188eu/include/hal_intf.h| 2 +- drivers/staging/rtl8188eu/include/rtl8188

Re: [PATCH V2 01/19] csky: Build infrastructure

2018-07-04 Thread Guo Ren
On Tue, Jul 03, 2018 at 06:03:04PM +0200, Arnd Bergmann wrote: > It looks like the CK8xx CPUs are basically compatible, so it would > be nice to have a way to configure a kernel that can run on all > of them, picking a safe default for options that depend on a > particular CPU. E.g. when only CK860

4.18-rc* regression: x86-32 troubles (with timers?)

2018-07-04 Thread Meelis Roos
I tried 4.18.0-rc1-00023-g9ffc59d57228 and now 4.18.0-rc3-00113-gfc36def997cf on a 32-bit server and then some other 32-bit machines, and got half-failed bootup - kernel and userspace come up but some services fail to start, including network and systemd-journald: systemd-journald[85]: Asserti

Re: [lkp-robot] [rcu] e46874dd99: WARNING:suspicious_RCU_usage

2018-07-04 Thread Paul E. McKenney
On Wed, Jul 04, 2018 at 02:43:47PM +0800, kernel test robot wrote: > > FYI, we noticed the following commit (built with gcc-7): > > commit: e46874dd99fa8ef78802bee8e80fe2844ae95cd1 ("[PATCH RFC tip/core/rcu > 1/2] rcu: Defer reporting RCU-preempt quiescent states when disabled") > url: > https:

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
Hi Javier, On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: Hi Nikolaus, On Wed, Jul 4, 2018 at 1:15 PM, Nikolaus Voss wrote: On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: [snip] I think Nikolaus is correct, assuming that the driver can be used on legacy platforms that register t

Re: [PATCH v2 1/1] mmc: sunxi: Disable irq during pm_suspend

2018-07-04 Thread Maxime Ripard
On Wed, Jul 04, 2018 at 12:34:01PM +0100, Marc Zyngier wrote: > On 04/07/18 11:50, Ulf Hansson wrote: > > + Marc > > > > On 4 July 2018 at 08:28, Stefan Mavrodiev wrote: > >> When mmc host controller enters suspend state, the clocks are > >> disabled, but irqs are not. For some reason the irqchip

Re: [PATCH V2 05/19] csky: System Call

2018-07-04 Thread Guo Ren
On Tue, Jul 03, 2018 at 09:53:48PM +0200, Arnd Bergmann wrote: > We really need all new architectures to use the generic syscall ABI, > see below for the details. Ok, follow the rules. > > +#define __ARCH_WANT_OLD_READDIR > > +#define __ARCH_WANT_RENAMEAT > > +#define __ARCH_WANT_STAT64 > > +#defi

Re: [PATCH 2/2] tools/memory-model: Add write ordering by release-acquire and by locks

2018-07-04 Thread Will Deacon
Hi Alan, On Fri, Jun 22, 2018 at 03:11:37PM -0400, Alan Stern wrote: > On Fri, 22 Jun 2018, Will Deacon wrote: > > On Fri, Jun 22, 2018 at 02:09:04PM -0400, Alan Stern wrote: > > > On Fri, 22 Jun 2018, Will Deacon wrote: > > > > Could we drop the acquire/release stuff from the patch and limit this

[RFC] ipc: refcounting / use after free?

2018-07-04 Thread Manfred Spraul
The ipc code uses the equivalent of rcu_read_lock(); kfree_rcu(a, rcu); if (a->deleted) { rcu_read_unlock(); return FAILURE; } <...> Is this safe, or is dereferencing "a" after having called call_rcu() a use-after-free? Acco

Re: [PATCH V2 19/19] irqchip: add C-SKY irqchip drivers

2018-07-04 Thread Guo Ren
On Wed, Jul 04, 2018 at 08:43:29AM +0200, Thomas Gleixner wrote: > > Do you mean merge irq-csky-v1.c irq-csky-v2.c irq-nationalchip.c into > > one file eg: irq-csky.c? > > Yes, but only if there is enough code to share without creating an ifdef > mess. But that looks doable Ok, I'll try. Guo Re

Re: [PATCH] mei: bus: type promotion bug in mei_nfc_if_version()

2018-07-04 Thread Julia Lawall
On Wed, 4 Jul 2018, Dan Carpenter wrote: > We accidentally removed the check for negative returns without > considering the issue of type promotion. The "if_version_length" > variable is type size_t so if __mei_cl_recv() returns a negative then > "bytes_recv" is type promoted to a high positiv

[PATCH 5/5] staging: rtl8192u: Refactor for coding style

2018-07-04 Thread John Whitmore
Changes to indentation and witespace issues in the ieee80211_softmac.c file. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/ieee80211_softmac.c| 1015 +++-- 1 file changed, 443 insertions(+), 572 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_sof

[PATCH 1/5] staging: rtl8192u: Use __func__ instead of hardcoded string - Style

2018-07-04 Thread John Whitmore
Changed logging statements to use %s and __func__ instead of hard coding the function name in a string. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/rtl819x_HTProc.c | 24 ++- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192u

[PATCH 3/5] staging: rtl8192u: Remove unused variable.

2018-07-04 Thread John Whitmore
Removed the unused variable from previously removed loop. Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b/drivers/staging/rtl8192u/ieee80211/rtl819x_HT

[PATCH 4/5] staging: rtl8192u: Remove redundant definitions in header

2018-07-04 Thread John Whitmore
Truncated header file removing definitions which aren't used. Signed-off-by: John Whitmore --- .../staging/rtl8192u/ieee80211/rtl819x_HT.h | 117 -- 1 file changed, 117 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h b/drivers/staging/rtl8192u/ieee80

[PATCH 2/5] staging: rtl8192u: Use memset to initialize memory, instead of loop.

2018-07-04 Thread John Whitmore
Replaced memory initialising loop with memset instead. Suggested-by: Andy Shevchenko Signed-off-by: John Whitmore --- drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b/d

Re: [PATCH v2] mfd: as3722: disable auto power on when AC OK

2018-07-04 Thread Marcel Ziswiler
On Wed, 2018-07-04 at 08:52 +0100, Lee Jones wrote: > On Tue, 03 Jul 2018, Marcel Ziswiler wrote: > > > From: Marcel Ziswiler > > > > On ams AS3722, power on when AC OK is enabled by default. > > Making this option as disable by default and enable only > > when platform need this explicitly. > >

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Javier Martinez Canillas
On Wed, Jul 4, 2018 at 1:46 PM, Nikolaus Voss wrote: [snip] >>> >>> Ok, in my opinion it is an elegant way of not bloating the driver when no >>> explicit handling (e.g. reading DT properties) is needed. Just adding an >>> of_device_id doesn't change any driver functionality then but only maps >

Re: [PATCH 4/5] kbuild: disable KBUILD_MODNAME when building for mod.a

2018-07-04 Thread Masahiro Yamada
2018-07-04 7:14 GMT+09:00 NeilBrown : > On Wed, Jun 27 2018, Masahiro Yamada wrote: > >> 2018-06-18 13:55 GMT+09:00 NeilBrown : >>> When building an object to be included in mod.a we >>> cannot know the name of the module. So don't define >>> KBUILD_MODNAME. This will ensure attempt to use >>> th

Re: [PATCH 2/2] tools/memory-model: Add write ordering by release-acquire and by locks

2018-07-04 Thread Will Deacon
Hi Alan, On Tue, Jul 03, 2018 at 01:28:17PM -0400, Alan Stern wrote: > On Mon, 25 Jun 2018, Andrea Parri wrote: > > > On Fri, Jun 22, 2018 at 07:30:08PM +0100, Will Deacon wrote: > > > > > I think the second example would preclude us using LDAPR for > > > > > load-acquire, > > > > > I don't thi

Re: [PATCH] ima: Use tpm_default_chip() and call TPM functions with a tpm_chip

2018-07-04 Thread Mimi Zohar
On Tue, 2018-07-03 at 19:32 +0300, Jarkko Sakkinen wrote: > On Mon, 2018-07-02 at 13:00 -0400, Mimi Zohar wrote: > > On Mon, 2018-07-02 at 11:24 -0400, Stefan Berger wrote: > > > Rather than accessing the TPM functions by passing a NULL pointer for > > > the tpm_chip, which causes a lookup for a su

Re: [PATCH 2/2] tools/memory-model: Add write ordering by release-acquire and by locks

2018-07-04 Thread Will Deacon
On Wed, Jul 04, 2018 at 04:28:52AM -0700, Paul E. McKenney wrote: > On Tue, Jul 03, 2018 at 01:28:17PM -0400, Alan Stern wrote: > > PS: Paul, is the patch which introduced rel-rf-acq-po currently present > > in any of your branches? I couldn't find it. > > It is not, I will add it back in. I mis

[PATCH V2] perf parser: Improve error message for PMU address filters

2018-07-04 Thread Jack Henschel
This is the second version of a patch that improves the error message of the perf events parser when the PMU hardware does not support address filters. Previously, the perf returned the following error: > $ perf record -e intel_pt// --filter 'filter sys_write' > --filter option should follow a -e

Re: [PATCH] mei: bus: type promotion bug in mei_nfc_if_version()

2018-07-04 Thread Dan Carpenter
On Wed, Jul 04, 2018 at 01:59:14PM +0200, Julia Lawall wrote: > > > On Wed, 4 Jul 2018, Dan Carpenter wrote: > > > We accidentally removed the check for negative returns without > > considering the issue of type promotion. The "if_version_length" > > variable is type size_t so if __mei_cl_recv(

Re: [PATCH 3/5] staging: rtl8192u: Remove unused variable.

2018-07-04 Thread Dan Carpenter
On Wed, Jul 04, 2018 at 12:59:23PM +0100, John Whitmore wrote: > Removed the unused variable from previously removed loop. > > Signed-off-by: John Whitmore This is fixing a warning that was introduced in a previous patch in this series. That's not allowed. Just fix the original patch instead.

Re: [PATCH v2 3/3] m68k: switch to MEMBLOCK + NO_BOOTMEM

2018-07-04 Thread Vlastimil Babka
On 07/04/2018 09:54 AM, Michal Hocko wrote: > On Wed 04-07-18 09:44:14, Geert Uytterhoeven wrote: > [...] >> [ cut here ] >> WARNING: CPU: 0 PID: 0 at mm/memblock.c:230 >> memblock_find_in_range_node+0x11c/0x1be >> memblock: bottom-up allocation failed, memory hotunplug may

Re: [PATCH 5/5] staging: rtl8192u: Refactor for coding style

2018-07-04 Thread Dan Carpenter
On Wed, Jul 04, 2018 at 12:59:25PM +0100, John Whitmore wrote: > Changes to indentation and witespace issues in the ieee80211_softmac.c file. > You're doing too much stuff in one patch. regards, dan carpenter

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: On Wed, Jul 4, 2018 at 1:46 PM, Nikolaus Voss wrote: [snip] But this discussion isn't really related to your patch. I think is correct but just said that (b) wasn't a justification to leave the I2C table, points (a) and (c) are though. I w

Re: [PATCH v2 3/3] m68k: switch to MEMBLOCK + NO_BOOTMEM

2018-07-04 Thread Michal Hocko
[CC Andrew - email thread starts http://lkml.kernel.org/r/1530685696-14672-1-git-send-email-r...@linux.vnet.ibm.com] OK, so here we go with the full patch. >From 0e8432b875d98a7a0d3f757fce2caa8d16a8de15 Mon Sep 17 00:00:00 2001 From: Michal Hocko Date: Wed, 4 Jul 2018 14:31:46 +0200 Subject: [PA

[PATCH v4 0/3] iio: hx711: add data-ready-delay

2018-07-04 Thread Andreas Klinger
This patch adds an additional property in the device tree for adjusting the delay between a rising edge on PD_SCK until data is ready on DOUT. This is necessary because of parasitic capacities on different systems. In the last patch there is a fix of dtc warning if someone is using the given exam

[PATCH v4 2/3] iio: hx711: add delay until DOUT is ready

2018-07-04 Thread Andreas Klinger
On a system with parasitic capacities it turned out that DOUT is not ready after 100 ns after PD_SCK has raised. A measurement showed almost 1000 ns until DOUT has reached its correct value. With this patch its now possible to wait until data is ready. The wait time should not be higher than the

[PATCH v4 1/3] iio: hx711: add clock-frequency property in DT

2018-07-04 Thread Andreas Klinger
Add clock-frequency property for hx711 ADC This is the frequency of PD_SCK. It affects only the high value duration since low value duration is not relevant and we are not able to switch faster than the minimum duration specified. After PD_SCK goes high DOUT is read just before PD_SCK goes down a

[PATCH v4 3/3] iio: hx711: warning in dt binding example doc

2018-07-04 Thread Andreas Klinger
device tree compiler (dtc) gives a warning if a device node has "@" with a following number as it's name but no reg property. fix the example in the documentation of avia,hx711 to conform to dtc behavior Signed-off-by: Andreas Klinger --- Documentation/devicetree/bindings/iio/adc/avia-hx711.txt

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Javier Martinez Canillas
On Wed, Jul 4, 2018 at 2:31 PM, Nikolaus Voss wrote: > On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: >> >> On Wed, Jul 4, 2018 at 1:46 PM, Nikolaus Voss >> wrote: >> > > [snip] > >> But this discussion isn't really related to your patch. I think is >> correct but just said that (b) wasn't a

linux-kernel@vger.kernel.org

2018-07-04 Thread Sandipan Das
Hi Xiaolong, On 07/04/2018 12:27 PM, kernel test robot wrote: > > FYI, we noticed the following commit (built with gcc-7): > > commit: 32a4debc7c89ee5e29c0bbdfdd3ae0ce0e01057f ("[PATCH] perf tests: Fix > regex for record+probe_libc_inet_pton.sh") > url: > https://github.com/0day-ci/linux/commi

Re: [PATCH v4 3/6] thermal: tsens: Rename tsens-8996 to tsens-v2 for reuse

2018-07-04 Thread Amit Kucheria
On Tue, Jul 3, 2018 at 12:23 AM Bjorn Andersson wrote: > > On Mon 02 Jul 05:44 PDT 2018, Amit Kucheria wrote: > > > The TSENS block inside the 8996 is internally classified as version 2 of > > the IP. Several other SoC families use this block and can share this code. > > > > We rename get_temp() t

Re: [PATCH v7 5/6] mfd: cros_ec_dev: Add CEC sub-device registration

2018-07-04 Thread Neil Armstrong
Hi Lee, On 04/07/2018 09:47, Lee Jones wrote: > On Fri, 01 Jun 2018, Neil Armstrong wrote: > >> The EC can expose a CEC bus, thus add the cros-ec-cec MFD sub-device >> when the CEC feature bit is present. >> >> Signed-off-by: Neil Armstrong >> Reviewed-by: Enric Balletbo i Serra >> Acked-by: Ha

[PATCH 07/25] ubifs: Store read superblock node

2018-07-04 Thread Sascha Hauer
The superblock node is read/modified/written several times throughout the UBIFS code. Instead of reading it from the device each time just keep a copy in memory and write back the modified copy when necessary. This patch helps for authentication support, here we not only have to read the superblock

[PATCH 11/25] ubifs: Create functions to embed a HMAC in a node

2018-07-04 Thread Sascha Hauer
With authentication support some nodes (master node, super block node) get a HMAC embedded into them. This patch adds functions to prepare and write such a node. The difficulty is that besides the HMAC the nodes also have a CRC which must stay valid. This means we first have to initialize all field

[PATCH 03/25] ubifs: pass ubifs_zbranch to read_znode()

2018-07-04 Thread Sascha Hauer
read_znode() takes len, lnum and offs arguments which the caller all extracts from the same struct ubifs_zbranch *. When adding authentication support we would have to add a pointer to a hash to the arguments which is also part of struct ubifs_zbranch. Pass the ubifs_zbranch * instead so that we do

[PATCH 10/25] ubifs: add helper functions for authentication support

2018-07-04 Thread Sascha Hauer
This patch adds the various helper functions needed for authentication support. We need functions to hash nodes, to embed HMACs into a node and to compare hashes and HMACs. Most functions first check if this filesystem is authenticated and bail out early if not, which makes the functions safe to be

[PATCH 22/25] ubifs: do not update inode size in-place in authenticated mode

2018-07-04 Thread Sascha Hauer
In authenticated mode we cannot fixup the inode sizes in-place during recovery as this would invalidate the hashes and HMACs we stored for this inode. Instead, we just write the updated inodes to the journal. We can only do this after ubifs_rcvry_gc_commit() is done though, so for authenticated mo

[PATCH 05/25] ubifs: implement ubifs_lpt_lookup using ubifs_pnode_lookup

2018-07-04 Thread Sascha Hauer
ubifs_lpt_lookup() starts by looking up the nth pnode in the LPT. We already have this functionality in ubifs_pnode_lookup(). Use this function rather than open coding its functionality. Signed-off-by: Sascha Hauer --- fs/ubifs/lpt.c | 20 ++-- 1 file changed, 2 insertions(+), 18

[PATCH 02/25] ubifs: pass ubifs_zbranch to try_read_node()

2018-07-04 Thread Sascha Hauer
try_read_node() takes len, lnum and offs arguments which the caller all extracts from the same struct ubifs_zbranch *. When adding authentication support we would have to add a pointer to a hash to the arguments which is also part of struct ubifs_zbranch. Pass the ubifs_zbranch * instead so that we

[PATCH 23/25] ubifs: Enable authentication support

2018-07-04 Thread Sascha Hauer
With the preparations all being done this patch now enables authentication support for UBIFS. Authentication is enabled when the newly introduced auth_key and auth_hash_name mount options are passed. auth_key provides the key which is used for authentication whereas auth_hash_name provides the hash

Re: [PATCH v2 3/3] m68k: switch to MEMBLOCK + NO_BOOTMEM

2018-07-04 Thread Mike Rapoport
On Wed, Jul 04, 2018 at 02:36:27PM +0200, Michal Hocko wrote: > [CC Andrew - email thread starts > http://lkml.kernel.org/r/1530685696-14672-1-git-send-email-r...@linux.vnet.ibm.com] > > OK, so here we go with the full patch. > > From 0e8432b875d98a7a0d3f757fce2caa8d16a8de15 Mon Sep 17 00:00:00 2

[PATCH 13/25] ubifs: authentication: Add hashes to index nodes

2018-07-04 Thread Sascha Hauer
With this patch the hashes over the index nodes stored in the tree node cache are written to flash and are checked when read back from flash. The hash of the root index node is stored in the master node. During journal replay the hashes are regenerated from the read nodes and stored in the tree no

[PATCH 25/25] Documentation: ubifs: Add authentication whitepaper

2018-07-04 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- .../filesystems/ubifs-authentication.md | 426 ++ 1 file changed, 426 insertions(+) create mode 100644 Documentation/filesystems/ubifs-authentication.md diff --git a/Documentation/filesystems/ubifs-authentication.md b/Documentation/filesyst

[PATCH 18/25] ubfis: authentication: authenticate master node

2018-07-04 Thread Sascha Hauer
The master node contains hashes over the root index node and the LPT. This patch adds a HMAC to authenticate the master node itself. Signed-off-by: Sascha Hauer --- fs/ubifs/master.c | 61 - fs/ubifs/recovery.c | 7 +++--- fs/ubifs/ubifs.h| 1 +

[PATCH 17/25] ubifs: authentication: authenticate LPT

2018-07-04 Thread Sascha Hauer
The LPT needs to be authenticated aswell. Since the LPT is only written during commit it is enough to authenticate the whole LPT with a single hash which is stored in the master node. Only the leaf nodes (pnodes) are hashed which makes the implementation much simpler than it would be to hash the co

[PATCH 00/25] UBIFS authentication support

2018-07-04 Thread Sascha Hauer
This patchset introduces UBIFS authentication support. With authentication enabled UBIFS is fully protected against offline changes. This is done by hashing the different parts of UBIFS and protecting the toplevel hashes with HMACs. The parts that are protected are: * the index tree * the journal

[PATCH 21/25] ubifs: Add hashes and HMACs to default filesystem

2018-07-04 Thread Sascha Hauer
This patch calculates the necessary hashes and HMACs for the default filesystem so that the dynamically created default fs can be authenticated. Signed-off-by: Sascha Hauer --- fs/ubifs/sb.c | 32 +--- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/fs/

[PATCH 20/25] ubifs: authentication: Authenticate super block node

2018-07-04 Thread Sascha Hauer
This adds a HMAC covering the super block node and adds the logic that decides if a filesystem shall be mounted unauthenticated or authenticated. Signed-off-by: Sascha Hauer --- fs/ubifs/sb.c | 63 ++- 1 file changed, 62 insertions(+), 1 deletion(-

[PATCH 15/25] ubifs: Add auth nodes to garbage collector journal head

2018-07-04 Thread Sascha Hauer
To be able to authenticate the garbage collector journal head add authentication nodes to the buds the garbage collector creates. Signed-off-by: Sascha Hauer --- fs/ubifs/gc.c | 37 ++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/fs/ubifs/gc.c

[PATCH 24/25] ubifs: support offline signed images

2018-07-04 Thread Sascha Hauer
HMACs can only be generated on the system the UBIFS image is running on. To support offline signed images we add a PKCS#7 signature to the UBIFS image which can be created by mkfs.ubifs. Both the master node and the superblock need to be authenticated, during normal runtime both are protected with

[PATCH 08/25] ubifs: Format changes for authentication support

2018-07-04 Thread Sascha Hauer
This patch adds the changes to the on disk format needed for authentication support. We'll add: * a HMAC covering super block node * a HMAC covering the master node * a hash over the root index node to the master node * a hash over the LPT to the master node * a flag to the filesystem flag indicat

[PATCH][next] usb: typec: unlock dp->lock on error exit path, and also zero ret if successful

2018-07-04 Thread Colin King
From: Colin Ian King One of the error handling paths forgets to unlock dp->lock on the error exit path leading to a potential lock-up. Also the return path for a successful call to the function configuration_store can return an uninitialized error return code if dp->alt->active is false, so ensu

[PATCH 16/25] ubifs: authenticate replayed journal

2018-07-04 Thread Sascha Hauer
Make sure that during replay all buds can be authenticated. To do this we calculate the hash chain until we find an authentication node and check the HMAC in that node against the current status of the hash chain. After a power cut it can happen that some nodes have been written, but not yet the a

[PATCH 14/25] ubifs: Add authentication nodes to journal

2018-07-04 Thread Sascha Hauer
Nodes that are written to flash can only be authenticated through the index after the next commit. When a journal replay is necessary the nodes are not yet referenced by the index and thus can't be authenticated. This patch overcomes this situation by creating a hash over all nodes beginning from

[PATCH 09/25] ubifs: add separate functions to init/crc a node

2018-07-04 Thread Sascha Hauer
When adding authentication support we will embed a HMAC into some nodes. To prepare these nodes we have to first initialize the nodes, then add a HMAC and finally add a CRC. To accomplish this add separate ubifs_init_node/ubifs_crc_node functions. Signed-off-by: Sascha Hauer --- fs/ubifs/io.c

[PATCH 04/25] ubifs: export pnode_lookup as ubifs_pnode_lookup

2018-07-04 Thread Sascha Hauer
ubifs_lpt_lookup could be implemented using pnode_lookup. To make that possible move pnode_lookup from lpt.c to lpt_commit.c. Rename it to ubifs_pnode_lookup since it's now exported. Signed-off-by: Sascha Hauer --- fs/ubifs/lpt.c| 32 fs/ubifs/lpt_commit.

[PATCH 12/25] ubifs: Add hashes to the tree node cache

2018-07-04 Thread Sascha Hauer
As part of the UBIFS authentication support every branch in the index gets a hash covering the referenced node. To make that happen the tree node cache needs hashes over the nodes. This patch adds a hash argument to ubifs_tnc_add() and ubifs_tnc_add_nm(). The hashes are calculated from the callers

[PATCH 01/25] ubifs: refactor create_default_filesystem()

2018-07-04 Thread Sascha Hauer
create_default_filesystem() allocates memory for a node, writes that node and frees the memory directly afterwards. With this patch we allocate memory for all nodes at the beginning of the function and free the memory at the end. This makes it easier to implement authentication support since with a

[PATCH 19/25] ubifs: Create hash for default LPT

2018-07-04 Thread Sascha Hauer
During creation of the default filesystem on an empty flash the default LPT is created. With this patch a hash over the default LPT is calculated which can be added to the default filesystems master node. Signed-off-by: Sascha Hauer --- fs/ubifs/lpt.c | 13 - fs/ubifs/sb.c| 3

[PATCH 06/25] ubifs: drop write_node

2018-07-04 Thread Sascha Hauer
write_node() is used only once and can easily be replaced with calls to ubifs_prepare_node()/write_head() which makes the code a bit shorter. Signed-off-by: Sascha Hauer --- fs/ubifs/journal.c | 39 +-- 1 file changed, 5 insertions(+), 34 deletions(-) diff --

Re: [PATCH v2 3/3] m68k: switch to MEMBLOCK + NO_BOOTMEM

2018-07-04 Thread Michal Hocko
On Wed 04-07-18 15:43:35, Mike Rapoport wrote: > On Wed, Jul 04, 2018 at 02:36:27PM +0200, Michal Hocko wrote: [...] > > diff --git a/mm/memblock.c b/mm/memblock.c > > index 03d48d8835ba..2acec4033389 100644 > > --- a/mm/memblock.c > > +++ b/mm/memblock.c > > @@ -227,7 +227,8 @@ phys_addr_t __init_

Re: [PATCH v2 3/3] m68k: switch to MEMBLOCK + NO_BOOTMEM

2018-07-04 Thread Mike Rapoport
On Wed, Jul 04, 2018 at 02:51:21PM +0200, Michal Hocko wrote: > On Wed 04-07-18 15:43:35, Mike Rapoport wrote: > > On Wed, Jul 04, 2018 at 02:36:27PM +0200, Michal Hocko wrote: > [...] > > > diff --git a/mm/memblock.c b/mm/memblock.c > > > index 03d48d8835ba..2acec4033389 100644 > > > --- a/mm/memb

Re: [PATCH V10] powercap/drivers/idle_inject: Add an idle injection framework

2018-07-04 Thread Daniel Lezcano
On 04/07/2018 12:49, Rafael J. Wysocki wrote: > On Tuesday, June 26, 2018 1:01:05 PM CEST Viresh Kumar wrote: >> On 26-06-18, 12:53, Daniel Lezcano wrote: >>> Initially, the cpu_cooling device for ARM was changed by adding a new >>> policy inserting idle cycles. The intel_powerclamp driver does a >

Re: [PATCH] ACPI: bus.c: Let acpi_device_get_match_data() return DT compatibility data

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Andy Shevchenko wrote: On Tue, Jul 3, 2018 at 9:09 AM, Nikolaus Voss wrote: Thanks for the patch, now I completely got it and agree on approach. Few comments below. When using ACPI with ACPI_DT_NAMESPACE_HID/ PRP0001 HID and referring to of_device_id table "compatible" str

[PATCH] clk: Really show symbolic clock flags in debugfs

2018-07-04 Thread Geert Uytterhoeven
The last-minute fold-in of the ENTRY() macro did change behavior: instead of printing the symbolic name (e.g. "CLK_IS_BASIC"), it prints the expansion of it (e.g. "(1UL << (5))"). Use "#" instead of __stringify() to fix this. Fixes: a6059ab98130fb56 ("clk: Show symbolic clock flags in debugfs")

Re: [PATCH] lightnvm: pblk: mark expected switch fall-through

2018-07-04 Thread Gustavo A. R. Silva
On 07/04/2018 03:07 AM, Matias Bjørling wrote: > On 07/03/2018 11:21 PM, Gustavo A. R. Silva wrote: >> In preparation to enabling -Wimplicit-fallthrough, mark switch cases >> where we are expecting to fall through. >> >> Signed-off-by: Gustavo A. R. Silva >> --- >>   drivers/lightnvm/pblk-core.

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-04 Thread Michal Hocko
On Tue 03-07-18 20:05:06, Mike Rapoport wrote: > Most functions in memblock already use phys_addr_t to represent a physical > address with __memblock_free_late() being an exception. > > This patch replaces u64 with phys_addr_t in __memblock_free_late() and > switches several format strings from %l

Re: [PATCH v2 3/3] m68k: switch to MEMBLOCK + NO_BOOTMEM

2018-07-04 Thread Geert Uytterhoeven
Hi Michal, On Wed, Jul 4, 2018 at 2:36 PM Michal Hocko wrote: > [CC Andrew - email thread starts > http://lkml.kernel.org/r/1530685696-14672-1-git-send-email-r...@linux.vnet.ibm.com] > > OK, so here we go with the full patch. > > From 0e8432b875d98a7a0d3f757fce2caa8d16a8de15 Mon Sep 17 00:00:00 2

[PATCH v2] KVM: Expose the split lock detection feature to guest VM

2018-07-04 Thread Jingqi Liu
A new control bit(bit 29) in the TEST_CTRL MSR will be introduced to enable detection of split locks. When bit 29 of the TEST_CTRL(33H) MSR is set, the processor causes an #AC exception to be issued instead of suppressing LOCK on bus(during split lock access). A previous control bit (bit 31) in th

Re: [PATCH v2 3/3] m68k: switch to MEMBLOCK + NO_BOOTMEM

2018-07-04 Thread Michal Hocko
On Wed 04-07-18 15:05:08, Geert Uytterhoeven wrote: > Hi Michal, > > On Wed, Jul 4, 2018 at 2:36 PM Michal Hocko wrote: > > [CC Andrew - email thread starts > > http://lkml.kernel.org/r/1530685696-14672-1-git-send-email-r...@linux.vnet.ibm.com] > > > > OK, so here we go with the full patch. > > >

[PATCH 0/3] nios2: switch to NO_BOOTMEM

2018-07-04 Thread Mike Rapoport
These patches switch nios2 boot time memory allocators from bootmem to memblock + no_bootmem. As nios2 uses fdt, the conversion is pretty much about actually using the existing fdt infrastructure for the early memory management. The first patch in the series is not strictly related to nios2. It's

[PATCH 1/3] of: ignore sub-page memory regions

2018-07-04 Thread Mike Rapoport
Memory region size is rounded down to page boundary and with sub-page region it becomes 0 and there is no point to add an empty region. Moreover, when the base is less than PAGE_SIZE we get a bogus size as (base + size - 1) evaluates to -1. The commit 8cccffc52694 ("of: check for size < 0 after ro

[PATCH 3/3] nios2: switch to NO_BOOTMEM

2018-07-04 Thread Mike Rapoport
Remove bootmem bitmap initialization and replace reserve_bootmem() with memblock_reserve(). Signed-off-by: Mike Rapoport --- arch/nios2/Kconfig| 2 ++ arch/nios2/kernel/prom.c | 7 --- arch/nios2/kernel/setup.c | 37 + 3 files changed, 7 inserti

Re: [PATCH 2/3] mmc: sdhci: add quirk to prevent higher speed modes

2018-07-04 Thread Stefan Agner
On 04.07.2018 13:16, Ulf Hansson wrote: > On 4 July 2018 at 12:55, Stefan Agner wrote: >> On 04.07.2018 12:07, Ulf Hansson wrote: >>> On 3 July 2018 at 10:48, Stefan Agner wrote: On 02.07.2018 16:36, Ulf Hansson wrote: > On 28 June 2018 at 10:13, Stefan Agner wrote: >> Some hosts ar

[PATCH 2/3] nios2: use generic early_init_dt_add_memory_arch

2018-07-04 Thread Mike Rapoport
All we have to do is to enable memblock, the generic FDT code will take care of the rest. Signed-off-by: Mike Rapoport --- arch/nios2/Kconfig| 1 + arch/nios2/kernel/prom.c | 10 -- arch/nios2/kernel/setup.c | 2 ++ 3 files changed, 3 insertions(+), 10 deletions(-) diff --git

Re: 4.17.x won't boot due to "x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G"

2018-07-04 Thread Kirill A. Shutemov
On Tue, Jul 03, 2018 at 11:10:27PM -0400, Benjamin Gilbert wrote: > On Tue, Jul 03, 2018 at 05:21:50PM +0300, Kirill A. Shutemov wrote: > > I don't know how to solve it. As far as I know we don't support compiling > > kernel with LTO in mainline. > > > > Any suggestions? > > > > Benjamin, do you

Re: [PATCH v2 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: On Wed, Jul 4, 2018 at 2:31 PM, Nikolaus Voss wrote: On Wed, 4 Jul 2018, Javier Martinez Canillas wrote: On Wed, Jul 4, 2018 at 1:46 PM, Nikolaus Voss wrote: [snip] But this discussion isn't really related to your patch. I think is cor

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-04 Thread Mike Rapoport
On Wed, Jul 04, 2018 at 03:05:00PM +0200, Michal Hocko wrote: > On Tue 03-07-18 20:05:06, Mike Rapoport wrote: > > Most functions in memblock already use phys_addr_t to represent a physical > > address with __memblock_free_late() being an exception. > > > > This patch replaces u64 with phys_addr_t

Re: [PATCH] c6x: switch to NO_BOOTMEM

2018-07-04 Thread Mike Rapoport
Any comments on this? On Wed, Jun 27, 2018 at 03:09:20PM +0300, Mike Rapoport wrote: > The c6x is already using memblock and does most of early memory > reservations with it, so it was only a matter of removing the bootmem > initialization and handover of the memory from memblock to bootmem. > >

Re: [PATCH v4 1/2] iio: dac: Add AD5758 support

2018-07-04 Thread Popa, Stefan Serban
On Du, 2018-07-01 at 00:26 +0300, Andy Shevchenko wrote: > On Fri, Jun 29, 2018 at 11:38 AM, Stefan Popa wrote: > > > > The AD5758 is a single channel DAC with 16-bit precision which uses the > > SPI interface that operates at clock rates up to 50MHz. > > > > The output can be configured as volt

Re: [PATCH] mm/memblock: replace u64 with phys_addr_t where appropriate

2018-07-04 Thread Michal Hocko
On Wed 04-07-18 16:24:11, Mike Rapoport wrote: > On Wed, Jul 04, 2018 at 03:05:00PM +0200, Michal Hocko wrote: > > On Tue 03-07-18 20:05:06, Mike Rapoport wrote: > > > Most functions in memblock already use phys_addr_t to represent a physical > > > address with __memblock_free_late() being an excep

Re: [PATCH v2 1/1] mmc: sunxi: Disable irq during pm_suspend

2018-07-04 Thread Ulf Hansson
On 4 July 2018 at 13:34, Marc Zyngier wrote: > On 04/07/18 11:50, Ulf Hansson wrote: >> + Marc >> >> On 4 July 2018 at 08:28, Stefan Mavrodiev wrote: >>> When mmc host controller enters suspend state, the clocks are >>> disabled, but irqs are not. For some reason the irqchip emits >>> false inter

[PATCH v3 2/2] IIO: st_accel_i2c.c: Use probe_new() instead of probe()

2018-07-04 Thread Nikolaus Voss
struct i2c_device_id argument of probe() is not used, so use probe_new() instead. Signed-off-by: Nikolaus Voss --- drivers/iio/accel/st_accel_i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/st_accel_i2c.c b/drivers/iio/accel/st_accel_i2c.c index c

[PATCH v3 1/2] IIO: st_accel_i2c.c: Simplify access to driver data

2018-07-04 Thread Nikolaus Voss
Use device_get_match_data API to simplify access to driver data. Let acpi_device_id table entries point to the same driver data as of_device_id table entries and uniquify access to driver data by using device_get_match_data API. Remove unused i2c_device_id .driver_data fields. Signed-off-by: Nikol

[PATCH v3 0/2] IIO: st_sensors_i2c: improve device enumeration

2018-07-04 Thread Nikolaus Voss
When trying to instantiate a st_accel_i2c device from an ACPI based system, I ran into some problems: For my device, there is no ACPI match table entry, so rather than creating /allocating a new ACPI HID for the device, I wanted to use an existing DT table compatible entry via creating an ACPI_DT_

Re: [PATCH v3 4/6] bus: ti-sysc: Add support for software reset

2018-07-04 Thread Faiz Abbas
Hi, On Tuesday 03 July 2018 01:01 PM, Tony Lindgren wrote: > * Faiz Abbas [180703 07:31]: >> Hi, >> >> On Tuesday 03 July 2018 12:37 PM, Tony Lindgren wrote: >>> * Tony Lindgren [180611 07:06]: * Faiz Abbas [180611 06:48]: > Hi, > > On Monday 11 June 2018 11:59 AM, Tony Lindgre

Re: [PATCH v2] KVM: Expose the split lock detection feature to guest VM

2018-07-04 Thread Paolo Bonzini
On 04/07/2018 15:06, Jingqi Liu wrote: > A new control bit(bit 29) in the TEST_CTRL MSR will be introduced > to enable detection of split locks. > > When bit 29 of the TEST_CTRL(33H) MSR is set, the processor > causes an #AC exception to be issued instead of suppressing LOCK on > bus(during split

Re: [PATCH V2 1/3] scsi: ufs: set the device reference clock setting

2018-07-04 Thread Sayali Lokhande
On 7/3/2018 11:34 PM, Rob Herring wrote: On Thu, Jun 21, 2018 at 2:52 AM sayali wrote: Hi Rob, Please check my comment inline. As mentioned in the back and forth comments previously in this thread, please fix your email client (hint: you can't use Outlook) and properly quote your replies (i

Re: [PATCH 13/19] mmc: mmci: send stop cmd if a data command fail

2018-07-04 Thread Ulf Hansson
On 12 June 2018 at 15:14, Ludovic Barre wrote: > From: Ludovic Barre > > The mmc framework follows the requirement of SD_Specification: > the STOP_TRANSMISSION is sent on multiple write/read commands > and the stop command (alone), not needed on other ADTC commands. > > But, some variants require

[PATCH v2 2/4] samples/bpf: Check the result of system()

2018-07-04 Thread Taeung Song
To avoid the below build warning message, use new generate_load() checking the return value. ignoring return value of ‘system’, declared with attribute warn_unused_result And it also refactors the duplicate code of both test_perf_event_all_cpu() and test_perf_event_task() Cc: Teng Qin Signed-

<    1   2   3   4   5   6   7   >