[PATCH v4 3/3] iommu/vt-d: Apply per-device dma_ops

2020-05-05 Thread Lu Baolu
Current Intel IOMMU driver sets the system level dma_ops. This causes each dma API to go through the IOMMU driver even the devices are using identity mapped domains. This sets per-device dma_ops only if a device is using a DMA domain. Otherwise, use the default system level dma_ops for direct dma.

[rcu:tglx.2020.05.05a 48/140] arch/um/include/asm/irqflags.h:5: Error: no such instruction: `extern int get_signals(void)'

2020-05-05 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git tglx.2020.05.05a head: e6d36eed49b863bbe393e3c07cae737cd9c475e3 commit: 1af1a839cb2f00c8d7533102ece276ac315ecef2 [48/140] x86/entry/64: Check IF in __preempt_enable_notrace() thunk config: um-x86_64_defconfig

[PATCH v4 0/3] Replace private domain with per-group default domain

2020-05-05 Thread Lu Baolu
Some devices are required to use a specific type (identity or dma) of default domain when they are used with a vendor iommu. When the system level default domain type is different from it, the vendor iommu driver has to request a new default domain with either iommu_request_dma_domain_for_dev() or

Re: [f2fs-dev] [PATCH] f2fs: get parent inode when recovering pino

2020-05-05 Thread Gao Xiang
On Tue, May 05, 2020 at 06:24:28PM -0700, Eric Biggers wrote: > On Wed, May 06, 2020 at 08:14:07AM +0800, Gao Xiang wrote: > > > > > > Actually, I think this is wrong because the fsync can be done via a file > > > descriptor that was opened to a now-deleted link to the file. > > > > I'm still

[PATCH v3] scripts: headers_install: Exit with error on config leak

2020-05-05 Thread Siddharth Gupta
Misuse of CONFIG_* in UAPI headers should result in an error. These config options can be set in userspace by the user application which includes these headers to control the APIs and structures being used in a kernel which supports multiple targets. Signed-off-by: Siddharth Gupta ---

Re: cgroup pointed by sock is leaked on mode switch

2020-05-05 Thread Yang Yingliang
+cc lize...@huawei.com On 2020/5/6 0:06, Tejun Heo wrote: Hello, Yang. On Sat, May 02, 2020 at 06:27:21PM +0800, Yang Yingliang wrote: I find the number nr_dying_descendants is increasing: linux-dVpNUK:~ # find /sys/fs/cgroup/ -name cgroup.stat -exec grep '^nr_dying_descendants [^0]'  {} +

Re: [PATCH v2] scripts: headers_install: Exit with error on config leak

2020-05-05 Thread Siddharth Gupta
On 5/4/2020 12:18 AM, Masahiro Yamada wrote: On Sun, May 3, 2020 at 12:29 PM Siddharth Gupta wrote: Misuse of CONFIG_* in UAPI headers should result in an error as it exposes configuration of different targets to userspace. Sorry, I missed to point out this. This statement is not

Re: [PATCH] selftests/ftrace: mark irqsoff_tracer.tc test as unresolved if the test module does not exist

2020-05-05 Thread Po-Hsu Lin
On Tue, May 5, 2020 at 9:09 PM Steven Rostedt wrote: > > > You keep forgetting to Cc Shuah's other email. Thanks! I got the recipients list from the get_mainter.pl. > > On Tue, 5 May 2020 18:14:45 +0800 > Po-Hsu Lin wrote: > > > The UNRESOLVED state is much more apporiate than the UNSUPPORTED

[PATCH] spi: sun6i: Add support for GPIO chip select lines

2020-05-05 Thread Alistair Francis
Add a setup function that can be used to support using generic GPIO lines for the chip select. Signed-off-by: Alistair Francis --- drivers/spi/spi-sun6i.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/spi/spi-sun6i.c b/drivers/spi/spi-sun6i.c index

Re: INFO: task hung in linkwatch_event (2)

2020-05-05 Thread Yunsheng Lin
On 2020/4/29 17:59, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:b4f63322 Merge branch 'for-linus' of git://git.kernel.org/.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1558936fe0 > kernel config:

RE: [PATCH] ASoC: Intel: sst: ipc command timeout

2020-05-05 Thread Lu, Brent
> > Hi, > > That's why I would suggest trying with readq, it should also generate one > instruction read x86_64 platforms, I looked a bit more and there is fallback > to > generate two 32 bit reads on 32bit platforms, so my previous concern about > having to write separate handling for those

Re: [PATCH v4 1/2] powerpc/uaccess: Implement unsafe_put_user() using 'asm goto'

2020-05-05 Thread Michael Ellerman
Segher Boessenkool writes: > On Tue, May 05, 2020 at 05:40:21PM +0200, Christophe Leroy wrote: >> >>+#define __put_user_asm_goto(x, addr, label, op) \ >> >>+ asm volatile goto( \ >> >>+ "1: " op "%U1%X1 %0,%1 # put_user\n"

Re: [PATCH 2/4] mm/swap: use SECTORS_PER_PAGE_SHIFT to clean up code

2020-05-05 Thread Leizhen (ThunderTown)
On 2020/5/6 1:25, Matthew Wilcox wrote: > On Tue, May 05, 2020 at 07:55:41PM +0800, Zhen Lei wrote: >> +++ b/mm/swapfile.c >> @@ -177,8 +177,8 @@ static int discard_swap(struct swap_info_struct *si) >> >> /* Do not discard the swap header page! */ >> se = first_se(si); >> -

Re: [PATCH 1/1] selftests/bpf: add cls_redirect classifier

2020-05-05 Thread Alexei Starovoitov
On Tue, May 5, 2020 at 6:37 AM Daniel Borkmann wrote: > > On 5/5/20 1:48 AM, Alexei Starovoitov wrote: > > On Sat, May 02, 2020 at 01:48:51AM +0200, Daniel Borkmann wrote: > >> On 4/27/20 11:45 AM, Lorenz Bauer wrote: > >>> On Sun, 26 Apr 2020 at 18:33, Alexei Starovoitov > >>> wrote: > >> [...]

Re: [PATCH v3] mm: Add kvfree_sensitive() for freeing sensitive data objects

2020-05-05 Thread Waiman Long
On 5/5/20 4:35 PM, Andrew Morton wrote: On Tue, 07 Apr 2020 21:21:57 +0100 David Howells wrote: David Howells wrote: if (unlikely(key_data)) - __kvzfree(key_data, key_data_len); + kvfree_sensitive(key_data,

Re: [PATCH v3 11/14] remoteproc: Deal with synchronisation when changing FW image

2020-05-05 Thread Bjorn Andersson
On Fri 24 Apr 13:01 PDT 2020, Mathieu Poirier wrote: > This patch prevents the firmware image from being displayed or changed > when the remoteproc core is synchronising with a remote processor. This > is needed since there is no guarantee about the nature of the firmware > image that is loaded

Re: [f2fs-dev] [PATCH] f2fs: get parent inode when recovering pino

2020-05-05 Thread Eric Biggers
On Wed, May 06, 2020 at 08:14:07AM +0800, Gao Xiang wrote: > > > > Actually, I think this is wrong because the fsync can be done via a file > > descriptor that was opened to a now-deleted link to the file. > > I'm still confused about this... > > I don't know what's wrong with this version from

Re: [RFC v1 0/6] block: add error handling for *add_disk*()

2020-05-05 Thread Bart Van Assche
On 2020-04-29 00:48, Luis Chamberlain wrote: > While working on some blktrace races I noticed that we don't do > error handling on *add_disk*() and friends. This is my initial > work on that. > > This is based on linux-next tag next-20200428, you can also get this > on my branch

Re: [PATCH] securityfs: Add missing d_delete() call on removal

2020-05-05 Thread Al Viro
On Tue, May 05, 2020 at 04:40:35PM -0700, Kees Cook wrote: > After using simple_unlink(), a call to d_delete() is needed in addition > to dput(). > > Signed-off-by: Kees Cook > --- > Is this correct? I went looking around and there are a lot of variations > on the simple_unlink() pattern... > >

Re: [PATCH] KVM: x86: fix DR6 delivery for emulated hardware breakpoint

2020-05-05 Thread kbuild test robot
Hi Paolo, I love your patch! Yet something to improve: [auto build test ERROR on kvm/linux-next] [also build test ERROR on tip/auto-latest linus/master v5.7-rc4 next-20200505] [cannot apply to linux/master] [if your patch is applied to the wrong git tree, please drop us a note to help improve

Re: [PATCH v3 10/14] remoteproc: Deal with synchronisation when shutting down

2020-05-05 Thread Bjorn Andersson
On Fri 24 Apr 13:01 PDT 2020, Mathieu Poirier wrote: > The remoteproc core must not allow function rproc_shutdown() to > proceed if currently synchronising with a remote processor and > the synchronisation operations of that remote processor does not > support it. Also part of the process is to

[PATCH v12 1/2] dt-bindings: proximity: provide vcnl3020 device tree binding document

2020-05-05 Thread Ivan Mikhaylov
Mostly standard i2c driver with some additional led-current option for vcnl3020. Signed-off-by: Ivan Mikhaylov --- .../iio/proximity/vishay,vcnl3020.yaml| 65 +++ 1 file changed, 65 insertions(+) create mode 100644

[PATCH v12 0/2] iio: proximity: driver for vcnl3020

2020-05-05 Thread Ivan Mikhaylov
Add proximity sensor driver for Vishay vcnl3020. Only on-demand measurement is supported for now. Changes from v11: 1. minor changes to yaml. Changes from v10: 1. add vcnl3020_property struct for optional properties. Changes from v9: 1. minor changes. 2. pass microamps from dts, not

[PATCH v12 2/2] iio: proximity: Add driver support for vcnl3020 proximity sensor

2020-05-05 Thread Ivan Mikhaylov
Proximity sensor driver based on light/vcnl4000.c code. For now supports only the single on-demand measurement. The VCNL3020 is a fully integrated proximity sensor. Fully integrated means that the infrared emitter is included in the package. It has 16-bit resolution. It includes a signal

Re: [PATCH v3 09/14] remoteproc: Deal with synchronisation when crashing

2020-05-05 Thread Bjorn Andersson
On Fri 24 Apr 13:01 PDT 2020, Mathieu Poirier wrote: > Refactor function rproc_trigger_recovery() in order to avoid > reloading the firmware image when synchronising with a remote > processor rather than booting it. Also part of the process, > properly set the synchronisation flag in order to

Re: [PATCH v4 1/2] powerpc/uaccess: Implement unsafe_put_user() using 'asm goto'

2020-05-05 Thread Michael Ellerman
Segher Boessenkool writes: > Hi! > > On Wed, May 06, 2020 at 12:27:58AM +1000, Michael Ellerman wrote: >> Christophe Leroy writes: >> > unsafe_put_user() is designed to take benefit of 'asm goto'. >> > >> > Instead of using the standard __put_user() approach and branch >> > based on the returned

Re: [PATCH v2] security: disable FORTIFY_SOURCE on clang

2020-05-05 Thread Nick Desaulniers
On Tue, May 5, 2020 at 5:15 PM Jason A. Donenfeld wrote: > > clang-10 has a broken optimization stage that doesn't allow the > compiler to prove at compile time that certain memcpys are within > bounds, and thus the outline memcpy is always called, resulting in > horrific performance, and in some

Re: [PATCH -next] cpupower: Remove unneeded semicolon

2020-05-05 Thread Samuel Zou
Hi Shuah, I run with the below command, and get the output report. [local-host linux-next]# make coccicheck MODE=report M=tools/power/cpupower/utils Please check for false positives in the output before submitting a patch. When using "patch" mode, carefully review the patch before submitting

Re: AVIC related warning in enable_irq_window

2020-05-05 Thread Suravee Suthikulpanit
On 5/5/20 7:12 PM, Paolo Bonzini wrote: On 05/05/20 09:55, Suravee Suthikulpanit wrote: On the other hand, would be it useful to implement kvm_make_all_cpus_request_but_self(), which sends request to all other vcpus excluding itself? Yes, that's also a possibility. It's not too much extra

Re: [PATCH v3 07/14] remoteproc: Introducting new start and stop functions

2020-05-05 Thread Bjorn Andersson
On Fri 24 Apr 13:01 PDT 2020, Mathieu Poirier wrote: > Add new functions to replace direct calling of rproc->ops->start() and > rproc->ops->stop(). That way different behaviour can be played out > when booting a remote processor or synchronising with it. > Reviewed-by: Bjorn Andersson PS.

Re: [PATCH -next] vdpasim: remove unused variable 'ret'

2020-05-05 Thread Michael S. Tsirkin
On Fri, Apr 10, 2020 at 07:54:22PM +0800, YueHaibing wrote: > drivers/vdpa/vdpa_sim/vdpa_sim.c:92:6: warning: > variable ‘ret’ set but not used [-Wunused-but-set-variable] > > Signed-off-by: YueHaibing > --- Either this, or BUG_ON. Jason? > drivers/vdpa/vdpa_sim/vdpa_sim.c | 15

Re: [PATCH v6 8/8] bus: mhi: core: Ensure non-zero session or sequence ID values are used

2020-05-05 Thread Jeffrey Hugo
On 5/5/2020 4:47 PM, Bhaumik Bhatt wrote: While writing any sequence or session identifiers, it is possible that the host could write a zero value, whereas only non-zero values should be supported writes to those registers. Ensure that the host does not write a non-zero value for them and also

Re: [PATCH v3 05/14] remoteproc: Refactor function rproc_fw_boot()

2020-05-05 Thread Bjorn Andersson
On Fri 24 Apr 13:01 PDT 2020, Mathieu Poirier wrote: > Refactor function rproc_fw_boot() in order to better reflect the work > that is done when supporting scenarios where the remoteproc core is > synchronising with a remote processor. > > Signed-off-by: Mathieu Poirier > --- >

Re: [PATCH v3 -next] drm/mediatek: Fix Kconfig warning

2020-05-05 Thread Chun-Kuang Hu
Hi, YueHaibing: Chun-Kuang Hu 於 2020年4月29日 週三 下午10:15寫道: > > Hi, YueHaibing: > > YueHaibing 於 2020年4月29日 週三 下午3:14寫道: > > > > WARNING: unmet direct dependencies detected for MTK_MMSYS > > Depends on [n]: (ARCH_MEDIATEK [=y] || COMPILE_TEST [=n]) && > > COMMON_CLK_MT8173_MMSYS [=n] > >

Re: [PATCH v5] iommu/virtio: Use page size bitmap supported by endpoint

2020-05-05 Thread Michael S. Tsirkin
On Tue, May 05, 2020 at 03:00:04PM +0530, Bharat Bhushan wrote: > Different endpoint can support different page size, probe > endpoint if it supports specific page size otherwise use > global page sizes. > > Signed-off-by: Bharat Bhushan > --- > v4->v5: > - Rebase to Linux v5.7-rc4 > > v3->v4:

Re: [PATCH v3 03/14] remoteproc: Add new operation and flags for synchronistation

2020-05-05 Thread Bjorn Andersson
On Fri 24 Apr 13:01 PDT 2020, Mathieu Poirier wrote: > Add a new sync_ops to support use cases where the remoteproc > core is synchronising with the remote processor. Exactly when to use > the synchronisation operations is directed by the flags in structure > rproc_sync_flags. > I'm sorry, but

Re: [PATCH] drm/bridge: ti-sn65dsi86: Implement lane reordering + polarity

2020-05-05 Thread Doug Anderson
Hi, On Tue, May 5, 2020 at 2:24 PM Doug Anderson wrote: > > Hi, > > On Tue, May 5, 2020 at 2:14 PM Laurent Pinchart > wrote: > > > > > I'll add this documentation into the comments of the yaml, but I'm not > > > going to try to implement enforcement at the yaml level. > > > > Why not ? :-) > >

Re: [PATCH] RISC-V: Remove unused code from STRICT_KERNEL_RWX

2020-05-05 Thread Atish Patra
On Tue, May 5, 2020 at 5:03 PM Palmer Dabbelt wrote: > > On Tue, 05 May 2020 17:00:05 PDT (-0700), ati...@atishpatra.org wrote: > > On Tue, May 5, 2020 at 4:55 PM Palmer Dabbelt wrote: > >> > >> On Sun, 03 May 2020 21:03:19 PDT (-0700), Atish Patra wrote: > >> > This patch removes the unused

[PATCH v2] security: disable FORTIFY_SOURCE on clang

2020-05-05 Thread Jason A. Donenfeld
clang-10 has a broken optimization stage that doesn't allow the compiler to prove at compile time that certain memcpys are within bounds, and thus the outline memcpy is always called, resulting in horrific performance, and in some cases, excessive stack frame growth. Here's a simple reproducer:

Re: [f2fs-dev] [PATCH] f2fs: get parent inode when recovering pino

2020-05-05 Thread Gao Xiang
Hi Eric, On Tue, May 05, 2020 at 11:19:41AM -0700, Eric Biggers wrote: > On Tue, May 05, 2020 at 11:13:23AM -0700, Jaegeuk Kim wrote: ... > > > > -static int get_parent_ino(struct inode *inode, nid_t *pino) > > -{ > > - struct dentry *dentry; > > - > > - inode = igrab(inode); > > - dentry

[PATCH v3 1/1] vfio-ccw: Enable transparent CCW IPL from DASD

2020-05-05 Thread Jared Rossi
Remove the explicit prefetch check when using vfio-ccw devices. This check does not trigger in practice as all Linux channel programs are intended to use prefetch. It is expected that all ORBs issued by Linux will request prefetch. Although non-prefetching ORBs are not rejected, they will

[PATCH v3 0/1] vfio-ccw: Enable transparent CCW IPL from DASD

2020-05-05 Thread Jared Rossi
Remove the explicit prefetch check when using vfio-ccw devices. This check does not trigger in practice as all Linux channel programs are intended to use prefetch. Version 3 improves logging by including the UUID of the vfio device that triggers the warning. A custom rate limit is used because

Re: [PATCH] input: lm8333: update contact email

2020-05-05 Thread Dmitry Torokhov
On Sat, May 02, 2020 at 04:26:39PM +0200, Wolfram Sang wrote: > The 'pengutronix' address is defunct for years. Use the proper contact > address. > > Signed-off-by: Wolfram Sang Applied, thank you. > --- > include/linux/input/lm8333.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [PATCH 1/2] dt-bindings: input: Add Dell Wyse 3020 Power Button binding

2020-05-05 Thread Dmitry Torokhov
Hi Lubomir, On Sun, May 03, 2020 at 10:12:36PM +0200, Lubomir Rintel wrote: > Add binding document for the Dell Wyse 3020 a.k.a. "Ariel" Power Button. > > Signed-off-by: Lubomir Rintel Are there any changes compared to the version Rob has acked? Thanks. -- Dmitry

Re: [net-next PATCH v3 1/5] net: phy: Introduce phy related fwnode functions

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

[PATCH bpf-next 1/4] bpf, riscv: Enable missing verifier_zext optimizations on RV64

2020-05-05 Thread Luke Nelson
Commit 66d0d5a854a6 ("riscv: bpf: eliminate zero extension code-gen") added support for the verifier zero-extension optimization on RV64 and commit 46dd3d7d287b ("bpf, riscv: Enable zext optimization for more RV64G ALU ops") enabled it for more instruction cases. However, BPF_LSH BPF_X and

[PATCH bpf-next 3/4] bpf, riscv: Optimize BPF_JMP BPF_K when imm == 0 on RV64

2020-05-05 Thread Luke Nelson
This patch adds an optimization to BPF_JMP (32- and 64-bit) BPF_K for when the BPF immediate is zero. When the immediate is zero, the code can directly use the RISC-V zero register instead of loading a zero immediate to a temporary register first. Co-developed-by: Xi Wang Signed-off-by: Xi Wang

[PATCH bpf-next 2/4] bpf, riscv: Optimize FROM_LE using verifier_zext on RV64

2020-05-05 Thread Luke Nelson
This patch adds two optimizations for BPF_ALU BPF_END BPF_FROM_LE in the RV64 BPF JIT. First, it enables the verifier zero-extension optimization to avoid zero extension when imm == 32. Second, it avoids generating code for imm == 64, since it is equivalent to a no-op. Co-developed-by: Xi Wang

[PATCH bpf-next 4/4] bpf, riscv: Optimize BPF_JSET BPF_K using andi on RV64

2020-05-05 Thread Luke Nelson
This patch optimizes BPF_JSET BPF_K by using a RISC-V andi instruction when the BPF immediate fits in 12 bits, instead of first loading the immediate to a temporary register. Examples of generated code with and without this optimization: BPF_JMP_IMM(BPF_JSET, R1, 2, 1) without optimization:

Re: [PATCH] RISC-V: Remove unused code from STRICT_KERNEL_RWX

2020-05-05 Thread Palmer Dabbelt
On Tue, 05 May 2020 17:00:05 PDT (-0700), ati...@atishpatra.org wrote: On Tue, May 5, 2020 at 4:55 PM Palmer Dabbelt wrote: On Sun, 03 May 2020 21:03:19 PDT (-0700), Atish Patra wrote: > This patch removes the unused functions set_kernel_text_rw/ro. > Currently, it is not being invoked from

[PATCH bpf-next 0/4] RV64 BPF JIT Optimizations

2020-05-05 Thread Luke Nelson
This patch series introduces a set of optimizations to the BPF JIT on RV64. The optimizations are related to the verifier zero-extension optimization and BPF_JMP BPF_K. We tested the optimizations on a QEMU riscv64 virt machine, using lib/test_bpf and test_verifier, and formally verified their

[PATCH] virtio_net: fix lockdep warning on 32 bit

2020-05-05 Thread Michael S. Tsirkin
When we fill up a receive VQ, try_fill_recv currently tries to count kicks using a 64 bit stats counter. Turns out, on a 32 bit kernel that uses a seqcount. sequence counts are "lock" constructs where you need to make sure that writers are serialized. In turn, this means that we mustn't run two

Re: [PATCH] RISC-V: Remove unused code from STRICT_KERNEL_RWX

2020-05-05 Thread Atish Patra
On Tue, May 5, 2020 at 4:55 PM Palmer Dabbelt wrote: > > On Sun, 03 May 2020 21:03:19 PDT (-0700), Atish Patra wrote: > > This patch removes the unused functions set_kernel_text_rw/ro. > > Currently, it is not being invoked from anywhere and no other architecture > > (except arm) uses this code.

Re: [PATCH] Bluetooth: Terminate the link if pairing is cancelled

2020-05-05 Thread Luiz Augusto von Dentz
Hi Manish, Marcel, On Tue, Apr 28, 2020 at 2:38 AM Marcel Holtmann wrote: > > Hi Manish, > > > If user decides to cancel ongoing pairing process (e.g. by clicking > > the cancel button on the pairing/passkey window), abort any ongoing > > pairing and then terminate the link. > > > >

Re: [PATCH] bpf: Tweak BPF jump table optimizations for objtool compatibility

2020-05-05 Thread Alexei Starovoitov
; > > > to tell me what tests to run. > > > > > > > > I'd like to minimize the risk and avoid code churn, > > > > so how about we step back and debug it first? > > > > Which version of gcc are you using and what .config? > > > >

Re: [GIT PULL] platform-drivers-x86 for 5.7-2

2020-05-05 Thread pr-tracker-bot
The pull request you sent on Tue, 5 May 2020 20:21:04 +0300: > git://git.infradead.org/linux-platform-drivers-x86.git > tags/platform-drivers-x86-v5.7-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/dc56c5acd8505e1e7f776d62650f3850ad2ce8e7 Thank you! --

Re: [PATCH v3 6/7] misc: bcm-vk: add Broadcom VK driver

2020-05-05 Thread Scott Branden
All the kbuild and sparse issues should be resolved in PATCH v4. On 2020-04-22 4:17 a.m., kbuild test robot wrote: Hi Scott, I love your patch! Perhaps something to improve: [auto build test WARNING on driver-core/driver-core-testing] [also build test WARNING on next-20200421] [cannot apply

Re: [PATCH] samples: fix binderfs sample

2020-05-05 Thread Masahiro Yamada
Hi Arnd, On Wed, Apr 29, 2020 at 6:26 AM Arnd Bergmann wrote: > > A routine check for misspelled Kconfig symbols showed on instance > from last year, the correct symbol name is CONFIG_ANDROID_BINDERFS, > not CONFIG_CONFIG_ANDROID_BINDERFS, so the extra prefix must > be removed in the Kconfig

Re: [PATCH] RISC-V: Remove unused code from STRICT_KERNEL_RWX

2020-05-05 Thread Palmer Dabbelt
On Sun, 03 May 2020 21:03:19 PDT (-0700), Atish Patra wrote: This patch removes the unused functions set_kernel_text_rw/ro. Currently, it is not being invoked from anywhere and no other architecture (except arm) uses this code. Even in ARM, these functions are not invoked from anywhere

[PATCH][next] rndis_wlan: Remove logically dead code

2020-05-05 Thread Gustavo A. R. Silva
caps_buf is always of size sizeof(*caps) because sizeof(caps->auth_encr_pair) * 16 is always zero. Notice that when using zero-length arrays, sizeof evaluates to zero[1]. So, the code introduced by commit 0308383f9591 ("rndis_wlan: get max_num_pmkids from device") is logically dead, hence is

linux-next: no release today

2020-05-05 Thread Stephen Rothwell
Normal service should resume tomorrow. -- Cheers, Stephen Rothwell pgpacv1ec0XRA.pgp Description: OpenPGP digital signature

[PATCH] securityfs: Add missing d_delete() call on removal

2020-05-05 Thread Kees Cook
After using simple_unlink(), a call to d_delete() is needed in addition to dput(). Signed-off-by: Kees Cook --- Is this correct? I went looking around and there are a lot of variations on the simple_unlink() pattern... Many using explicit locking and combinations of d_drop(), __d_drop(), etc.

Re: [net-next PATCH v3 1/5] net: phy: Introduce phy related fwnode functions

2020-05-05 Thread Russell King - ARM Linux admin
On Tue, May 05, 2020 at 06:59:01PM +0530, Calvin Johnson wrote: > +static inline struct phy_device *device_phy_find_device(struct device *dev) > +{ > + return NULL; > +} > + > +struct fwnode_handle *fwnode_get_phy_node(struct fwnode_handle *fwnode) > +{ > + return NULL; > +} This wants to

Re: [PATCH] Kbuild: disable FORTIFY_SOURCE on clang-10

2020-05-05 Thread Nick Desaulniers
On Tue, May 5, 2020 at 4:22 PM Jason A. Donenfeld wrote: > > On Tue, May 5, 2020 at 5:19 PM Kees Cook wrote: > > > > (Though as was mentioned, it's likely that FORTIFY_SOURCE isn't working > > _at all_ under Clang, so I may still send a patch to depend on !clang > > just to avoid surprises until

Re: [PATCH] ARM: dts: omap3: Migrate AES from hwmods to sysc-omap2

2020-05-05 Thread Tony Lindgren
* Adam Ford [200505 21:18]: > On Tue, May 5, 2020 at 1:42 PM Tony Lindgren wrote: > > > > * Adam Ford [200504 16:02]: > > > Various OMAP3 boards have two AES blocks, but only one is currently > > > available, because the hwmods are only configured for one. > > > > > > This patch migrates the

RE: [PATCH v8 1/3] serial: samsung: Replace rd_regb/wr_regb with rd_reg/wr_reg

2020-05-05 Thread Hyunki Koo
On Tuesday, May 5, 2020 at 2020 11:23:00 PM +0900, Greg Kroah-Hartman wrote: > On Mon, Apr 20, 2020 at 10:32:56AM +0900, Hyunki Koo wrote: > > This patch change the name of macro for general usage. > > > > Signed-off-by: Hyunki Koo > > This patch series creates the following build error, which

RE: [PATCH 1/2] riscv: defconfig: enable spi nor on Hifive Unleashed A00 board.

2020-05-05 Thread Palmer Dabbelt
On Tue, 05 May 2020 00:18:45 PDT (-0700), sagar.ka...@sifive.com wrote: Hello Palmer, -Original Message- From: Palmer Dabbelt Sent: Tuesday, May 5, 2020 3:40 AM To: Sagar Kadam Cc: tudor.amba...@microchip.com; miquel.ray...@bootlin.com; rich...@nod.at; vigne...@ti.com; Paul Walmsley

Re: [PATCH] sysctl: Make sure proc handlers can't expose heap memory

2020-05-05 Thread Kees Cook
On Tue, May 05, 2020 at 10:03:27PM +, Luis Chamberlain wrote: > On Tue, May 05, 2020 at 01:41:44PM -0700, Kees Cook wrote: > > Right -- while it'd be nice if the developer noticed it, it is _usually_ > > an unsuspecting end user (or fuzzer), in which case we absolutely want a > > WARN (and not

Re: [PATCH] Kbuild: disable FORTIFY_SOURCE on clang-10

2020-05-05 Thread Jason A. Donenfeld
On Tue, May 5, 2020 at 5:22 PM Jason A. Donenfeld wrote: > > On Tue, May 5, 2020 at 5:19 PM Kees Cook wrote: > > > > On Tue, May 05, 2020 at 04:37:38PM -0600, Jason A. Donenfeld wrote: > > > On Tue, May 5, 2020 at 4:25 PM Nathan Chancellor > > > wrote: > > > > I believe these issues are one in

Re: [PATCH v4 7/8] powerpc/vdso32: implement clock_getres entirely

2020-05-05 Thread Aurelien Jarno
Hi, On 2019-12-02 07:57, Christophe Leroy wrote: > clock_getres returns hrtimer_res for all clocks but coarse ones > for which it returns KTIME_LOW_RES. > > return EINVAL for unknown clocks. > > Signed-off-by: Christophe Leroy > --- > arch/powerpc/kernel/asm-offsets.c | 3 +++ >

Re: [PATCH] Kbuild: disable FORTIFY_SOURCE on clang-10

2020-05-05 Thread Jason A. Donenfeld
On Tue, May 5, 2020 at 5:19 PM Kees Cook wrote: > > On Tue, May 05, 2020 at 04:37:38PM -0600, Jason A. Donenfeld wrote: > > On Tue, May 5, 2020 at 4:25 PM Nathan Chancellor > > wrote: > > > I believe these issues are one in the same. I did a reverse bisect with > > > Arnd's test case and

Re: [net-next PATCH v3 1/5] net: phy: Introduce phy related fwnode functions

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

Re: [PATCH v2 0/2] soc: ti: add k3 platforms chipid module driver

2020-05-05 Thread santosh . shilimkar
On 5/5/20 12:34 PM, Grygorii Strashko wrote: Hi All, This series introduces TI K3 Multicore SoC platforms chipid module driver which provides identification support of the TI K3 SoCs (family, revision) and register this information with the SoC bus. It is available under /sys/devices/soc0/

Re: [PATCH] Kbuild: disable FORTIFY_SOURCE on clang-10

2020-05-05 Thread Kees Cook
On Tue, May 05, 2020 at 04:37:38PM -0600, Jason A. Donenfeld wrote: > On Tue, May 5, 2020 at 4:25 PM Nathan Chancellor > wrote: > > I believe these issues are one in the same. I did a reverse bisect with > > Arnd's test case and converged on George's first patch: > > > >

Re: [PATCH v2 3/5] pstore/ram: in ramoops_platform_data convert dump_oops to max_reason

2020-05-05 Thread Kees Cook
On Tue, May 05, 2020 at 11:45:08AM -0400, Pavel Tatashin wrote: > Now, that pstore_register() can correctly pass max_reason to kmesg dump > facility, use it instead of dump_oops boolean. > > Replace in ramoops_platform_data dump_oops with max_reason. When dump_oops > was enabled set max_reason to

Re: x86/uv cleanups

2020-05-05 Thread Thomas Gleixner
Dimitri Sivanich writes: > Yes, we do see a need to clean up old code where it exists, but we would like > to assume this responsibility ourselves in order to ensure functional > continuity > with externally available open-sourced modules that our customers rely on. > This > code supports

Re: [PATCH v4 5/6] media: venus: core: Add support for opp tables/perf voting

2020-05-05 Thread Matthias Kaehlcke
Hi Rajendra, On Sun, May 03, 2020 at 05:34:28PM +0530, Rajendra Nayak wrote: > Add support to add OPP tables and perf voting on the OPP powerdomain. > This is needed so venus votes on the corresponding performance state > for the OPP powerdomain along with setting the core clock rate. > >

Re: [f2fs-dev] [PATCH] f2fs: change maximum zstd compression buffer size

2020-05-05 Thread Jaegeuk Kim
On 05/05, Chao Yu wrote: > On 2020-5-4 22:30, Jaegeuk Kim wrote: > > From: Daeho Jeong > > > > Current zstd compression buffer size is one page and header size less > > than cluster size. By this, zstd compression always succeeds even if > > the real compression data is failed to fit into the

[RFC PATCH net-next v2 1/3] xfrm: bail early on slave pass over skb

2020-05-05 Thread Jarod Wilson
This is prep work for initial support of bonding hardware encryption pass-through support. The bonding driver will fill in the slave_dev pointer, and we use that to know not to skb_push() again on a given skb that was already processed on the bond device. CC: Jay Vosburgh CC: Veaceslav Falico

[RFC PATCH net-next v2 2/3] ixgbe_ipsec: become aware of when running as a bonding slave

2020-05-05 Thread Jarod Wilson
Slave devices in a bond doing hardware encryption also need to be aware that they're slaves, so we operate on the slave instead of the bonding master to do the actual hardware encryption offload bits. CC: Jay Vosburgh CC: Veaceslav Falico CC: Andy Gospodarek CC: "David S. Miller" CC: Jeff

[RFC PATCH net-next v2 3/3] bonding: support hardware encryption offload to slaves

2020-05-05 Thread Jarod Wilson
Currently, this support is limited to active-backup mode, as I'm not sure about the feasilibity of mapping an xfrm_state's offload handle to multiple hardware devices simultaneously, and we rely on being able to pass some hints to both the xfrm and NIC driver about whether or not they're operating

[RFC PATCH net-next v2 0/3] bonding: support hardware crypto offload

2020-05-05 Thread Jarod Wilson
This is an initial "proof of concept" functional implementation for doing pass-through of hardware encryption from bonding device to capable slaves. This was tested using an ixgbe-driven Intel x520 NIC with libreswan and a transport mode connection, on top of an active-backup bond, using netperf

Re: [PATCH v8 04/18] KVM: SVM: Add support for KVM_SEV_RECEIVE_START command

2020-05-05 Thread Venu Busireddy
On 2020-05-05 21:15:40 +, Ashish Kalra wrote: > From: Brijesh Singh > > The command is used to create the encryption context for an incoming > SEV guest. The encryption context can be later used by the hypervisor > to import the incoming data into the SEV guest memory space. > > Cc: Thomas

Re: [PATCH v12 2/2] media: v4l: xilinx: Add Xilinx MIPI CSI-2 Rx Subsystem driver

2020-05-05 Thread Laurent Pinchart
Hi Vishal, Thank you for the patch. On Thu, Apr 23, 2020 at 09:00:38PM +0530, Vishal Sagar wrote: > The Xilinx MIPI CSI-2 Rx Subsystem soft IP is used to capture images > from MIPI CSI-2 camera sensors and output AXI4-Stream video data ready > for image processing. Please refer to PG232 for

Re: [PATCH v8 02/18] KVM: SVM: Add KVM_SEND_UPDATE_DATA command

2020-05-05 Thread Venu Busireddy
On 2020-05-05 21:14:54 +, Ashish Kalra wrote: > From: Brijesh Singh > > The command is used for encrypting the guest memory region using the > encryption > context created with KVM_SEV_SEND_START. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Paolo Bonzini >

Re: [PATCH v8 03/18] KVM: SVM: Add KVM_SEV_SEND_FINISH command

2020-05-05 Thread Venu Busireddy
On 2020-05-05 21:15:11 +, Ashish Kalra wrote: > From: Brijesh Singh > > The command is used to finailize the encryption context created with > KVM_SEV_SEND_START command. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Paolo Bonzini > Cc: "Radim Krčmář" > Cc:

[PATCH v6 2/8] bus: mhi: core: Cache intmod from mhi event to mhi channel

2020-05-05 Thread Bhaumik Bhatt
From: Hemant Kumar Driver is using zero initialized intmod value from mhi channel when configuring TRE for bei field. This prevents interrupt moderation to take effect in case it is supported by an event ring. Fix this by copying intmod value from associated event ring to mhi channel upon

[PATCH v6 3/8] bus: mhi: core: Add range check for channel id received in event ring

2020-05-05 Thread Bhaumik Bhatt
From: Hemant Kumar MHI data completion handler function reads channel id from event ring element. Value is under the control of MHI devices and can be any value between 0 and 255. In order to prevent out of bound access add a bound check against the max channel supported by controller and skip

[PATCH v6 7/8] bus: mhi: core: Improve debug logs for loading firmware

2020-05-05 Thread Bhaumik Bhatt
Add log messages to track boot flow errors and timeouts in SBL or AMSS firmware loading to aid in debug. Signed-off-by: Bhaumik Bhatt Reviewed-by: Jeffrey Hugo --- drivers/bus/mhi/core/boot.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git

[PATCH v6 8/8] bus: mhi: core: Ensure non-zero session or sequence ID values are used

2020-05-05 Thread Bhaumik Bhatt
While writing any sequence or session identifiers, it is possible that the host could write a zero value, whereas only non-zero values should be supported writes to those registers. Ensure that the host does not write a non-zero value for them and also log them in debug messages. Signed-off-by:

[PATCH v6 4/8] bus: mhi: core: Read transfer length from an event properly

2020-05-05 Thread Bhaumik Bhatt
From: Hemant Kumar When MHI Driver receives an EOT event, it reads xfer_len from the event in the last TRE. The value is under control of the MHI device and never validated by Host MHI driver. The value should never be larger than the real size of the buffer but a malicious device can set the

[PATCH v6 0/8] Bug fixes and improved logging in MHI

2020-05-05 Thread Bhaumik Bhatt
A set of patches for bug fixes and improved logging in mhi/core/boot.c. Verified on x86 and arm64 platforms. v6: -Updated the MHI_RANDOM_U32_NONZERO to only give a random number upto the supplied bitmask v5: -Updated the macro MHI_RANDOM_U32_NONZERO to take a bitmask as the input parameter and

[PATCH v6 6/8] bus: mhi: core: Return appropriate error codes for AMSS load failure

2020-05-05 Thread Bhaumik Bhatt
When loading AMSS firmware using BHIe protocol, return -ETIMEDOUT if no response is received within the timeout or return -EIO in case of a protocol returned failure or an MHI error state. Signed-off-by: Bhaumik Bhatt Reviewed-by: Jeffrey Hugo --- drivers/bus/mhi/core/boot.c | 23

[PATCH v6 1/8] bus: mhi: core: Refactor mhi queue APIs

2020-05-05 Thread Bhaumik Bhatt
From: Hemant Kumar Move all the common code to generate TRE from mhi_queue_buf, mhi_queue_dma and mhi_queue_skb to mhi_gen_tre. This helps to centralize the TRE generation code which makes any future bug fixing easier to manage in these APIs. Suggested-by: Jeffrey Hugo Signed-off-by: Hemant

[PATCH v6 5/8] bus: mhi: core: Handle firmware load using state worker

2020-05-05 Thread Bhaumik Bhatt
Upon power up, driver queues firmware worker thread if the execution environment is PBL. Firmware worker is blocked with a timeout until state worker gets a chance to run and unblock firmware worker. An endpoint power up failure can be seen if state worker gets a chance to run after firmware

Re: [PATCH for-5.7] splice: move f_mode checks to do_{splice,tee}()

2020-05-05 Thread Clay Harris
On Tue, May 05 2020 at 17:00:32 -0500, Clay Harris quoth thus: > On Wed, May 06 2020 at 00:38:05 +0300, Pavel Begunkov quoth thus: > > > On 06/05/2020 00:10, Clay Harris wrote: > > > On Mon, May 04 2020 at 22:39:35 +0300, Pavel Begunkov quoth thus: > > > > > >> do_splice() is used by io_uring,

Re: [PATCH] docs: s390: Fix wrong label Guest2 instead of Guest3

2020-05-05 Thread Vitor Massaru Iha
On Tue, 2020-05-05 at 09:46 -0600, Jonathan Corbet wrote: > On Thu, 30 Apr 2020 19:12:38 -0300 > Vitor Massaru Iha wrote: > > > This fixes: > > > > Documentation/s390/vfio-ap.rst:488: WARNING: duplicate label > > s390/vfio-ap:guest2, other instance in > >

Re: [PATCH] Kbuild: disable FORTIFY_SOURCE on clang-10

2020-05-05 Thread George Burgess IV
This code generated by Clang here is the unfortunate side-effect of a bug introduced during Clang-10's development phase. From discussion with Kees on the links Nick mentioned, I surmise that FORTIFY in the kernel never worked as well for Clang as it does for GCC today. In many cases, it'd compile

Re: [PATCH] Kbuild: disable FORTIFY_SOURCE on clang-10

2020-05-05 Thread Jason A. Donenfeld
On Tue, May 5, 2020 at 4:25 PM Nathan Chancellor wrote: > I believe these issues are one in the same. I did a reverse bisect with > Arnd's test case and converged on George's first patch: > > https://github.com/llvm/llvm-project/commit/2dd17ff08165e6118e70f00e22b2c36d2d4e0a9a > > I think that in

[PATCH V2 5/7] x86/resctrl: Maintain MBM counter width per resource

2020-05-05 Thread Reinette Chatre
The original Memory Bandwidth Monitoring (MBM) architectural definition defines counters of up to 62 bits in the IA32_QM_CTR MSR, and the first-generation MBM implementation uses 24 bit counters. Software is required to poll at 1 second or faster to ensure that data is retrieved before a counter

<    1   2   3   4   5   6   7   8   9   10   >