From: Yann Collet Subject: Re: [PATCH 0/1] cover-letter/lz4: Implement lz4 with dynamic offset length. Date: Mon, 16 Apr 2018 19:34:29 +0000 Message-ID: <74EB06AE-E1CA-4B06-9935-596DCFAC951C@fb.com> References: <20180329102613epcms5p6ffaa80d12115ded8f3c9ef01dd009744@epcms5p6> <20180329102046epcms5p8ecc9532b03bab4f47cbdbb2507171b86@epcms5p8> <20180323134319epcms5p62e6021aa33c941c46ecdb8b5364b614c@epcms5p6> <1663C9A3-7DAC-4A11-894C-C99E07BEDAD2@fb.com> <1521607242-3968-1-git-send-email-maninder1.s@samsung.com> <20180321082628.GB2746@jagdpanzerIV> <20180416102138epcms5p429e04b68b94dcf80cd84f7008467ed68@epcms5p4> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Cc: "davem@davemloft.net" , "minchan@kernel.org" , "ngupta@vflare.org" , Kees Cook , "anton@enomsg.org" , "ccross@android.com" , "tony.luck@intel.com" , "akpm@linux-foundation.org" , "colin.king@canonical.com" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , PANKAJ MISHRA , "AMIT SAHRAWAT" , "gregkh@linuxfoundation.org" To: "maninder1.s@samsung.com" , Vaneet Narang , Nick Terrell , Sergey Senozhatsky , "herbert@gondor.apana.org.au" Return-path: In-Reply-To: <20180416102138epcms5p429e04b68b94dcf80cd84f7008467ed68@epcms5p4> Content-Language: en-US Content-ID: <6CCA283B630AC94DAD39499E415F0E9B@namprd15.prod.outlook.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-crypto.vger.kernel.org SGkgU2luZ2gNCg0KSSBkb24ndCBoYXZlIGFueSBzdHJvbmcgb3BpbmlvbiBvbiB0aGlzIHRvcGlj Lg0KDQpZb3UgbWFkZSB5b3VyIGNhc2UgY2xlYXI6IA0KeW91ciB2YXJpYW50IHRyYWRlcyBhIGxp dHRsZSBiaXQgb2Ygc3BlZWQgZm9yIGEgbGl0dGxlIGJpdCBtb3JlIG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AgICAgICAyMTYgTUIvcyAgIDc2MSBNQi9zICAgICAgICAyNDMzICA1OS40 MCBkYXRhLy9kYXRhXzENCiAgICA+PiBsejQgMS44LjAgICAgICAgICAgICAgICAgIDI2OSBNQi9z ICAgODc3IE1CL3MgICAgICAgIDE4NzMgIDQ1LjczIGRhdGEvL2RhdGFfMg0KICAgID4+IGx6NCAx LjguMCAgICAgICAgICAgICAgICAgMjM4IE1CL3MgICA1NzUgTUIvcyAgICAgICAgMjA2MCAgNTAu MjkgZGF0YS8vZGF0YV8zDQogICAgPj4gbHo0IDEuOC4wICAgICAgICAgICAgICAgICAzMjEgTUIv cyAgMTAxNSBNQi9zICAgICAgICAxNDY0ICAzNS43NCBkYXRhLy9kYXRhXzQNCiAgICA+PiBsejQg MS44LjAgICAgICAgICAgICAgICAgIDQ2NCBNQi9zICAxMDkwIE1CL3MgICAgICAgICA3MTMgIDE3 LjQxIGRhdGEvL2RhdGFfNQ0KICAgID4+IGx6NCAxLjguMCAgICAgICAgICAgICAgICAgMjk2IE1C L3MgICA5NTYgTUIvcyAgICAgICAgMTU5NyAgMzguOTkgZGF0YS8vZGF0YV82DQogICAgPj4gbHo0 IDEuOC4wICAgICAgICAgICAgICAgICAzMzggTUIvcyAgIDk5NCBNQi9zICAgICAgICAyMjM4ICA1 NC42NCBkYXRhLy9kYXRhXzcNCiAgICA+PiBsejQgMS44LjAgICAgICAgICAgICAgICAgIDcwNSBN Qi9zICAxMTcyIE1CL3MgICAgICAgICAxOTMgICA0LjcxIGRhdGEvL2RhdGFfOA0KICAgID4+IGx6 NCAxLjguMCAgICAgICAgICAgICAgICAgNDA0IE1CL3MgIDExNTAgTUIvcyAgICAgICAgMTA5NyAg MjYuNzggZGF0YS8vZGF0YV85DQogICAgPj4gbHo0IDEuOC4wICAgICAgICAgICAgICAgICAyMTYg TUIvcyAgIDkyMSBNQi9zICAgICAgICAzMTgzICA3Ny43MSBkYXRhLy9kYXRhXzEwDQogICAgPj4g bHo0IDEuOC4wICAgICAgICAgICAgICAgICA0NTYgTUIvcyAgMTEwMSBNQi9zICAgICAgICAxMDEx ICAyNC42OCBkYXRhLy9kYXRhXzExDQogICAgPj4gbHo0IDEuOC4wICAgICAgICAgICAgICAgICA4 NjcgTUIvcyAgMTIwMiBNQi9zICAgICAgICAgIDM3ICAgMC45MCBkYXRhLy9kYXRhXzEyDQogICAg Pj4gDQogICAgPj4gDQogICAgPj4gTFo0IER5bmFtaWMgT2ZmZXQ6ICANCiAgICA+PiBzaC0zLjIj IC4vbHpiZW5jaCAgLXIgIC1lbHo0X2R5biAgZGF0YS8NCiAgICA+PiBsemJlbmNoIDEuNy4zICgz Mi1iaXQgTGludXgpICAgQXNzZW1ibGVkIGJ5IFAuU2tpYmluc2tpDQogICAgPj4gQ29tcHJlc3Nv ciBuYW1lICAgICAgICAgQ29tcHJlc3MuIERlY29tcHJlc3MuIENvbXByLiBzaXplICBSYXRpbyBG aWxlbmFtZQ0KICAgID4+IG1lbWNweSAgICAgICAgICAgICAgICAgICAyMjAzIE1CL3MgIDIyMTgg TUIvcyAgICAgICAgNDA5NiAxMDAuMDAgZGF0YS8vZGF0YV8xDQogICAgPj4gbHo0IDEuOC4wICAg ICAgICAgICAgICAgICAyMTggTUIvcyAgIDY5MyBNQi9zICAgICAgICAyMjI4ICA1NC4zOSBkYXRh Ly9kYXRhXzENCiAgICA+PiBsejQgMS44LjAgICAgICAgICAgICAgICAgIDI3MyBNQi9zICAgODUx IE1CL3MgICAgICAgIDE3MzkgIDQyLjQ2IGRhdGEvL2RhdGFfMg0KICAgID4+IGx6NCAxLjguMCAg ICAgICAgICAgICAgICAgMjMwIE1CL3MgICA1MjYgTUIvcyAgICAgICAgMTgwMCAgNDMuOTUgZGF0 YS8vZGF0YV8zDQogICAgPj4gbHo0IDEuOC4wICAgICAgICAgICAgICAgICAzMjEgTUIvcyAgIDk1 MiBNQi9zICAgICAgICAxMzU3ICAzMy4xMyBkYXRhLy9kYXRhXzQNCiAgICA+PiBsejQgMS44LjAg ICAgICAgICAgICAgICAgIDQ3MCBNQi9zICAxMDc1IE1CL3MgICAgICAgICA2NjQgIDE2LjIxIGRh dGEvL2RhdGFfNQ0KICAgID4+IGx6NCAxLjguMCAgICAgICAgICAgICAgICAgMzAzIE1CL3MgICA5 NjQgTUIvcyAgICAgICAgMTQ1NSAgMzUuNTIgZGF0YS8vZGF0YV82DQogICAgPj4gbHo0IDEuOC4w ICAgICAgICAgICAgICAgICAzNDUgTUIvcyAgIDk1MSBNQi9zICAgICAgICAyMTI2ICA1MS45MCBk YXRhLy9kYXRhXzcNCiAgICA+PiBsejQgMS44LjAgICAgICAgICAgICAgICAgIDc0NCBNQi9zICAx MTYzIE1CL3MgICAgICAgICAxNzcgICA0LjMyIGRhdGEvL2RhdGFfOA0KICAgID4+IGx6NCAxLjgu MCAgICAgICAgICAgICAgICAgNDA5IE1CL3MgIDEyNTcgTUIvcyAgICAgICAgMTAzMyAgMjUuMjIg ZGF0YS8vZGF0YV85DQogICAgPj4gbHo0IDEuOC4wICAgICAgICAgICAgICAgICAyMjAgTUIvcyAg IDg1NyBNQi9zICAgICAgICAzMDQ5ICA3NC40NCBkYXRhLy9kYXRhXzEwDQogICAgPj4gbHo0IDEu OC4wICAgICAgICAgICAgICAgICA0NjQgTUIvcyAgMTEwNSBNQi9zICAgICAgICAgOTM0ICAyMi44 MCBkYXRhLy9kYXRhXzExDQogICAgPj4gbHo0IDEuOC4wICAgICAgICAgICAgICAgICA4NzQgTUIv cyAgMTE5NCBNQi9zICAgICAgICAgIDM2ICAgMC44OCBkYXRhLy9kYXRhXzEyDQogICAgPj4gDQog ICAgPj4gDQogICAgPj4gTFo0IER5bmFtaWMgT2Zmc2V0IHdpdGggMzJLIGRhdGE6DQogICAgPj4g c2gtMy4yIyAuL2x6YmVuY2ggLWVsejRfZHluIGRhdGEvZGF0YTMyaw0KICAgID4+IGx6YmVuY2gg MS43LjMgKDMyLWJpdCBMaW51eCkgICBBc3NlbWJsZWQgYnkgUC5Ta2liaW5za2kNCiAgICA+PiBD b21wcmVzc29yIG5hbWUgICAgICAgICBDb21wcmVzcy4gRGVjb21wcmVzcy4gQ29tcHIuIHNpemUg IFJhdGlvIEZpbGVuYW1lDQogICAgPj4gbWVtY3B5ICAgICAgICAgICAgICAgICAgIDUyODUgTUIv cyAgNTI4MyBNQi9zICAgICAgIDMyNzY4IDEwMC4wMCBkYXRhL2RhdGEzMmsNCiAgICA+PiBsejQg MS44LjAgICAgICAgICAgICAgICAgIDI3NCBNQi9zICAgOTk1IE1CL3MgICAgICAgMTM0MzUgIDQx LjAwIGRhdGEvZGF0YTMyaw0KICAgID4+IGRvbmUuLi4gKGNJdGVycz0xIGRJdGVycz0xIGNUaW1l PTEuMCBkVGltZT0yLjAgY2h1bmtTaXplPTE3MDZNQiBjU3BlZWQ9ME1CKQ0KICAgID4+IA0KICAg ID4+IE9yaWdpbmFsIExaNCB3aXRoIDMySyBkYXRhOg0KICAgID4+IHNoLTMuMiMgLi9semJlbmNo X29yaWcgLWVsejQgZGF0YS9kYXRhMzJrDQogICAgPj4gbHpiZW5jaCAxLjcuMyAoMzItYml0IExp bnV4KSAgIEFzc2VtYmxlZCBieSBQLlNraWJpbnNraQ0KICAgID4+IENvbXByZXNzb3IgbmFtZSAg ICAgICAgIENvbXByZXNzLiBEZWNvbXByZXNzLiBDb21wci4gc2l6ZSAgUmF0aW8gRmlsZW5hbWUN CiAgICA+PiBtZW1jcHkgICAgICAgICAgICAgICAgICAgNDkxOCBNQi9zICA1MTA4IE1CL3MgICAg ICAgMzI3NjggMTAwLjAwIGRhdGEvZGF0YTMyaw0KICAgID4+IGx6NCAxLjguMCAgICAgICAgICAg ICAgICAgMjc2IE1CL3MgIDEwNDUgTUIvcyAgICAgICAxNDQ5MiAgNDQuMjMgZGF0YS9kYXRhMzJr DQogICAgPj4gDQogICAgPj4gTFpPMXggd2l0aCAzMksgZGF0YSAoRGVmYXVsdCBDb21wcmVzc29y IGZvciBaUkFNKTogDQogICAgPj4gc2gtMy4yIyAuL2x6YmVuY2ggLWVsem8xeCwxIGRhdGEvZGF0 YTMyaw0KICAgID4+IGx6YmVuY2ggMS43LjMgKDMyLWJpdCBMaW51eCkgICBBc3NlbWJsZWQgYnkg UC5Ta2liaW5za2kNCiAgICA+PiBDb21wcmVzc29yIG5hbWUgICAgICAgICBDb21wcmVzcy4gRGVj b21wcmVzcy4gQ29tcHIuIHNpemUgIFJhdGlvIEZpbGVuYW1lDQogICAgPj4gbWVtY3B5ICAgICAg ICAgICAgICAgICAgIDUyNzMgTUIvcyAgNTMyMCBNQi9zICAgICAgIDMyNzY4IDEwMC4wMCBkYXRh L2RhdGEzMmsNCiAgICA+PiBsem8xeCAyLjA5IC0xICAgICAgICAgICAgIDI4MyBNQi9zICAgNDY1 IE1CL3MgICAgICAgMTQyOTIgIDQzLjYyIGRhdGEvZGF0YTMyaw0KICAgIA0KICAgIA0KICAgIFRo YW5rcywNCiAgICBNYW5pbmRlciBTaW5naA0KICAgICANCiAgICANCg0K