From nobody Wed Oct 23 22:13:59 2024 X-Original-To: bugs@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 4XYjxh4YgHz5Zk5C for ; Wed, 23 Oct 2024 22:14:00 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XYjxg1DHmz4f9w for ; Wed, 23 Oct 2024 22:13:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729721639; 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=0YfWOvMy+KsTzl/WQER/Vh93eFeOemgV4jefJLrg3jg=; b=q3dnUn3AAqL7hfwRWO50x485LKcxcxSjV4gF1LYjUakr990Z6/lwmhbzV3Ytl1VYNG1Ykq hz0QFnu36jOEhFk4GLrMpV0hGFOb+jgbmb6WRG1uDeeQqApt6qLlNxgh5s4SnOQyrZceRy XaIy6kOEfv8Hpip6Ix7iD6hWGJ7pRF5qFfAr4nKDwGDAQm02/hZ2mkY18n8quDfv0RslW0 MWtPD/KilsVy2OQKM3bmrPzKpzv9eY7d8Puyeirp390lWcrj56cZLLdSYgNTOljRyiiwaC O4SFTQsMNu7wYCXbDF0Ouxpdk0zQhU876Duun+7dLU504cRNZEt1/eMA7zJRUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729721639; a=rsa-sha256; cv=none; b=OmUuk1ubsMnKGPGQzIjucFeGF+7Pdq8Z+oTJxjoN9Rv8yAx2WA24FD1O94pZkwt/HIkjkf xk7l29pbCzyh10AdDV31KzuwogEjsmbo7JBp6OEt9ssn5GuIlmyDWesNccriSNRnWcHlAp Ajth74lNFV+JWI0uzBOykqTAos0X5tEtKATk6bMg5oD8IOud5eVcqExhptBhC3nDVTln1F 4460mtgTtwWXEVKg+yyEzoPeqlgfk5VLfLoYlbXOY/jRbUWKlFpkCHM+oqERuR4P3przQ0 2lXYXvuIKYZi4o47g1dQX+BOu798fyrgu7+pFl5d1kaSYzzqbemceNMdG1HBCQ== 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 4XYjxg0SGSzGtX for ; Wed, 23 Oct 2024 22:13:59 +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 49NMDwO3018082 for ; Wed, 23 Oct 2024 22:13:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49NMDwEc018081 for bugs@FreeBSD.org; Wed, 23 Oct 2024 22:13:58 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 282268] linker_load_module() panics with KASAN during post-panic reboot Date: Wed, 23 Oct 2024 22:13:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: crash, loader X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282268 --- Comment #12 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Db5149b265346c55994c7ebaab2a6a6fd1= bd6fe5e commit b5149b265346c55994c7ebaab2a6a6fd1bd6fe5e Author: Mark Johnston AuthorDate: 2024-10-23 16:54:56 +0000 Commit: Mark Johnston CommitDate: 2024-10-23 22:12:45 +0000 linker: Handle a truncated hints file properly If vattr.va_size is 0, we will end up accessing invalid memory. This is mostly harmless (because malloc(0) still allocates some memory), but it triggers a KASAN report. PR: 282268 Reviewed by: christos, imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D47240 sys/kern/kern_linker.c | 4 ++++ 1 file changed, 4 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=