Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1305750
| From | Dan Williams <dan.j.williams@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v5 0/6] nvdimm: Add an IOCTL pass thru for DSM calls |
| Date | 2016-01-11 01:10 +0100 |
| Message-ID | <qPydA-2YB-11@gated-at.bofh.it> (permalink) |
| References | <qO5nk-7Ld-9@gated-at.bofh.it> <qO69I-88W-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Jan 6, 2016 at 3:58 PM, Dan Williams <dan.j.williams@intel.com>wrote:
> On Wed, Jan 6, 2016 at 3:03 PM, Jerry Hoemann <jerry.hoemann@hpe.com> wrote:
[..]
>> Jerry Hoemann (6):
>> ACPI / util: Fix acpi_evaluate_dsm() argument type
>> nvdimm: Clean-up access mode check.
>> nvdimm: Add wrapper for IOCTL pass thru
>> nvdimm: Fix security issue with DSM IOCTL.
>> nvdimm: Increase max envelope size for IOCTL
>> nvdimm: Add IOCTL pass thru functions
>
> These look good to me.
>
> I'll tag "nvdimm: Fix security issue with DSM IOCTL." for -stable.
>
> Thanks Jerry!
I went to go write a test / support in ndctl for these and noticed a
few things I want to address before merging.
1/ Advertise 'call_dsm' as a supported command alongside the others.
2/ Disallow potentially invalid calls to reach firmware. At a minimum
the kernel needs to know the uuid in advance for any dsm it wants to
send. I.e. check the 'dsm_fun_idx' against the dsm_mask. This is
also important for making sure the kernel can manage exclusive access
to the configuration data area if present
(ND_CMD_{GET|SET}_CONFIG_DATA).
3/ This is minor, but it follows from 1/ that there may be some nvdimm
bus implementations that do not implement 'call_dsm' support.
'nfit_test' is currently one of those buses and we need to check for
that explicitly in nd_ioctl.
I have some patches in progress to address these.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v5 0/6] nvdimm: Add an IOCTL pass thru for DSM calls Jerry Hoemann <jerry.hoemann@hpe.com> - 2016-01-07 00:10 +0100
Re: [PATCH v5 0/6] nvdimm: Add an IOCTL pass thru for DSM calls Dan Williams <dan.j.williams@intel.com> - 2016-01-07 01:00 +0100
Re: [PATCH v5 0/6] nvdimm: Add an IOCTL pass thru for DSM calls Dan Williams <dan.j.williams@intel.com> - 2016-01-11 01:10 +0100
Re: [PATCH v5 0/6] nvdimm: Add an IOCTL pass thru for DSM calls Jerry Hoemann <jerry.hoemann@hpe.com> - 2016-01-12 02:40 +0100
Re: [PATCH v5 0/6] nvdimm: Add an IOCTL pass thru for DSM calls Dan Williams <dan.j.williams@intel.com> - 2016-01-12 20:00 +0100
csiph-web