Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753776AbdHOLA5 (ORCPT ); Tue, 15 Aug 2017 07:00:57 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:56987 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753664AbdHOLAy (ORCPT ); Tue, 15 Aug 2017 07:00:54 -0400 X-IronPort-AV: E=Sophos;i="5.41,377,1498489200"; d="scan'208";a="253549236" From: Chris Brandt To: Nicolas Pitre CC: Alexander Viro , "linux-fsdevel@vger.kernel.org" , "linux-embedded@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 0/5] cramfs refresh for embedded usage Thread-Topic: [PATCH 0/5] cramfs refresh for embedded usage Thread-Index: AQHTEtdFT0/wwlN9sk6l1Kak7eVmpaKEGObggAAH1ICAAAY+sIAABmYAgAAD8RCAAKHFAIAAcXMQ Date: Tue, 15 Aug 2017 11:00:49 +0000 Message-ID: References: <20170811192252.19062-1-nicolas.pitre@linaro.org> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Chris.Brandt@renesas.com; x-originating-ip: [75.60.247.61] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SG2PR06MB1168;20:X7nsN7sYun0LQc5VgCfkesLHdg9kentCVGyfKNjCWlMdMUPRG7aXeOgejxnOaQhUMs8Lvm5KlZjZiUhLr3fIPiquhkPGHtg5yUa20TNJuzdTP1nfmLmUCWzukH1KE7U8w0R1eHOSYDvjQISjr3VlPP8MfCB1CLetRYK1sCL/IUU= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 4d8a39c6-7295-4d33-7ac7-08d4e3cce38f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:SG2PR06MB1168; x-ms-traffictypediagnostic: SG2PR06MB1168: x-exchange-antispam-report-test: UriScan:; x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123560025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:SG2PR06MB1168;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:SG2PR06MB1168; x-forefront-prvs: 04004D94E2 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39860400002)(199003)(189002)(24454002)(6116002)(3846002)(102836003)(2900100001)(110136004)(6246003)(55016002)(99286003)(53936002)(54906002)(9686003)(81166006)(74316002)(7736002)(81156014)(8936002)(8676002)(305945005)(2906002)(86362001)(3280700002)(3660700001)(33656002)(229853002)(478600001)(106356001)(76176999)(54356999)(189998001)(14454004)(50986999)(5250100002)(4326008)(25786009)(6436002)(5660300001)(7696004)(97736004)(6506006)(93886004)(72206003)(68736007)(101416001)(2950100002)(66066001)(105586002)(6916009);DIR:OUT;SFP:1102;SCL:1;SRVR:SG2PR06MB1168;H:SG2PR06MB1165.apcprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Aug 2017 11:00:49.4247 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB1168 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v7FB10p9022867 Content-Length: 1567 Lines: 38 On Tuesday, August 15, 2017 1, Nicolas Pitre wrote: > I was able to reproduce. The following patch on top should partially fix > it. I'm trying to figure out how to split a vma and link it properly in > the case the vma cannot be mapped entirely. In the mean time shared libs > won't be XIP. > > > diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c > index 5aedbd224e..4c7f01fcd2 100644 > --- a/fs/cramfs/inode.c > +++ b/fs/cramfs/inode.c Yes, now I can boot with my rootfs being a XIP cramfs. However, like you said, libc is not XIP. $ cat /proc/self/maps 00008000-000a1000 r-xp 1b005000 00:0c 18192 /bin/busybox 000a9000-000aa000 rw-p 00099000 00:0c 18192 /bin/busybox 000aa000-000ac000 rw-p 00000000 00:00 0 [heap] b6ed8000-b6fb1000 r-xp 00000000 00:0c 766540 /lib/libc-2.18-2013.10.so b6fb1000-b6fb9000 ---p 000d9000 00:0c 766540 /lib/libc-2.18-2013.10.so b6fb9000-b6fbb000 r--p 000d9000 00:0c 766540 /lib/libc-2.18-2013.10.so b6fbb000-b6fbc000 rw-p 000db000 00:0c 766540 /lib/libc-2.18-2013.10.so b6fbc000-b6fbf000 rw-p 00000000 00:00 0 b6fbf000-b6fd6000 r-xp 00000000 00:0c 670372 /lib/ld-2.18-2013.10.so b6fd9000-b6fda000 rw-p 00000000 00:00 0 b6fdb000-b6fdd000 rw-p 00000000 00:00 0 b6fdd000-b6fde000 r--p 00016000 00:0c 670372 /lib/ld-2.18-2013.10.so b6fde000-b6fdf000 rw-p 00017000 00:0c 670372 /lib/ld-2.18-2013.10.so be81f000-be840000 rw-p 00000000 00:00 0 [stack] beb19000-beb1a000 r-xp 00000000 00:00 0 [sigpage] ffff0000-ffff1000 r-xp 00000000 00:00 0 [vectors] Chris