Files
linux/include/uapi/linux
Dan Williams 92fe2aa859 libnvdimm: Validate command family indices
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 <[email protected]>
Cc: Dave Jiang <[email protected]>
Cc: Ira Weiny <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Cc: Len Brown <[email protected]>
Cc: <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Signed-off-by: Vishal Verma <[email protected]>
2020-07-25 19:34:47 -06:00
..
…
…
…
…
…
…
2020-05-28 11:22:14 +02:00
…
…
…
2019-12-18 18:07:31 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-10-09 22:31:14 -04:00
…
…
2019-09-25 17:51:39 -07:00
…
…
…
2020-06-01 11:49:23 -07:00
…
2020-04-27 16:29:41 +05:30
…
…
…
…
…
…
…
…
2020-05-14 16:44:25 +02:00
…
…
2020-05-28 22:09:47 -04:00
…
…
…
…
…
…
…
…
…
…
2019-12-11 15:31:52 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-04-20 12:43:24 -07:00
…
…
…
…
…
2020-05-17 14:10:07 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-05-01 10:00:19 -04:00
…
…
…
…
2020-05-21 08:20:35 -06:00
…
2020-03-29 22:30:57 -07:00
…
…
…
…
…
…
…
…
…
…
…
2020-03-29 22:14:49 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-01-18 09:19:18 -05:00
…
…
…
…
2019-10-02 20:32:27 -06:00
…
…
…
…
…
…
…
…
2020-05-21 17:04:07 -07:00
…
…
…
…
…
…
…
…
…
…
…
2020-03-29 22:30:57 -07:00
…
…
…
…
…
…
…
…
…
2020-01-26 15:28:47 +01:00
…
…
…
…
…
…
…
…
…
2019-12-18 18:07:31 +01:00
…
…
…
…
…
…
…
…
…
…
2019-12-09 09:59:07 +01:00
…
…
…
…
2020-03-29 23:29:08 +02:00
…
…
…
…
…
…
…
2019-09-18 20:17:50 +02:00
…
…
…
…
…
…
2020-04-20 07:26:42 +02:00
…