From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 11112 invoked from network); 31 Mar 2020 17:42:50 -0000 Received-SPF: pass (mother.openwall.net: domain of lists.openwall.com designates 195.42.179.200 as permitted sender) receiver=inbox.vuxu.org; client-ip=195.42.179.200 envelope-from= Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with UTF8ESMTPZ; 31 Mar 2020 17:42:50 -0000 Received: (qmail 29745 invoked by uid 550); 31 Mar 2020 17:42:48 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 29727 invoked from network); 31 Mar 2020 17:42:48 -0000 Date: Tue, 31 Mar 2020 13:42:36 -0400 From: Rich Felker To: musl@lists.openwall.com Message-ID: <20200331174236.GX11469@brightrain.aerifal.cx> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] User mode linux error when compiled with musl On Mon, Mar 30, 2020 at 07:21:48PM +0200, Johann Hanne wrote: > Hi, > > I'm compiling user mode linux (kernel 5.5) against musl (toolchain > from musl.cc, tried gcc 6 and gcc 9) and getting the following error > when booting: > -- > Run /init as init process > userspace - ptrace set fp regs failed, errno = 14 > Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b > -- > > build command: make ARCH=um LD_FLAGS_CMDLINE="-static" > CROSS_COMPILE=x86_64-linux-musl- > > run command: ./linux initrd=test.cpio.gz > > test.cpio.gz contains a statically linked "Hello world" init, which > works when UML is built against the host cc with glibc (Ubuntu > 16.04, gcc 5, also with "-static"). > > Any ideas? Sorry, I don't have any and don't know enough about how UML works to have a good guess. I'd start by trying to identify exactly where that error message is coming from (probably somewhere in kernel code) and look for what leads up to it. Rich