Re: [PATCH] printk: Userspace format enumeration support

2021-02-05 Thread Steven Rostedt
On Fri, 5 Feb 2021 17:42:55 +0100 Petr Mladek wrote: > Hi, > > I would like to hear opinion from a bigger audience. It is an > userspace interface that we might need to maintain forewer. > Adding few more people in to CC: > > Steven Rostedt : printk co-maintainer Thanks for Cc'ing me. > Alexe

Re: [EXTERNAL] linux-next: Signed-off-by missing for commit in the kvm tree

2021-02-05 Thread David Woodhouse
On Fri, 2021-02-05 at 14:36 +, Joao Martins wrote: > On 2/4/21 8:18 PM, Stephen Rothwell wrote: > > Hi all, > > > > Commit > > > > 79033bebf6fa ("KVM: x86/xen: Fix coexistence of Xen and Hyper-V > > hypercalls") > > > > is missing a Signed-off-by from its author. > > > > Except that Davi

[PATCH 5.4 31/32] kthread: Extract KTHREAD_IS_PER_CPU

2021-02-05 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit ac687e6e8c26181a33270efd1a2e2241377924b0 ] There is a need to distinguish geniune per-cpu kthreads from kthreads that happen to have a single CPU affinity. Geniune per-cpu kthreads are kthreads that are CPU affine for correctness, these will obviously have

[PATCH 5.10 44/57] platform/x86: thinkpad_acpi: Add P53/73 firmware to fan_quirk_table for dual fan control

2021-02-05 Thread Greg Kroah-Hartman
From: Jeannie Stevenson [ Upstream commit 173aac2fef96972e42d33c0e1189e6f756a0d719 ] This commit enables dual fan control for the new Lenovo P53 and P73 laptop models. Signed-off-by: Jeannie Stevenson Link: https://lore.kernel.org/r/Pn_Xii4XYpQRFtgkf4PbNgieE89BAkHgLI1kWIq-zFudwh2A1DY5J_DJVHK0

[PATCH 4.19 01/17] net: dsa: bcm_sf2: put device node before return

2021-02-05 Thread Greg Kroah-Hartman
From: Pan Bian commit cf3c46631e1637582f517a574c77cd6c05793817 upstream. Put the device node dn before return error code on failure path. Fixes: 461cd1b03e32 ("net: dsa: bcm_sf2: Register our slave MDIO bus") Signed-off-by: Pan Bian Link: https://lore.kernel.org/r/20210121123343.26330-1-bianpa

Re: [PATCH] drivers: gpu: drm: msn: disp: dpu1: Fixed couple of spellings in the file dpu_hw_top.h

2021-02-05 Thread Randy Dunlap
On 2/5/21 12:47 AM, Bhaskar Chowdhury wrote: > > > s/confguration/configuration/ > s/Regsiters/Registers/ > > Signed-off-by: Bhaskar Chowdhury > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/msm/di

[PATCH 5.10 46/57] drm/amd/display: Update dram_clock_change_latency for DCN2.1

2021-02-05 Thread Greg Kroah-Hartman
From: Jake Wang [ Upstream commit 901c1ec05ef277ce9d43cb806a225b28b3efe89a ] [WHY] dram clock change latencies get updated using ddr4 latency table, but does that update does not happen before validation. This value should not be the default and should be number received from df for better mode

[PATCH 5.4 29/32] drm/amd/display: Change function decide_dp_link_settings to avoid infinite looping

2021-02-05 Thread Greg Kroah-Hartman
From: Bing Guo [ Upstream commit 4716a7c50c5c66d6ddc42401e1e0ba13b492e105 ] Why: Function decide_dp_link_settings() loops infinitely when required bandwidth can't be supported. How: Check the required bandwidth against verified_link_cap before trying to find a link setting for it. Tested-by: D

Re: Kernel version numbers after 4.9.255 and 4.4.255

2021-02-05 Thread Tony Battersby
On 2/4/21 6:00 AM, Jiri Slaby wrote: > Agreed. But currently, sublevel won't "wrap", it will "overflow" to > patchlevel. And that might be a problem. So we might need to update the > header generation using e.g. "sublevel & 0xff" (wrap around) or > "sublevel > 255 : 255 : sublevel" (be monotonic

Re: [PATCH 2/2] KVM: do not assume PTE is writable after follow_pfn

2021-02-05 Thread kernel test robot
submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Paolo-Bonzini/KVM-do-not-assume-PTE-is-writable-after-follow_pfn/20210205-183434 base: https://git.kernel.org/pub/scm/linux/kernel/gi

[PATCH 5.4 09/32] btrfs: backref, only collect file extent items matching backref offset

2021-02-05 Thread Greg Kroah-Hartman
From: ethanwu commit 7ac8b88ee668a5b4743ebf3e9888fabac85c334a upstream. When resolving one backref of type EXTENT_DATA_REF, we collect all references that simply reference the EXTENT_ITEM even though their (file_pos - file_extent_item::offset) are not the same as the btrfs_extent_data_ref::offse

[PATCH 5.4 19/32] scsi: libfc: Avoid invoking response handler twice if ep is already completed

2021-02-05 Thread Greg Kroah-Hartman
From: Javed Hasan [ Upstream commit b2b0f16fa65e910a3ec8771206bb49ee87a54ac5 ] A race condition exists between the response handler getting called because of exchange_mgr_reset() (which clears out all the active XIDs) and the response we get via an interrupt. Sequence of events: rport

[PATCH v20 09/10] fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile

2021-02-05 Thread Konstantin Komarov
This adds NTFS3 in fs/Kconfig and fs/Makefile Signed-off-by: Konstantin Komarov --- fs/Kconfig | 1 + fs/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/Kconfig b/fs/Kconfig index aa4c12282301..eae96d55ab67 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -145,6 +145,7 @@ menu "DOS

[PATCH 5.10 40/57] nvme-rdma: avoid request double completion for concurrent nvme_rdma_timeout

2021-02-05 Thread Greg Kroah-Hartman
From: Chao Leng [ Upstream commit 7674073b2ed35ac951a49c425dec6b39d5a57140 ] A crash happens when inject completing request long time(nearly 30s). Each name space has a request queue, when inject completing request long time, multi request queues may have time out requests at the same time, nvme

Re: [PATCH 2/7] ASoC: fsl_rpmsg: Add CPU DAI driver for audio base on rpmsg

2021-02-05 Thread Mark Brown
On Fri, Feb 05, 2021 at 02:57:25PM +0800, Shengjiu Wang wrote: > This is a dummy cpu dai driver for rpmsg audio use case, > which is mainly used for getting the user's configuration This is actually doing stuff, it's not a dummy driver. > +static int fsl_rpmsg_remove(struct platform_device *pdev)

[PATCH v3 mm 13/13] kasan: clarify that only first bug is reported in HW_TAGS

2021-02-05 Thread Andrey Konovalov
Hwardware tag-based KASAN only reports the first found bug. After that MTE tag checking gets disabled. Clarify this in comments and documentation. Signed-off-by: Andrey Konovalov --- Documentation/dev-tools/kasan.rst | 8 ++-- mm/kasan/hw_tags.c| 2 +- 2 files changed, 7 inse

[PATCH 5.4 15/32] platform/x86: touchscreen_dmi: Add swap-x-y quirk for Goodix touchscreen on Estar Beauty HD tablet

2021-02-05 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit 46c54cf2706122c37497896d56d67b0c0aca2ede ] The Estar Beauty HD (MID 7316R) tablet uses a Goodix touchscreen, with the X and Y coordinates swapped compared to the LCD panel. Add a touchscreen_dmi entry for this adding a "touchscreen-swapped-x-y" device-prope

[PATCH v3 mm 03/13] kasan: optimize large kmalloc poisoning

2021-02-05 Thread Andrey Konovalov
Similarly to kasan_kmalloc(), kasan_kmalloc_large() doesn't need to unpoison the object as it as already unpoisoned by alloc_pages() (or by ksize() for krealloc()). This patch changes kasan_kmalloc_large() to only poison the redzone. Reviewed-by: Marco Elver Signed-off-by: Andrey Konovalov ---

[PATCH v3 mm 02/13] kasan, mm: optimize kmalloc poisoning

2021-02-05 Thread Andrey Konovalov
For allocations from kmalloc caches, kasan_kmalloc() always follows kasan_slab_alloc(). Currenly, both of them unpoison the whole object, which is unnecessary. This patch provides separate implementations for both annotations: kasan_slab_alloc() unpoisons the whole object, and kasan_kmalloc() only

[PATCH v3 mm 04/13] kasan: clean up setting free info in kasan_slab_free

2021-02-05 Thread Andrey Konovalov
Put kasan_stack_collection_enabled() check and kasan_set_free_info() calls next to each other. The way this was previously implemented was a minor optimization that relied of the the fact that kasan_stack_collection_enabled() is always true for generic KASAN. The confusion that this brings outweig

[PATCH v3 mm 05/13] kasan: unify large kfree checks

2021-02-05 Thread Andrey Konovalov
Unify checks in kasan_kfree_large() and in kasan_slab_free_mempool() for large allocations as it's done for small kfree() allocations. With this change, kasan_slab_free_mempool() starts checking that the first byte of the memory that's being freed is accessible. Reviewed-by: Marco Elver Signed-o

[PATCH v20 05/10] fs/ntfs3: Add attrib operations

2021-02-05 Thread Konstantin Komarov
This adds attrib operations Signed-off-by: Konstantin Komarov --- fs/ntfs3/attrib.c | 2085 +++ fs/ntfs3/attrlist.c | 457 ++ fs/ntfs3/xattr.c| 1085 ++ 3 files changed, 3627 insertions(+) create mode 100644 fs/ntfs3/att

[PATCH v3 mm 07/13] kasan, mm: fail krealloc on freed objects

2021-02-05 Thread Andrey Konovalov
Currently, if krealloc() is called on a freed object with KASAN enabled, it allocates and returns a new object, but doesn't copy any memory from the old one as ksize() returns 0. This makes the caller believe that krealloc() succeeded (KASAN report is printed though). This patch adds an accessibil

[PATCH v3 mm 06/13] kasan: rework krealloc tests

2021-02-05 Thread Andrey Konovalov
This patch reworks KASAN-KUnit tests for krealloc() to: 1. Check both slab and page_alloc based krealloc() implementations. 2. Allow at least one full granule to fit between old and new sizes for each KASAN mode, and check accesses to that granule accordingly. Reviewed-by: Marco Elver Signed-

[PATCH v20 08/10] fs/ntfs3: Add Kconfig, Makefile and doc

2021-02-05 Thread Konstantin Komarov
This adds Kconfig, Makefile and doc Signed-off-by: Konstantin Komarov --- Documentation/filesystems/ntfs3.rst | 107 fs/ntfs3/Kconfig| 45 fs/ntfs3/Makefile | 31 3 files changed, 183 insertions(+) create

[PATCH v20 10/10] fs/ntfs3: Add MAINTAINERS

2021-02-05 Thread Konstantin Komarov
This adds MAINTAINERS Signed-off-by: Konstantin Komarov --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2a0737dfca89..a46036abc9df 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12667,6 +12667,13 @@ T: git git://git.kernel.org/pub/s

[PATCH v3 mm 01/13] kasan, mm: don't save alloc stacks twice

2021-02-05 Thread Andrey Konovalov
Currently KASAN saves allocation stacks in both kasan_slab_alloc() and kasan_kmalloc() annotations. This patch changes KASAN to save allocation stacks for slab objects from kmalloc caches in kasan_kmalloc() only, and stacks for other slab objects in kasan_slab_alloc() only. This change requires __

[PATCH v20 00/10] NTFS read-write driver GPL implementation by Paragon Software

2021-02-05 Thread Konstantin Komarov
This patch adds NTFS Read-Write driver to fs/ntfs3. Having decades of expertise in commercial file systems development and huge test coverage, we at Paragon Software GmbH want to make our contribution to the Open Source Community by providing implementation of NTFS Read-Write driver for the Linux

[PATCH v20 06/10] fs/ntfs3: Add compression

2021-02-05 Thread Konstantin Komarov
This patch adds different types of NTFS-applicable compressions: - lznt - lzx - xpress Latter two (lzx, xpress) implement Windows Compact OS feature and were taken from ntfs-3g system comression plugin authored by Eric Biggers (https://github.com/ebiggers/ntfs-3g-system-compression) which were port

Re: [PATCH v2 1/4] arm64: kasan: don't populate vmalloc area for CONFIG_KASAN_VMALLOC

2021-02-05 Thread Andrey Konovalov
On Fri, Feb 5, 2021 at 6:19 PM Will Deacon wrote: > > On Fri, Feb 05, 2021 at 12:37:21AM +0800, Lecopzer Chen wrote: > > > > > On Thu, Feb 04, 2021 at 10:46:12PM +0800, Lecopzer Chen wrote: > > > > > On Sat, Jan 09, 2021 at 06:32:49PM +0800, Lecopzer Chen wrote: > > > > > > Linux support KAsan for

[PATCH 1/2] x86/unwind/orc: Disable KASAN checking in the ORC unwinder, part 2

2021-02-05 Thread Josh Poimboeuf
KASAN reserves "redzone" areas between stack frames in order to detect stack overruns. A read or write to such an area triggers a KASAN "stack-out-of-bounds" BUG. Normally, the ORC unwinder stays in-bounds and doesn't access the redzone. But sometimes it can't find ORC metadata for a given instr

[PATCH 0/2] x86/unwind/orc: Handle missing ORC data better

2021-02-05 Thread Josh Poimboeuf
A couple of patches for improving the ORC unwinder's handling of missing ORC data. Josh Poimboeuf (2): x86/unwind/orc: Disable KASAN checking in the ORC unwinder, part 2 x86/unwind/orc: Silence warnings caused by missing ORC data arch/x86/kernel/unwind_orc.c | 14 +++--- 1 file chang

[PATCH 2/2] x86/unwind/orc: Silence warnings caused by missing ORC data

2021-02-05 Thread Josh Poimboeuf
The ORC unwinder attempts to fall back to frame pointers when ORC data is missing for a given instruction. It sets state->error, but then tries to keep going as a best-effort type of thing. That may result in further warnings if the unwinder gets lost. Until we have some way to register generate

[PATCH] fs/jfs: fix potential integer overflow on shift of a int

2021-02-05 Thread Colin King
From: Colin Ian King The left shift of int 32 bit integer constant 1 is evaluated using 32 bit arithmetic and then assigned to a signed 64 bit integer. In the case where l2nb is 32 or more this can lead to an overflow. Avoid this by shifting using the BIT_ULL macro instead. Addresses-Coverity:

Re: [net-next PATCH v4 07/15] net: mdiobus: Introduce fwnode_mdiobus_register_phy()

2021-02-05 Thread Calvin Johnson
On Fri, Jan 22, 2021 at 09:12:52PM +0530, Calvin Johnson wrote: > Introduce fwnode_mdiobus_register_phy() to register PHYs on the > mdiobus. From the compatible string, identify whether the PHY is > c45 and based on this create a PHY device instance which is > registered on the mdiobus. > > Signed

Re: [PATCH v3 2/2] tpm: in tpm2_del_space check if ops pointer is still valid

2021-02-05 Thread Jason Gunthorpe
On Fri, Feb 05, 2021 at 08:48:11AM -0800, James Bottomley wrote: > > Thanks for pointing this out. I'd strongly support Jason's proposal: > > > > https://lore.kernel.org/linux-integrity/20201215175624.gg5...@ziepe.ca/ > > > > It's the best long-term way to fix this. > > Really, no it's not. It

[RFC 7/9] x86/mm: Handle tagged memory accesses from kernel threads

2021-02-05 Thread Kirill A. Shutemov
When a kernel thread performs memory access on behalf of a process (like in async I/O, io_uring, etc.) it has to respect tagging setup of the process as user addresses can include tags. Normally, LAM setup is per-thread and recorded in thread flags, but for this use case we also track LAM setup pe

Re: [PATCH 5/8] spi: stm32: defer probe for reset

2021-02-05 Thread Alain Volmat
Hi Mark, sorry about that, I've just noticed the issue. This is probably due to modification of patches ordering I did. STM32H7_SPI_TSIZE_MAX is introduced in the PATCH 6/8 and this is the reason why PATCH 5/8 doesn't build properly. I'll rework that to ensure that all patches compile properly. S

Re: rcu: INFO: rcu_sched self-detected stall on CPU: Workqueue: xfs-conv/md0 xfs_end_io

2021-02-05 Thread Paul E. McKenney
On Fri, Feb 05, 2021 at 08:29:06AM +0100, Paul Menzel wrote: > Dear Linux folks, > > > On a Dell PowerEdge T630/0NT78X, BIOS 2.8.0 05/23/2018 with Linux 5.4.57, we > twice saw a self-detected stall on a CPU (October 27th, 2020, January 18th, > 2021). > > Both times, the workqueue is `xfs-conv/md

Re: [PATCH v2 2/2] of: property: Add fw_devlink support for interrupts

2021-02-05 Thread Saravana Kannan
On Fri, Feb 5, 2021 at 2:20 AM Geert Uytterhoeven wrote: > > Hi Saravana, > > On Fri, Feb 5, 2021 at 11:06 AM Saravana Kannan wrote: > > On Fri, Feb 5, 2021 at 12:06 AM Geert Uytterhoeven > > wrote: > > > On Fri, Feb 5, 2021 at 8:38 AM Marek Szyprowski > > > wrote: > > > > On 04.02.2021 22:31,

Re: [PATCH v28 05/12] LSM: Infrastructure management of the superblock

2021-02-05 Thread Casey Schaufler
On 2/5/2021 6:17 AM, Serge E. Hallyn wrote: > On Tue, Feb 02, 2021 at 05:27:03PM +0100, Mickaël Salaün wrote: >> From: Casey Schaufler >> >> Move management of the superblock->sb_security blob out of the >> individual security modules and into the security infrastructure. >> Instead of allocating

Re: [PATCH v2] firmware_loader: Align .builtin_fw to 8

2021-02-05 Thread Doug Anderson
Hi, On Fri, Jan 22, 2021 at 11:04 AM Doug Anderson wrote: > > Hi, > > On Tue, Jan 5, 2021 at 11:20 AM Nick Desaulniers > wrote: > > > > On Tue, Jan 5, 2021 at 9:45 AM Doug Anderson wrote: > > > > > > Hi, > > > > > > On Mon, Dec 7, 2020 at 9:49 PM Fangrui Song wrote: > > > > > > > > arm64 refer

Re: [PATCH v28 05/12] LSM: Infrastructure management of the superblock

2021-02-05 Thread Casey Schaufler
On 2/5/2021 6:17 AM, Serge E. Hallyn wrote: > On Tue, Feb 02, 2021 at 05:27:03PM +0100, Mickaël Salaün wrote: >> From: Casey Schaufler >> >> Move management of the superblock->sb_security blob out of the >> individual security modules and into the security infrastructure. >> Instead of allocating

Re: [PATCH v2 1/4] arm64: kasan: don't populate vmalloc area for CONFIG_KASAN_VMALLOC

2021-02-05 Thread Will Deacon
On Fri, Feb 05, 2021 at 12:37:21AM +0800, Lecopzer Chen wrote: > > > On Thu, Feb 04, 2021 at 10:46:12PM +0800, Lecopzer Chen wrote: > > > > On Sat, Jan 09, 2021 at 06:32:49PM +0800, Lecopzer Chen wrote: > > > > > Linux support KAsan for VMALLOC since commit 3c5c3cfb9ef4da9 > > > > > ("kasan: suppo

Re: [PATCH 3/8] sched/fair: Tweak misfit-related capacity checks

2021-02-05 Thread Vincent Guittot
On Fri, 5 Feb 2021 at 18:00, Valentin Schneider wrote: > > On 05/02/21 15:31, Vincent Guittot wrote: > > On Thu, 28 Jan 2021 at 19:32, Valentin Schneider > > wrote: > >> > >> During load-balance, groups classified as group_misfit_task are filtered > >> out if they do not pass > >> > >> group_sm

Re: [PATCH] drivers: mfd: Spelling fixes in the file max77620.c

2021-02-05 Thread Randy Dunlap
On 2/5/21 12:54 AM, Bhaskar Chowdhury wrote: > > > s/Teminology/Terminology/ > s/confguration/configuration/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > drivers/mfd/max77620.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/mfd/

Re: [PATCH] alarmtimer: Do not mess with an enqueued hrtimer

2021-02-05 Thread Thomas Gleixner
On Thu, Jan 07 2021 at 13:33, Li RongQing wrote: > when an hrtimer is enqueued already, its expires should be not > changed, otherwise, this will corrupts the ordering of the > timerqueue RB tree, if other hrtimer is enqueued before this > hrtimer is restarted, whole RB tree is completely hosed > >

[tip: timers/urgent] ntp: Use freezable workqueue for RTC synchronization

2021-02-05 Thread tip-bot2 for Geert Uytterhoeven
The following commit has been merged into the timers/urgent branch of tip: Commit-ID: 24c242ec7abb3d21fa0b1da6bb251521dc1717b5 Gitweb: https://git.kernel.org/tip/24c242ec7abb3d21fa0b1da6bb251521dc1717b5 Author:Geert Uytterhoeven AuthorDate:Mon, 25 Jan 2021 15:30:39 +01:00

[PATCH] blk-mq-debugfs: mark concurrent stats counters as data races

2021-02-05 Thread Marco Elver
KCSAN reports that several of the blk-mq debugfs stats counters are updated concurrently. Because blk-mq-debugfs does not demand precise stats counters, potential lossy updates due to data races can be tolerated. Therefore, mark and comment the accesses accordingly. Reported-by: syzbot+2c308b859c8

Re: KCSAN: data-race in blk_stat_add / blk_stat_timer_fn (5)

2021-02-05 Thread Marco Elver
On Fri, 5 Feb 2021 at 18:00, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:2ab38c17 mailmap: remove the "repo-abbrev" comment > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=130e19b4d0 > kernel config: https://syzkal

Re: [PATCH] arch: arm: mach-imx: Fix a spelling in the file pm-imx5.c

2021-02-05 Thread Randy Dunlap
On 2/5/21 12:38 AM, Bhaskar Chowdhury wrote: > > s/confgiured/configured/ > > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap > --- > arch/arm/mach-imx/pm-imx5.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/mach-imx/pm-imx5.c b/arch/arm/mach-

Upcoming for next merge window: fscache and netfs lib

2021-02-05 Thread David Howells
Hi Linus, To apprise you in advance, I'm intending to submit a pull request for a partial modernisation of the fscache I/O subsystem, which can be found here: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=fscache-next The main parts of it are: (1) Inst

[PATCH] uapi: map_to_7segment: Update example in documentation

2021-02-05 Thread Geert Uytterhoeven
The device_attribute .show() and .store() methods gained an extra parameter in v2.6.13, but the example in the documentation for the 7-segment header file was never updated. Add the missing parameters. While at it, get rid of the (misspelled) deprecated symbolic permissions, and switch to DEVICE_

[PATCH v3 5/5] hugetlb: Do early cow when page pinned on src mm

2021-02-05 Thread Peter Xu
This is the last missing piece of the COW-during-fork effort when there're pinned pages found. One can reference 70e806e4e645 ("mm: Do early cow for pinned pages during fork() for ptes", 2020-09-27) for more information, since we do similar things here rather than pte this time, but just for huget

Re: [PATCH 4/4] RDMA/umem: batch page unpin in __ib_mem_release()

2021-02-05 Thread Joao Martins
On 2/4/21 8:00 PM, Jason Gunthorpe wrote: > On Wed, Feb 03, 2021 at 04:15:53PM -0800, John Hubbard wrote: >>> diff --git a/drivers/infiniband/core/umem.c b/drivers/infiniband/core/umem.c >>> index 2dde99a9ba07..ea4ebb3261d9 100644 >>> +++ b/drivers/infiniband/core/umem.c >>> @@ -47,17 +47,17 @@

Re: [PATCH v10 2/5] sched: CGroup tagging interface for core scheduling

2021-02-05 Thread Joel Fernandes
Hi Peter, On Thu, Feb 04, 2021 at 02:59:58PM +0100, Peter Zijlstra wrote: > On Wed, Feb 03, 2021 at 05:51:15PM +0100, Peter Zijlstra wrote: > > > > I'm slowly starting to go through this... > > > > On Fri, Jan 22, 2021 at 08:17:01PM -0500, Joel Fernandes (Google) wrote: > > > +static bool sched_

Re: linux-next: Signed-off-by missing for commit in the kvm tree

2021-02-05 Thread Joao Martins
On 2/4/21 8:18 PM, Stephen Rothwell wrote: > Hi all, > > Commit > > 79033bebf6fa ("KVM: x86/xen: Fix coexistence of Xen and Hyper-V hypercalls") > > is missing a Signed-off-by from its author. > Except that David is the author of this particular patch, not me. Joao

Re: [v6 PATCH 09/11] mm: vmscan: don't need allocate shrinker->nr_deferred for memcg aware shrinkers

2021-02-05 Thread Kirill Tkhai
On 04.02.2021 20:32, Yang Shi wrote: > On Thu, Feb 4, 2021 at 2:14 AM Kirill Tkhai wrote: >> >> On 04.02.2021 12:29, Kirill Tkhai wrote: >>> On 03.02.2021 20:20, Yang Shi wrote: Now nr_deferred is available on per memcg level for memcg aware shrinkers, so don't need allocate shrink

Re: [PATCH] printk: Userspace format enumeration support

2021-02-05 Thread Petr Mladek
Hi, I would like to hear opinion from a bigger audience. It is an userspace interface that we might need to maintain forewer. Adding few more people in to CC: Steven Rostedt : printk co-maintainer Alexey Dobriyan : fs/proc maintainer Greg Kroah-Hartman : sysfs maintainer Jason Baron : dynamic_deb

[PATCH 4.14 15/15] kthread: Extract KTHREAD_IS_PER_CPU

2021-02-05 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit ac687e6e8c26181a33270efd1a2e2241377924b0 ] There is a need to distinguish geniune per-cpu kthreads from kthreads that happen to have a single CPU affinity. Geniune per-cpu kthreads are kthreads that are CPU affine for correctness, these will obviously have

[PATCH 4.19 13/17] scsi: ibmvfc: Set default timeout to avoid crash during migration

2021-02-05 Thread Greg Kroah-Hartman
From: Brian King [ Upstream commit 764907293edc1af7ac857389af9dc858944f53dc ] While testing live partition mobility, we have observed occasional crashes of the Linux partition. What we've seen is that during the live migration, for specific configurations with large amounts of memory, slow netwo

[PATCH 5.4 12/32] btrfs: backref, use correct count to resolve normal data refs

2021-02-05 Thread Greg Kroah-Hartman
From: ethanwu commit b25b0b871f206936d5bca02b80d38c05623e27da upstream. With the following patches: - btrfs: backref, only collect file extent items matching backref offset - btrfs: backref, not adding refs from shared block when resolving normal backref - btrfs: backref, only search backref e

[PATCH 5.4 10/32] btrfs: backref, dont add refs from shared block when resolving normal backref

2021-02-05 Thread Greg Kroah-Hartman
From: ethanwu commit ed58f2e66e849c34826083e5a6c1b506ee8a4d8e upstream. All references from the block of SHARED_DATA_REF belong to that shared block backref. For example: item 11 key (40831553536 EXTENT_ITEM 4194304) itemoff 15460 itemsize 95 extent refs 24 gen 7302 flags DATA ex

Re: [PATCH] fs/btrfs: Fix raid6 qstripe kmap'ing

2021-02-05 Thread Ira Weiny
On Fri, Feb 05, 2021 at 04:34:41PM +0100, David Sterba wrote: > On Thu, Feb 04, 2021 at 07:52:36PM -0800, Ira Weiny wrote: > > On Thu, Feb 04, 2021 at 04:26:08PM +0100, David Sterba wrote: > > > On Wed, Feb 03, 2021 at 04:56:48PM +0100, David Sterba wrote: > > > > On Wed, Jan 27, 2021 at 10:15:03PM

[PATCH 5.4 00/32] 5.4.96-rc1 review

2021-02-05 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.96 release. There are 32 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. Responses should be made by Sun, 07 Feb 2021 14:06:42 +. Anything rece

Re: [PATCH 2/2] KVM: do not assume PTE is writable after follow_pfn

2021-02-05 Thread kernel test robot
submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Paolo-Bonzini/KVM-do-not-assume-PTE-is-writable-after-follow_pfn/20210205-183434 base: https://git.kernel.org/pub/scm/linux/kernel/gi

[PATCH 5.4 27/32] selftests/powerpc: Only test lwm/stmw on big endian

2021-02-05 Thread Greg Kroah-Hartman
From: Michael Ellerman [ Upstream commit dd3a44c06f7b4f14e90065bf05d62c255b20005f ] Newer binutils (>= 2.36) refuse to assemble lmw/stmw when building in little endian mode. That breaks compilation of our alignment handler test: /tmp/cco4l14N.s: Assembler messages: /tmp/cco4l14N.s:1440: Err

Re: Small student project idea on appropriate integration trees in MAINTAINERS

2021-02-05 Thread Joe Perches
On Fri, 2021-02-05 at 07:42 +0100, Lukas Bulwahn wrote: > On Fri, Jan 29, 2021 at 12:54 AM Jonathan Corbet wrote: > > > > On Fri, 22 Jan 2021 09:22:24 +0100 > > Lukas Bulwahn wrote: > > > > > In this project, we can make use of: > > > > > > - gitdm [git://git.lwn.net/gitdm.git]: gitdm includes

Re: [PATCH 3/3] net: fix iteration for sctp transport seq_files

2021-02-05 Thread Marcelo Ricardo Leitner
On Fri, Feb 05, 2021 at 11:36:30AM +1100, NeilBrown wrote: > The sctp transport seq_file iterators take a reference to the transport > in the ->start and ->next functions and releases the reference in the > ->show function. The preferred handling for such resources is to > release them in the subs

[PATCH net-next v2 3/7] net: ipa: do not cache event ring state

2021-02-05 Thread Alex Elder
An event ring's state only needs to be known when it is allocated, reset, or deallocated. We check an event ring's state both before and after performing an event ring control command that changes its state. These are only issued at startup and shutdown, so there is very little value in caching t

[PATCH] perf tools: Support arch specific PERF_SAMPLE_WEIGHT_STRUCT processing

2021-02-05 Thread kan . liang
From: Kan Liang For X86, the var2_w field of PERF_SAMPLE_WEIGHT_STRUCT stands for the instruction latency. Current perf forces the var2_w to the data->ins_lat in the generic code. It works well for now because X86 is the only architecture that supports the PERF_SAMPLE_WEIGHT_STRUCT, but it may br

Re: [PATCH v2 1/2] s390/kvm: extend kvm_s390_shadow_fault to return entry pointer

2021-02-05 Thread Claudio Imbrenda
On Fri, 5 Feb 2021 13:56:53 +0100 Janosch Frank wrote: > On 2/5/21 1:15 PM, Claudio Imbrenda wrote: > > On Thu, 4 Feb 2021 17:34:00 +0100 > > Janosch Frank wrote: > > > >> On 2/2/21 7:00 PM, Claudio Imbrenda wrote: > >>> Extend kvm_s390_shadow_fault to return the pointer to the valid > >>>

Re: [Patch v3 net-next 7/7] octeontx2-pf: ethtool physical link configuration

2021-02-05 Thread Hariprasad Kelam
Hi Jakub, > -Original Message- > From: Jakub Kicinski > Sent: Friday, February 5, 2021 12:21 AM > To: Hariprasad Kelam > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; > da...@davemloft.net; willemdebruijn.ker...@gmail.com; > and...@lunn.ch; Sunil Kovvuri Goutham ; Linu > Ch

Re: [PATCH v19 04/25] x86/cpufeatures: Introduce X86_FEATURE_CET and setup functions

2021-02-05 Thread Yu, Yu-cheng
On 2/5/2021 5:43 AM, Borislav Petkov wrote: On Wed, Feb 03, 2021 at 02:55:26PM -0800, Yu-cheng Yu wrote: @@ -1252,6 +1260,13 @@ static void __init cpu_parse_early_param(void) if (cmdline_find_option_bool(boot_command_line, "noxsaves")) setup_clear_cpu_cap(X86_FEATURE_XSAV

[PATCH net-next v2 7/7] net: ipa: avoid field overflow

2021-02-05 Thread Alex Elder
It's possible that the length passed to ipa_header_size_encoded() is larger than what can be represented by the HDR_LEN field alone (starting with IPA v4.5). If we attempted that, u32_encode_bits() would trigger a build-time error. Avoid this problem by masking off high-order bits of the value en

[PATCH net-next v2 2/7] net: ipa: synchronize NAPI only for suspend

2021-02-05 Thread Alex Elder
When stopping a channel, gsi_channel_stop() will ensure NAPI polling is complete when it calls napi_disable(). So there is no need to call napi_synchronize() in that case. Move the call to napi_synchronize() out of __gsi_channel_stop() and into gsi_channel_suspend(), so it's only used where neede

Re: [PATCH V3 16/19] virtio-pci: introduce modern device module

2021-02-05 Thread Michael S. Tsirkin
On Mon, Jan 04, 2021 at 02:55:00PM +0800, Jason Wang wrote: > Signed-off-by: Jason Wang I don't exactly get why we need to split the modern driver out, and it can confuse people who are used to be seeing virtio-pci. The vdpa thing so far looks like a development tool, why do we care that it depe

Re: [PATCH v3 1/2] tpm: fix reference counting for struct tpm_chip

2021-02-05 Thread Lino Sanfilippo
On 05.02.21 16:15, Jason Gunthorpe wrote: > > No, the cdev layer holds the refcount on the device while open is > being called. > > Jason > Yes, but the reference that is responsible for the chip deallocation is chip->dev which is linked to chip->cdev and represents /dev/tpm, not /dev/tpmrm.

Re: [PATCH net-next v1 1/6] lan743x: boost performance on cpu archs w/o dma cache snooping

2021-02-05 Thread Sven Van Asbroeck
Hi Sergej, On Fri, Feb 5, 2021 at 7:44 AM Sergej Bauer wrote: > > Hi Sven > I can confirm great stability improvement after your patch > "lan743x: boost performance on cpu archs w/o dma cache snooping". > > Test machine is Intel Pentium G4560 3.50GHz > lan743x with rejected virtual phy 'inside'

[PATCH 5.10 42/57] nvme-pci: allow use of cmb on v1.4 controllers

2021-02-05 Thread Greg Kroah-Hartman
From: Klaus Jensen [ Upstream commit 20d3bb92e84d417b0494a3b6867f0c86713db257 ] Since NVMe v1.4 the Controller Memory Buffer must be explicitly enabled by the host. Signed-off-by: Klaus Jensen [hch: avoid a local variable and add a comment] Signed-off-by: Christoph Hellwig Signed-off-by: Sash

Re: [PATCH v3 2/2] dmabuf: Add dmabuf inode number to /proc/*/fdinfo

2021-02-05 Thread Kalesh Singh
On Fri, Feb 5, 2021 at 2:56 AM Christian König wrote: > > Am 05.02.21 um 03:23 schrieb Kalesh Singh: > > If a FD refers to a DMA buffer add the DMA buffer inode number to > > /proc//fdinfo/ and /proc//task//fdindo/. > > > > The dmabuf inode number allows userspace to uniquely identify the buffer >

Re: [PATCH 6/9] perf report: Support instruction latency

2021-02-05 Thread Liang, Kan
On 2/5/2021 6:08 AM, Namhyung Kim wrote: On Wed, Feb 3, 2021 at 5:14 AM wrote: From: Kan Liang The instruction latency information can be recorded on some platforms, e.g., the Intel Sapphire Rapids server. With both memory latency (weight) and the new instruction latency information, user

[PATCH v2 08/12] kasan, mm: optimize krealloc poisoning

2021-02-05 Thread Andrey Konovalov
Currently, krealloc() always calls ksize(), which unpoisons the whole object including the redzone. This is inefficient, as kasan_krealloc() repoisons the redzone for objects that fit into the same buffer. This patch changes krealloc() instrumentation to use uninstrumented __ksize() that doesn't u

[PATCH v2 12/12] arm64: kasan: export MTE symbols for KASAN tests

2021-02-05 Thread Andrey Konovalov
Export mte_enable_kernel_sync() and mte_set_report_once() to fix: ERROR: modpost: "mte_enable_kernel_sync" [lib/test_kasan.ko] undefined! ERROR: modpost: "mte_set_report_once" [lib/test_kasan.ko] undefined! Reviewed-by: Catalin Marinas Signed-off-by: Andrey Konovalov --- arch/arm64/kernel/mte.

[PATCH v2] HID: logitech-dj: add support for keyboard events in eQUAD step 4 Gaming

2021-02-05 Thread Filipe Laíns
From: Filipe Laíns In e400071a805d6229223a98899e9da8c6233704a1 I added support for the receiver that comes with the G602 device, but unfortunately I screwed up during testing and it seems the keyboard events were actually not being sent to userspace. This resulted in keyboard events being broken

Re: [PATCH v2 4/4] hugetlb: Do early cow when page pinned on src mm

2021-02-05 Thread Peter Xu
On Fri, Feb 05, 2021 at 02:58:33PM +, Zhang, Wei wrote: > Hi Peter, Hi, Wei, > > Gal and I worked together. We tested the patch v2 and can confirm it is > working as intended. > > Thank you very much for your quick response! My thanks too on the quick testing! Sorry that I'll need to pos

[RFC 0/9] Linear Address Masking enabling

2021-02-05 Thread Kirill A. Shutemov
Linear Address Masking[1] (LAM) modifies the checking that is applied to 64-bit linear addresses, allowing software to use of the untranslated address bits for metadata. The patchset brings support for LAM for userspace addresses. The most sensitive part of enabling is change in tlb.c, where CR3

[GIT PULL] vdpa: last minute bugfix

2021-02-05 Thread Michael S. Tsirkin
The following changes since commit 710eb8e32d04714452759f2b66884bfa7e97d495: vdpa/mlx5: Fix memory key MTT population (2021-01-20 03:47:04 -0500) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus for you to fetch changes up

[RFC/PATCH 08/11] drm/v3d: Add support for bcm2711

2021-02-05 Thread Nicolas Saenz Julienne
Add compatible string and Kconfig options for bcm2711. Signed-off-by: Nicolas Saenz Julienne --- drivers/gpu/drm/v3d/Kconfig | 2 +- drivers/gpu/drm/v3d/v3d_drv.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/v3d/Kconfig b/drivers/gpu/drm/v3d/Kconfig inde

[RFC/PATCH 05/11] soc: bcm: bcm2835-power: Add support for BCM2711's ARSAN ASB

2021-02-05 Thread Nicolas Saenz Julienne
In BCM2711 the new ARGON ASB took over V3D. The old ASB is still present with the ISP and H264 bits, and V3D is in the same place in the new ASB as the old one. Use the fact that 'pm->arsan_asb' is populated as a hint that we're on BCM2711. On top of that introduce the macro ASB_BASE() which will

[RFC/PATCH 07/11] drm/v3d: Get rid of pm code

2021-02-05 Thread Nicolas Saenz Julienne
Runtime PM doesn't seem to work correctly on this driver. On top of that, commit 8b6864e3e138 (drm/v3d/v3d_drv: Remove unused static variable 'v3d_v3d_pm_ops') hints that it most likely never did properly as the driver's PM ops were not hooked-up. So, in order to support regular operation with V3D

[PATCH v8 2/5] arm64: kvm: Introduce MTE VM feature

2021-02-05 Thread Steven Price
Add a new VM feature 'KVM_ARM_CAP_MTE' which enables memory tagging for a VM. This will expose the feature to the guest and automatically tag memory pages touched by the VM as PG_mte_tagged (and clear the tag storage) to ensure that the guest cannot see stale tags, and so that the tags are correctl

[RFC/PATCH 10/11] ARM: configs: Enable DRM_V3D

2021-02-05 Thread Nicolas Saenz Julienne
BCM2711, the SoC used on the Raspberry Pi 4 has a different GPU than its predecessors. Enable it. Signed-off-by: Nicolas Saenz Julienne --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_def

[RFC/PATCH 09/11] ARM: dts: bcm2711: Enable V3D

2021-02-05 Thread Nicolas Saenz Julienne
This enables V3D for bcm2711 (used in the Raspberry Pi 4). Signed-off-by: Nicolas Saenz Julienne --- arch/arm/boot/dts/bcm2711.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi index 537498a93a3a..dd8376f474db 1

Re: [PATCH v19 06/25] x86/cet: Add control-protection fault handler

2021-02-05 Thread Borislav Petkov
On Wed, Feb 03, 2021 at 02:55:28PM -0800, Yu-cheng Yu wrote: > +DEFINE_IDTENTRY_ERRORCODE(exc_control_protection) > +{ > + static DEFINE_RATELIMIT_STATE(rs, DEFAULT_RATELIMIT_INTERVAL, > + DEFAULT_RATELIMIT_BURST); > + struct task_struct *tsk; > + > + i

[PATCH v8 4/5] arm64: kvm: Expose KVM_ARM_CAP_MTE

2021-02-05 Thread Steven Price
It's now safe for the VMM to enable MTE in a guest, so expose the capability to user space. Signed-off-by: Steven Price --- arch/arm64/kvm/arm.c | 9 + arch/arm64/kvm/sys_regs.c | 3 +++ 2 files changed, 12 insertions(+) diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c inde

[PATCH v8 0/5] MTE support for KVM guest

2021-02-05 Thread Steven Price
Another round of updates following review comments from Marc (thanks!). This is rather late for v5.12, so I'll rebase again after -rc1 is out. This series adds support for using the Arm Memory Tagging Extensions (MTE) in a KVM guest. This version splits the change to the tag synchronisation out t

[PATCH v8 1/5] arm64: mte: Sync tags for pages where PTE is untagged

2021-02-05 Thread Steven Price
A KVM guest could store tags in a page even if the VMM hasn't mapped the page with PROT_MTE. So when restoring pages from swap we will need to check to see if there are any saved tags even if !pte_tagged(). However don't check pages which are !pte_valid_user() as these will not have been swapped o

Re: [PATCH] drivers: mtd: Better word replace a not so good word in the file mtd_blkdevs.c

2021-02-05 Thread Miquel Raynal
Hi Bhaskar, Bhaskar Chowdhury wrote on Fri, 5 Feb 2021 19:06:39 +0530: > On 14:26 Fri 05 Feb 2021, Miquel Raynal wrote: > >Hi Bhaskar, > > > >Bhaskar Chowdhury wrote on Fri, 5 Feb 2021 > >18:11:51 +0530: > > > >> s/fucking/invite/ > >> > >> > >> Signed-off-by: Bhaskar Chowdhury > >> --- > >

[RFC/PATCH 11/11] arm64: config: Enable DRM_V3D

2021-02-05 Thread Nicolas Saenz Julienne
BCM2711, the SoC used on the Raspberry Pi 4 has a different GPU than its predecessors. Enable it. Signed-off-by: Nicolas Saenz Julienne --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 5348c0be2

<    6   7   8   9   10   11   12   13   14   15   >