Re: [PATCH v4] proc: add config & param to block forcing mem writes

2024-07-31 Thread Adrian Ratiu
On Wednesday, July 31, 2024 02:18 EEST, Linus Torvalds wrote: > On Tue, 30 Jul 2024 at 16:09, Jeff Xu wrote: > > > > > + task = get_proc_task(file_inode(file)); > > > + if (task) { > > > + ptrace_active = task->ptrace && task->mm == mm && > > >

Re: [PATCH v4] proc: add config & param to block forcing mem writes

2024-07-31 Thread Adrian Ratiu
On Wednesday, July 31, 2024 02:08 EEST, Jeff Xu wrote: > On Tue, Jul 30, 2024 at 6:25 AM Adrian Ratiu > wrote: > > > > This adds a Kconfig option and boot param to allow removing > > the FOLL_FORCE flag from /proc/pid/mem write calls because > > it can be abused. > > > > The traditional forcing

Re: [PATCH v4] proc: add config & param to block forcing mem writes

2024-07-31 Thread Christian Brauner
On Wed, Jul 31, 2024 at 02:15:54PM GMT, Adrian Ratiu wrote: > On Wednesday, July 31, 2024 02:18 EEST, Linus Torvalds > wrote: > > > On Tue, 30 Jul 2024 at 16:09, Jeff Xu wrote: > > > > > > > + task = get_proc_task(file_inode(file)); > > > > + if (task) { > > > > +

Re: [PATCH v2] net: core: annotate socks of struct sock_reuseport with __counted_by

2024-07-31 Thread Jakub Kicinski
On Wed, 31 Jul 2024 07:53:46 +0300 Dmitry Antipov wrote: > + reuse = kzalloc(struct_size(reuse, socks, max_socks), GFP_ATOMIC); > > if (!reuse) another nit -- no empty lines between function call and its error check :) Two bits of docs to look at before sending v3: https://www.kernel.

Re: (subset) [PATCH v5 0/3] Add sy7802 flash led driver

2024-07-31 Thread Bjorn Andersson
On Mon, 24 Jun 2024 23:25:11 +0200, André Apitzsch wrote: > This series introduces a driver for the Silergy SY7802 charge pump used > in the BQ Aquaris M5 and X5 smartphones. > > The implementation is based on information extracted from downstream as > the datasheet provided by a distributor of