<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/pstore/platform.c, branch linux-3.17.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-06-06T23:08:13Z</updated>
<entry>
<title>fs/pstore: logging clean-up</title>
<updated>2014-06-06T23:08:13Z</updated>
<author>
<name>Fabian Frederick</name>
</author>
<published>2014-06-06T21:37:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ef74885353e0ee4d884604148628df3369c76719'/>
<id>urn:sha1:ef74885353e0ee4d884604148628df3369c76719</id>
<content type='text'>
- Define pr_fmt in plateform.c and ram_core.c for global prefix.

- Coalesce format fragments.

- Separate format/arguments on lines &gt; 80 characters.

Note: Some pr_foo() were initially declared without prefix and therefore
this could break existing log analyzer.

[akpm@linux-foundation.org: missed a couple of prefix removals]
Signed-off-by: Fabian Frederick &lt;fabf@skynet.be&gt;
Cc: Joe Perches &lt;joe@perches.com&gt;
Cc: Anton Vorontsov &lt;anton@enomsg.org&gt;
Cc: Colin Cross &lt;ccross@android.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>pstore: Fix memory leak when decompress using big_oops_buf</title>
<updated>2014-03-17T21:14:03Z</updated>
<author>
<name>Liu ShuoX</name>
</author>
<published>2014-03-12T13:34:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e32634f5d57f1dce88624b70a6d625915f6ea09e'/>
<id>urn:sha1:e32634f5d57f1dce88624b70a6d625915f6ea09e</id>
<content type='text'>
After sucessful decompressing, the buffer which pointed by 'buf' will be
lost as 'buf' is overwrite by 'big_oops_buf' and will never be freed.

Signed-off-by: Liu ShuoX &lt;shuox.liu@intel.com&gt;
Acked-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
<entry>
<title>pstore: Don't allow high traffic options on fragile devices</title>
<updated>2013-12-20T21:12:01Z</updated>
<author>
<name>Luck, Tony</name>
</author>
<published>2013-12-18T23:17:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=df36ac1bc2a166eef90785d584e4cfed6f52bd32'/>
<id>urn:sha1:df36ac1bc2a166eef90785d584e4cfed6f52bd32</id>
<content type='text'>
Some pstore backing devices use on board flash as persistent
storage. These have limited numbers of write cycles so it
is a poor idea to use them from high frequency operations.

Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>pstore: Remove the messages related to compression failure</title>
<updated>2013-09-16T16:28:29Z</updated>
<author>
<name>Aruna Balakrishnaiah</name>
</author>
<published>2013-09-11T17:58:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=802e4c6f5887205eda110c6bfb90c9bfa93dc8a7'/>
<id>urn:sha1:802e4c6f5887205eda110c6bfb90c9bfa93dc8a7</id>
<content type='text'>
Remove the messages indicating compression failure as it will
add to the space during panic path.

Reported-by: Seiji Aguchi &lt;seiji.aguchi@hds.com&gt;
Tested-by: Seiji Aguchi &lt;seiji.aguchi@hds.com&gt;
Signed-off-by: Aruna Balakrishnaiah &lt;aruna@linux.vnet.ibm.com&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
<entry>
<title>pstore: Use zlib_inflateInit2 instead of zlib_inflateInit</title>
<updated>2013-09-16T16:28:29Z</updated>
<author>
<name>Aruna Balakrishnaiah</name>
</author>
<published>2013-09-11T17:58:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b61edf8e7cf9d8d450b65588b2ff40dfb8c2fd9b'/>
<id>urn:sha1:b61edf8e7cf9d8d450b65588b2ff40dfb8c2fd9b</id>
<content type='text'>
Since zlib_deflateInit2() is used for specifying window bit during compression,
zlib_inflateInit2() is appropriate for decompression.

Reported-by: Seiji Aguchi &lt;seiji.aguchi@hds.com&gt;
Tested-by: Seiji Aguchi &lt;seiji.aguchi@hds.com&gt;
Signed-off-by: Aruna Balakrishnaiah &lt;aruna@linux.vnet.ibm.com&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
<entry>
<title>pstore: Adjust buffer size for compression for smaller registered buffers</title>
<updated>2013-09-16T16:28:28Z</updated>
<author>
<name>Aruna Balakrishnaiah</name>
</author>
<published>2013-09-11T17:57:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7de8fe2fa8f94985a83120f04d41a93425ea66ba'/>
<id>urn:sha1:7de8fe2fa8f94985a83120f04d41a93425ea66ba</id>
<content type='text'>
When backends (ex: efivars) have smaller registered buffers, the
big_oops_buf is too big for them as number of repeated occurences
in the text captured will be less. What happens is that pstore takes
too big a bite from the dmesg log and then finds it cannot compress it
enough to meet the backend block size. Patch takes care of adjusting
the buffer size based on the registered buffer size. cmpr values have
been arrived after doing experiments with plain text for buffers of
size 1k - 4k (Smaller the buffer size repeated occurence will be less)
and with sample crash log for buffers ranging from 4k - 10k.

Reported-by: Seiji Aguchi &lt;seiji.aguchi@hds.com&gt;
Tested-by: Seiji Aguchi &lt;seiji.aguchi@hds.com&gt;
Signed-off-by: Aruna Balakrishnaiah &lt;aruna@linux.vnet.ibm.com&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
<entry>
<title>pstore: Add file extension to pstore file if compressed</title>
<updated>2013-08-19T18:53:27Z</updated>
<author>
<name>Aruna Balakrishnaiah</name>
</author>
<published>2013-08-16T20:53:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9ad2cbe0a9b88ee6ee895d03b2c63fa1252c8e52'/>
<id>urn:sha1:9ad2cbe0a9b88ee6ee895d03b2c63fa1252c8e52</id>
<content type='text'>
In case decompression fails, add a ".enc.z" to indicate the file has
compressed data. This will help user space utilities to figure
out the file contents.

Signed-off-by: Aruna Balakrishnaiah &lt;aruna@linux.vnet.ibm.com&gt;
Reviewed-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
<entry>
<title>pstore: Add decompression support to pstore</title>
<updated>2013-08-19T18:53:20Z</updated>
<author>
<name>Aruna Balakrishnaiah</name>
</author>
<published>2013-08-16T20:53:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=adb42f5e105502aff2fc4518b16ba79c203fae4f'/>
<id>urn:sha1:adb42f5e105502aff2fc4518b16ba79c203fae4f</id>
<content type='text'>
Based on the flag 'compressed' set or not, pstore will decompress the
data returning a plain text file. If decompression fails for a particular
record it will have the compressed data in the file which can be
decompressed with 'openssl' command line tool.

Signed-off-by: Aruna Balakrishnaiah &lt;aruna@linux.vnet.ibm.com&gt;
Reviewed-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
<entry>
<title>pstore: Introduce new argument 'compressed' in the read callback</title>
<updated>2013-08-19T17:18:11Z</updated>
<author>
<name>Aruna Balakrishnaiah</name>
</author>
<published>2013-08-16T20:53:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9a4e1398208d147a9240731a1f8cfe7d8cc4c553'/>
<id>urn:sha1:9a4e1398208d147a9240731a1f8cfe7d8cc4c553</id>
<content type='text'>
Backends will set the flag 'compressed' after reading the log from
persistent store to indicate the data being returned to pstore is
compressed or not.

Signed-off-by: Aruna Balakrishnaiah &lt;aruna@linux.vnet.ibm.com&gt;
Reviewed-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
<entry>
<title>pstore: Add compression support to pstore</title>
<updated>2013-08-19T17:18:11Z</updated>
<author>
<name>Aruna Balakrishnaiah</name>
</author>
<published>2013-08-16T20:53:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b0aad7a99c1df90c23ff4bac76eea9cf25049e9e'/>
<id>urn:sha1:b0aad7a99c1df90c23ff4bac76eea9cf25049e9e</id>
<content type='text'>
Add compression support to pstore which will help in capturing more data.
Initially, pstore will make a call to kmsg_dump with a bigger buffer
and will pass the size of bigger buffer to kmsg_dump and then compress
the data to registered buffer of registered size.

In case compression fails, pstore will capture the uncompressed
data by making a call again to kmsg_dump with registered_buffer
of registered size.

Pstore will indicate the data is compressed or not with a flag
in the write callback.

Signed-off-by: Aruna Balakrishnaiah &lt;aruna@linux.vnet.ibm.com&gt;
Reviewed-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Tony Luck &lt;tony.luck@intel.com&gt;
</content>
</entry>
</feed>
