mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
taint: Add TAINT_FWCTL
Requesting a fwctl scope of access that includes mutating device debug data will cause the kernel to be tainted. Changing the device operation through things in the debug scope may cause the device to malfunction in undefined ways. This should be reflected in the TAINT flags to help any debuggers understand that something has been done. Link: https://patch.msgid.link/r/4-v5-642aa0c94070+4447f-fwctl_jgg@nvidia.com Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Shannon Nelson <shannon.nelson@amd.com> Tested-by: Dave Jiang <dave.jiang@intel.com> Tested-by: Shannon Nelson <shannon.nelson@amd.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
@@ -511,6 +511,7 @@ const struct taint_flag taint_flags[TAINT_FLAGS_COUNT] = {
|
||||
TAINT_FLAG(AUX, 'X', ' ', true),
|
||||
TAINT_FLAG(RANDSTRUCT, 'T', ' ', true),
|
||||
TAINT_FLAG(TEST, 'N', ' ', true),
|
||||
TAINT_FLAG(FWCTL, 'J', ' ', true),
|
||||
};
|
||||
|
||||
#undef TAINT_FLAG
|
||||
|
||||
Reference in New Issue
Block a user