Re: [PATCH v6 1/2] proc: pass file instead of inode to proc_mem_open

2024-06-17 Thread Christian Brauner
On Thu, Jun 13, 2024 at 04:39:36PM GMT, Adrian Ratiu wrote: > The file struct is required in proc_mem_open() so its > f_mode can be checked when deciding whether to allow or > deny /proc/*/mem open requests via the new read/write > and foll_force restriction mechanism. > > Thus instead of directly

Re: [PATCH v6 1/2] proc: pass file instead of inode to proc_mem_open

2024-06-17 Thread Adrian Ratiu
On Monday, June 17, 2024 11:48 EEST, Christian Brauner wrote: > On Thu, Jun 13, 2024 at 04:39:36PM GMT, Adrian Ratiu wrote: > > The file struct is required in proc_mem_open() so its > > f_mode can be checked when deciding whether to allow or > > deny /proc/*/mem open requests via the new read/wr

Re: [PATCH v2 2/2] docs: stable-kernel-rules: remind reader about DCO

2024-06-17 Thread Paul Barker
On 15/06/2024 03:03, Shung-Hsi Yu wrote: > When sending patch authored by someone else to stable, it is quite easy for > the > sender to forget adding the Developer's Certification of Origin (DCO, i.e. > Signed-off-by). An example of such can be seen in the link below. Mention DCO > explicitly so

[PATCH AUTOSEL 6.9 02/44] scsi: sr: Fix unintentional arithmetic wraparound

2024-06-17 Thread Sasha Levin
From: Justin Stitt [ Upstream commit 9fad9d560af5c654bb38e0b07ee54a4e9acdc5cd ] Running syzkaller with the newly reintroduced signed integer overflow sanitizer produces this report: [ 65.194362] [ cut here ] [ 65.197752] UBSAN: signed-integer-overflow in ../drivers/

[PATCH AUTOSEL 6.6 02/35] scsi: sr: Fix unintentional arithmetic wraparound

2024-06-17 Thread Sasha Levin
From: Justin Stitt [ Upstream commit 9fad9d560af5c654bb38e0b07ee54a4e9acdc5cd ] Running syzkaller with the newly reintroduced signed integer overflow sanitizer produces this report: [ 65.194362] [ cut here ] [ 65.197752] UBSAN: signed-integer-overflow in ../drivers/

[PATCH AUTOSEL 6.1 02/29] scsi: sr: Fix unintentional arithmetic wraparound

2024-06-17 Thread Sasha Levin
From: Justin Stitt [ Upstream commit 9fad9d560af5c654bb38e0b07ee54a4e9acdc5cd ] Running syzkaller with the newly reintroduced signed integer overflow sanitizer produces this report: [ 65.194362] [ cut here ] [ 65.197752] UBSAN: signed-integer-overflow in ../drivers/

Re: [PATCH v6 2/2] proc: restrict /proc/pid/mem

2024-06-17 Thread Kees Cook
On Thu, Jun 13, 2024 at 04:39:37PM +0300, Adrian Ratiu wrote: > Prior to v2.6.39 write access to /proc//mem was restricted, > after which it got allowed in commit 198214a7ee50 ("proc: enable > writing to /proc/pid/mem"). Famous last words from that patch: > "no longer a security hazard". :) This v

Re: [PATCH v5] Documentation: cve Korean translation

2024-06-17 Thread Jonathan Corbet
ysk...@gmail.com writes: > From: Yunseong Kim > > This is a Documentation/process/cve korean version. > > The following changes have been updated based on SeongJae Park’s feedback > from the last v4 patch. > > Signed-off-by: Yunseong Kim > --- > Documentation/translations/ko_KR/index.rst|

Re: [PATCH v5] Documentation: cve Korean translation

2024-06-17 Thread SeongJae Park
Hi John, On Mon, 17 Jun 2024 16:27:25 -0600 Jonathan Corbet wrote: > ysk...@gmail.com writes: > > > From: Yunseong Kim > > > > This is a Documentation/process/cve korean version. > > > > The following changes have been updated based on SeongJae Park’s feedback > > from the last v4 patch. > > >

[PATCH RESEND net-next v14 0/5] ethtool: provide the dim profile fine-tuning channel

2024-06-17 Thread Heng Qi
The NetDIM library provides excellent acceleration for many modern network cards. However, the default profiles of DIM limits its maximum capabilities for different NICs, so providing a way which the NIC can be custom configured is necessary. Currently, the way is based on the commonly used "ethto

[PATCH RESEND net-next v14 2/5] dim: make DIMLIB dependent on NET

2024-06-17 Thread Heng Qi
DIMLIB's capabilities are supplied by the dim, net_dim, and rdma_dim objects, and dim's interfaces solely act as a base for net_dim and rdma_dim and are not explicitly used anywhere else. rdma_dim is utilized by the infiniband driver, while net_dim is for network devices, excluding the soc/fsl driv

[PATCH RESEND net-next v14 1/5] linux/dim: move useful macros to .h file

2024-06-17 Thread Heng Qi
Useful macros will be used effectively elsewhere. These will be utilized in subsequent patches. Signed-off-by: Heng Qi --- include/linux/dim.h | 7 +++ lib/dim/net_dim.c | 6 -- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/include/linux/dim.h b/include/linux/dim.h ind

[PATCH RESEND net-next v14 3/5] ethtool: provide customized dim profile management

2024-06-17 Thread Heng Qi
The NetDIM library, currently leveraged by an array of NICs, delivers excellent acceleration benefits. Nevertheless, NICs vary significantly in their dim profile list prerequisites. Specifically, virtio-net backends may present diverse sw or hw device implementation, making a one-size-fits-all par

[PATCH RESEND net-next v14 4/5] dim: add new interfaces for initialization and getting results

2024-06-17 Thread Heng Qi
DIM-related mode and work have been collected in one same place, so new interfaces are added to provide convenience. Signed-off-by: Heng Qi --- include/linux/dim.h | 48 lib/dim/net_dim.c | 68 + 2 files changed, 116

[PATCH RESEND net-next v14 5/5] virtio-net: support dim profile fine-tuning

2024-06-17 Thread Heng Qi
Virtio-net has different types of back-end device implementations. In order to effectively optimize the dim library's gains for different device implementations, let's use the new interface params to initialize and query dim results from a customized profile list. Signed-off-by: Heng Qi --- driv

[PATCH v2] arm: Add KPROBES_ON_FTRACE supported

2024-06-17 Thread Jinjie Ruan
Add support for kprobes on ftrace call sites to avoid much of the overhead with regular kprobes. Try it with simple steps: cd /sys/kernel/debug/tracing/ echo 'p:myprobe sys_clone r0=%r0 r1=%r1 r2=%r2' > kprobe_events echo 1 > events/kprobes/enable echo 1 > events/k