From nobody Sun Jan 23 19:15:57 2022 X-Original-To: standards@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A3109195AA0F for ; Sun, 23 Jan 2022 19:15:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JhjWf0MvMz3Hpn for ; Sun, 23 Jan 2022 19:15:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9DCE32765A for ; Sun, 23 Jan 2022 19:15:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 20NJFvZM071760 for ; Sun, 23 Jan 2022 19:15:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20NJFvix071759 for standards@FreeBSD.org; Sun, 23 Jan 2022 19:15:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 255072] boot (legacy): no progress beyond 'BIOS DRIVE D: is disk1' Date: Sun, 23 Jan 2022 19:15:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: spell@itl.ua X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642965358; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SBjv4BA8QlwqjB8I6pqS93FyWuE0qG4REVf/RHD3qYM=; b=D3Y+/fXarGQYdgUA7FRhrjKqbr+x90Vkc8E9XD9qbcjC4x3aIt7GKNLGnch74hxyc7KprB K0zrXCRYQzZ+XeG65cnfYie2Hk+hksJIsE4ndIVGwzo4mg172J3tq7h0OCzcLxSezzrX3H Lxf0iHcEBYot1iuoh/fMjyZRFanax43jYB36SORhwcJ6DIW9ivh7pDZwO9ieAll1GSbR/X bfk2wLyy+bfAsemIDXNP+akqsgVzJX/Tz/N91G4qFex0J5v3OF2jjX3kPkJUO2wIzELtVN Mo0ieqvTLoq2CeVcM+vZoaifGymckmekzbuuT7iSEwdGRFyecuzd+Lz45oVrmQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642965358; a=rsa-sha256; cv=none; b=jfQbvGUooz1z4nqHBPm5P++qC9MTJ6LQBtDeD6edgrbnNcB144C+9N/8Uk/3Qx1qCw5u4v frSc+SZkU8CuPneYqTR8DDsGX3Y5drk1EPqGTezVo+Rd3XFuATqAmoUqGtuXAMfXMqMUpW uPay7okXzSzbQI9EFKpgMYACcGG/itPOth73HYJZhXHrS3bwltsC2g8NoeO0bM8MXwdvEH 3pomCjkjxzh27ddGclIRRZI9RUxePyn+qjvY8hrjQxUNj8+renq3NLkv2+OxxsgYvpe/Ad IMf0JydWdlwNvMbcfLBQMKw8cWlgQ1+iVKWVQrjKLYEQ+27/hwCFvToOumKVtw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255072 --- Comment #36 from spell@itl.ua --- Seems caught it. The crash occurs inside bd_edd_io(), wich calls BTX-owned int 31h which in = turn calls BIOS-owned int 13h, and it comes this last int is the one who do fail. The matter why this is so difficult to catch it is it crashes randomly. Wit= h no obvious differences in environment it may succeed or crash, approximately 9= 9/1. 11.2 loader crashes too, though very rarely. The rule is: more int 13h during loader run - more crash chance. By default 11.2 loader does not enter zfs probing stage and so requests only two or three int 13h per disk. With zfs probing (which is on by default in 12.3) the count of these requests is about a hundred, so the chance to cras= h is much bigger. Didn't try all the functions of int 13h but at least CMD_READ_LBA, CMD_READ= _CHS and one of CMD_CHECK_EDD, CMD_EXT_PARAM lead to the crash. These are my tests that proof this statement: 12.3 loader: I've added for(i=3D0; i<100; i++) with identical bd_edd_io() c= alls right after the original bd_edd_io() call, and the crash occurs inside of t= his bunch of calls (every time on different i value). 11.2 loader: The same with bd_int13probe(). The loader crashes every time on this or that i value. --=20 You are receiving this mail because: You are the assignee for the bug.=