Re: USB Attached SCSI breakage due no udev involvement

2020-05-09 Thread Greg KH
On Sun, May 10, 2020 at 09:55:57AM +0700, Dio Putra wrote: > Hi, it's first time for me to report user-space breakage in here, so > i'm begging your pardon. > > I want to report that Linux 5.4 breaking my USB mount workflow due > udevadm monitor report here (I'm using vanilla kernel 5.4.39 on >

[rcu:dev.2020.05.07a] BUILD SUCCESS 1af6526eb52eb1fb840f5941e1b8691d49e03674

2020-05-09 Thread kbuild test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.05.07a branch HEAD: 1af6526eb52eb1fb840f5941e1b8691d49e03674 locking/osq_lock: Annotate a data race in osq_lock i386-tinyconfig vmlinux size:

Re: [PATCH net-next 4/4] net: phy: bcm54140: add cable diagnostics support

2020-05-09 Thread kbuild test robot
Hi Michael, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] [also build test ERROR on next-20200508] [cannot apply to net/master linus/master ipvs/master v5.7-rc4] [if your patch is applied to the wrong git tree, please drop us a note to help improve

Re: [PATCH] net/sonic: Fix some resource leaks in error handling paths

2020-05-09 Thread Markus Elfring
> Is there a way to add a Fixes tag that would not invoke the -stable > process? And was that what you had in mind? Christophe Jaillet proposed to complete the exception handling also for this function implementation. I find that such a software correction is qualified for this tag.

[PATCH] powerpc/kvm/book3s64/vio: fix some RCU-list locks

2020-05-09 Thread Qian Cai
It is unsafe to traverse kvm->arch.spapr_tce_tables and stt->iommu_tables without the RCU read lock held. Also, add cond_resched_rcu() in places with the RCU read lock held that could take a while to finish. arch/powerpc/kvm/book3s_64_vio.c:76 RCU-list traversed in non-reader section!! other

Re: [PATCH v3] kernel: add panic_on_taint

2020-05-09 Thread Baoquan He
On 05/09/20 at 09:10pm, Randy Dunlap wrote: > On 5/9/20 7:59 PM, Baoquan He wrote: > > Read admin-guide/tainted-kernels.rst, but still do not get what 'G' means. > > I interpret 'G' as GPL (strictly it means that no proprietary module has > been loaded). But I don't see why

[PATCH] powerpc/mm/book3s64/iommu: fix some RCU-list locks

2020-05-09 Thread Qian Cai
It is safe to traverse mm->context.iommu_group_mem_list with either mem_list_mutex or the RCU read lock held. Silence a few RCU-list false positive warnings and fix a few missing RCU read locks. arch/powerpc/mm/book3s64/iommu_api.c:330 RCU-list traversed in non-reader section!! other info

[PATCH v1] dt-bindings: serial: qca,ar9330-uart: Convert to json-schema

2020-05-09 Thread Oleksij Rempel
Convert the Qualcomm Atheros AR9330 High-Speed UART Device Tree binding documentation to json-schema. Signed-off-by: Oleksij Rempel --- .../bindings/serial/qca,ar9330-uart.txt | 31 .../bindings/serial/qca,ar9330-uart.yaml | 50 +++ 2 files changed, 50

Re: [PATCH v9 8/8] x86/split_lock: Enable split lock detection initialization when running as an guest on KVM

2020-05-09 Thread Andy Lutomirski
On Fri, May 8, 2020 at 8:04 PM Xiaoyao Li wrote: > > When running as guest, enumerating feature split lock detection through > CPU model is not easy since CPU model is configurable by host VMM. > > If running upon KVM, it can be enumerated through > KVM_FEATURE_SPLIT_LOCK_DETECT, This needs

[PATCH] powerpc/powernv/pci: fix a RCU-list lock

2020-05-09 Thread Qian Cai
It is unsafe to traverse tbl->it_group_list without the RCU read lock. WARNING: suspicious RCU usage 5.7.0-rc4-next-20200508 #1 Not tainted - arch/powerpc/platforms/powernv/pci-ioda-tce.c:355 RCU-list traversed in non-reader section!! other info that might help

Re: [PATCH v9 3/8] x86/split_lock: Introduce flag X86_FEATURE_SLD_FATAL and drop sld_state

2020-05-09 Thread Andy Lutomirski
On Fri, May 8, 2020 at 8:03 PM Xiaoyao Li wrote: > > Introduce a synthetic feature flag X86_FEATURE_SLD_FATAL, which means > kernel is in sld_fatal mode if set. > > Now sld_state is not needed any more that the state of SLD can be > inferred from X86_FEATURE_SPLIT_LOCK_DETECT and

Re: [RFC PATCH 0/7] mm: Get rid of vmalloc_sync_(un)mappings()

2020-05-09 Thread Andy Lutomirski
On Sat, May 9, 2020 at 2:57 PM Joerg Roedel wrote: > > Hi Andy, > > On Sat, May 09, 2020 at 12:05:29PM -0700, Andy Lutomirski wrote: > > So, unless I'm missing something here, there is an absolute maximum of > > 512 top-level entries that ever need to be synchronized. > > And here is where your

Re: [patch V4 part 5 02/31] x86/entry: Provide helpers for execute on irqstack

2020-05-09 Thread Lai Jiangshan
On Tue, May 5, 2020 at 10:19 PM Thomas Gleixner wrote: > > Device interrupt handlers and system vector handlers are executed on the > interrupt stack. The stack switch happens in the low level assembly entry > code. This conflicts with the efforts to consolidate the exit code in C to > ensure

Re: [PATCH 3/5] exec: Remove recursion from search_binary_handler

2020-05-09 Thread Tetsuo Handa
On 2020/05/10 4:41, Eric W. Biederman wrote: > --- a/fs/binfmt_misc.c > +++ b/fs/binfmt_misc.c > @@ -234,10 +234,7 @@ static int load_misc_binary(struct linux_binprm *bprm) > if (retval < 0) > goto error; > > - retval = search_binary_handler(bprm); > - if (retval < 0)

Re: [PATCH v2 2/2] serial: lantiq: Make driver modular

2020-05-09 Thread kbuild test robot
to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Rahul-Tanwar/serial-lantiq-Make-UART-s-use-as-console-selectable/20200509-174007 base

Re: [PATCH v3] kernel: add panic_on_taint

2020-05-09 Thread Randy Dunlap
On 5/9/20 7:59 PM, Baoquan He wrote: > Read admin-guide/tainted-kernels.rst, but still do not get what 'G' means. I interpret 'G' as GPL (strictly it means that no proprietary module has been loaded). But I don't see why TAINT_PROPRIETARY_MODULE is the only taint flag that has a non-blank

Re: [PATCH v2 5/5] drm/panel: add panel driver for Ilitek ili9341 panels

2020-05-09 Thread dillon min
Sam Ravnborg 于2020年5月10日周日 上午4:06写道: > > Hi Dillon. > > On Fri, May 08, 2020 at 06:13:43PM +0800, dillon min wrote: > > Hi Sam, > > > > Thanks for your comments, i will rework this panel driver after l3gd20 > > patch submission. > > > > Sam Ravnborg 于2020年5月8日周五 下午5:02写道: > > > > > Hi Dillon.

Re: [PATCH v2] netprio_cgroup: Fix unlimited memory leak of v2 cgroups

2020-05-09 Thread Jakub Kicinski
On Fri, 8 May 2020 22:58:29 -0700 Jakub Kicinski wrote: > On Sat, 9 May 2020 11:32:10 +0800 Zefan Li wrote: > > If systemd is configured to use hybrid mode which enables the use of > > both cgroup v1 and v2, systemd will create new cgroup on both the default > > root (v2) and netprio_cgroup

Re: [PATCH] net/mlx5: Replace zero-length array with flexible-array

2020-05-09 Thread Jakub Kicinski
On Sat, 9 May 2020 23:43:08 + Saeed Mahameed wrote: > > Saeed, I'm expecting you to take this and the mlx4 patch via your > > trees. > > Yes for the mlx5 patch, but usually Dave takes mlx4 patches directly. Ack, it said IB on it, but looks like the patch can as well be applied to net-next,

Re: [PATCH] IB/mlx4: Replace zero-length array with flexible-array

2020-05-09 Thread Jakub Kicinski
On Thu, 7 May 2020 13:59:21 -0500 Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99:

Re: [PATCH] net/mlx5: Replace zero-length array with flexible-array

2020-05-09 Thread Saeed Mahameed
On Thu, 2020-05-07 at 13:59 -0500, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array > member[1][2], > introduced in

[PATCH] ALSA: hda/realtek: Add quirk for Samsung Notebook

2020-05-09 Thread Mike Pozulp
Some models of the Samsung Notebook 9 have very quiet and distorted headphone output. This quirk changes the VREF value of the ALC298 codec NID 0x1a from default HIZ to new 100. Signed-off-by: Mike Pozulp --- sound/pci/hda/patch_realtek.c | 10 ++ 1 file changed, 10 insertions(+) diff

Re: [PATCHES] uaccess simple access_ok() removals

2020-05-09 Thread Al Viro
On Sat, May 09, 2020 at 05:34:58PM -0700, Linus Torvalds wrote: > On Sat, May 9, 2020 at 4:41 PM Al Viro wrote: > > > > Individual patches in followups; if nobody screams - into #for-next > > it goes... > > Looks fine to me, although I only read your commit logs, I didn't > verify that

Re: [PATCH net-next 3/4] net: phy: broadcom: add cable test support

2020-05-09 Thread kbuild test robot
Hi Michael, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] [also build test ERROR on next-20200508] [cannot apply to net/master linus/master ipvs/master v5.7-rc4] [if your patch is applied to the wrong git tree, please drop us a note to help improve

Re: [PATCH 05/20] tomoyo_write_control(): get rid of pointless access_ok()

2020-05-09 Thread Al Viro
On Sat, May 09, 2020 at 05:57:56PM -0700, Linus Torvalds wrote: > On Sat, May 9, 2020 at 5:51 PM Tetsuo Handa > wrote: > > > > I think that this access_ok() check helps reducing partial writes (either > > "whole amount was processed" or "not processed at all" unless -ENOMEM). > > No it doesn't.

Re: [PATCH v3] kernel: add panic_on_taint

2020-05-09 Thread Baoquan He
On 05/09/20 at 09:57am, Rafael Aquini wrote: > Analogously to the introduction of panic_on_warn, this patch > introduces a kernel option named panic_on_taint in order to > provide a simple and generic way to stop execution and catch > a coredump when the kernel gets tainted by any given taint

USB Attached SCSI breakage due no udev involvement

2020-05-09 Thread Dio Putra
Hi, it's first time for me to report user-space breakage in here, so i'm begging your pardon. I want to report that Linux 5.4 breaking my USB mount workflow due udevadm monitor report here (I'm using vanilla kernel 5.4.39 on Slackware64 Current and vanilla kernel 4.4.221 on Slackware64 14.2): $

[PATCH] clk / soc: mediatek: fix ptr_ret.cocci warnings

2020-05-09 Thread kbuild test robot
From: kbuild test robot drivers/soc/mediatek/mtk-mmsys.c:28:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Fixes: 13032709e232 ("clk / soc: mediatek: Move mt8173 MMSYS to platform

Re: [patch V4 part 5 13/31] x86/irq: Convey vector as argument and not in ptregs

2020-05-09 Thread Lai Jiangshan
On Tue, May 5, 2020 at 10:23 PM Thomas Gleixner wrote: > +/* > + * ASM code to emit the common vector entry stubs where each stub is > + * packed into 8 bytes. > + * > + * Note, that the 'pushq imm8' is emitted via '.byte 0x6a, vector' because > + * GCC treats the local vector variable as

Re: [PATCH v5 1/9] w1_therm: adding code comments and code reordering

2020-05-09 Thread Randy Dunlap
Hi-- On 5/9/20 4:57 PM, Akira Shimahara wrote: > Adding code comments to split code in dedicated parts. After the global > declarations (defines, macros and function declarations), code is organized > as follow : > - Device and family dependent structures and functions > - Interfaces functions

Re: [PATCH 01/15] taint: add module firmware crash taint support

2020-05-09 Thread Randy Dunlap
On 5/9/20 9:46 AM, Luis Chamberlain wrote: > On Sat, May 09, 2020 at 11:18:29AM -0400, Rafael Aquini wrote: >> We are still missing the documentation bits for this >> new flag, though. > > Ah yeah sorry about that. > >> How about having a blurb similar to: >> >> diff --git

Re: [PATCH 00/15] net: taint when the device driver firmware crashes

2020-05-09 Thread Shannon Nelson
On 5/9/20 6:58 PM, Andrew Lunn wrote: On Sat, May 09, 2020 at 06:01:51PM -0700, Shannon Nelson wrote: On 5/8/20 9:35 PM, Luis Chamberlain wrote: Device driver firmware can crash, and sometimes, this can leave your system in a state which makes the device or subsystem completely useless.

Re: [PATCH] gcc-plugins: remove always false $(if ...) in Makefile

2020-05-09 Thread Kees Cook
On Sun, May 10, 2020 at 11:00:44AM +0900, Masahiro Yamada wrote: > This is the remnant of commit c17d6179ad5a ("gcc-plugins: remove unused > GCC_PLUGIN_SUBDIR"). > > $(if $(findstring /,$(p)),...) is always false because none of plugins > contains '/' in the file name. > > Clean up the code. >

[PATCH] gcc-plugins: remove always false $(if ...) in Makefile

2020-05-09 Thread Masahiro Yamada
This is the remnant of commit c17d6179ad5a ("gcc-plugins: remove unused GCC_PLUGIN_SUBDIR"). $(if $(findstring /,$(p)),...) is always false because none of plugins contains '/' in the file name. Clean up the code. Signed-off-by: Masahiro Yamada --- scripts/gcc-plugins/Makefile | 2 +- 1 file

Re: [PATCH 00/15] net: taint when the device driver firmware crashes

2020-05-09 Thread Andrew Lunn
On Sat, May 09, 2020 at 06:01:51PM -0700, Shannon Nelson wrote: > On 5/8/20 9:35 PM, Luis Chamberlain wrote: > > Device driver firmware can crash, and sometimes, this can leave your > > system in a state which makes the device or subsystem completely > > useless. Detecting this by inspecting

[PATCH v6 4/6] arch/x86/kvm: Refactor L1D flushing

2020-05-09 Thread Balbir Singh
Move out the initialization function to l1d_flush_init_once() so that it can be reused for subsequent patches. The side-effect of this patch is that the memory allocated for l1d flush pages is no longer freed up and the memory allocated once is shared amongst callers. l1d_flush_sw/hw() are now

[PATCH v6 2/6] arch/x86/kvm: Refactor tlbflush and l1d flush

2020-05-09 Thread Balbir Singh
Refactor the existing assembly bits into smaller helper functions and also abstract L1D_FLUSH into a helper function. Use these functions in kvm for L1D flushing. Reviewed-by: Kees Cook Signed-off-by: Balbir Singh --- arch/x86/include/asm/cacheflush.h | 3 ++ arch/x86/kernel/l1d_flush.c

[PATCH v6 6/6] Documentation: Add L1D flushing Documentation

2020-05-09 Thread Balbir Singh
Add documentation of l1d flushing, explain the need for the feature and how it can be used. Signed-off-by: Balbir Singh Reviewed-by: Kees Cook --- Documentation/admin-guide/hw-vuln/index.rst | 1 + .../admin-guide/hw-vuln/l1d_flush.rst | 40 +++ 2 files changed, 41

[PATCH v6 1/6] arch/x86/kvm: Refactor l1d flush lifecycle management

2020-05-09 Thread Balbir Singh
Split out the allocation and free routines to be used in a follow up set of patches (to reuse for L1D flushing). Signed-off-by: Balbir Singh Reviewed-by: Kees Cook --- arch/x86/include/asm/cacheflush.h | 3 +++ arch/x86/kernel/Makefile | 1 + arch/x86/kernel/l1d_flush.c | 36

[PATCH v6 0/6] Optionally flush L1D on context switch

2020-05-09 Thread Balbir Singh
Provide a mechanism to flush the L1D cache on context switch. The goal is to allow tasks that are paranoid due to the recent snoop assisted data sampling vulnerabilites, to flush their L1D on being switched out. This protects their data from being snooped or leaked via side channels after the

[PATCH v6 3/6] arch/x86/mm: Refactor cond_ibpb() to support other use cases

2020-05-09 Thread Balbir Singh
cond_ibpb() has the necessary bits required to track the previous mm in switch_mm_irqs_off(). This can be reused for other use cases like L1D flushing (on context switch out). Suggested-by: Thomas Gleixner Signed-off-by: Balbir Singh --- arch/x86/include/asm/tlbflush.h | 2 +-

[PATCH v6 5/6] Optionally flush L1D on context switch

2020-05-09 Thread Balbir Singh
Implement a mechanism to selectively flush the L1D cache. The goal is to allow tasks that are paranoid due to the recent snoop assisted data sampling vulnerabilites, to flush their L1D on being switched out. This protects their data from being snooped or leaked via side channels after the task

Re: [PATCH v11 00/18] Enable FSGSBASE instructions

2020-05-09 Thread Dave Hansen
On 5/9/20 10:36 AM, Sasha Levin wrote: > Changes from v10: > > - Rewrite the commit message for patch #1. > - Document communication/acks from userspace projects that are >potentially affected by this. I'm glad someone's pushing this forward. But, I'm also very curious how you came to be

Re: [PATCH] tty: hvc: Fix data abort due to race in hvc_open

2020-05-09 Thread rananta
On 2020-05-06 02:48, Greg KH wrote: On Mon, Apr 27, 2020 at 08:26:01PM -0700, Raghavendra Rao Ananta wrote: Potentially, hvc_open() can be called in parallel when two tasks calls open() on /dev/hvcX. In such a scenario, if the hp->ops->notifier_add() callback in the function fails, where it

Re: [PATCH] drm/mediatek: eliminate the magic number in array size

2020-05-09 Thread Chun-Kuang Hu
Hi, Bernard: Bernard Zhao 於 2020年5月6日 週三 下午8:43寫道: > > Eiminate the magic number in array size, there macro defines in > hdmi.h. Applied to mediatek-drm-next [1], thanks. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-next Regards, Chun-Kuang

Re: [PATCH v2] drm/mediatek: cleanup coding style in mediatek a bit

2020-05-09 Thread Chun-Kuang Hu
Hi, Bernard: Bernard Zhao 於 2020年5月6日 週三 下午8:34寫道: > > This code change is to make code bit more readable. > Applied to mediatek-drm-next [1], thanks. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-next Regards, Chun-Kuang > Signed-off-by:

Re: [PATCH 0/3] Convert mtk-dpi to drm_bridge API

2020-05-09 Thread Chun-Kuang Hu
Hi, Enric: Enric Balletbo i Serra 於 2020年5月4日 週一 下午10:14寫道: > > The mtk-dpi driver still uses the drm_encoder API which is now somehow > deprecated. We started to move all the Mediatek drivers to the drm_bridge API, > like we did for the mtk-dsi driver [1], this is another small step to be able

Re: [PATCH] parisc: suppress error messages for 'make clean'

2020-05-09 Thread Masahiro Yamada
Hi Helge, On Sun, May 10, 2020 at 2:39 AM Helge Deller wrote: > > * Masahiro Yamada : > > Hi Helge, > > > > On Sat, May 9, 2020 at 6:46 AM Helge Deller wrote: > > > > > > * Masahiro Yamada : > > > > On Sat, Apr 25, 2020 at 2:47 PM Masahiro Yamada > > > > wrote: > > > > > > > > > > 'make

Re: [RFC PATCH 0/7] mm: Get rid of vmalloc_sync_(un)mappings()

2020-05-09 Thread Matthew Wilcox
On Sat, May 09, 2020 at 11:25:16AM +0200, Peter Zijlstra wrote: > On Fri, May 08, 2020 at 11:34:07PM +0200, Joerg Roedel wrote: > > On Fri, May 08, 2020 at 09:20:00PM +0200, Peter Zijlstra wrote: > > > The only concern I have is the pgd_lock lock hold times. > > > > > > By not doing on-demand

Re: [PATCH v4 4/5] blktrace: break out of blktrace setup on concurrent calls

2020-05-09 Thread Bart Van Assche
On 2020-05-08 20:10, Luis Chamberlain wrote: > @@ -493,6 +496,12 @@ static int do_blk_trace_setup(struct request_queue *q, > char *name, dev_t dev, >*/ > strreplace(buts->name, '/', '_'); > > + if (q->blk_trace) { > + pr_warn("Concurrent blktraces are not allowed

Re: [PATCH 05/20] tomoyo_write_control(): get rid of pointless access_ok()

2020-05-09 Thread Tetsuo Handa
On 2020/05/10 9:57, Linus Torvalds wrote: > On Sat, May 9, 2020 at 5:51 PM Tetsuo Handa > wrote: >> >> I think that this access_ok() check helps reducing partial writes (either >> "whole amount was processed" or "not processed at all" unless -ENOMEM). > > No it doesn't. > > "access_ok()" only

[PATCH v5] streamline_config.pl: add LMC_KEEP to preserve some kconfigs

2020-05-09 Thread Changbin Du
Sometimes it is useful to preserve batches of configs when making localmodconfig. For example, I usually don't want any usb and fs modules to be disabled. Now we can do it by: $ make LMC_KEEP="drivers/usb:fs" localmodconfig Signed-off-by: Changbin Du --- v4: fix typo. v3: rename

Re: [PATCH] bpfilter: check if $(CC) can static link in Kconfig

2020-05-09 Thread Alexei Starovoitov
On Sat, May 9, 2020 at 12:40 AM Masahiro Yamada wrote: > > On Fedora, linking static libraries requires the glibc-static RPM > package, which is not part of the glibc-devel package. > > CONFIG_CC_CAN_LINK does not check the capability of static linking, > so you can enable CONFIG_BPFILTER_UMH,

Re: [PATCH 00/15] net: taint when the device driver firmware crashes

2020-05-09 Thread Shannon Nelson
On 5/8/20 9:35 PM, Luis Chamberlain wrote: Device driver firmware can crash, and sometimes, this can leave your system in a state which makes the device or subsystem completely useless. Detecting this by inspecting /proc/sys/kernel/tainted instead of scraping some magical words from the kernel

Re: [PATCH 05/20] tomoyo_write_control(): get rid of pointless access_ok()

2020-05-09 Thread Linus Torvalds
On Sat, May 9, 2020 at 5:51 PM Tetsuo Handa wrote: > > I think that this access_ok() check helps reducing partial writes (either > "whole amount was processed" or "not processed at all" unless -ENOMEM). No it doesn't. "access_ok()" only checks the range being a valid user address range. It

Re: [PATCH v4 3/5] blktrace: fix debugfs use after free

2020-05-09 Thread Bart Van Assche
On 2020-05-08 20:10, Luis Chamberlain wrote: > Screenshots of what the debugfs for block looks like after running > blktrace on a system with sg0 which has a raid controllerand then sg1 > as the media changer: > > # ls -l /sys/kernel/debug/block > total 0 > drwxr-xr-x 3 root root 0 May 9

Re: [PATCH 05/20] tomoyo_write_control(): get rid of pointless access_ok()

2020-05-09 Thread Tetsuo Handa
Hello, Al. I think that this access_ok() check helps reducing partial writes (either "whole amount was processed" or "not processed at all" unless -ENOMEM). Do you think that such attempt is pointless? Then, please go ahead... On 2020/05/10 8:45, Al Viro wrote: > From: Al Viro > > address is

Re: [PATCH v11 12/18] x86/fsgsbase/64: move save_fsgs to header file

2020-05-09 Thread kbuild test robot
Hi Sasha, I love your patch! Yet something to improve: [auto build test ERROR on tip/x86/asm] [also build test ERROR on tip/auto-latest linus/master tip/x86/core v5.7-rc4 next-20200508] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we

My Dear in the lord

2020-05-09 Thread Mina A. Brunel
My Dear in the lord My name is Mrs. Mina A. Brunel I am a Norway Citizen who is living in Burkina Faso, I am married to Mr. Brunel Patrice, a politicians who owns a small gold company in Burkina Faso; He died of Leprosy and Radesyge, in year February 2010, During his lifetime he deposited

Re: [PATCH v4 1/5] block: revert back to synchronous request_queue removal

2020-05-09 Thread Bart Van Assche
On 2020-05-08 20:10, Luis Chamberlain wrote: > We revert back to synchronous request_queue removal because asynchronous > removal creates a regression with expected userspace interaction with > several drivers. An example is when removing the loopback driver, one > uses ioctls from userspace to do

Re: [PATCHES] uaccess simple access_ok() removals

2020-05-09 Thread Linus Torvalds
On Sat, May 9, 2020 at 4:41 PM Al Viro wrote: > > Individual patches in followups; if nobody screams - into #for-next > it goes... Looks fine to me, although I only read your commit logs, I didn't verify that what you stated was actually true (ie the whole "only used for xyz" parts).

Re: [PATCH v12 00/11] Support ROHM BD99954 charger IC

2020-05-09 Thread Sebastian Reichel
Hi, On Fri, May 08, 2020 at 06:20:24PM +0100, Mark Brown wrote: > On Fri, May 08, 2020 at 06:38:17PM +0300, Matti Vaittinen wrote: > > Please note that this series should be applied to two trees. Patches > > 1-4 (or 1-5 as suggested by Sebastian) should go to regulator tree. > > Perhaps Mark can

[rcu:rcu/next] BUILD SUCCESS 373b78add5ef0c6fd1154304208252dbf0309114

2020-05-09 Thread kbuild test robot
86 randconfig-a005-20200510 i386 randconfig-a003-20200510 i386 randconfig-a001-20200510 i386 randconfig-a004-20200510 i386 randconfig-a002-20200510 x86_64 randconfig-a015-20200509 x86_64 randconfig-a0

Re: [PATCH 2/2] spi: Add Baikal-T1 System Boot SPI Controller driver

2020-05-09 Thread Serge Semin
On Fri, May 08, 2020 at 12:37:51PM +0100, Mark Brown wrote: > On Fri, May 08, 2020 at 12:36:21PM +0300, Serge Semin wrote: > > Your CC list on this series is *very* wide - are you sure that this is > relevant to everyone you're sending things to? Kernel developers often > get a lot of mail

Re: [PATCH hmm v2 1/5] mm/hmm: make CONFIG_DEVICE_PRIVATE into a select

2020-05-09 Thread Andrew Morton
On Fri, 1 May 2020 15:20:44 -0300 Jason Gunthorpe wrote: > From: Jason Gunthorpe > > There is no reason for a user to select this or not directly - it should > be selected by drivers that are going to use the feature, similar to how > CONFIG_HMM_MIRROR works. > > Currently all drivers

Re: [PATCH net-next 3/4] net: phy: broadcom: add cable test support

2020-05-09 Thread Florian Fainelli
On 5/9/2020 3:37 PM, Michael Walle wrote: > Most modern broadcom PHYs support ECD (enhanced cable diagnostics). Add > support for it in the bcm-phy-lib so they can easily be used in the PHY > driver. > > There are two access methods for ECD: legacy by expansion registers and > via the new RDB

Re: [PATCH net-next 4/4] net: phy: bcm54140: add cable diagnostics support

2020-05-09 Thread Florian Fainelli
On 5/9/2020 3:37 PM, Michael Walle wrote: > Use the generic cable tester functions from bcm-phy-lib to add cable > tester support. > > 100m cable, A/B/C/D open: > Cable test started for device eth0. > Cable test completed for device eth0. > Pair: Pair A, result: Open Circuit > Pair:

Re: [PATCH net-next 4/4] net: phy: bcm54140: add cable diagnostics support

2020-05-09 Thread kbuild test robot
Hi Michael, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] [also build test ERROR on next-20200508] [cannot apply to net/master linus/master v5.7-rc4] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system.

[PATCH v5 9/9] w1_therm: adding bulk read support to trigger multiple conversion on bus

2020-05-09 Thread Akira Shimahara
Adding bulk read support: Sending a 'trigger' command in the dedicated sysfs entry of bus master device send a conversion command for all the slaves on the bus. The sysfs entry is added as soon as at least one device supporting this feature is detected on the bus. The behavior of the sysfs

[PATCH v5 7/9] w1_therm: optimizing temperature read timings

2020-05-09 Thread Akira Shimahara
Optimizing temperature reading by reducing waiting conversion time according to device resolution settings, as per device specification. This is device dependent as not all the devices supports resolution setting, so it has been added in device family structures. The process to read the

[PATCH v5 8/9] w1_therm: adding alarm sysfs entry

2020-05-09 Thread Akira Shimahara
Adding device alarms settings by a dedicated sysfs entry alarms (RW): read or write TH and TL in the device RAM. Checking devices in alarm state could be performed using the master search command. As alarms temperature level are store in a 8 bit register on the device and are signed values, a

[PATCH v5 6/9] w1_therm: adding eeprom sysfs entry

2020-05-09 Thread Akira Shimahara
Adding eeprom sysfs entry (WO) to trigger either device EEPROM save (by writing 'save' in the sysfs), either device EEPROM restore (by writing 'restore' in the sysfs). All the RAM of the device will be save/restore, whatever its size (actually 2 or 3 bytes): resolution config register and alarms

[PATCH v5 5/9] w1_therm: adding resolution sysfs entry

2020-05-09 Thread Akira Shimahara
Adding resolution sysfs entry (RW) to get or set the device resolution Write values are managed as follow: * '9..12': resolution to set in bit * Anything else: do nothing Read values are : * '9..12': device resolution in bit * '-xx': xx is kernel error when reading

[PATCH v5 4/9] w1_therm: adding ext_power sysfs entry

2020-05-09 Thread Akira Shimahara
Adding ext_power sysfs entry (RO). Return the power status of the device: - 0: device parasite powered - 1: device externally powered - xx: xx is kernel error The power status of each device is check when the device is discover by the bus master, in 'w1_therm_add_slave(struct w1_slave *)'. The

[PATCH v5 3/9] w1_therm: adding sysfs-driver-w1_therm doc

2020-05-09 Thread Akira Shimahara
Adding a sysfs-driver-w1_therm documentation file in Documentation/ABI/testing. It describe the onlys sysfs entry of w1_therm module, based on Documentation/w1/slaves/w1_therm.rst Signed-off-by: Akira Shimahara --- Changes in v5: - All patch serie in one .c file - Correcting some comments -

[PATCH v5 2/9] w1_therm: fix reset_select_slave during discovery

2020-05-09 Thread Akira Shimahara
Fix reset_select_slave issue during devices discovery by the master on bus. The w1_reset_select_slave() from w1_io.c, which was previously used, assume that if the slave count is 1 there is only one slave attached on the bus. This is not always true. For example when discovering devices, when the

[PATCH v5 1/9] w1_therm: adding code comments and code reordering

2020-05-09 Thread Akira Shimahara
Adding code comments to split code in dedicated parts. After the global declarations (defines, macros and function declarations), code is organized as follow : - Device and family dependent structures and functions - Interfaces functions - Helpers functions - Hardware functions - Sysfs

Re: [PATCH] net/sonic: Fix some resource leaks in error handling paths

2020-05-09 Thread Finn Thain
On Fri, 8 May 2020, Jakub Kicinski wrote: > On Fri, 8 May 2020 19:25:57 +0200 Christophe JAILLET wrote: > > @@ -527,8 +531,9 @@ static int mac_sonic_platform_remove(struct > > platform_device *pdev) > > struct sonic_local* lp = netdev_priv(dev); > > > > unregister_netdev(dev); > > -

Re: [PATCH net-next 2/4] net: phy: broadcom: add bcm_phy_modify_exp()

2020-05-09 Thread Florian Fainelli
On 5/9/2020 3:37 PM, Michael Walle wrote: > Add the convenience function to do a read-modify-write. This has the > additional benefit of saving one write to the selection register. > > Signed-off-by: Michael Walle Reviewed-by: Florian Fainelli -- Florian

[PATCH 07/20] nvram: drop useless access_ok()

2020-05-09 Thread Al Viro
From: Al Viro we are using copy_to_user()/memdup_user() anyway Signed-off-by: Al Viro --- drivers/char/nvram.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/char/nvram.c b/drivers/char/nvram.c index 4667844eee69..8206412d25ba 100644 --- a/drivers/char/nvram.c +++

[PATCH 01/20] dlmfs_file_write(): get rid of pointless access_ok()

2020-05-09 Thread Al Viro
From: Al Viro address passed only to copy_from_user() Signed-off-by: Al Viro --- fs/ocfs2/dlmfs/dlmfs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c index 1de77f1a600b..a06f19b67d3b 100644 --- a/fs/ocfs2/dlmfs/dlmfs.c +++

[PATCH 02/20] fat_dir_ioctl(): hadn't needed that access_ok() for more than a decade...

2020-05-09 Thread Al Viro
From: Al Viro address is passed only to put_user() and copy_to_user() Signed-off-by: Al Viro --- fs/fat/dir.c | 4 1 file changed, 4 deletions(-) diff --git a/fs/fat/dir.c b/fs/fat/dir.c index 054acd9fd033..b4ddf48fa444 100644 --- a/fs/fat/dir.c +++ b/fs/fat/dir.c @@ -804,8 +804,6 @@

Re: [PATCH net-next 1/4] net: phy: broadcom: add exp register access methods without buslock

2020-05-09 Thread Florian Fainelli
On 5/9/2020 3:37 PM, Michael Walle wrote: > Add helper to read and write expansion registers without taking the mdio > lock. > > Please note, that this changes the semantics of the read and write. > Before there was no lock between selecting the expansion register and > the actual read/write.

[PATCH 03/20] btrfs_ioctl_send(): don't bother with access_ok()

2020-05-09 Thread Al Viro
From: Al Viro we do copy_from_user() on that range anyway Signed-off-by: Al Viro --- fs/btrfs/send.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index c5f41bd86765..6a92ecf9eaa2 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -7065,13

[PATCH 06/20] n_hdlc_tty_read(): remove pointless access_ok()

2020-05-09 Thread Al Viro
From: Al Viro only copy_to_user() is done to the address in question Signed-off-by: Al Viro --- drivers/tty/n_hdlc.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/tty/n_hdlc.c b/drivers/tty/n_hdlc.c index 991f49ee4026..b09eac4b6d64 100644 --- a/drivers/tty/n_hdlc.c +++

[PATCH 18/20] usb: get rid of pointless access_ok() calls

2020-05-09 Thread Al Viro
From: Al Viro in all affected cases addresses are passed only to copy_from()_user or copy_to_user(). Signed-off-by: Al Viro --- drivers/usb/core/devices.c | 2 -- drivers/usb/core/devio.c| 9 - drivers/usb/gadget/function/f_hid.c | 6 -- 3 files changed, 17

[PATCH 13/20] drivers/crypto/ccp/sev-dev.c: get rid of pointless access_ok()

2020-05-09 Thread Al Viro
From: Al Viro Contrary to the comments, those do *NOT* verify anything about writability of memory, etc. In all cases addresses are passed only to copy_to_user(). Signed-off-by: Al Viro --- drivers/crypto/ccp/sev-dev.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-)

[PATCH v6 17/18] mtd: Support kmsg dumper based on pstore/blk

2020-05-09 Thread Kees Cook
From: WeiXiong Liao This introduces mtdpstore, which is similar to mtdoops but more powerful. It uses pstore/blk, and aims to store panic and oops logs to a flash partition, where pstore can later read back and present as files in the mounted pstore filesystem. To make mtdpstore work, the

[PATCH 15/20] drm_read(): get rid of pointless access_ok()

2020-05-09 Thread Al Viro
From: Al Viro address is passed only to copy_to_user() Signed-off-by: Al Viro --- drivers/gpu/drm/drm_file.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/drm_file.c b/drivers/gpu/drm/drm_file.c index eb009d3ab48f..6a1f6c802415 100644 --- a/drivers/gpu/drm/drm_file.c

[PATCH v6 16/18] pstore/blk: Support non-block storage devices

2020-05-09 Thread Kees Cook
From: WeiXiong Liao Add support for non-block devices (e.g. MTD). A non-block driver calls pstore_blk_register_device() to register iself. In addition, pstore/zone is updated to handle non-block devices, where an erase must be done before a write. Without this, there is no way to remove records

[PATCH v6 18/18] pstore/blk: Introduce "best_effort" mode

2020-05-09 Thread Kees Cook
In order to use arbitrary block devices as a pstore backend, provide a new module param named "best_effort", which will allow using any block device, even if it has not provided a panic_write callback. Signed-off-by: Kees Cook --- fs/pstore/blk.c | 19 ++- 1 file changed, 18

[PATCH 16/20] efi_test: get rid of pointless access_ok()

2020-05-09 Thread Al Viro
From: Al Viro really, people - get_user(), copy_from_user(), memdup_user(), etc. all fail if access_ok() does. Signed-off-by: Al Viro --- drivers/firmware/efi/test/efi_test.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/firmware/efi/test/efi_test.c

[PATCH 12/20] omapfb: get rid of pointless access_ok() calls

2020-05-09 Thread Al Viro
From: Al Viro address is passed only to copy_to_user() Signed-off-by: Al Viro --- drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c b/drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c index

[PATCH 17/20] lpfc_debugfs: get rid of pointless access_ok()

2020-05-09 Thread Al Viro
From: Al Viro No, you do NOT need to "protect copy from user" that way. Incidentally, your userland ABI stinks. I understand that you wanted to accept "reset" and "reset\n" as equivalent, but I suspect that accepting "reset this, you !@^!@!" had been an accident. Nothing to do about

[PATCH 08/20] cm4000_cs.c cmm_ioctl(): get rid of pointless access_ok()

2020-05-09 Thread Al Viro
From: Al Viro copy_to_user()/copy_from_user() for everything Signed-off-by: Al Viro --- drivers/char/pcmcia/cm4000_cs.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/char/pcmcia/cm4000_cs.c b/drivers/char/pcmcia/cm4000_cs.c index 4edb4174a1e2..89681f07bc78 100644

[PATCH 11/20] amifb: get rid of pointless access_ok() calls

2020-05-09 Thread Al Viro
From: Al Viro addresses passed only to get_user() and put_user() Signed-off-by: Al Viro --- drivers/video/fbdev/amifb.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/video/fbdev/amifb.c b/drivers/video/fbdev/amifb.c index 20e03e00b66d..6062104f3afb 100644 ---

[PATCH 05/20] tomoyo_write_control(): get rid of pointless access_ok()

2020-05-09 Thread Al Viro
From: Al Viro address is passed only to get_user() Signed-off-by: Al Viro --- security/tomoyo/common.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/security/tomoyo/common.c b/security/tomoyo/common.c index 1b467381986f..f93f8acd05f7 100644 --- a/security/tomoyo/common.c +++

[PATCH 09/20] drivers/fpga/dfl-fme-pr.c: get rid of pointless access_ok()

2020-05-09 Thread Al Viro
From: Al Viro followed by copy_from_user() Signed-off-by: Al Viro --- drivers/fpga/dfl-fme-pr.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/fpga/dfl-fme-pr.c b/drivers/fpga/dfl-fme-pr.c index a233a53db708..1194c0e850e0 100644 --- a/drivers/fpga/dfl-fme-pr.c +++

[PATCH 04/20] FIEMAP: don't bother with access_ok()

2020-05-09 Thread Al Viro
From: Al Viro we use copy_to_user() on that thing anyway (and always had). Signed-off-by: Al Viro --- fs/ext4/ioctl.c | 5 - fs/ioctl.c | 5 - 2 files changed, 10 deletions(-) diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c index bfc1281fc4cb..a0afd0338722 100644 ---

[PATCH 14/20] via-pmu: don't bother with access_ok()

2020-05-09 Thread Al Viro
From: Al Viro we are using copy_to_user() for actual copying Signed-off-by: Al Viro --- drivers/macintosh/via-pmu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 83eb05bf85ff..8450d7c008d0 100644 ---

  1   2   3   4   5   6   >