Re: [PATCH v2] kernel: sysctl: ignore out-of-range taint bits introduced via kernel.tainted

2020-05-12 Thread Rafael Aquini
On Wed, May 13, 2020 at 12:39:53AM +, Luis Chamberlain wrote: > On Tue, May 12, 2020 at 06:39:46PM -0400, Rafael Aquini wrote: > > Users with SYS_ADMIN capability can add arbitrary taint flags > > to the running kernel by writing to /proc/sys/kernel/tainted > > or issuing the command 'sysctl

Re: [PATCH v2] kernel: sysctl: ignore out-of-range taint bits introduced via kernel.tainted

2020-05-12 Thread Luis Chamberlain
On Tue, May 12, 2020 at 06:39:46PM -0400, Rafael Aquini wrote: > Users with SYS_ADMIN capability can add arbitrary taint flags > to the running kernel by writing to /proc/sys/kernel/tainted > or issuing the command 'sysctl -w kernel.tainted=...'. > These interface, however, are open for any

[PATCH v2] kernel: sysctl: ignore out-of-range taint bits introduced via kernel.tainted

2020-05-12 Thread Rafael Aquini
Users with SYS_ADMIN capability can add arbitrary taint flags to the running kernel by writing to /proc/sys/kernel/tainted or issuing the command 'sysctl -w kernel.tainted=...'. These interface, however, are open for any integer value and this might an invalid set of flags being committed to the