GitHub PushEvent at 2014-08-13 10:01:56
Repository: android_kernel_sony_msm8930
Actor: coderzstas
Payload: {"shas":[["1c9e444d9eb92f037da15fcc2eecdd13bcfbed39","300a2d193222dd0c23d880e16d727d352b404a01@oberhumer.com","lib/lzo: Rename lzo1x_decompress.c to lzo1x_decompress_safe.c\n\ncommit b6bec26cea948148a9420e7a0ac337f925de49e7 upstream.\n\nRename the source file to match the function name and thereby\nalso make room for a possible future even slightly faster\n\"non-safe\" decompressor version.\n\nChange-Id: I55a4033c42030d1d14e4367f4d40d39932f07097\nSigned-off-by: Markus F.X.J. Oberhumer <markus@oberhumer.com>\nSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>","Markus F.X.J. Oberhumer",true],["4935cc6de84ce634fc763d8cb83439b2e324f624","acfcac43eb6f078eef5fce36a581b7676d079e62@gmail.com","Revert \"lib/lzo: Rename lzo1x_decompress.c to lzo1x_decompress_safe.c\"\n\nThis reverts commit 1c9e444d9eb92f037da15fcc2eecdd13bcfbed39.","coderzstas",true],["48dc3aa8eb97b78283ab29eb23aa2fd0f7fb0597","51b0aed1a48556115b152d4619664105ddea9243@lge.com","decompressor: add LZ4 decompressor module\n\nAdd support for LZ4 decompression in the Linux Kernel.  LZ4 Decompression\nAPIs for kernel are based on LZ4 implementation by Yann Collet.\n\nBenchmark Results(PATCH v3)\nCompiler: Linaro ARM gcc 4.6.2\n\n1. ARMv7, 1.5GHz based board\n   Kernel: linux 3.4\n   Uncompressed Kernel Size: 14MB\n        Compressed Size  Decompression Speed\n   LZO  6.7MB            20.1MB/s, 25.2MB/s(UA)\n   LZ4  7.3MB            29.1MB/s, 45.6MB/s(UA)\n\n2. ARMv7, 1.7GHz based board\n   Kernel: linux 3.7\n   Uncompressed Kernel Size: 14MB\n        Compressed Size  Decompression Speed\n   LZO  6.0MB            34.1MB/s, 52.2MB/s(UA)\n   LZ4  6.5MB            86.7MB/s\n- UA: Unaligned memory Access support\n- Latest patch set for LZO applied\n\nThis patch set is for adding support for LZ4-compressed Kernel.  LZ4 is a\nvery fast lossless compression algorithm and it also features an extremely\nfast decoder [1].\n\nBut we have five of decompressors already and one question which does\narise, however, is that of where do we stop adding new ones?  This issue\nhad been discussed and came to the conclusion [2].\n\nRussell King said that we should have:\n\n - one decompressor which is the fastest\n - one decompressor for the highest compression ratio\n - one popular decompressor (eg conventional gzip)\n\nIf we have a replacement one for one of these, then it should do exactly\nthat: replace it.\n\nThe benchmark shows that an 8% increase in image size vs a 66% increase\nin decompression speed compared to LZO(which has been known as the\nfastest decompressor in the Kernel).  Therefore the \"fast but may not be\nsmall\" compression title has clearly been taken by LZ4 [3].\n\n[1] http://code.google.com/p/lz4/\n[2] http://thread.gmane.org/gmane.linux.kbuild.devel/9157\n[3] http://thread.gmane.org/gmane.linux.kbuild.devel/9347\n\nLZ4 homepage: http://fastcompression.blogspot.com/p/lz4.html\nLZ4 source repository: http://code.google.com/p/lz4/\n\nChange-Id: I137430efcacfa8c7d471ad42b7f62f6ef8b97db6\nSigned-off-by: Kyungsik Lee <kyungsik.lee@lge.com>\nSigned-off-by: Yann Collet <yann.collet.73@gmail.com>\nCc: \"H. Peter Anvin\" <hpa@zytor.com>\nCc: Ingo Molnar <mingo@elte.hu>\nCc: Thomas Gleixner <tglx@linutronix.de>\nCc: Russell King <rmk@arm.linux.org.uk>\nCc: Borislav Petkov <bp@alien8.de>\nCc: Florian Fainelli <florian@openwrt.org>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>","Kyungsik Lee",true],["c9b6be58d34eb2e875ae6f56d5fca99c09227d4f","51b0aed1a48556115b152d4619664105ddea9243@lge.com","lib: add support for LZ4-compressed kernel\n\nAdd support for extracting LZ4-compressed kernel images, as well as\nLZ4-compressed ramdisk images in the kernel boot process.\n\nChange-Id: I751b956512cc0fc8926c264de997e93eecd849bf\nSigned-off-by: Kyungsik Lee <kyungsik.lee@lge.com>\nCc: \"H. Peter Anvin\" <hpa@zytor.com>\nCc: Ingo Molnar <mingo@elte.hu>\nCc: Thomas Gleixner <tglx@linutronix.de>\nCc: Russell King <rmk@arm.linux.org.uk>\nCc: Borislav Petkov <bp@alien8.de>\nCc: Florian Fainelli <florian@openwrt.org>\nCc: Yann Collet <yann.collet.73@gmail.com>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>","Kyungsik Lee",true],["bb2a03e3e5f0d8e1988afafa775ed2bed96f3841","f29209e176deba8cfd2e79bb6b9166c7d43dc10b@lge.com","lib: add lz4 compressor module\n\nThis patchset is for supporting LZ4 compression and the crypto API using\nit.\n\nAs shown below, the size of data is a little bit bigger but compressing\nspeed is faster under the enabled unaligned memory access.  We can use\nlz4 de/compression through crypto API as well.  Also, It will be useful\nfor another potential user of lz4 compression.\n\nlz4 Compression Benchmark:\nCompiler: ARM gcc 4.6.4\nARMv7, 1 GHz based board\n   Kernel: linux 3.4\n   Uncompressed data Size: 101 MB\n         Compressed Size  compression Speed\n   LZO   72.1MB\t\t  32.1MB/s, 33.0MB/s(UA)\n   LZ4   75.1MB\t\t  30.4MB/s, 35.9MB/s(UA)\n   LZ4HC 59.8MB\t\t   2.4MB/s,  2.5MB/s(UA)\n- UA: Unaligned memory Access support\n- Latest patch set for LZO applied\n\nThis patch:\n\nAdd support for LZ4 compression in the Linux Kernel.  LZ4 Compression APIs\nfor kernel are based on LZ4 implementation by Yann Collet and were changed\nfor kernel coding style.\n\nLZ4 homepage : http://fastcompression.blogspot.com/p/lz4.html\nLZ4 source repository : http://code.google.com/p/lz4/\nsvn revision : r90\n\nTwo APIs are added:\n\nlz4_compress() support basic lz4 compression whereas lz4hc_compress()\nsupport high compression or CPU performance get lower but compression\nratio get higher.  Also, we require the pre-allocated working memory with\nthe defined size and destination buffer must be allocated with the size of\nlz4_compressbound.\n\n[akpm@linux-foundation.org: make lz4_compresshcctx() static]\nSigned-off-by: Chanho Min <chanho.min@lge.com>\nCc: \"Darrick J. Wong\" <djwong@us.ibm.com>\nCc: Bob Pearson <rpearson@systemfabricworks.com>\nCc: Richard Weinberger <richard@nod.at>\nCc: Herbert Xu <herbert@gondor.hengli.com.au>\nCc: Yann Collet <yann.collet.73@gmail.com>\nCc: Kyungsik Lee <kyungsik.lee@lge.com>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>\n\nChange-Id: I3a4b2342bad83fa2a9d6fdf7bf8a20a9961ff3de","Chanho Min",true],["401681b0194f745e0abf33dd0b97999a00c3c0a0","81addaf2b3de238efaf0d9cab41b694990e42b0b@wiktel.com","lib/lz4: correct the LZ4 license\n\nThe LZ4 code is listed as using the \"BSD 2-Clause License\".\n\nSigned-off-by: Richard Laager <rlaager@wiktel.com>\nAcked-by: Kyungsik Lee <kyungsik.lee@lge.com>\nCc: Chanho Min <chanho.min@lge.com>\nCc: Richard Yao <ryao@gentoo.org>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\n[ The 2-clause BSD can be just converted into GPL, but that's rude and\n  pointless, so don't do it   - Linus ]\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>\n\nChange-Id: Ic57593afddd3bc6448bb0042b33d99b8f1093837","Richard Laager",true],["927fa84d2ff2342ec87efe4437f8dbf56c80aa05","d9c384f6b6e27869ff3b53bd225c29030ac4166b@gmail.com","lz4: fix compression/decompression signedness mismatch\n\nLZ4 compression and decompression functions require different in\nsignedness input/output parameters: unsigned char for compression and\nsigned char for decompression.\n\nChange decompression API to require \"(const) unsigned char *\".\n\nChange-Id: If6830658a81c9e819be077f02af7dda85c9f0634\nSigned-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>\nCc: Kyungsik Lee <kyungsik.lee@lge.com>\nCc: Geert Uytterhoeven <geert@linux-m68k.org>\nCc: Yann Collet <yann.collet.73@gmail.com>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>","Sergey Senozhatsky",true],["fbb3abf48a54cdb6b9adb38e4f6ad3a151295166","051346888327db48cce19d2cfd0e1c700bb7cf16@suse.com","lib/decompress_unlz4.c: always set an error return code on failures\n\n\"ret\", being set to -1 early on, gets cleared by the first invocation of\nlz4_decompress()/lz4_decompress_unknownoutputsize(), and hence subsequent\nfailures wouldn't be noticed by the caller without setting it back to -1\nright after those calls.\n\nChange-Id: I49719640c504614e3ad9733a3ae50a2498db890a\nReported-by: Matthew Daley <mattjd@gmail.com>\nSigned-off-by: Jan Beulich <jbeulich@suse.com>\nCc: Kyungsik Lee <kyungsik.lee@lge.com>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>","Jan Beulich",true],["a93440fddfadda6e97ae8358317fdb97a8d0227d","4645f7897fd33786a2ee1264d590b3c400559d85@linuxfoundation.org","lz4: ensure length does not wrap\n\nGiven some pathologically compressed data, lz4 could possibly decide to\nwrap a few internal variables, causing unknown things to happen.  Catch\nthis before the wrapping happens and abort the decompression.\n\nChange-Id: I0b4ade590c1723795593270dcf917a7a3e2a5386\nReported-by: \"Don A. Bailey\" <donb@securitymouse.com>\nCc: stable <stable@vger.kernel.org>\nSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>","Greg Kroah-Hartman",true],["e7e25916dfc585184b411bdd6324894b4ccfaacf","4645f7897fd33786a2ee1264d590b3c400559d85@linuxfoundation.org","lz4: fix another possible overrun\n\nThere is one other possible overrun in the lz4 code as implemented by\nLinux at this point in time (which differs from the upstream lz4\ncodebase, but will get synced at in a future kernel release.)  As\npointed out by Don, we also need to check the overflow in the data\nitself.\n\nWhile we are at it, replace the odd error return value with just a\n\"simple\" -1 value as the return value is never used for anything other\nthan a basic \"did this work or not\" check.\n\nChange-Id: Ic452ed96c99498dd90442ab8941171030e5cf827\nReported-by: \"Don A. Bailey\" <donb@securitymouse.com>\nReported-by: Willy Tarreau <w@1wt.eu>\nCc: stable <stable@vger.kernel.org>\nSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>","Greg Kroah-Hartman",true],["6a37593bc2e5497476185e7f9ef74cf646d2a672","4645f7897fd33786a2ee1264d590b3c400559d85@linuxfoundation.org","lz4: add overrun checks to lz4_uncompress_unknownoutputsize()\n\nJan points out that I forgot to make the needed fixes to the\nlz4_uncompress_unknownoutputsize() function to mirror the changes done\nin lz4_decompress() with regards to potential pointer overflows.\n\nThe only in-kernel user of this function is the zram code, which only\ntakes data from a valid compressed buffer that it made itself, so it's\nnot a big issue.  But due to external kernel modules using this\nfunction, it's better to be safe here.\n\nChange-Id: I7687153ef1fef1e4f67b07bc6bfd6c9a541bde08\nReported-by: Jan Beulich <JBeulich@suse.com>\nCc: \"Don A. Bailey\" <donb@securitymouse.com>\nCc: stable <stable@vger.kernel.org>\nSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>","Greg Kroah-Hartman",true],["798642a56a8e7d0db0f77639c07091ab26c9a6e9","585c0bc855c02f2056a33cd71c7dba0870c26e8e@redhat.com","initramfs: read CONFIG_RD_ variables for initramfs compression\n\nWhen expert configuration option(CONFIG_EXPERT) is enabled, menuconfig\noffers a choice of compression algorithm to compress initial ramfs image;\nThis choice is stored into CONFIG_RD_* variables.  But usr/Makefile uses\nearlier INITRAMFS_COMPRESSION_* macros to build initial ramfs file.  Since\nnone of them is defined, resulting 'initramfs_data.cpio' file remains\nun-compressed.\n\nThis patch updates the Makefile to use CONFIG_RD_* variables and adds\nsupport for LZ4 compression algorithm.  Also updates the\n'gen_initramfs_list.sh' script to check whether a selected compression\ncommand is accessible or not.  And fall-back to default gzip(1)\ncompression when it is not.\n\nChange-Id: I6fb594fb00e2fbbe344f9de4235e58b4e7ef9a55\nSigned-off-by: P J P <prasad@redhat.com>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>","P J P",true],["b89fe03433a9cce369fdc045817fa4afbdade57b","2591e5f46f28d303f9dc027d475a5c60d8dea17a@danweeks.net","scripts/gen_initramfs_list.sh: fix flags for initramfs LZ4 compression\n\nLZ4 as implemented in the kernel differs from the default method now\nused by the reference implementation of LZ4.  Until the in-kernel method\nis updated to support the new default, passing the legacy flag (-l) to\nthe compressor is necessary.  Without this flag the kernel-generated,\nLZ4-compressed initramfs is junk.\n\nKyungsik said:\n\n: It seems that lz4 supports legacy format with the same option as lz4c\n: does.  Just looking at the first few bytes of lz4 compressed image, we can\n: see whether it is new format or not.\n:\n: It shows new format magic number without this patch.  New format magic\n: number is 0x184d2204.\n:\n: $ hexdump -C ./initramfs_data.cpio.lz4 |more\n: 00000000  04 22 4d 18 64 70 b9 69 (Little Endian)\n: ...\n:\n: Currently kernel supports legacy format only.\n\nChange-Id: Ia5876e40de625fbd3c715200efdb595a3c218f2e\nSigned-off-by: Daniel M. Weeks <dan@danweeks.net>\nCc: Michal Marek <mmarek@suse.cz>\nAcked-by: Kyungsik Lee <kyungsik.lee@lge.com>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>","Daniel M. Weeks",true],["ddc326b7888d1884400bea99fe69cdacec288fc0","51b0aed1a48556115b152d4619664105ddea9243@lge.com","arm: add support for LZ4-compressed kernel\n\nIntegrates the LZ4 decompression code to the arm pre-boot code.\n\nSigned-off-by: Kyungsik Lee <kyungsik.lee@lge.com>\nCc: \"H. Peter Anvin\" <hpa@zytor.com>\nCc: Ingo Molnar <mingo@elte.hu>\nCc: Thomas Gleixner <tglx@linutronix.de>\nCc: Russell King <rmk@arm.linux.org.uk>\nCc: Borislav Petkov <bp@alien8.de>\nCc: Florian Fainelli <florian@openwrt.org>\nCc: Yann Collet <yann.collet.73@gmail.com>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>\n\nConflicts:\n\tarch/arm/Kconfig\n\tarch/arm/boot/compressed/Makefile\n\tarch/x86/boot/compressed/Makefile\n\nChange-Id: Ie4712fba77e3cc30ce7a11eee7bd29a8f8f58468","Kyungsik Lee",true],["e4b7b5242bb72de7fa1ad9ae062520b1ecd9aacb","f29209e176deba8cfd2e79bb6b9166c7d43dc10b@lge.com","lib: add weak clz/ctz functions\n\nSome architectures need __c[lt]z[sd]i2() for __builtin_c[lt]z[ll] and\nthat causes a build failure.  They can be implemented using the\nfls()/__ffs() and overridden by linking arch-specific versions may not\nbe implemented yet.\n\nThis is required by \"lib: add lz4 compressor module\".\n\nReference: https://lkml.org/lkml/2013/4/18/603\n\nSigned-off-by: Chanho Min <chanho.min@lge.com>\nReported-by: Geert Uytterhoeven <geert@linux-m68k.org>\nCc: \"Darrick J. Wong\" <djwong@us.ibm.com>\nCc: Bob Pearson <rpearson@systemfabricworks.com>\nCc: Richard Weinberger <richard@nod.at>\nCc: Herbert Xu <herbert@gondor.hengli.com.au>\nCc: Yann Collet <yann.collet.73@gmail.com>\nCc: Kyungsik Lee <kyungsik.lee@lge.com>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>\n\nConflicts:\n\tlib/Makefile\n\nChange-Id: Ifd9288209e14214ef31bead31f61eea395b5c392","Chanho Min",true],["77dfaf246eb6efc0da92dcc1891b25266bd4b2d3","62a2cbd3422b0d621dafb7ceeff40187aeaed4ed@gmail.com","lib/clz_ctz.c: add prototype declarations in lib/clz_ctz.c\n\nAdd prototype declarations of functions in lib/clz_ctz.c.  These\nfunctions are required by GCC builtins and hence can not be removed\ndespite of their unreferenced appearance in kernel source.\n\nThis eliminates the following warning in lib/clz_ctz.c:\n\n  lib/clz_ctz.c:16:12: warning: no previous prototype for `__ctzsi2' [-Wmissing-prototypes]\n  lib/clz_ctz.c:22:12: warning: no previous prototype for `__clzsi2' [-Wmissing-prototypes]\n  lib/clz_ctz.c:44:12: warning: no previous prototype for `__clzdi2' [-Wmissing-prototypes]\n  lib/clz_ctz.c:50:12: warning: no previous prototype for `__ctzdi2' [-Wmissing-prototypes]\n\nChange-Id: I639602168cbdecad04d4d7d5a2968120ee0bcd5b\nSigned-off-by: Rashika Kheria <rashika.kheria@gmail.com>\nReviewed-by: Josh Triplett <josh@joshtriplett.org>\nAcked-by: Chanho Min <chanho.min@lge.com>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>","Rashika Kheria",true],["91b864e8fe541e1824829ae4e26c033cefadcbd5","527af9e7c640877508ac9f4ddd8647c066bca6c6@linux.vnet.ibm.com","staging: zcache: fix cleancache race condition with shrinker\n\ncommit 6d7d9798ad5c97ee4e911dd070dc12dc5ae55bd0 upstream.\n\nThis patch fixes a race condition that results in memory\ncorruption when using cleancache.\n\nThe race exists between the zcache shrinker handler,\nshrink_zcache_memory() and cleancache_get_page().\n\nIn most cases, the shrinker will both evict a zbpg\nfrom its buddy list and flush it from tmem before a\ncleancache_get_page() occurs on that page. A subsequent\ncleancache_get_page() will fail in the tmem layer.\n\nIn the rare case that two occur together and the\ncleancache_get_page() path gets through the tmem\nlayer before the shrinker path can flush tmem,\nzbud_decompress() does a check to see if the zbpg is a\n\"zombie\", i.e. not on a buddy list, which means the shrinker\nis in the process of reclaiming it. If the zbpg is a zombie,\nzbud_decompress() returns -EINVAL.\n\nHowever, this return code is being ignored by the caller,\nzcache_pampd_get_data_and_free(), which results in the\ncaller of cleancache_get_page() thinking that the page has\nbeen properly retrieved when it has not.\n\nThis patch modifies zcache_pampd_get_data_and_free() to\nconvey the failure up the stack so that the caller of\ncleancache_get_page() knows the page retrieval failed.\n\nThis needs to be applied to stable trees as well.\nzcache-main.c was named zcache.c before v3.1, so\nI'm not sure how you want to handle trees earlier\nthan that.\n\nChange-Id: I6a8c6a1740c4b910251f00347c326b53de124089\nSigned-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com>\nReviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>\nReviewed-by: Minchan Kim <minchan@kernel.org>\nSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>","Seth Jennings",true],["cc9289d91d50a0c89bf7ae3f987ff8cc086ec874","527af9e7c640877508ac9f4ddd8647c066bca6c6@linux.vnet.ibm.com","CHROMIUM: UPSTREAM: staging: zram/zcache: swtich Kconfig dependency from X86 to ZSMALLOC\n\nupstream: commit 6e2361720b9da9ec830d407da058ca1827e62b12\n\nThis patch switches zcache and zram dependency to ZSMALLOC\nrather than X86.  There is no net change since ZSMALLOC\ndepends on X86, however, this prevent further changes to\nthese files as zsmalloc dependencies change.\n\nSigned-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com>\nSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>\n\nBUG=chromium-os:36829\nTEST=compile, verify that zram module is updated and /boot/config is correct\n\nChange-Id: I91f6ed46549fe62a9fe3035063d98beb2f5d966a\nSigned-off-by: Luigi Semenzato <semenzato@chromium.org>\nReviewed-on: https://gerrit.chromium.org/gerrit/39289\nTested-by: Luigi Semenzato <semenzato@google.com>\nReviewed-by: Sonny Rao <sonnyrao@chromium.org>\nCommit-Ready: Luigi Semenzato <semenzato@google.com>","Seth Jennings",true]],"size":18,"ref":"refs/heads/cm-11.0","head":"cc9289d91d50a0c89bf7ae3f987ff8cc086ec874"}