Files
linux/drivers/acpi
Dan Williams 88d1439b1e libnvdimm: Validate command family indices
commit 92fe2aa859 upstream.

The ND_CMD_CALL format allows for a general passthrough of passlisted
commands targeting a given command set. However there is no validation
of the family index relative to what the bus supports.

- Update the NFIT bus implementation (the only one that supports
  ND_CMD_CALL passthrough) to also passlist the valid set of command
  family indices.

- Update the generic __nd_ioctl() path to validate that field on behalf
  of all implementations.

Fixes: 31eca76ba2 ("nfit, libnvdimm: limited/whitelisted dimm command marshaling mechanism")
Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Ira Weiny <ira.weiny@intel.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Len Brown <lenb@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-08-21 13:15:03 +02:00
..
2020-03-04 10:32:50 +01:00
2019-06-23 09:23:33 +02:00
2020-06-30 19:32:45 +02:00
2019-11-13 11:12:08 +01:00
2020-05-01 16:28:59 +01:00
2020-06-04 12:59:11 -05:00
2020-05-14 13:49:33 +02:00
2020-06-22 17:13:38 +02:00
2020-03-30 14:52:33 +02:00