From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938945AbcJXNKj (ORCPT ); Mon, 24 Oct 2016 09:10:39 -0400 Received: from mout.gmx.net ([212.227.15.18]:49693 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935319AbcJXNKh (ORCPT ); Mon, 24 Oct 2016 09:10:37 -0400 To: linux-kernel@vger.kernel.org From: Dennis Luehring Subject: better switch back to panic on initramfs.c/populate_rootfs errors? Message-ID: Date: Mon, 24 Oct 2016 15:10:34 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:iBCjpjqjaO7rf8D7XhY8+lRpNT+PKaPKc9qxwi58Ib8yBjd6tjq zc5LDstCmhbTRQqJ31qWpAnotuDLu+iMOlf1eG1lIt54FQpRonqeTBhRSvWye7rGU7z7P1O hJfZlhuRPVfd4CIDF32hwyj1aVet/ghNULYXKHYTJyutXgEk8C7DQddpB4J35yQP0lXU1C8 ZACqmkx+nrYSwJHLmrBDw== X-UI-Out-Filterresults: notjunk:1;V01:K0:EroaY8St950=:ZAHc+FLkd/dgdosugKyts4 TrwZdLckpYeCl2q04XT7WFeyFIniuByGzyaknmTiXe3W4h+0FyjE4dT+BtnU7AV29kgYp+NV0 WnpqBrz3/uOGyU5K+CnoDzvno9umLwwhpcbC6BSjszpshxrMY5hN0xUVqBNeJs2eW3rdbCYaS Hj9u4AN48P5m59XxTlN1osvwfFdFb9JaJkYAph4Gv0gVl8hWGNQi1FBYVV6bxrJ8ghBPmMXw5 LXotpAl1Hz9j1Pd+J2yasXzAKRbSxdHeX/xl/VUvU83Fkmxec4weIknYJe7nAzyn2SqYXkCzh Df2jl8do52btj/anYurGGl4JLiVwuidQRuK65vRv96ORBYxJAwwHhCCEK6jggn5c3jf/0ecCz Oi+tGo8eoAHrQQ/tuwTo/wCXjM0B5MmftiCucIJtWer84htgm+QBQRvSPTTIEiNFB35Ll51QV pOynTObg96GVoc5VVAq6C2szoWPzA+5h5acNSoCrB+y/3EUa/08r0tmbsFjd2RTR6tHZ0Hlq4 iIIeSKTxmPCWoQkBgMXmaOAkiwKSZieO8aYx+AZZH96jQwAkkI3+6CoVNV2XxatyhQekXg7q0 QcEtAkIfheakVjeM2dzMEdYhqYJShkJM0RvmmcwxD8YxbRRWa+kbnA9qa79d+pYISBqBiILOj tA7GkjoE2isCGpb3rZF221q4xo+2EU34Sd4ubPw78h4v7h8m+EYOa3vE4LUugKtrMtJtobrW/ 6sipxNbQD+fCpIhPJL7q+yQAKs9C1+WxtAcFOHyZw2JTpbhSwHenA3RsKWnRiyWooJUh7GJUZ mfw7rIR Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org im building initrd/initramfs cpios for serveral qemu platforms and stumbled over inconsistent rootfs after kernel load using vanilla kernel 4.8.4(and older), bash 4.4, core-utils/linux-utils build with gcc 6.1 under Ubuntu 16.04.1 x64 (gcc 5.4) using a big(~370MB) initrd.cpio with not enough ram (1GB) in qemu i get this kernel message "Initramfs unpacking failed: write error" that sometimes led to missing files in my rootfs (thanks to "Richard Henderson"(DEC-Alpha maintainer) who directed me to the kernel log message - after searching for hours why some executables don't work after kernel load) using a small(~14MB) initrd.cpio with just a staticaly linked c based init for the kernel also with 1GB ram gives me this kernel message: "Initramfs unpacking failed: junk in compressed archive" both initrd.cpios are created with cpio (version 2.11) "find . | cpio -H newc -o initrd.cpio" why do the kernel not panic if not able to populate the roofs consistently? related to the panic i've found this commit (from 2009-01-14) that allows inconsistent rootfs https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/init/initramfs.c?id=73310a169aebe257efdd35a763cce1c7658f40c9 is that still a good idea/practise? to have initramfs recovery seems to be a rare case and a simple panic would help much better in many other common situations - or are the errors comming from unpack_to_rootfs() are currently not always errors but sometimes warnings where panic would be the wrong action to take? i don't know if both messages telling me that something bad happend and i need to fix it first or is the second just a warning? "Initramfs unpacking failed: write error" "Initramfs unpacking failed: junk in compressed archive" please direct me to the correct mailinglist (or person) that could answer this questions if im wrong here thx