From: liushuoran Subject: RE: Kernel panic - encryption/decryption failed when open file on Arm64 Date: Mon, 12 Sep 2016 02:16:30 +0000 Message-ID: <00B10D30F2BAA743B48953A4D86C96D54C8A8A@SZXEMI506-MBS.china.huawei.com> References: <57D15BD3.40903@huawei.com> <20160908124709.GA26586@gondor.apana.org.au> <57D28CB8.4080904@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Cc: Herbert Xu , "David S. Miller" , "Theodore Ts'o" , Jaegeuk Kim , "nhorman@tuxdriver.com" , "mh1@iki.fi" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Wangbintian , Huxinwei , "zhangzhibin (C)" To: Ard Biesheuvel , Xiakaixu Return-path: In-Reply-To: Content-Language: zh-CN Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-crypto.vger.kernel.org SGkgQXJkLA0KDQpUaGFua3MgZm9yIHRoZSBwcm9tcHQgcmVwbHkuIFdpdGggdGhlIHBhdGNoLCB0 aGVyZSBpcyBubyBwYW5pYyBhbnltb3JlLiBCdXQgaXQgc2VlbXMgdGhhdCB0aGUgZW5jcnlwdGlv bi9kZWNyeXB0aW9uIGlzIG5vdCBzdWNjZXNzZnVsIGFueXdheS4NCg0KQXMgSGVyYmVydCBwb2lu dHMgb3V0LCAiSWYgdGhlIHBhZ2UgYWxsb2NhdGlvbiBmYWlscyBpbiBibGtjaXBoZXJfd2Fsa19u ZXh0IGl0J2xsIHNpbXBseSBzd2l0Y2ggb3ZlciB0byBwcm9jZXNzaW5nIGl0IGJsb2NrIGJ5IGJs b2NrIi4gU28gZG9lcyB0aGF0IG1lYW4gdGhlIGVuY3J5cHRpb24vZGVjcnlwdGlvbiBzaG91bGQg YmUgc3VjY2Vzc2Z1bCBldmVuIGlmIHRoZSBwYWdlIGFsbG9jYXRpb24gZmFpbHM/IFBsZWFzZSBj b3JyZWN0IG1lIGlmIEkgbWlzdW5kZXJzdGFuZCBhbnl0aGluZy4gVG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say5pdiwNCj4gPj4gICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmaXJzdCk7DQo+ID4+ICAgICAgICAgLi4uDQo+ ID4+ICAgICAgICAgICAgICAgICBlcnIgPSBibGtjaXBoZXJfd2Fsa19kb25lKGRlc2MsICZ3YWxr LA0KPiA+PiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB3YWxrLm5i eXRlcyAlDQo+IEFFU19CTE9DS19TSVpFKTsNCj4gPj4gICAgICAgICB9DQo+ID4+ICAgICAgICAg aWYgKG5ieXRlcykNCj4geyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAtLS0tPg0KPiA+PiBlbnRlciB0aGlzIGlmKCkgc3RhdGVtZW50DQo+ID4+ICAgICAg ICAgICAgICAgICB1OCAqdGRzdCA9IHdhbGsuZHN0LnZpcnQuYWRkciArIGJsb2NrcyAqIEFFU19C TE9DS19TSVpFOw0KPiA+PiAgICAgICAgICAgICAgICAgdTggKnRzcmMgPSB3YWxrLnNyYy52aXJ0 LmFkZHIgKyBibG9ja3MgKiBBRVNfQkxPQ0tfU0laRTsNCj4gPj4gICAgICAgICAuLi4NCj4gPj4N Cj4gPj4gICAgICAgICAgICAgICAgIGFlc19jdHJfZW5jcnlwdCh0YWlsLCB0c3JjLCAodTggKilj dHgtPmtleV9lbmMsIHJvdW5kcywNCj4gPj4gLS0tLT4gdGhlIHRoZSBzZW5jb25kIGlucHV0IHBh cmFtZXRlciBpcyBOVUxMLCBzbyBjcmFzaC4uLg0KPiA+PiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIGJsb2Nrcywgd2Fsay5pdiwgZmlyc3QpOw0KPiA+PiAgICAgICAgIC4uLg0KPiA+ PiAgICAgICAgIH0NCj4gPj4gICAgICAgICAuLi4NCj4gPj4gfQ0KPiA+Pg0KPiA+Pg0KPiA+PiBJ ZiB0aGUgcGFnZSBhbGxvY2F0aW9uIGZhaWxlZC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