[syzbot] KASAN: slab-out-of-bounds Read in __xfrm_decode_session (2)

2021-04-12 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:1678e493 Merge tag 'lto-v5.12-rc6' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1565bf7cd0 kernel config: https://syzkaller.appspot.com/x/.config?x=71a75beb62b62a34

[PATCH v4 2/4] pinctrl: add pinctrl driver on mt8195

2021-04-12 Thread Zhiyong Tao
This commit includes pinctrl driver for mt8195. Signed-off-by: Zhiyong Tao --- drivers/pinctrl/mediatek/Kconfig |6 + drivers/pinctrl/mediatek/Makefile |1 + drivers/pinctrl/mediatek/pinctrl-mt8195.c | 828

[PATCH v4 4/4] pinctrl: add rsel setting on MT8195

2021-04-12 Thread Zhiyong Tao
This patch provides rsel setting on MT8195. Signed-off-by: Zhiyong Tao --- drivers/pinctrl/mediatek/pinctrl-mt8195.c | 22 +++ .../pinctrl/mediatek/pinctrl-mtk-common-v2.c | 14 .../pinctrl/mediatek/pinctrl-mtk-common-v2.h | 10 +

[PATCH v4 1/4] dt-bindings: pinctrl: mt8195: add pinctrl file and binding document

2021-04-12 Thread Zhiyong Tao
1. This patch adds pinctrl file for mt8195. 2. This patch adds mt8195 compatible node in binding document. Signed-off-by: Zhiyong Tao --- .../bindings/pinctrl/pinctrl-mt8195.yaml | 151 +++ include/dt-bindings/pinctrl/mt8195-pinfunc.h | 962 ++ 2 files changed, 1113

[PATCH v4 0/4] Mediatek pinctrl patch on mt8195

2021-04-12 Thread Zhiyong Tao
This series includes 4 patches: 1.add pinctrl file and inding document on mt8195. 2.add pinctrl driver on MT8195. 3.add pinctrl drive for I2C related pins on MT8195. 4.add pinctrl rsel setting on MT8195. Changes in patch v4: 1)fix pinctrl-mt8195.yaml warning error. 2)remove pinctrl device node

[syzbot] BUG: unable to handle kernel NULL pointer dereference in __lookup_slow (2)

2021-04-12 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:d93a0d43 Merge tag 'block-5.12-2021-04-02' of git://git.ke.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16519431d0 kernel config: https://syzkaller.appspot.com/x/.config?x=71a75beb62b62a34

[syzbot] KASAN: slab-out-of-bounds Read in reiserfs_xattr_get

2021-04-12 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:3a229812 Merge tag 'arm-fixes-5.11-2' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16b4d196d0 kernel config: https://syzkaller.appspot.com/x/.config?x=f91155ccddaf919c

Re: [PATCH][next] scsi: ufs: Fix out-of-bounds warnings in ufshcd_exec_raw_upiu_cmd

2021-04-12 Thread Martin K. Petersen
On Wed, 31 Mar 2021 17:43:38 -0500, Gustavo A. R. Silva wrote: > Fix the following out-of-bounds warnings by enclosing > some structure members into new structure objects upiu_req > and upiu_rsp: > > include/linux/fortify-string.h:20:29: warning: '__builtin_memcpy' offset [29, > 48] from the

Re: [PATCH -next] scsi: fnic: remove unnecessary spin_lock_init() and INIT_LIST_HEAD()

2021-04-12 Thread Martin K. Petersen
On Tue, 30 Mar 2021 20:59:11 +0800, Yang Yingliang wrote: > The spinlock and list head of fnic_list is initialized statically. > It is unnecessary to initialize by spin_lock_init() and INIT_LIST_HEAD(). Applied to 5.13/scsi-queue, thanks! [1/1] scsi: fnic: remove unnecessary spin_lock_init()

Re: [PATCH] message/fusion: Use BUG_ON instead of if condition followed by BUG.

2021-04-12 Thread Martin K. Petersen
On Tue, 30 Mar 2021 05:46:01 -0700, zhouchuangao wrote: > BUG_ON() uses unlikely in if(), which can be optimized at compile time. Applied to 5.13/scsi-queue, thanks! [1/1] message/fusion: Use BUG_ON instead of if condition followed by BUG. https://git.kernel.org/mkp/scsi/c/4dec8004de29

Re: [PATCH] scsi: bfa: Remove unnecessary struct declaration

2021-04-12 Thread Martin K. Petersen
On Thu, 1 Apr 2021 14:35:34 +0800, Wan Jiabing wrote: > struct bfa_fcs_s is declared twice. One is declared > at 50th line. Remove the duplicate. > struct bfa_fcs_fabric_s is defined at 175th line. > Remove unnecessary declaration. Applied to 5.13/scsi-queue, thanks! [1/1] scsi: bfa: Remove

Re: [PATCH v7 3/4] spmi: mediatek: Add support for MT6873/8192

2021-04-12 Thread Hsin-hsiung Wang
Hi Maintainers, Gentle pin for this patch. Thanks. On Sun, 2021-03-14 at 02:00 +0800, Hsin-Hsiung Wang wrote: > Add spmi support for MT6873/8192. > > Signed-off-by: Hsin-Hsiung Wang > --- > changes since v6: > - remove unused spinlock. > - remove redundant check for slave id. > --- >

[PATCH RFC v2 0/4] virtio net: spurious interrupt related fixes

2021-04-12 Thread Michael S. Tsirkin
With the implementation of napi-tx in virtio driver, we clean tx descriptors from rx napi handler, for the purpose of reducing tx complete interrupts. But this introduces a race where tx complete interrupt has been raised, but the handler finds there is no work to do because we have done the work

Re: [PATCH v1 0/2] scsi: libsas: few clean up patches

2021-04-12 Thread Martin K. Petersen
On Thu, 25 Mar 2021 20:29:54 +0800, Luo Jiaxing wrote: > Two types of errors are detected by the checkpatch. > 1. Alignment between switches and cases > 2. Improper use of some spaces > > Here are the clean up patches. > > Luo Jiaxing (2): > scsi: libsas: make switch and case at the same

Re: [PATCH v2] scsi: libsas: Reset num_scatter if libata mark qc as NODATA

2021-04-12 Thread Martin K. Petersen
On Thu, 18 Mar 2021 15:56:32 -0700, Jolly Shah wrote: > When the cache_type for the scsi device is changed, the scsi layer > issues a MODE_SELECT command. The caching mode details are communicated > via a request buffer associated with the scsi command with data > direction set as DMA_TO_DEVICE

[PATCH RFC v2 4/4] virtio_net: move txq wakeups under tx q lock

2021-04-12 Thread Michael S. Tsirkin
We currently check num_free outside tx q lock which is unsafe: new packets can arrive meanwhile and there won't be space in the queue. Thus a spurious queue wakeup causing overhead and even packet drops. Move the check under the lock to fix that. Signed-off-by: Michael S. Tsirkin ---

[PATCH RFC v2 3/4] virtio_net: move tx vq operation under tx queue lock

2021-04-12 Thread Michael S. Tsirkin
It's unsafe to operate a vq from multiple threads. Unfortunately this is exactly what we do when invoking clean tx poll from rx napi. As a fix move everything that deals with the vq to under tx lock. Signed-off-by: Michael S. Tsirkin --- drivers/net/virtio_net.c | 22 +- 1

[PATCH RFC v2 2/4] virtio_net: disable cb aggressively

2021-04-12 Thread Michael S. Tsirkin
There are currently two cases where we poll TX vq not in response to a callback: start xmit and rx napi. We currently do this with callbacks enabled which can cause extra interrupts from the card. Used not to be a big issue as we run with interrupts disabled but that is no longer the case, and

[PATCH RFC v2 1/4] virtio: fix up virtio_disable_cb

2021-04-12 Thread Michael S. Tsirkin
virtio_disable_cb is currently a nop for split ring with event index. This is because it used to be always called from a callback when we know device won't trigger more events until we update the index. However, now that we run with interrupts enabled a lot we also poll without a callback so that

[syzbot] KASAN: use-after-free Read in skcipher_walk_next

2021-04-12 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:4fa56ad0 Merge tag 'for-linus' of git://git.kernel.org/pub.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17dbd09ad0 kernel config: https://syzkaller.appspot.com/x/.config?x=9320464bf47598bd

linux-next: manual merge of the kvm-arm tree with the arm64 tree

2021-04-12 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got a conflict in: arch/arm64/include/asm/assembler.h between commits: 27248fe1abb2 ("arm64: assembler: remove conditional NEON yield macros") 13150149aa6d ("arm64: fpsimd: run kernel mode NEON with softirqs disabled") from the arm64

Re: [RFC] mm: activate access-more-than-once page via NUMA balancing

2021-04-12 Thread Huang, Ying
Yu Zhao writes: > On Fri, Mar 26, 2021 at 12:21 AM Huang, Ying wrote: >> >> Mel Gorman writes: >> >> > On Thu, Mar 25, 2021 at 12:33:45PM +0800, Huang, Ying wrote: >> >> > I caution against this patch. >> >> > >> >> > It's non-deterministic for a number of reasons. As it requires NUMA >> >> >

Re: [PATCH 4.19 00/66] 4.19.187-rc1 review

2021-04-12 Thread Naresh Kamboju
On Mon, 12 Apr 2021 at 14:13, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.187 release. > There are 66 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH][next] KEYS: trusted: Fix missing null return from kzalloc call

2021-04-12 Thread Sumit Garg
On Mon, 12 Apr 2021 at 22:34, Colin Ian King wrote: > > On 12/04/2021 17:48, James Bottomley wrote: > > On Mon, 2021-04-12 at 17:01 +0100, Colin King wrote: > >> From: Colin Ian King > >> > >> The kzalloc call can return null with the GFP_KERNEL flag so > >> add a null check and exit via a new

Re: [PATCH 0/1] Use of /sys/bus/pci/devices/…/index for non-SMBIOS platforms

2021-04-12 Thread Leon Romanovsky
On Mon, Apr 12, 2021 at 03:59:04PM +0200, Niklas Schnelle wrote: > Hi Narendra, Hi All, > > According to Documentation/ABI/testing/sysfs-bus-pci you are responsible > for the index device attribute that is used by systemd to create network > interface names. > > Now we would like to reuse this

[PATCH v2][next] scsi: aacraid: Replace one-element array with flexible-array member

2021-04-12 Thread Gustavo A. R. Silva
There is a regular need in the kernel to provide a way to declare having a dynamically sized set of trailing elements in a structure. Kernel code should always use “flexible array members”[1] for these cases. The older style of one-element or zero-length arrays should no longer be used[2].

Re: [RESEND,v5,1/2] bio: limit bio max size

2021-04-12 Thread Christoph Hellwig
And more importantly please test with a file system that uses the iomap direct I/O code (btrfs, gfs2, ext4, xfs, zonefs) as we should never just work aroudn a legacy codebase that should go away in the block layer.

[PATCH v2 2/2] x86/tsc: skip tsc watchdog checking for qualified platforms

2021-04-12 Thread Feng Tang
There are cases that tsc clocksources are wrongly judged as unstable by clocksource watchdogs like hpet, acpi_pm or 'refined-jiffies'. While there is hardly a general reliable way to check the validity of a watchdog, and to protect the innocent tsc, Thomas Gleixner proposed [1]: "I'm inclined to

[PATCH v2 1/2] x86/tsc: add a timer to make sure tsc_adjust is always checked

2021-04-12 Thread Feng Tang
Normally the tsc_sync will get checked every time system enters idle state, but Thomas Gleixner mentioned there is still a caveat that a system won't enter idle [1], either because it's too busy or configured purposely to not enter idle. Setup a periodic timer to make sure the check is always on.

Re: [PATCH][next] KEYS: trusted: Fix missing null return from kzalloc call

2021-04-12 Thread Sumit Garg
On Mon, 12 Apr 2021 at 21:31, Colin King wrote: > > From: Colin Ian King > > The kzalloc call can return null with the GFP_KERNEL flag so > add a null check and exit via a new error exit label. Use the > same exit error label for another error path too. > > Addresses-Coverity: ("Dereference null

Re: [PATCH] ibmvfc: Fix invalid state machine BUG_ON

2021-04-12 Thread Martin K. Petersen
Tyrel, > This fixes an issue hitting the BUG_ON in ibmvfc_do_work. When going > through a host action of IBMVFC_HOST_ACTION_RESET, we change the > action to IBMVFC_HOST_ACTION_TGT_DEL, then drop the host lock, and > reset the CRQ, which changes the host state to IBMVFC_NO_CRQ. [...] Applied

[PATCH v2 6/9] userfaultfd/selftests: create alias mappings in the shmem test

2021-04-12 Thread Axel Rasmussen
Previously, we just allocated two shm areas: area_src and area_dst. With this commit, change this so we also allocate area_src_alias, and area_dst_alias. area_*_alias and area_* (respectively) point to the same underlying physical pages, but are different VMAs. In a future commit in this series,

[PATCH v2 8/9] userfaultfd/selftests: exercise minor fault handling shmem support

2021-04-12 Thread Axel Rasmussen
Enable test_uffdio_minor for test_type == TEST_SHMEM, and modify the test slightly to pass in / check for the right feature flags. Signed-off-by: Axel Rasmussen --- tools/testing/selftests/vm/userfaultfd.c | 29 1 file changed, 25 insertions(+), 4 deletions(-) diff

[PATCH v2 7/9] userfaultfd/selftests: reinitialize test context in each test

2021-04-12 Thread Axel Rasmussen
Currently, the context (fds, mmap-ed areas, etc.) are global. Each test mutates this state in some way, in some cases really "clobbering it" (e.g., the events test mremap-ing area_dst over the top of area_src, or the minor faults tests overwriting the count_verify values in the test areas). We run

[PATCH v2 4/9] userfaultfd/shmem: support UFFDIO_CONTINUE for shmem

2021-04-12 Thread Axel Rasmussen
With this change, userspace can resolve a minor fault within a shmem-backed area with a UFFDIO_CONTINUE ioctl. The semantics for this match those for hugetlbfs - we look up the existing page in the page cache, and install PTEs for it. This commit introduces a new helper:

[PATCH v2 2/9] userfaultfd/shmem: combine shmem_{mcopy_atomic,mfill_zeropage}_pte

2021-04-12 Thread Axel Rasmussen
Previously, we did a dance where we had one calling path in userfaultfd.c (mfill_atomic_pte), but then we split it into two in shmem_fs.h (shmem_{mcopy_atomic,mfill_zeropage}_pte), and then rejoined into a single shared function in shmem.c (shmem_mfill_atomic_pte). This is all a bit overly

[PATCH v2 5/9] userfaultfd/selftests: use memfd_create for shmem test type

2021-04-12 Thread Axel Rasmussen
This is a preparatory commit. In the future, we want to be able to setup alias mappings for area_src and area_dst in the shmem test, like we do in the hugetlb_shared test. With a VMA obtained via mmap(MAP_ANONYMOUS | MAP_SHARED), it isn't clear how to do this. So, mmap() with an fd, so we can

[PATCH v2 9/9] userfaultfd/shmem: modify shmem_mcopy_atomic_pte to use install_ptes

2021-04-12 Thread Axel Rasmussen
In a previous commit, we added the mcopy_atomic_install_ptes() helper. This helper does the job of setting up PTEs for an existing page, to map it into a given VMA. It deals with both the anon and shmem cases, as well as the shared and private cases. In other words, shmem_mcopy_atomic_pte()

[PATCH v2 3/9] userfaultfd/shmem: support minor fault registration for shmem

2021-04-12 Thread Axel Rasmussen
This patch allows shmem-backed VMAs to be registered for minor faults. Minor faults are appropriately relayed to userspace in the fault path, for VMAs with the relevant flag. This commit doesn't hook up the UFFDIO_CONTINUE ioctl for shmem-backed minor faults, though, so userspace doesn't yet have

Re: [PATCH 5.4 000/111] 5.4.112-rc1 review

2021-04-12 Thread Naresh Kamboju
On Mon, 12 Apr 2021 at 14:16, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.4.112 release. > There are 111 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

[PATCH v2 1/9] userfaultfd/hugetlbfs: avoid including userfaultfd_k.h in hugetlb.h

2021-04-12 Thread Axel Rasmussen
Minimizing header file inclusion is desirable. In this case, we can do so just by forward declaring the enumeration our signature relies upon. Reviewed-by: Peter Xu Signed-off-by: Axel Rasmussen --- include/linux/hugetlb.h | 4 +++- mm/hugetlb.c| 1 + 2 files changed, 4

[PATCH v2 0/9] userfaultfd: add minor fault handling for shmem

2021-04-12 Thread Axel Rasmussen
Base This series is based on (and therefore should apply cleanly to) the tag "v5.12-rc7-mmots-2021-04-11-20-49", additionally with Peter's selftest cleanup series applied *first*: https://lore.kernel.org/patchwork/cover/1412450/ Changelog = v1->v2: - Pick up Reviewed-by's. - Don't

[PATCH v2 4/4] staging: media: intel-ipu3: remove space before tabs

2021-04-12 Thread Mitali Borkar
Removed unnecessary space before tabs to adhere to linux kernel coding style. Reported by checkpatch. Signed-off-by: Mitali Borkar --- Changes from v1:- No changes. drivers/staging/media/ipu3/include/intel-ipu3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 3/4] staging: media: intel-ipu3: reduce length of line

2021-04-12 Thread Mitali Borkar
Reduced length of the line under 80 characters to meet linux-kernel coding style. Signed-off-by: Mitali Borkar --- Changes from v1:- Reduced length of the line under 80 characters drivers/staging/media/ipu3/include/intel-ipu3.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v2 2/4] staging: media: intel-ipu3: reduce length of line

2021-04-12 Thread Mitali Borkar
Reduced length of line as it was exceeding 100 characters by removing comments from same line and adding it to previous line. This makes code neater, and meets linux kernel coding style. Reported by checkpatch. Signed-off-by: Mitali Borkar --- Changes from v1:- No changes.

[PATCH v2 1/4] staging: media: intel-ipu3: remove unnecessary blank line

2021-04-12 Thread Mitali Borkar
Removed an unnecessary blank line to meet linux kernel coding style. Reported by checkpatch.pl Signed-off-by: Mitali Borkar --- Changes from v1:- No changes. drivers/staging/media/ipu3/include/intel-ipu3.h | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH v2 0/4] staging: media: intel-ipu3: Cleanup patchset for style issues

2021-04-12 Thread Mitali Borkar
Changes from v1:- Dropped patches 1/6 and 2/6 and compiled this as a patchset of 4 patches. [PATCH 1/4]:- No changes. [PATCH 2/4]:- No changes. [PATCH 3/4]:- Reduced length of a line under 80 characters. This was patch 5/6 previously. [PATCH 4/4]:- No changes. Mitali Borkar (4): staging: media:

Re: [PATCH v3 3/3] MAINTAINERS: Add Chris Packham as FREESCALE MPC I2C maintainer

2021-04-12 Thread Chris Packham
On 13/04/21 5:09 pm, Chris Packham wrote: > Add Chris Packham as FREESCALE MPC I2C maintainer. > > Signed-off-by: Chris Packham Sorry for the duplicate. I had existing output from an earlier invocation of git format-patch lying around. "[PATCH v3 4/4] MAINTAINERS: ..." is the one I intended to

Re: [syzbot] upstream boot error: WARNING in __context_tracking_enter

2021-04-12 Thread Dmitry Vyukov
On Mon, Mar 22, 2021 at 6:22 PM Mark Rutland wrote: > > Hi Russell, > > On Fri, Mar 19, 2021 at 10:10:43AM +, Russell King - ARM Linux admin > wrote: > > On Fri, Mar 19, 2021 at 10:54:48AM +0100, Dmitry Vyukov wrote: > > > .On Fri, Mar 19, 2021 at 10:44 AM syzbot > > > wrote: > > > > syzbot

[PATCH v3 4/4] MAINTAINERS: Add Chris Packham as FREESCALE MPC I2C maintainer

2021-04-12 Thread Chris Packham
Add Chris Packham as FREESCALE MPC I2C maintainer. Signed-off-by: Chris Packham --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 56e9e4d777d8..3bc77ba8cd05 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7135,6 +7135,13 @@ S:

[PATCH v3 1/4] i2c: mpc: use device managed APIs

2021-04-12 Thread Chris Packham
Use device managed functions an clean up error handling. Signed-off-by: Chris Packham Signed-off-by: Wolfram Sang --- Notes: Changes in v3: - Assuming 09aab7add7bf is reverted I've folded in the fix from Wei Yongjun[1] into the original patch. If Wei's patch is applied on top

[PATCH v3 3/4] i2c: mpc: Remove redundant NULL check

2021-04-12 Thread Chris Packham
In mpc_i2c_get_fdr_8xxx div is assigned as we iterate through the mpc_i2c_dividers_8xxx array. By the time we exit the loop div will either have the value that matches the requested speed or be pointing at the last entry in mpc_i2c_dividers_8xxx. Checking for div being NULL after the loop is

[PATCH v3 0/4] i2c: mpc: Refactor to improve responsiveness

2021-04-12 Thread Chris Packham
This is an update to what is already in i2c/for-next. I've included "i2c: mpc: use device managed APIs" which had some problems in the remove code path which Wei Yongjun kindly pointed out with a fix. I've incorporated those changes into this version in case the original is reverted. I've tested

[PATCH v3 2/4] i2c: mpc: Interrupt driven transfer

2021-04-12 Thread Chris Packham
The fsl-i2c controller will generate an interrupt after every byte transferred. Make use of this interrupt to drive a state machine which allows the next part of a transfer to happen as soon as the interrupt is received. This is particularly helpful with SMBUS devices like the LM81 which will

[PATCH v3 3/3] MAINTAINERS: Add Chris Packham as FREESCALE MPC I2C maintainer

2021-04-12 Thread Chris Packham
Add Chris Packham as FREESCALE MPC I2C maintainer. Signed-off-by: Chris Packham --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 56e9e4d777d8..3bc77ba8cd05 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7135,6 +7135,13 @@ S:

Re: [PATCH 0/3] scsi: mptfusion: Clear the warnings indicating that the variable is not used

2021-04-12 Thread Martin K. Petersen
Zhen, > Zhen Lei (3): > scsi: mptfusion: Remove unused local variable 'time_count' > scsi: mptfusion: Remove unused local variable 'port' > scsi: mptfusion: Fix error return code of mptctl_hp_hostinfo() I applied patches 1+2. I hesitate making functional changes to such an old driver.

Re: [PATCH net-next v3 1/1] net: stmmac: Add support for external trigger timestamping

2021-04-12 Thread Wong Vee Khee
On Sun, Apr 11, 2021 at 08:10:55AM -0700, Richard Cochran wrote: > On Sun, Apr 11, 2021 at 10:40:28AM +0800, Wong Vee Khee wrote: > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c > > b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c > > index 60566598d644..60e17fd24aba 100644

Re: [PATCH 5.10 000/188] 5.10.30-rc1 review

2021-04-12 Thread Naresh Kamboju
On Mon, 12 Apr 2021 at 14:23, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.10.30 release. > There are 188 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

RE: [PATCH v14 12/12] dmaengine: imx-sdma: add terminated list for freed descriptor in worker

2021-04-12 Thread Robin Gong
On 2021/04/12 17:39, Vinod Koul wrote: > On 07-04-21, 23:30, Robin Gong wrote: > > Add terminated list for keeping descriptor so that it could be freed > > in worker without any potential involving next descriptor raised up > > before this descriptor freed, because vchan_get_all_descriptors

Re: [PATCH] kunit: add unit test for filtering suites by names

2021-04-12 Thread David Gow
On Tue, Apr 13, 2021 at 8:08 AM Daniel Latypov wrote: > > This adds unit tests for kunit_filter_subsuite() and > kunit_filter_suites(). > > Note: what the executor means by "subsuite" is the array of suites > corresponding to each test file. > > This patch lightly refactors executor.c to avoid

Re: [RESEND,v5,1/2] bio: limit bio max size

2021-04-12 Thread Changheun Lee
> On Sun, Apr 11, 2021 at 10:13:01PM +, Damien Le Moal wrote: > > On 2021/04/09 23:47, Bart Van Assche wrote: > > > On 4/7/21 3:27 AM, Damien Le Moal wrote: > > >> On 2021/04/07 18:46, Changheun Lee wrote: > > >>> I'll prepare new patch as you recommand. It will be added setting of > > >>>

Re: [PATCH][next] scsi: aacraid: Replace one-element array with flexible-array member

2021-04-12 Thread Martin K. Petersen
Hi Kees/Gustavo! >> @@ -4020,7 +4020,8 @@ static int aac_convert_sgraw2(struct aac_raw_io2 >> *rio2, int pages, int nseg, int >> } >> } >> sge[pos] = rio2->sge[nseg-1]; >> -memcpy(>sge[1], [1], (nseg_new-1)*sizeof(struct >> sge_ieee1212)); >> +memcpy(>sge[1],

Re: [PATCH 5.11 000/210] 5.11.14-rc1 review

2021-04-12 Thread Naresh Kamboju
On Mon, 12 Apr 2021 at 14:32, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.11.14 release. > There are 210 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

[PATCH v2 2/2] perf/core: Support reading group events with shared cgroups

2021-04-12 Thread Namhyung Kim
This enables reading event group's counter values together with a PERF_EVENT_IOC_READ_CGROUP command like we do in the regular read(). Users should give a correct size of buffer to be read which includes the total buffer size and the cgroup id. Acked-by: Song Liu Signed-off-by: Namhyung Kim ---

aarch64-linux-ld: Unexpected GOT/PLT entries detected!

2021-04-12 Thread kernel test robot
Hi Kees, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 89698becf06d341a700913c3d89ce2a914af69a2 commit: be2881824ae9eb92a35b094f734f9ca7339ddf6d arm64/build: Assert for unwanted sections date: 7 months ago

[PATCH v2 0/2] perf core: Sharing events with multiple cgroups

2021-04-12 Thread Namhyung Kim
Hello, This work is to make perf stat more scalable with a lot of cgroups. Changes in v2) * use cacheline_aligned macro instead of the padding * enclose the cgroup node list initialization * add more comments * add Acked-by from Song Liu Currently we need to open a separate perf_event

[PATCH v2 1/2] perf/core: Share an event with multiple cgroups

2021-04-12 Thread Namhyung Kim
As we can run many jobs (in container) on a big machine, we want to measure each job's performance during the run. To do that, the perf_event can be associated to a cgroup to measure it only. However such cgroup events need to be opened separately and it causes significant overhead in event

Re: [PATCH 4/9] userfaultfd/shmem: support UFFDIO_CONTINUE for shmem

2021-04-12 Thread Axel Rasmussen
On Mon, Apr 12, 2021 at 4:17 PM Peter Xu wrote: > > On Thu, Apr 08, 2021 at 04:43:22PM -0700, Axel Rasmussen wrote: > > +/* > > + * Install PTEs, to map dst_addr (within dst_vma) to page. > > + * > > + * This function handles MCOPY_ATOMIC_CONTINUE (which is always > > file-backed), > > + *

[gustavoars-linux:testing/warray-bounds] BUILD SUCCESS WITH WARNING 8f00c4d955f8c343277181b46fac418101c521bf

2021-04-12 Thread kernel test robot
: '__builtin_memcpy' offset [21, 80] from the object at 'init' is out of the bounds of referenced subobject 'chipset' with type 'int' at offset 16 [-Warray-bounds] Warning ids grouped by kconfigs: gcc_recent_errors |-- i386-randconfig-c021-20210412 | |-- arch-x86-include-asm-string_32.h:warning

Re: [PATCH][next] scsi: mpt3sas: Fix out-of-bounds warnings in _ctl_addnl_diag_query

2021-04-12 Thread Martin K. Petersen
Gustavo, > Fix the following out-of-bounds warnings by embedding existing struct > htb_rel_query into struct mpt3_addnl_diag_query, instead of > duplicating its members: Applied to 5.13/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH bpf-next v2] libbpf: clarify flags in ringbuf helpers

2021-04-12 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf-next.git (refs/heads/master): On Mon, 12 Apr 2021 16:24:32 -0300 you wrote: > In 'bpf_ringbuf_reserve()' we require the flag to '0' at the moment. > > For 'bpf_ringbuf_{discard,submit,output}' a flag of '0' might send a > notification to the process if

Re: [PATCH bpf-next v2] libbpf: clarify flags in ringbuf helpers

2021-04-12 Thread Andrii Nakryiko
On Mon, Apr 12, 2021 at 12:25 PM Pedro Tammela wrote: > > In 'bpf_ringbuf_reserve()' we require the flag to '0' at the moment. > > For 'bpf_ringbuf_{discard,submit,output}' a flag of '0' might send a > notification to the process if needed. > > Signed-off-by: Pedro Tammela > --- Great, thanks!

Urgent Response

2021-04-12 Thread Alexandra Kelly
Dear friend, I am contacting you independently of my investigation in my bank and no one is informed of this communication. I need your urgent assistance in transferring the sum of $5.3 million dollars to your private account,that belongs to one of our foreign customers who died a longtime with

Re: [PATCH] csky: fix syscache.c fallthrough warning

2021-04-12 Thread Guo Ren
Acked-by: Guo Ren It's a fallthrough is for BCACHE, but affects ICACHE with more expensive. I'll fix up it later. } On Mon, Apr 12, 2021 at 12:41 AM Randy Dunlap wrote: > > This case of the switch statement falls through to the following case. > This appears to be on purpose, so

Re: [RFC v4 net-next 1/4] net: phy: add MediaTek PHY driver

2021-04-12 Thread DENG Qingfang
On Mon, Apr 12, 2021 at 11:08:36PM +0800, DENG Qingfang wrote: > On Mon, Apr 12, 2021 at 07:04:49AM +, René van Dorst wrote: > > Hi Qingfang, > > > +static void mtk_phy_config_init(struct phy_device *phydev) > > > +{ > > > + /* Disable EEE */ > > > + phy_write_mmd(phydev, MDIO_MMD_AN,

[PATCH v2] scsi: qlogicpti: remove unneeded semicolon

2021-04-12 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/scsi/qlogicpti.c:1153:3-4: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- Change in v2: --One patch per driver drivers/scsi/qlogicpti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v3 02/10] riscv: add __init section marker to some functions

2021-04-12 Thread Anup Patel
On Mon, Apr 12, 2021 at 9:47 PM Jisheng Zhang wrote: > > From: Jisheng Zhang > > They are not needed after booting, so mark them as __init to move them > to the __init section. > > Signed-off-by: Jisheng Zhang Looks good to me. Reviewed-by: Anup Patel Regards, Anup > --- >

Re: [PATCH v3 00/10] riscv: improve self-protection

2021-04-12 Thread Anup Patel
On Mon, Apr 12, 2021 at 9:46 PM Jisheng Zhang wrote: > > From: Jisheng Zhang > > patch1 removes the non-necessary setup_zero_page() > patch2 is a trivial improvement patch to move some functions to .init > section > > Then following patches improve self-protection by: > > Marking some variables

[PATCH v2] scsi: pmcraid: remove unneeded semicolon

2021-04-12 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/scsi/pmcraid.c:5090:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- Change in v2: --One patch per driver drivers/scsi/pmcraid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v4 5/7] cpufreq: qcom-hw: Implement CPRh aware OSM programming

2021-04-12 Thread Viresh Kumar
On 12-04-21, 15:01, Taniya Das wrote: > Technically the HW we are trying to program here differs in terms of > clocking, the LUT definitions and many more. It will definitely make > debugging much more troublesome if we try to accomodate multiple versions of > CPUFREQ-HW in the same code. > >

[PATCH] fpga: xilinx-pr-decoupler: remove useless function

2021-04-12 Thread Jiapeng Chong
Fix the following gcc warning: drivers/fpga/xilinx-pr-decoupler.c:32:19: warning: unused function 'xlnx_pr_decouple_read' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/fpga/xilinx-pr-decoupler.c | 6 -- 1 file changed, 6 deletions(-) diff --git

Re: [PATCH v3 01/10] riscv: mm: Remove setup_zero_page()

2021-04-12 Thread Anup Patel
On Mon, Apr 12, 2021 at 9:47 PM Jisheng Zhang wrote: > > From: Jisheng Zhang > > The empty_zero_page sits at .bss..page_aligned section, so will be > cleared to zero during clearing bss, we don't need to clear it again. > > Signed-off-by: Jisheng Zhang Looks good to me. Reviewed-by: Anup

Re: [PATCH 2/2] drm/msm/dp: do not re initialize of audio_comp

2021-04-12 Thread Stephen Boyd
Quoting Kuogee Hsieh (2021-04-12 10:03:23) > At dp_display_disable(), do not re initialize audio_comp if > hdp_state == ST_DISCONNECT_PENDING (unplug event) to avoid > race condition which cause 5 second timeout expired. More details please. > Also > add abort mechanism to reduce time spinning

Re: [PATCH 5.11 000/210] 5.11.14-rc1 review

2021-04-12 Thread Guenter Roeck
On Mon, Apr 12, 2021 at 10:38:25AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.11.14 release. > There are 210 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: Candidate Linux ABI for Intel AMX and hypothetical new related features

2021-04-12 Thread Willy Tarreau
On Mon, Apr 12, 2021 at 07:46:06PM -0400, Len Brown wrote: > On Mon, Apr 12, 2021 at 11:21 AM Andy Lutomirski wrote: > > > AMX: Multiplying a 4x4 matrix probably looks *great* in a > > microbenchmark. Do it once and you permanently allocate 8kB (is that > > even a constant? can it grow in

Re: [PATCH v3] f2fs: fix to keep isolation of atomic write

2021-04-12 Thread Chao Yu
On 2021/4/13 11:27, Jaegeuk Kim wrote: On 04/12, Chao Yu wrote: As Yi Chen reported, there is a potential race case described as below: Thread AThread B - f2fs_ioc_start_atomic_write - mkwrite -

[PATCH v2] scsi: ipr: remove unneeded semicolon

2021-04-12 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/scsi/ipr.h:1979:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- Change in v2: --One patch per driver drivers/scsi/ipr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ipr.h

Re: [PATCH v1 1/2] dt-bindings: mmc: sdhci-of-aspeed: Add power-gpio and power-switch-gpio

2021-04-12 Thread Steven Lee
The 04/13/2021 10:43, Milton Miller II wrote: > > > -"openbmc" wrote: > - > > >To: Rob Herring > >From: Steven Lee > >Sent by: "openbmc" > >Date: 04/12/2021 08:31PM > >Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" > >, Ulf Hansson , > >Ryan Chen , "moderated

[RFC PATCH 3/3] vfio/hisilicom: add debugfs for driver

2021-04-12 Thread Longfang Liu
Add debugfs debugging interface to live migration driver Signed-off-by: Longfang Liu --- drivers/vfio/pci/hisilicon/acc_vf_migration.c | 193 ++ drivers/vfio/pci/hisilicon/acc_vf_migration.h | 2 + 2 files changed, 195 insertions(+) diff --git

[RFC PATCH 1/3] vfio/hisilicon: add acc live migration driver

2021-04-12 Thread Longfang Liu
This driver adds the code required by Hisilicon accelerator device to realize the live migration function. It mainly includes the following functions: (1).Match the accelerator device with the vfio-pci driver framework. (2).Processing of the status of the live migration function and processing of

[RFC PATCH 2/3] vfio/hisilicon: register the driver to vfio

2021-04-12 Thread Longfang Liu
Register the live migration driver of the accelerator module to vfio Signed-off-by: Longfang Liu --- drivers/vfio/pci/vfio_pci.c | 11 +++ drivers/vfio/pci/vfio_pci_private.h | 9 + 2 files changed, 20 insertions(+) diff --git a/drivers/vfio/pci/vfio_pci.c

[RFC PATCH 0/3] vfio/hisilicon: add acc live migration driver

2021-04-12 Thread Longfang Liu
The live migration solution relies on the vfio_device_migration_info protocol. The structure vfio_device_migration_info is placed at the 0th offset of the VFIO_REGION_SUBTYPE_MIGRATION region to get and set VFIO device related migration information. Field accesses from this structure are only

Re: [PATCH 4/6] usb: xhci-mtk: add support runtime PM

2021-04-12 Thread Chunfeng Yun
On Mon, 2021-04-12 at 13:14 +0800, Ikjoon Jang wrote: > On Fri, Apr 9, 2021 at 4:54 PM Chunfeng Yun wrote: > > > > On Fri, 2021-04-09 at 13:45 +0800, Ikjoon Jang wrote: > > > On Thu, Apr 8, 2021 at 5:35 PM Chunfeng Yun > > > wrote: > > > > > > > > A dedicated wakeup irq will be used to handle

Re: [PATCH 5.10 000/188] 5.10.30-rc1 review

2021-04-12 Thread Guenter Roeck
On Mon, Apr 12, 2021 at 10:38:34AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.10.30 release. > There are 188 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH net v3] net: sched: fix packet stuck problem for lockless qdisc

2021-04-12 Thread Yunsheng Lin
On 2021/4/13 11:26, Hillf Danton wrote: > On Tue, 13 Apr 2021 10:56:42 Yunsheng Lin wrote: >> On 2021/4/13 10:21, Hillf Danton wrote: >>> On Mon, 12 Apr 2021 20:00:43 Yunsheng Lin wrote: Yes, the below patch seems to fix the data race described in the commit log. Then what is

Re: [PATCH v1 1/2] dt-bindings: mmc: sdhci-of-aspeed: Add power-gpio and power-switch-gpio

2021-04-12 Thread Steven Lee
The 04/12/2021 15:38, Ulf Hansson wrote: > On Thu, 8 Apr 2021 at 03:52, Steven Lee wrote: > > > > AST2600-A2 EVB provides the reference design for enabling SD bus power > > and toggling SD bus signal voltage by GPIO pins. > > Add the definition and example for power-gpio and power-switch-gpio > >

Re: [PATCH 1/2] drm/msm/dp: check sink_count before update is_connected status

2021-04-12 Thread Stephen Boyd
Quoting Kuogee Hsieh (2021-04-12 10:02:51) > At pm_resume check link sisnk_count before update is_connected status > base on HPD real time link status. Also print out error message only > when either EV_CONNECT_PENDING_TIMEOUT or EV_DISCONNECT_PENDING_TIMEOUT > happen. > > Signed-off-by: Kuogee

Re: [PATCH 1/2] drm/msm/dp: check sink_count before update is_connected status

2021-04-12 Thread Stephen Boyd
Quoting Kuogee Hsieh (2021-04-12 10:02:51) > At pm_resume check link sisnk_count before update is_connected status s/sisnk_count/sink_count/ > base on HPD real time link status. Also print out error message only > when either EV_CONNECT_PENDING_TIMEOUT or EV_DISCONNECT_PENDING_TIMEOUT > happen.

Re: [PATCH v3] f2fs: fix to keep isolation of atomic write

2021-04-12 Thread Jaegeuk Kim
On 04/12, Chao Yu wrote: > As Yi Chen reported, there is a potential race case described as below: > > Thread A Thread B > - f2fs_ioc_start_atomic_write > - mkwrite >- set_page_dirty >

[PATCH v5 3/3] staging: rtl8192e: remove casts and parentheses

2021-04-12 Thread Mitali Borkar
Removed unnecessary (void *) cast and parentheses to meet linux kernel coding style. Signed-off-by: Mitali Borkar --- Changes from v4:- Removed unnecessary casts and parentheses. Changes from v3:- No changes. Changes from v2:- Rectified spelling mistake in subject description. Changes has been

  1   2   3   4   5   6   7   8   9   10   >