<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/nvdimm/test, branch linux-4.13.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.13.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.13.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-06-15T21:31:41Z</updated>
<entry>
<title>tools/testing/nvdimm: fix nfit_test buffer overflow</title>
<updated>2017-06-15T21:31:41Z</updated>
<author>
<name>Yasunori Goto</name>
</author>
<published>2017-06-15T05:04:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a117699c6c4a4b1b4e90ed51e393590986567cb4'/>
<id>urn:sha1:a117699c6c4a4b1b4e90ed51e393590986567cb4</id>
<content type='text'>
The root cause of panic is the num_pm of nfit_test1 is wrong.
Though 1 is specified for num_pm at nfit_test_init(), it must be 2,
because nfit_test1-&gt;spa_set[] array has 2 elements.

Since the array is smaller than expected, the driver breaks other area.
(it is often the link list of devres).

As a result, panic occurs like the following example.

    CPU: 4 PID: 2233 Comm: lt-libndctl Tainted: G           O    4.12.0-rc1+ #12
    RIP: 0010:__list_del_entry_valid+0x6c/0xa0
    Call Trace:
     release_nodes+0x76/0x260
     devres_release_all+0x3c/0x50
     device_release_driver_internal+0x159/0x200
     device_release_driver+0x12/0x20
     bus_remove_device+0xfd/0x170
     device_del+0x1e8/0x330
     platform_device_del+0x28/0x90
     platform_device_unregister+0x12/0x30
     nfit_test_exit+0x2a/0x93b [nfit_test]

Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Yasunori Goto &lt;y-goto@jp.fujitsu.com&gt;
Signed-off-by: Dan Williams &lt;dan.j.williams@intel.com&gt;
</content>
</entry>
<entry>
<title>ACPI: Switch to use generic guid_t in acpi_evaluate_dsm()</title>
<updated>2017-06-07T10:20:49Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2017-06-05T16:40:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=94116f8126de9762751fd92731581b73b56292e5'/>
<id>urn:sha1:94116f8126de9762751fd92731581b73b56292e5</id>
<content type='text'>
acpi_evaluate_dsm() and friends take a pointer to a raw buffer of 16
bytes. Instead we convert them to use guid_t type. At the same time we
convert current users.

acpi_str_to_uuid() becomes useless after the conversion and it's safe to
get rid of it.

Acked-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;
Cc: Borislav Petkov &lt;bp@suse.de&gt;
Acked-by: Dan Williams &lt;dan.j.williams@intel.com&gt;
Cc: Amir Goldstein &lt;amir73il@gmail.com&gt;
Reviewed-by: Jarkko Sakkinen &lt;jarkko.sakkinen@linux.intel.com&gt;
Reviewed-by: Jani Nikula &lt;jani.nikula@intel.com&gt;
Acked-by: Jani Nikula &lt;jani.nikula@intel.com&gt;
Cc: Ben Skeggs &lt;bskeggs@redhat.com&gt;
Acked-by: Benjamin Tissoires &lt;benjamin.tissoires@redhat.com&gt;
Acked-by: Joerg Roedel &lt;jroedel@suse.de&gt;
Acked-by: Adrian Hunter &lt;adrian.hunter@intel.com&gt;
Cc: Yisen Zhuang &lt;yisen.zhuang@huawei.com&gt;
Acked-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
Acked-by: Felipe Balbi &lt;felipe.balbi@linux.intel.com&gt;
Acked-by: Mathias Nyman &lt;mathias.nyman@linux.intel.com&gt;
Reviewed-by: Heikki Krogerus &lt;heikki.krogerus@linux.intel.com&gt;
Acked-by: Mark Brown &lt;broonie@kernel.org&gt;
Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>acpi, nfit: fix module unload vs workqueue shutdown race</title>
<updated>2017-04-18T17:55:37Z</updated>
<author>
<name>Dan Williams</name>
</author>
<published>2017-04-18T16:56:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fbabd829fe76a72a6444f64361cf8b2a9848639d'/>
<id>urn:sha1:fbabd829fe76a72a6444f64361cf8b2a9848639d</id>
<content type='text'>
The workqueue may still be running when the devres callbacks start
firing to deallocate an acpi_nfit_desc instance. Stop and flush the
workqueue before letting any other devres de-allocations proceed.

Reported-by: Linda Knippers &lt;linda.knippers@hpe.com&gt;
Signed-off-by: Dan Williams &lt;dan.j.williams@intel.com&gt;
</content>
</entry>
<entry>
<title>tools/testing/nvdimm: fix nfit_test shutdown crash</title>
<updated>2017-04-18T17:26:09Z</updated>
<author>
<name>Dan Williams</name>
</author>
<published>2017-04-14T06:14:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8b06b884cd98f7ec8b5028680b99fabfb7b3e192'/>
<id>urn:sha1:8b06b884cd98f7ec8b5028680b99fabfb7b3e192</id>
<content type='text'>
Keep the nfit_test instances alive until after nfit_test_teardown(), as
we may be doing resource lookups until the final un-registrations have
completed. This fixes crashes of the form.

 BUG: unable to handle kernel NULL pointer dereference at 0000000000000038
 IP: __release_resource+0x12/0x90
 Call Trace:
  remove_resource+0x23/0x40
  __wrap_remove_resource+0x29/0x30 [nfit_test_iomap]
  acpi_nfit_remove_resource+0xe/0x10 [nfit]
  devm_action_release+0xf/0x20
  release_nodes+0x16d/0x2b0
  devres_release_all+0x3c/0x60
  device_release+0x21/0x90
  kobject_release+0x6a/0x170
  kobject_put+0x2f/0x60
  put_device+0x17/0x20
  platform_device_unregister+0x20/0x30
  nfit_test_exit+0x36/0x960 [nfit_test]

Reported-by: Linda Knippers &lt;linda.knippers@hpe.com&gt;
Signed-off-by: Dan Williams &lt;dan.j.williams@intel.com&gt;
</content>
</entry>
<entry>
<title>tools/testing/nvdimm: test acpi 6.1 health state flags</title>
<updated>2017-04-17T19:34:17Z</updated>
<author>
<name>Dan Williams</name>
</author>
<published>2017-04-13T22:17:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ac40b675c74b9243069aba3a5799481dbcb9d2ef'/>
<id>urn:sha1:ac40b675c74b9243069aba3a5799481dbcb9d2ef</id>
<content type='text'>
Add a simulated dimm with an ACPI_NFIT_MEM_MAP_FAILED indication, and
set the ACPI_NFIT_MEM_HEALTH_ENABLED flag on all the dimms where
nfit_test simulates health events, but spread it out over several
redundant memdev entries to test that the nfit driver coalesces all the
flags.

Signed-off-by: Dan Williams &lt;dan.j.williams@intel.com&gt;
</content>
</entry>
<entry>
<title>tools/testing/nvdimm: make iset cookie predictable</title>
<updated>2017-03-01T08:09:51Z</updated>
<author>
<name>Dan Williams</name>
</author>
<published>2017-03-01T08:03:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=df06a2d57711a1472ced72207373eeb6422d4721'/>
<id>urn:sha1:df06a2d57711a1472ced72207373eeb6422d4721</id>
<content type='text'>
For testing changes to the iset cookie algorithm we need a value that is
constant from run-to-run.

Stop including dynamic data in the emulated region_offset values. Also,
pick values that sort in a different order depending on whether the
comparison is a memcmp() of two 8-byte arrays or subtraction of two
64-bit values.

Signed-off-by: Dan Williams &lt;dan.j.williams@intel.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'for-4.10/libnvdimm' into libnvdimm-for-next</title>
<updated>2016-12-17T23:08:10Z</updated>
<author>
<name>Dan Williams</name>
</author>
<published>2016-12-17T23:08:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c44ef859ceff45db1c72f9ccbfae96843c4b1501'/>
<id>urn:sha1:c44ef859ceff45db1c72f9ccbfae96843c4b1501</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tools/testing/nvdimm: unit test acpi_nfit_ctl()</title>
<updated>2016-12-07T01:42:36Z</updated>
<author>
<name>Dan Williams</name>
</author>
<published>2016-12-05T21:43:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a7de92dac9f0dbf01deb56fe1d661d7baac097e1'/>
<id>urn:sha1:a7de92dac9f0dbf01deb56fe1d661d7baac097e1</id>
<content type='text'>
A recent flurry of bug discoveries in the nfit driver's DSM marshalling
routine has highlighted the fact that we do not have unit test coverage
for this routine. Add a self-test of acpi_nfit_ctl() routine before
probing the "nfit_test.0" device. This mocks stimulus to acpi_nfit_ctl()
and if any of the tests fail "nfit_test.0" will be unavailable causing
the rest of the tests to not run / fail.

This unit test will also be a place to land reproductions of quirky BIOS
behavior discovered in the field and ensure the kernel does not regress
against implementations it has seen in practice.

Signed-off-by: Dan Williams &lt;dan.j.williams@intel.com&gt;
</content>
</entry>
<entry>
<title>tools/testing/nvdimm: dynamic label support</title>
<updated>2016-10-19T15:57:33Z</updated>
<author>
<name>Dan Williams</name>
</author>
<published>2016-10-19T04:48:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dafb1048740c36c008fc093bea3532637c143f91'/>
<id>urn:sha1:dafb1048740c36c008fc093bea3532637c143f91</id>
<content type='text'>
Update nfit_test infrastructure to enable labels for the dimm on the
nfit_test.1 bus.  This bus has a pmem region without aliased blk space,
so it is a candidate for dynamically enabling label support by writing
a namespace index block.

Signed-off-by: Dan Williams &lt;dan.j.williams@intel.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'for-4.9/libnvdimm' into libnvdimm-for-next</title>
<updated>2016-10-07T23:46:24Z</updated>
<author>
<name>Dan Williams</name>
</author>
<published>2016-10-07T23:46:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=178d6f4be8bf42b298bedf8ea2a00754100e0c4e'/>
<id>urn:sha1:178d6f4be8bf42b298bedf8ea2a00754100e0c4e</id>
<content type='text'>
</content>
</entry>
</feed>
