<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/pstore/platform.c, branch linux-4.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-06-02T17:59:31Z</updated>
<entry>
<title>pstore: add lzo/lz4 compression support</title>
<updated>2016-06-02T17:59:31Z</updated>
<author>
<name>Geliang Tang</name>
</author>
<published>2016-02-18T14:04:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8cfc8ddc99df9509a46043b14af81f5c6a223eab'/>
<id>urn:sha1:8cfc8ddc99df9509a46043b14af81f5c6a223eab</id>
<content type='text'>
Like zlib compression in pstore, this patch added lzo and lz4
compression support so that users can have more options and better
compression ratio.

The original code treats the compressed data together with the
uncompressed ECC correction notice by using zlib decompress. The
ECC correction notice is missing in the decompression process. The
treatment also makes lzo and lz4 not working. So I treat them
separately by using pstore_decompress() to treat the compressed
data, and memcpy() to treat the uncompressed ECC correction notice.

Signed-off-by: Geliang Tang &lt;geliangtang@163.com&gt;
Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
</content>
</entry>
<entry>
<title>pstore: Cleanup pstore_dump()</title>
<updated>2016-05-31T19:36:45Z</updated>
<author>
<name>Namhyung Kim</name>
</author>
<published>2016-05-18T12:00:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=235f6d157d43a761052e643b8799f86fdc87b47f'/>
<id>urn:sha1:235f6d157d43a761052e643b8799f86fdc87b47f</id>
<content type='text'>
The code is duplicate between compression is enabled or not.

Signed-off-by: Namhyung Kim &lt;namhyung@kernel.org&gt;
Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
</content>
</entry>
<entry>
<title>pstore: Enable compression on normal path (again)</title>
<updated>2016-05-31T19:36:44Z</updated>
<author>
<name>Namhyung Kim</name>
</author>
<published>2016-05-18T12:00:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=98e44fda2ea19c0e8b0a2e0e4dcd3461251f09ea'/>
<id>urn:sha1:98e44fda2ea19c0e8b0a2e0e4dcd3461251f09ea</id>
<content type='text'>
The commit f0e2efcfd2717 ("pstore: do not use message compression
without lock") added a check to 'is_locked' to avoid breakage in
concurrent accesses.  But it has a side-effect of disabling compression
on normal path since 'is_locked' variable is not set.  As normal path
always takes the lock, it should be initialized to 1.

This also makes the unlock code a bit simpler.

Signed-off-by: Namhyung Kim &lt;namhyung@kernel.org&gt;
Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
</content>
</entry>
<entry>
<title>ramoops: Only unregister when registered</title>
<updated>2016-05-31T19:36:44Z</updated>
<author>
<name>Kees Cook</name>
</author>
<published>2016-05-19T14:59:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a1db8060f5c85e33ed810038036f409eed15decc'/>
<id>urn:sha1:a1db8060f5c85e33ed810038036f409eed15decc</id>
<content type='text'>
While none of the "fragile" pstore backends unregister yet, if they
ever did, the unregistering code for the non-dump targets might get
confused. This adds a check for fragile backends on unregister.

Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
</content>
</entry>
<entry>
<title>pstore: fix code comment to match code</title>
<updated>2015-11-02T21:41:52Z</updated>
<author>
<name>Geliang Tang</name>
</author>
<published>2015-10-31T15:23:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=306e5c2a3cb45a0256ae6677501d1144e93efa2f'/>
<id>urn:sha1:306e5c2a3cb45a0256ae6677501d1144e93efa2f</id>
<content type='text'>
Fix code comment about kmsg_dump register so it matches the code.

Signed-off-by: Geliang Tang &lt;geliangtang@163.com&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
<entry>
<title>pstore: add pstore unregister</title>
<updated>2015-10-22T15:59:18Z</updated>
<author>
<name>Geliang Tang</name>
</author>
<published>2015-10-20T07:39:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ee1d267423a1f8041e2b1a33fc23e4393c67677e'/>
<id>urn:sha1:ee1d267423a1f8041e2b1a33fc23e4393c67677e</id>
<content type='text'>
pstore doesn't support unregistering yet. It was marked as TODO.
This patch adds some code to fix it:
 1) Add functions to unregister kmsg/console/ftrace/pmsg.
 2) Add a function to free compression buffer.
 3) Unmap the memory and free it.
 4) Add a function to unregister pstore filesystem.

Signed-off-by: Geliang Tang &lt;geliangtang@163.com&gt;
Acked-by: Kees Cook &lt;keescook@chromium.org&gt;
[Removed __exit annotation from ramoops_remove(). Reported by Arnd Bergmann]
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
<entry>
<title>pstore: add a helper function pstore_register_kmsg</title>
<updated>2015-10-21T16:27:10Z</updated>
<author>
<name>Geliang Tang</name>
</author>
<published>2015-10-20T07:39:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1873041152d2e324e25ddeec5541b90c22c2dc0f'/>
<id>urn:sha1:1873041152d2e324e25ddeec5541b90c22c2dc0f</id>
<content type='text'>
Add a new wrapper function pstore_register_kmsg to keep the
consistency with other similar pstore_register_* functions.

Signed-off-by: Geliang Tang &lt;geliangtang@163.com&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
<entry>
<title>fs/pstore: update the backend parameter in pstore module</title>
<updated>2015-05-21T16:34:22Z</updated>
<author>
<name>Wang Long</name>
</author>
<published>2015-05-21T16:34:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=42222c2a5d5da7fe4839491d5c44034f40761071'/>
<id>urn:sha1:42222c2a5d5da7fe4839491d5c44034f40761071</id>
<content type='text'>
This patch update the module parameter backend, so it is visible
through /sys/module/pstore/parameters/backend.

For example:
if pstore backend is ramoops, with this patch:
	# cat /sys/module/pstore/parameters/backend
	ramoops
and without this patch:
	# cat /sys/module/pstore/parameters/backend
	(null)

Signed-off-by: Wang Long &lt;long.wanglong@huawei.com&gt;
Acked-by: Mark Salyzyn &lt;salyzyn@android.com&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
<entry>
<title>pstore: do not use message compression without lock</title>
<updated>2015-05-21T16:26:19Z</updated>
<author>
<name>Konstantin Khlebnikov</name>
</author>
<published>2015-05-21T16:26:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f0e2efcfd271733119cfe499f5811968544cbe7b'/>
<id>urn:sha1:f0e2efcfd271733119cfe499f5811968544cbe7b</id>
<content type='text'>
pstore_compress() uses static stream buffer for zlib-deflate which
easily crashes when several concurrent threads use one shared state.

Signed-off-by: Konstantin Khlebnikov &lt;khlebnikov@yandex-team.ru&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
<entry>
<title>pstore: Fix sprintf format specifier in pstore_dump()</title>
<updated>2015-01-17T00:01:29Z</updated>
<author>
<name>alex chen</name>
</author>
<published>2015-01-16T23:52:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a6b8978c54b771308f6f1692b9735ac0bb087cc2'/>
<id>urn:sha1:a6b8978c54b771308f6f1692b9735ac0bb087cc2</id>
<content type='text'>
We should use sprintf format specifier "%u" instead of "%d" for
argument of type 'unsigned int' in pstore_dump().

Signed-off-by: Alex Chen &lt;alex.chen@huawei.com&gt;
Reviewed-by: Joseph Qi &lt;joseph.qi@huawei.com&gt;
Acked-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
</feed>
