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

2024-07-26 Thread Adrian Ratiu
On Friday, July 26, 2024 13:18 EEST, Ard Biesheuvel wrote: > On Fri, 26 Jul 2024 at 11:11, 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 v3] proc: add config & param to block forcing mem writes

2024-07-26 Thread Ard Biesheuvel
On Fri, 26 Jul 2024 at 11:11, 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 behavior is kept as default because > it can break GDB and some other use c

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

2024-07-26 Thread Adrian Ratiu
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 behavior is kept as default because it can break GDB and some other use cases. Previously we tried a more sophisticated approach allowin