Re: [PATCH v2] x86/mce: fix wrong no-return-ip logic in do_machine_check()

2021-02-22 Thread Borislav Petkov
On Mon, Feb 22, 2021 at 11:50:07AM +0800, Aili Yao wrote: > From commit b2f9d678e28c ("x86/mce: Check for faults tagged in > EXTABLE_CLASS_FAULT exception table entries"), When there is a > memory MCE_AR_SEVERITY error with no return ip, What is a "no return ip" - MCG_STATUS_RIPV? How do you trig

[PATCH 2/2] drm/stm: dsi: Use dev_ based logging

2021-02-22 Thread Raphael GALLAIS-POU - foss
From: Yannick Fertre Standardize on the dev_ based logging. Signed-off-by: Raphael Gallais-Pou Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 49 ++- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/stm/dw_mipi_

general protection fault in ieee802154_llsec_parse_key_id

2021-02-22 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:38b5133a octeontx2-pf: Fix otx2_get_fecparam() git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=140c2512d0 kernel config: https://syzkaller.appspot.com/x/.config?x=dbc1ca9e55dc1f9f dashboard link: h

Re: [PATCH] sched/pelt: Fix task util_est update filtering

2021-02-22 Thread Vincent Donnefort
On Fri, Feb 19, 2021 at 11:48:28AM +0100, Vincent Guittot wrote: > On Tue, 16 Feb 2021 at 17:39, wrote: > > > > From: Vincent Donnefort > > > > Being called for each dequeue, util_est reduces the number of its updates > > by filtering out when the EWMA signal is different from the task util_avg >

memory leak in do_seccomp (2)

2021-02-22 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:f40ddce8 Linux 5.11 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13aa6d22d0 kernel config: https://syzkaller.appspot.com/x/.config?x=5528e8db7fc481ae dashboard link: https://syzkaller.appspot.co

memory leak in __pskb_copy_fclone

2021-02-22 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:f40ddce8 Linux 5.11 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17b89c34d0 kernel config: https://syzkaller.appspot.com/x/.config?x=5528e8db7fc481ae dashboard link: https://syzkaller.appspot.co

Re: [External] Re: [PATCH v16 4/9] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-02-22 Thread Michal Hocko
On Sat 20-02-21 12:20:36, Muchun Song wrote: > On Fri, Feb 19, 2021 at 10:12 PM Michal Hocko wrote: [...] > > What about hugetlb page poisoning on HW failure (resp. soft offlining)? > > If the HW poisoned hugetlb page failed to be dissolved, the page > will go back to the free list with PG_HWPois

Re: [PATCH] ARM: dts: nuvoton: Fix flash layout

2021-02-22 Thread Anton Kachalov
Hi, Tom. Yes, I'm using it for testing on real hardware. BTW. Recent u-boot doesn't work with SD cards. The card doesn't detect. The last working version was this one: https://github.com/Nuvoton-Israel/nuvoton-info/tree/master/npcm7xx-poleg/evaluation-board/sw_deliverables/npcm7xx_v2.3 However,

linux-next: Fixes tag needs some work in the nios2 tree

2021-02-22 Thread Stephen Rothwell
Hi all, In commit 9abcfcb20320 ("nios2: fixed broken sys_clone syscall") Fixes tag Fixes: 04bd52fb ("nios2: enable HAVE_COPY_THREAD_TLS, switch to kernel_clone_args") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev to 12 (or more)

[PATCH v22 0/4] scsi: ufs: Add Host Performance Booster Support

2021-02-22 Thread Daejun Park
Changelog: v21 -> v22 1. Add support processing response UPIU in suspend state. 2. Add support HPB hint from other LU. 3. Add sending write buffer with 0x03 after HPB init. v20 -> v21 1. Add bMAX_DATA_SIZE_FOR_HPB_SINGLE_CMD attr. and fHPBen flag support. v19 -> v20 1. Add documentation for sy

Re: problems with memory allocation and the alignment check

2021-02-22 Thread Andrew Pinski
On Mon, Feb 22, 2021 at 1:17 AM Michael J. Baars wrote: > > Hi, > > I just wrote this little program to demonstrate a possible flaw in both > malloc and calloc. > > If I allocate a the simplest memory region from main(), one out of three > optimization flags fail. > If I allocate the same region

[PATCH v22 1/4] scsi: ufs: Introduce HPB feature

2021-02-22 Thread Daejun Park
This is a patch for the HPB initialization and adds HPB function calls to UFS core driver. NAND flash-based storage devices, including UFS, have mechanisms to translate logical addresses of IO requests to the corresponding physical addresses of the flash storage. In UFS, Logical-address-to-Physica

Re: [PATCH] sched/pelt: Fix task util_est update filtering

2021-02-22 Thread Vincent Donnefort
On Fri, Feb 19, 2021 at 11:19:05AM +0100, Dietmar Eggemann wrote: > On 16/02/2021 17:39, vincent.donnef...@arm.com wrote: > > From: Vincent Donnefort > > > > Being called for each dequeue, util_est reduces the number of its updates > > by filtering out when the EWMA signal is different from the t

[PATCH v22 2/4] scsi: ufs: L2P map management for HPB read

2021-02-22 Thread Daejun Park
This is a patch for managing L2P map in HPB module. The HPB divides logical addresses into several regions. A region consists of several sub-regions. The sub-region is a basic unit where L2P mapping is managed. The driver loads L2P mapping data of each sub-region. The loaded sub-region is called a

[PATCH v22 3/4] scsi: ufs: Prepare HPB read for cached sub-region

2021-02-22 Thread Daejun Park
This patch changes the read I/O to the HPB read I/O. If the logical address of the read I/O belongs to active sub-region, the HPB driver modifies the read I/O command to HPB read. It modifies the UPIU command of UFS instead of modifying the existing SCSI command. In the HPB version 1.0, the maxim

Re: [PATCH v2] x86/mce: fix wrong no-return-ip logic in do_machine_check()

2021-02-22 Thread Aili Yao
On Mon, 22 Feb 2021 10:24:03 +0100 Borislav Petkov wrote: > On Mon, Feb 22, 2021 at 11:50:07AM +0800, Aili Yao wrote: > > From commit b2f9d678e28c ("x86/mce: Check for faults tagged in > > EXTABLE_CLASS_FAULT exception table entries"), When there is a > > memory MCE_AR_SEVERITY error with no retu

problems with memory allocation and the alignment check

2021-02-22 Thread Michael J. Baars
Hi, I just wrote this little program to demonstrate a possible flaw in both malloc and calloc. If I allocate a the simplest memory region from main(), one out of three optimization flags fail. If I allocate the same region from a function, three out of three optimization flags fail. Does some

Re: [PATCH V4 2/2] vdpa: introduce virtio pci driver

2021-02-22 Thread Jason Wang
On 2021/2/22 5:04 下午, Stefano Garzarella wrote: On Sat, Feb 20, 2021 at 04:46:29PM +0800, Jason Wang wrote: This patch introduce a vDPA driver for virtio-pci device. It bridges the virtio-pci control command to the vDPA bus. This will be used for features prototyping and testing. Note that ge

[PATCH v22 4/4] scsi: ufs: Add HPB 2.0 support

2021-02-22 Thread Daejun Park
This patch supports the HPB 2.0. The HPB 2.0 supports read of varying sizes from 4KB to 512KB. In the case of Read (<= 32KB) is supported as single HPB read. In the case of Read (36KB ~ 512KB) is supported by as a combination of write buffer command and HPB read command to deliver more PPN. The wr

Re: [f2fs-dev] [PATCH] Documentation/ABI/testing: Fix a spelling error

2021-02-22 Thread Chao Yu
On 2021/2/22 11:04, Yehan Xu wrote: From: xuyehan Delete the letter 'e' before 'number' The patch title should be: "f2fs: fix a spelling error" Signed-off-by: xuyehan Reviewed-by: Chao Yu Thanks,

Re: usb: cdc-acm: BUG kmalloc-128 Poison overwritten

2021-02-22 Thread Oliver Neukum
Am Donnerstag, den 18.02.2021, 16:52 +0100 schrieb Bruno Thomsen: > Den fre. 12. feb. 2021 kl. 16.33 skrev Bruno Thomsen > : > > Hi, > > > > I have been experience random kernel oops in the cdc-acm driver on > > imx7 (arm arch). Normally it happens during the first 1-3min runtime > > after power-

Re: [PATCH v7 23/23] [DO NOT MERGE] arm64: Cope with CPUs stuck in VHE mode

2021-02-22 Thread Jonathan Neuschäfer
Hi, On Mon, Feb 08, 2021 at 09:57:32AM +, Marc Zyngier wrote: > It seems that the CPU known as Apple M1 has the terrible habit > of being stuck with HCR_EL2.E2H==1, in violation of the architecture. Minor nitpick from the sideline: The M1 SoC has two kinds of CPU in it (Icestorm and Firestorm

[PULL] topic/kcmp-kconfig

2021-02-22 Thread Daniel Vetter
Hi Linus, One patch pull request for you to ponder in the hopefully less stressful 2nd week of the merge window :-) It's also marked cc: stable so people can stop building kernels that don't work so well. topic/kcmp-kconfig-2021-02-22: kconfig for kcmp syscall drm userspaces uses this, systemd

RE: [v2][PATCH] Revert "mfd: syscon: Don't free allocated name for regmap_config"

2021-02-22 Thread Li, Meng
Thanks for all of your comments. Regards, Limeng > -Original Message- > From: Lee Jones > Sent: Monday, February 22, 2021 5:21 PM > To: Marc Zyngier > Cc: Li, Meng ; linux-kernel@vger.kernel.org; > a...@arndb.de; Hao, Kexin > Subject: Re: [v2][PATCH] Revert "mfd: syscon: Don't free all

Re: [PATCH v17 07/10] mm: introduce memfd_secret system call to create "secret" memory areas

2021-02-22 Thread David Hildenbrand
On 17.02.21 17:19, James Bottomley wrote: On Tue, 2021-02-16 at 18:16 +0100, David Hildenbrand wrote: [...] The discussion regarding migratability only really popped up because this is a user-visible thing and not being able to migrate can be a real problem (fragmentation, ZONE_MOVABLE, ...).

[PATCH] device-dax: Switch to using the new API kobj_to_dev()

2021-02-22 Thread Yang Li
fixed the following coccicheck: ./drivers/dax/bus.c:486:60-61: WARNING opportunity for kobj_to_dev() ./drivers/dax/bus.c:1215:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/dax/bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

Re: [PATCH] drm/ast: fix memory leak when unload the driver

2021-02-22 Thread Thomas Zimmermann
Am 22.02.21 um 03:33 schrieb Tong Zhang: a connector is leaked upon module unload, it seems that we should do similar to sample driver as suggested in drm_drv.c. Adding drm_atomic_helper_shutdown() in ast_pci_remove to prevent leaking. [ 153.822134] WARNING: CPU: 0 PID: 173 at drivers/gpu/d

Re: problems with memory allocation and the alignment check

2021-02-22 Thread Andrew Pinski
On Mon, Feb 22, 2021 at 1:37 AM Michael J. Baars wrote: > > On Mon, 2021-02-22 at 01:29 -0800, Andrew Pinski wrote: > > On Mon, Feb 22, 2021 at 1:17 AM Michael J. Baars > > wrote: > > > Hi, > > > > > > I just wrote this little program to demonstrate a possible flaw in both > > > malloc and callo

[PATCH v6 0/2] System Generation ID driver and VMGENID backend

2021-02-22 Thread Adrian Catangiu
This feature is aimed at virtualized or containerized environments where VM or container snapshotting duplicates memory state, which is a challenge for applications that want to generate unique data such as request IDs, UUIDs, and cryptographic nonces. The patch set introduces a mechanism that pro

[PATCH v6 2/2] drivers/virt: vmgenid: add vm generation id driver

2021-02-22 Thread Adrian Catangiu
The VM Generation ID is a feature defined by Microsoft (paper: http://go.microsoft.com/fwlink/?LinkId=260709) and supported by multiple hypervisor vendors. The feature can be used to drive the `sysgenid` mechanism required in virtualized environments by software that works with local copies and ca

[PATCH v6 1/2] drivers/misc: sysgenid: add system generation id driver

2021-02-22 Thread Adrian Catangiu
- Background and problem The System Generation ID feature is required in virtualized or containerized environments by applications that work with local copies or caches of world-unique data such as random values, uuids, monotonically increasing counters, etc. Such applications can be negatively af

WARNING in ieee802154_del_seclevel

2021-02-22 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:f40ddce8 Linux 5.11 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1032cfacd0 kernel config: https://syzkaller.appspot.com/x/.config?x=67894355b1dbeb07 dashboard link: https://syzkaller.appspot.co

KASAN: invalid-free in io_req_caches_free

2021-02-22 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:31caf8b2 Merge branch 'linus' of git://git.kernel.org/pub/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15a8afa6d0 kernel config: https://syzkaller.appspot.com/x/.config?x=5a8f3a57fabb4015 das

Re: [PATCH V2 3/3] perf: Optimize sched_task() in a context switch

2021-02-22 Thread Namhyung Kim
On Wed, Jan 27, 2021 at 1:41 PM Namhyung Kim wrote: > > Hi, > > On Mon, Jan 18, 2021 at 4:04 PM Namhyung Kim wrote: > > > > Hi Peter and Kan, > > > > On Thu, Dec 10, 2020 at 11:25 PM Peter Zijlstra > > wrote: > > > > > > On Thu, Dec 10, 2020 at 08:52:55AM -0500, Liang, Kan wrote: > > > > > > >

Re: [PATCH v7 23/23] [DO NOT MERGE] arm64: Cope with CPUs stuck in VHE mode

2021-02-22 Thread Marc Zyngier
Hi Jonathan, On 2021-02-22 09:35, Jonathan Neuschäfer wrote: Hi, On Mon, Feb 08, 2021 at 09:57:32AM +, Marc Zyngier wrote: It seems that the CPU known as Apple M1 has the terrible habit of being stuck with HCR_EL2.E2H==1, in violation of the architecture. Minor nitpick from the sideline:

[PATCH] netdevsim: fib: remove unneeded semicolon

2021-02-22 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/net/netdevsim/fib.c:564:2-3: Unneeded semicolon. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/net/netdevsim/fib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/netdevsim/fib.c b/drivers/net/

[PATCH v2] rtw88: 8822ce: fix wifi disconnect after S3/S4 on HONOR laptop

2021-02-22 Thread Hao Chen
The laptop's wifi disconnect after the laptop HONOR MagicBook 14 sleep to S3/S4 and wake up. The dmesg of kernel report: "[ 99.990168] pcieport :00:01.2: can't change power state from D3hot to D0 (config space inaccessible) [ 99.990176] ACPI: EC: interrupt unblocked [ 99.993334] rtw_pci

Re: [PATCH v2] kyber: introduce kyber_depth_updated()

2021-02-22 Thread Yang Yang
On 2021/2/5 17:13, Yang Yang wrote: Hang occurs when user changes the scheduler queue depth, by writing to the 'nr_requests' sysfs file of that device. The details of the environment that we found the problem are as follows: an eMMC block device total driver tags: 16 default queue_depth

Re: [PATCH mvebu v2 00/10] Armada 37xx: Fix cpufreq changing base CPU speed to 800 MHz from 1000 MHz

2021-02-22 Thread Pali Rohár
On Sunday 21 February 2021 19:17:40 nnet wrote: > > Could you test if 1.155V voltage for L1 is stable on 1.2 GHz variant? > > ++#define MIN_VOLT_MV_FOR_L1_1200MHZ 1155 > ... > ++ if (avs_min_l1 > dvfs->avs[0]) > ++ avs_min_l1 = dvfs->avs[0]; > ++ > ++

[PATCH] sched/fair: Fix task utilization accountability in cpu_util_next()

2021-02-22 Thread vincent . donnefort
From: Vincent Donnefort Currently, cpu_util_next() estimates the CPU utilization as follows: max(cpu_util + task_util, cpu_util_est + task_util_est) This is an issue when making a comparison between CPUs, as the task contribution can be either: (1) task_util_est, on a mostly idle CPU

Re: [PATCH v6 1/2] drivers/misc: sysgenid: add system generation id driver

2021-02-22 Thread Greg KH
On Mon, Feb 22, 2021 at 11:41:25AM +0200, Adrian Catangiu wrote: > The driver also generates a `SYSGENID=%u` uevent containing the new > system generation counter/id value every time it changes. Unlike the > filesystem interface, the uevent has no synchronization guarantees > therefore it should no

Re: [PATCH] mm, kasan: don't poison boot memory

2021-02-22 Thread David Hildenbrand
On 20.02.21 00:04, George Kennedy wrote: On 2/19/2021 11:45 AM, George Kennedy wrote: On 2/18/2021 7:09 PM, Andrey Konovalov wrote: On Fri, Feb 19, 2021 at 1:06 AM George Kennedy wrote: On 2/18/2021 3:55 AM, David Hildenbrand wrote: On 17.02.21 21:56, Andrey Konovalov wrote: During bo

Re: [PATCH 1/2] platform/x86: hp-wmi: rename "thermal policy" to "thermal profile"

2021-02-22 Thread Hans de Goede
Hi, On 2/21/21 10:02 PM, Elia Devito wrote: > rename "thermal policy" with the more appropriate term "thermal profile" > > Signed-off-by: Elia Devito Thanks, patch looks good to me: Reviewed-by: Hans de Goede I will merge this once we are out of the merge-window / once 5.12-rc1 is out. Rega

Re: [PATCH v3 2/2] platform/x86: hp-wmi: add platform profile support

2021-02-22 Thread Hans de Goede
Hi, On 2/21/21 11:13 PM, Elia Devito wrote: > Implement support for cool, balanced and performance thermal profile > > Signed-off-by: Elia Devito Thanks, patch looks good to me: Reviewed-by: Hans de Goede I will merge this once we are out of the merge-window / once 5.12-rc1 is out. Regards,

[PATCH v7 1/7] Increase size of ucounts to atomic_long_t

2021-02-22 Thread Alexey Gladkov
RLIMIT_MSGQUEUE and RLIMIT_MEMLOCK use unsigned long to store their counters. As a preparation for moving rlimits based on ucounts, we need to increase the size of the variable to long. Signed-off-by: Alexey Gladkov --- include/linux/user_namespace.h | 4 ++-- kernel/ucount.c| 1

Re: [GIT PULL] timer drivers fixes for v5.11-rc5

2021-02-22 Thread Thomas Gleixner
Daniel, On Mon, Feb 22 2021 at 09:36, Daniel Lezcano wrote: > those fixes were not picked up Ooops. Taking care right now.

[PATCH] net/mlx5: remove unneeded semicolon

2021-02-22 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c:495:2-3: Unneeded semicolon. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v7 0/7] Count rlimits in each user namespace

2021-02-22 Thread Alexey Gladkov
Preface --- These patches are for binding the rlimit counters to a user in user namespace. This patch set can be applied on top of: git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git v5.11 Problem --- The RLIMIT_NPROC, RLIMIT_MEMLOCK, RLIMIT_SIGPENDING, RLIMIT_MSGQUEUE rlimits imp

[PATCH v7 3/7] Reimplement RLIMIT_NPROC on top of ucounts

2021-02-22 Thread Alexey Gladkov
The rlimit counter is tied to uid in the user_namespace. This allows rlimit values to be specified in userns even if they are already globally exceeded by the user. However, the value of the previous user_namespaces cannot be exceeded. To illustrate the impact of rlimits, let's say there is a prog

[PATCH v7 4/7] Reimplement RLIMIT_MSGQUEUE on top of ucounts

2021-02-22 Thread Alexey Gladkov
The rlimit counter is tied to uid in the user_namespace. This allows rlimit values to be specified in userns even if they are already globally exceeded by the user. However, the value of the previous user_namespaces cannot be exceeded. Signed-off-by: Alexey Gladkov --- include/linux/sched/user.h

[PATCH v7 2/7] Add a reference to ucounts for each cred

2021-02-22 Thread Alexey Gladkov
For RLIMIT_NPROC and some other rlimits the user_struct that holds the global limit is kept alive for the lifetime of a process by keeping it in struct cred. Adding a pointer to ucounts in the struct cred will allow to track RLIMIT_NPROC not only for user in the system, but for user in the user_nam

[PATCH v7 6/7] Reimplement RLIMIT_MEMLOCK on top of ucounts

2021-02-22 Thread Alexey Gladkov
The rlimit counter is tied to uid in the user_namespace. This allows rlimit values to be specified in userns even if they are already globally exceeded by the user. However, the value of the previous user_namespaces cannot be exceeded. Changelog v7: * Keep only ucounts for RLIMIT_MEMLOCK checks i

[PATCH v7 5/7] Reimplement RLIMIT_SIGPENDING on top of ucounts

2021-02-22 Thread Alexey Gladkov
The rlimit counter is tied to uid in the user_namespace. This allows rlimit values to be specified in userns even if they are already globally exceeded by the user. However, the value of the previous user_namespaces cannot be exceeded. Signed-off-by: Alexey Gladkov --- fs/proc/array.c

[PATCH v7 7/7] kselftests: Add test to check for rlimit changes in different user namespaces

2021-02-22 Thread Alexey Gladkov
The testcase runs few instances of the program with RLIMIT_NPROC=1 from user uid=6, in different user namespaces. Signed-off-by: Alexey Gladkov --- tools/testing/selftests/Makefile | 1 + tools/testing/selftests/rlimits/.gitignore| 2 + tools/testing/selftests/rlimits/Ma

Re: [PATCH] netdevsim: fib: remove unneeded semicolon

2021-02-22 Thread Ido Schimmel
On Mon, Feb 22, 2021 at 05:47:04PM +0800, Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./drivers/net/netdevsim/fib.c:564:2-3: Unneeded semicolon. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/net/netdevsim/fib.c | 2 +- > 1 file changed, 1 ins

Re: [PATCH 5/8] arm64: irq: add a default handle_irq panic function

2021-02-22 Thread Mark Rutland
On Fri, Feb 19, 2021 at 11:39:01AM +, Mark Rutland wrote: > If we accidentally unmask IRQs before we've registered an IRQ > controller, handle_arch_irq will be NULL, and the IRQ exception handler > will branch to a bogus address. > > To make this easier to debug, this patch initialises handle_

Re: [PATCH v5 3/3] vsprintf: dump full information of page flags in pGp

2021-02-22 Thread Yafang Shao
On Mon, Feb 15, 2021 at 11:53 PM Yafang Shao wrote: > > Currently the pGp only shows the names of page flags, rather than > the full information including section, node, zone, last cpupid and > kasan tag. While it is not easy to parse these information manually > because there're so many flavors.

Re: [PATCH] RTIC: selinux: ARM64: Move selinux_state to a separate page

2021-02-22 Thread peter enderborg
On 2/17/21 10:42 AM, Will Deacon wrote: > [Please include arm64 and kvm folks for threads involving the stage-2 MMU] > > On Tue, Feb 16, 2021 at 03:47:52PM +0530, Preeti Nagar wrote: >> The changes introduce a new security feature, RunTime Integrity Check >> (RTIC), designed to protect Linux Kernel

[PATCH net-next] net: dsa: mt7530: support MDB operations

2021-02-22 Thread DENG Qingfang
As the hardware can manage multicast forwarding itself, trapping multicast traffic to the CPU is no longer required. Signed-off-by: DENG Qingfang --- drivers/net/dsa/mt7530.c | 58 +--- net/dsa/tag_mtk.c| 14 +- 2 files changed, 56 insertions(+

RE: [PATCH] net/mlx5: remove unneeded semicolon

2021-02-22 Thread Parav Pandit
> From: Jiapeng Chong > Sent: Monday, February 22, 2021 3:27 PM > > Fix the following coccicheck warnings: > > ./drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c:495:2-3: Unneeded > semicolon. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/net/ethernet/mel

Re: [PATCH v4] reboot: allow to specify reboot mode via sysfs

2021-02-22 Thread Pavel Machek
On Tue 2020-11-10 21:27:46, Matteo Croce wrote: > From: Matteo Croce > > The kernel cmdline reboot= option offers some sort of control > on how the reboot is issued. > Add handles in sysfs to allow setting these reboot options, so they > can be changed when the system is booted, other than at boo

Re: [PATCH] kprobes: Fix to delay the kprobes jump optimization

2021-02-22 Thread Sebastian Andrzej Siewior
On 2021-02-19 10:18:11 [-0800], Paul E. McKenney wrote: > If Masami's patch works for the PowerPC guys on v5.10-rc7, then it can > be backported. The patch making RCU Tasks initialize itself early won't > have any effect and can be left or reverted, as we choose. The self-test > patch will need t

Re: problems with memory allocation and the alignment check

2021-02-22 Thread Michael J. Baars
On Mon, 2021-02-22 at 01:41 -0800, Andrew Pinski wrote: > On Mon, Feb 22, 2021 at 1:37 AM Michael J. Baars > wrote: > > On Mon, 2021-02-22 at 01:29 -0800, Andrew Pinski wrote: > > > On Mon, Feb 22, 2021 at 1:17 AM Michael J. Baars > > > wrote: > > > > Hi, > > > > > > > > I just wrote this little

[tip: timers/urgent] clocksource/drivers/mxs_timer: Add missing semicolon when DEBUG is defined

2021-02-22 Thread tip-bot2 for Tom Rix
The following commit has been merged into the timers/urgent branch of tip: Commit-ID: 7da390694afbaed8e0f05717a541dfaf1077ba51 Gitweb: https://git.kernel.org/tip/7da390694afbaed8e0f05717a541dfaf1077ba51 Author:Tom Rix AuthorDate:Mon, 18 Jan 2021 13:19:55 -08:00 Committer:

Re: [PATCH v2] x86/mce: fix wrong no-return-ip logic in do_machine_check()

2021-02-22 Thread Borislav Petkov
On Mon, Feb 22, 2021 at 05:31:09PM +0800, Aili Yao wrote: > you can inject a memory UE to a VM, it should always be MCG_STATUS_RIPV 0. So the signature you injected is not something the hardware would generate - you just didn't set MCG_STATUS_RIPV. If so, why should the code handle invalid signat

[tip: timers/urgent] clocksource/drivers/ixp4xx: Select TIMER_OF when needed

2021-02-22 Thread tip-bot2 for Arnd Bergmann
The following commit has been merged into the timers/urgent branch of tip: Commit-ID: 7a3b8758bd6e45f7b671723b5c9fa2b69d0787ae Gitweb: https://git.kernel.org/tip/7a3b8758bd6e45f7b671723b5c9fa2b69d0787ae Author:Arnd Bergmann AuthorDate:Sun, 03 Jan 2021 14:59:24 +01:00 Commi

[tip: timers/urgent] Merge tag 'timers-v5.11-rc5' of https://git.linaro.org/people/daniel.lezcano/linux into timers/urgent

2021-02-22 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the timers/urgent branch of tip: Commit-ID: 8acb54abc1db4e1e3913359e4108e04e88ce4d92 Gitweb: https://git.kernel.org/tip/8acb54abc1db4e1e3913359e4108e04e88ce4d92 Author:Thomas Gleixner AuthorDate:Mon, 22 Feb 2021 10:59:13 +01:00 Com

[tip: timers/urgent] clocksource/drivers/sh_cmt: Make sure channel clock supply is enabled

2021-02-22 Thread tip-bot2 for Geert Uytterhoeven
The following commit has been merged into the timers/urgent branch of tip: Commit-ID: 2a97d55333e4299f32c98cca6dc5c4db1c5855fc Gitweb: https://git.kernel.org/tip/2a97d55333e4299f32c98cca6dc5c4db1c5855fc Author:Geert Uytterhoeven AuthorDate:Thu, 10 Dec 2020 20:46:48 +01:00

[PATCH] ptrace: add PTRACE_GET_RSEQ_CONFIGURATION request

2021-02-22 Thread Piotr Figiel
For userspace checkpoint and restore (C/R) a way of getting process state containing RSEQ configuration is needed. There are two ways this information is going to be used: - to re-enable RSEQ for threads which had it enabled before C/R - to detect if a thread was in a critical section during C/R

[PATCH net-next v2] net: dsa: mt7530: support MDB operations

2021-02-22 Thread DENG Qingfang
Support port MDB add to/delete from MT7530 ARL. As the hardware can manage multicast forwarding itself, trapping multicast traffic to the CPU is no longer required. Signed-off-by: DENG Qingfang --- v1 -> v2: fix commit message drivers/net/dsa/mt7530.c | 58 +

[PATCH] f2fs: check discard command number before traversing discard pending list

2021-02-22 Thread Chao Yu
In trim thread, let's add a condition to check discard command number before traversing discard pending list, it can avoid unneeded traversing if there is no discard command. Signed-off-by: Chao Yu --- fs/f2fs/segment.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/f2fs/segment.c b/fs

Re: [PATCH v2] x86/mce: fix wrong no-return-ip logic in do_machine_check()

2021-02-22 Thread Aili Yao
On Mon, 22 Feb 2021 11:03:56 +0100 Borislav Petkov wrote: > On Mon, Feb 22, 2021 at 05:31:09PM +0800, Aili Yao wrote: > > you can inject a memory UE to a VM, it should always be MCG_STATUS_RIPV 0. > > So the signature you injected is not something the hardware would > generate - you just didn'

[PATCH v4 2/2] ARM: dts: sun4i: Add support for Topwise A721 tablet

2021-02-22 Thread Pascal Roeleven
The Topwise A721/LY-F1 tablet is a tablet sold around 2012 under different brands. The mainboard mentions A721 clearly, so this tablet is best known under this name. Signed-off-by: Pascal Roeleven --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/sun4i-a10-topwise-a721

[PATCH v4 1/2] dt-bindings: arm: Add Topwise A721

2021-02-22 Thread Pascal Roeleven
Add the bindings for Topwise A721 tablet Signed-off-by: Pascal Roeleven Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/sunxi.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/s

[PATCH v4 0/2] Add support for Topwise A721 tablet

2021-02-22 Thread Pascal Roeleven
On request I'm resending the last two patches from the Topwise A721 tablet series from a year ago as they weren't picked up. The other patches are already merged, so I didn't resend them. Changes from v3: * Fix DT validation warnings * Remove leftover labels Changes from v2: * Collected acked-by.

Re: [PATCH] sched/fair: Fix task utilization accountability in cpu_util_next()

2021-02-22 Thread Quentin Perret
Hey Vincent, On Monday 22 Feb 2021 at 09:54:01 (+), vincent.donnef...@arm.com wrote: > From: Vincent Donnefort > > Currently, cpu_util_next() estimates the CPU utilization as follows: > > max(cpu_util + task_util, > cpu_util_est + task_util_est) s/task_util_est/_task_util_est This

Re: [PATCH v8 18/22] docs: counter: Document character device interface

2021-02-22 Thread Pavel Machek
Hi! > > +* COUNTER_ENABLE_EVENTS_IOCTL: > > + Enables monitoring the events specified by the Counter watches that > > + were queued by ``COUNTER_ADD_WATCH_IOCTL``. If events are already > > + enabled, the new set of watches replaces the old one. Calling this > > + ioctl also has the effect of

Re: [PATCH v6 3/7] Reimplement RLIMIT_NPROC on top of ucounts

2021-02-22 Thread Alexey Gladkov
On Sun, Feb 21, 2021 at 04:38:10PM -0700, Jens Axboe wrote: > On 2/15/21 5:41 AM, Alexey Gladkov wrote: > > diff --git a/fs/io-wq.c b/fs/io-wq.c > > index a564f36e260c..5b6940c90c61 100644 > > --- a/fs/io-wq.c > > +++ b/fs/io-wq.c > > @@ -1090,10 +1091,7 @@ struct io_wq *io_wq_create(unsigned bound

[PATCH v3] staging: wimax: Fix block comment style issue in stack.c

2021-02-22 Thread Amrit Khera
This change fixes a checkpatch warning for "Block comments use * on subsequent lines". It removes the unnecessary block comment. Signed-off-by: Amrit Khera --- Changes in v3: - Updated commit message, as suggested by Greg KH - Removed the whole comment, as suggested by Dan Carpenter drive

Re: [PATCH stable-rc queue/4.9 1/1] futex: Provide distinct return value when owner is exiting

2021-02-22 Thread Greg KH
On Mon, Feb 22, 2021 at 03:03:28PM +0800, Xiaoming Ni wrote: > From: Thomas Gleixner > > commit ac31c7ff8624409ba3c4901df9237a616c187a5d upstream. This commit is already in the 4.9 tree. If the backport was incorrect, say that here, and describe what went wrong and why this commit fixes it. Al

Re: [PATCH v8 1/6] arm64: hyperv: Add Hyper-V hypercall and register access utilities

2021-02-22 Thread Wei Liu
On Thu, Feb 18, 2021 at 03:16:29PM -0800, Michael Kelley wrote: > hyperv-tlfs.h defines Hyper-V interfaces from the Hyper-V Top Level > Functional Spec (TLFS), and #includes the architecture-independent > part of hyperv-tlfs.h in include/asm-generic. The published TLFS > is distinctly oriented to

Re: [PATCH] kprobes: Fix to delay the kprobes jump optimization

2021-02-22 Thread Sebastian Andrzej Siewior
On 2021-02-19 10:33:36 [-0800], Paul E. McKenney wrote: > For definiteness, here is the first part of the change, posted earlier. > The commit log needs to be updated. I will post the change that keeps > the tick going as a reply to this email. … > diff --git a/kernel/softirq.c b/kernel/softirq.c

Re: [PATCH] ARM: dts: nuvoton: Fix flash layout

2021-02-22 Thread Avi Fishman
Ofer, Can you check why u-boot doesn't work with SD cards? On Mon, Feb 22, 2021 at 11:27 AM Anton Kachalov wrote: > > Hi, Tom. > > Yes, I'm using it for testing on real hardware. > > BTW. Recent u-boot doesn't work with SD cards. The card doesn't > detect. The last working version was this one:

Re: [RFC][PATCH 0/3] New thermal interface allowing IPA to get max power

2021-02-22 Thread Daniel Lezcano
Hi Lukasz, sorry for the delay, it took more time to finish my current work before commenting these patches. On 26/01/2021 11:39, Lukasz Luba wrote: > Hi all, > > This patch set tries to add the missing feature in the Intelligent Power > Allocation (IPA) governor which is: frequency limit set

Re: [PATCH v2] x86/mce: fix wrong no-return-ip logic in do_machine_check()

2021-02-22 Thread Borislav Petkov
On Mon, Feb 22, 2021 at 06:08:19PM +0800, Aili Yao wrote: > So why would intel provide this MCG_STATUS_RIPV flag, it's better to > remove it as it will never be set, and all the related logic for this > flag is really needed ? Why would it never be set - of course it will be. You don't set it. If

[PATCH v8] vfs: fix copy_file_range regression in cross-fs copies

2021-02-22 Thread Luis Henriques
A regression has been reported by Nicolas Boichat, found while using the copy_file_range syscall to copy a tracefs file. Before commit 5dae222a5ff0 ("vfs: allow copy_file_range to copy across devices") the kernel would return -EXDEV to userspace when trying to copy a file across different filesyst

Re: [PATCH v17 08/10] PM: hibernate: disable when there are active secretmem users

2021-02-22 Thread Mike Rapoport
On Mon, Feb 22, 2021 at 07:34:52AM +, Matthew Garrett wrote: > On Mon, Feb 08, 2021 at 10:49:18AM +0200, Mike Rapoport wrote: > > > It is unsafe to allow saving of secretmem areas to the hibernation > > snapshot as they would be visible after the resume and this essentially > > will defeat the

Re: [PULL] fixes around VM_PFNMAP and follow_pfn for 5.12 merge window

2021-02-22 Thread Daniel Vetter
Cc all the mailing lists ... my usual script crashed and I had to hand-roll the email and screwed it up ofc :-/ -Daniel On Mon, Feb 22, 2021 at 11:23 AM Daniel Vetter wrote: > > Hi Linus, > > Another small pull from you to ponder. > > This is the first part of a patch series I've been working on

Re: problems with memory allocation and the alignment check

2021-02-22 Thread Michael J. Baars
On Mon, 2021-02-22 at 01:29 -0800, Andrew Pinski wrote: > On Mon, Feb 22, 2021 at 1:17 AM Michael J. Baars > wrote: > > Hi, > > > > I just wrote this little program to demonstrate a possible flaw in both > > malloc and calloc. > > > > If I allocate a the simplest memory region from main(), one

Re: [PATCH v3 0/5] arm64: dts: librem5 phone and devkit dts and config updates

2021-02-22 Thread Pavel Machek
Hi! > Small updates to Purism hardware in order to maintain support. Please cc phone-devel@vger with phone stuff. Best regards, Pavel -- http://www.livejournal.com/~pavelmachek signature.asc Description: Digital signature

Re: [PATCH v6 0/7] Count rlimits in each user namespace

2021-02-22 Thread Alexey Gladkov
On Sun, Feb 21, 2021 at 02:20:00PM -0800, Linus Torvalds wrote: > On Mon, Feb 15, 2021 at 4:42 AM Alexey Gladkov > wrote: > > > > These patches are for binding the rlimit counters to a user in user > > namespace. > > So this is now version 6, but I think the kernel test robot keeps > complainin

Re: [PATCH v2] rtw88: 8822ce: fix wifi disconnect after S3/S4 on HONOR laptop

2021-02-22 Thread Kalle Valo
Hao Chen writes: > The laptop's wifi disconnect after the laptop HONOR MagicBook 14 > sleep to S3/S4 and wake up. > > The dmesg of kernel report: > "[ 99.990168] pcieport :00:01.2: can't change power state from D3hot > to D0 (config space inaccessible) > [ 99.990176] ACPI: EC: interrupt u

Re: [External] Re: [PATCH v16 4/9] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-02-22 Thread Muchun Song
On Mon, Feb 22, 2021 at 5:25 PM Michal Hocko wrote: > > On Sat 20-02-21 12:20:36, Muchun Song wrote: > > On Fri, Feb 19, 2021 at 10:12 PM Michal Hocko wrote: > [...] > > > What about hugetlb page poisoning on HW failure (resp. soft offlining)? > > > > If the HW poisoned hugetlb page failed to be

[PATCH] Revert "ARM: dts: exynos: Remove 'opp-shared' from Exynos4412 bus OPP-tables"

2021-02-22 Thread Markus Reichl
This reverts commit a23beead41a18c3be3ca409cb52f35bc02e601b9. I'm running an Odroid-X2 as headless 24/7 server. With plain stable 5.10.1 I had 54 up days without problems. With opp-shared removed on kernels before and now on 5.11 my system freezes after some days on disk activity to eMMC (rsync, a

Re: linux-next: manual merge of the devicetree tree with the net-next tree

2021-02-22 Thread Grygorii Strashko
On 22/02/2021 10:23, Stephen Rothwell wrote: Hi all, On Mon, 15 Feb 2021 07:53:21 +1100 Stephen Rothwell wrote: On Thu, 21 Jan 2021 13:26:45 +1100 Stephen Rothwell wrote: Today's linux-next merge of the devicetree tree got a conflict in: Documentation/devicetree/bindings/net/ti,k3

Re: [PATCH 5/6] driver core: lift dma_default_coherent into common code

2021-02-22 Thread Maciej W. Rozycki
On Mon, 22 Feb 2021, Christoph Hellwig wrote: > > I haven't booted Linux on my Malta for a while now, but it turns out to > > work just fine, and your patch set does not regress it booting multi-user > > NFS-rooted over FDDI. > > > > I note however that the system does not reboot properly: > >

Re: [PATCH V3 11/14] coresight: sink: Add TRBE driver

2021-02-22 Thread Mike Leach
Hi Suzuki, On Thu, 18 Feb 2021 at 15:14, Suzuki K Poulose wrote: > > On 2/18/21 2:30 PM, Mike Leach wrote: > > HI Suzuki, > > > > On Thu, 18 Feb 2021 at 07:50, Suzuki K Poulose > > wrote: > >> > >> Hi Mike > >> > >> On 2/16/21 9:00 AM, Mike Leach wrote: > >>> Hi Anshuman, > >>> > >>> There have

Re: [PATCH -next] staging: comedi dt2814: Removed unused variables

2021-02-22 Thread Ian Abbott
On 21/02/2021 20:28, Fatih Yildirim wrote: > Removed unused variables. > > Signed-off-by: Fatih Yildirim > --- > drivers/staging/comedi/drivers/dt2814.c | 13 - > 1 file changed, 4 insertions(+), 9 deletions(-) > > diff --git a/drivers/staging/comedi/drivers/dt2814.c > b/drivers/st

Re: [PATCH v2 3/3] security: Add LSMs dependencies to CONFIG_LSM

2021-02-22 Thread Mickaël Salaün
On 21/02/2021 15:45, Masahiro Yamada wrote: > On Sun, Feb 21, 2021 at 8:11 PM Mickaël Salaün wrote: >> >> >> On 21/02/2021 09:50, Masahiro Yamada wrote: >>> On Tue, Feb 16, 2021 at 4:03 AM Ondrej Mosnacek wrote: On Mon, Feb 15, 2021 at 7:17 PM Mickaël Salaün wrote: > From: Mickaë

Re: [PATCH v8] vfs: fix copy_file_range regression in cross-fs copies

2021-02-22 Thread Amir Goldstein
On Mon, Feb 22, 2021 at 12:23 PM Luis Henriques wrote: > > A regression has been reported by Nicolas Boichat, found while using the > copy_file_range syscall to copy a tracefs file. Before commit > 5dae222a5ff0 ("vfs: allow copy_file_range to copy across devices") the > kernel would return -EXDEV

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