Received: from list by lists.gnu.org with archive (Exim 4.71) id 1erQdQ-0004cN-Ja for mharc-grub-devel@gnu.org; Thu, 01 Mar 2018 11:00:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erQdO-0004aL-21 for grub-devel@gnu.org; Thu, 01 Mar 2018 11:00:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erQdK-00049D-7t for grub-devel@gnu.org; Thu, 01 Mar 2018 11:00:42 -0500 Received: from outpost5.zedat.fu-berlin.de ([130.133.4.89]:60632) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1erQdK-00048d-0Y for grub-devel@gnu.org; Thu, 01 Mar 2018 11:00:38 -0500 Received: from relay1.zedat.fu-berlin.de ([130.133.4.67]) by outpost.zedat.fu-berlin.de (Exim 4.85) with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1erQdI-001hI5-6D>; Thu, 01 Mar 2018 17:00:36 +0100 Received: from z6.physik.fu-berlin.de ([160.45.32.137] helo=z6) by relay1.zedat.fu-berlin.de (Exim 4.85) with esmtps (TLSv1.2:AES256-GCM-SHA384:256) (envelope-from ) id <1erQdI-002E5h-35>; Thu, 01 Mar 2018 17:00:36 +0100 Received: from glaubitz by z6 with local (Exim 4.90_1) (envelope-from ) id 1erQdD-0003n7-HG; Thu, 01 Mar 2018 17:00:31 +0100 From: John Paul Adrian Glaubitz To: grub-devel@gnu.org Cc: eric.snowberg@oracle.com, 891773@bugs.debian.org Subject: [PATCH v2] ieee1275: Fix crash in of_path_of_nvme when of_path is empty Date: Thu, 1 Mar 2018 17:00:27 +0100 Message-Id: <20180301160028.13057-1-glaubitz@physik.fu-berlin.de> X-Mailer: git-send-email 2.16.2 X-Originating-IP: 160.45.32.137 X-ZEDAT-Hint: R X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 130.133.4.89 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Mar 2018 16:00:43 -0000 Hi! We have recently backported the upstream changes to Debian's grub2 package to support modern SPARC hardware for Debian's sparc64 port. One of the changes introduced a regression on systems with NVME devices which are not based on Open Firmware. On these systems, find_obppath returns an empty string and trying to append the disk name to that empty name results in a crash in of_path_of_nvme. Fix that by making sure of_path isn't empty and if it is, just return the disk name in of_path_of_nvme. Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891773 Thanks, Adrian