From nobody Thu Sep 15 00:44:40 2022 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 4MSdkx2GGKz4cdtV for ; Thu, 15 Sep 2022 00:44:41 +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 4MSdkx0JV3z40sc for ; Thu, 15 Sep 2022 00:44:41 +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 4MSdkw6N2WzrBx for ; Thu, 15 Sep 2022 00:44:40 +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 28F0ie74041932 for ; Thu, 15 Sep 2022 00:44:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 28F0ie5K041931 for bugs@FreeBSD.org; Thu, 15 Sep 2022 00:44:40 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: bugs@FreeBSD.org Subject: [Bug 266419] mrsas corrupts memory when reading data from NVMe disk attached to PERC H755N controller Date: Thu, 15 Sep 2022 00:44:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bcran@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663202681; 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; bh=PrWm2Be2vmwGuitY5KNrNP3pZ8P6x7JZtBhuZChofFQ=; b=i+2UKJgF5iTREQvxf1hH+m3nKctuFEZsYtlYi9Ol/BbiB7fY/8T2CHKC3ClKy77wWQK/+7 RBrL+fbXZcgZ+Ezm6Bq3dEDvcqbFkhO8F9EH7OOAyP7T9U9fVSGzP5v9KW2hN6yVpbjnNQ HyRJN+zdOC5of+Aj9DqsuiNtBbc7hzpIQCmF18IF/TGipoosFIcnA4iMrEivT5at+F1Vtd NQAD3mAD6opRGIl1yaFOfz/whU/tfhyuBFbkUeEVl4WLl/TEh0hOdGxvCjTWPQ+vzmnbal 4roeYMw/TgPRJPDjd/nqLubWtdWfohg7JHXB13OwW3yhvH+aZCq9H/hJGjv6Ng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663202681; a=rsa-sha256; cv=none; b=v6YwjZ9chEiSBIu+KKpjGnbkLtf6ATeUS8yxNOqFdxZL8hBjJ2gZE265cmfHupnbbJ1bu+ bv5UXMXfQsV4Gu2pWZ94pJqqv5POm90M/GammqC76+67YCRlMNhUKJAIKc3SAD3ZfQrHYZ oJxbo3yOaE9vquDZ/7OeQ1pXmDmKGgaG4l0a6a2f5OniRX1lu+3bkZCCK49AO5Z7+s+F12 Z7MigxMLVUdW7rqapD0mIvSFgxPT2NXUVUjNbWZz9ka6GzO5YDrURTuy76drr9ECXLILXV WPxjCuFLjz39kd1mc4taCWB/U5RT8XAgovMsXeswp0lzBQdHoYa6zYhNpGPfcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266419 Bug ID: 266419 Summary: mrsas corrupts memory when reading data from NVMe disk attached to PERC H755N controller Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: bcran@FreeBSD.org Created attachment 236559 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D236559&action= =3Dedit Dell PowerEdge R7525 FreeBSD 14-CURRENT dmesg On my Dell PowerEdge R7525 with a PERC H755N controller with 5 attached NVMe disks, reading from /dev/da0 causes a panic. I'm running: FreeBSD 14.0-CURRENT #0 main-n257957-975407b1d8d-dirty: Wed Sep 14 17:16:= 44 MDT 2022 FreeBSD sees the controller as: AVAGO MegaRAID SAS FreeBSD mrsas driver version: 07.709.04.00-fbsd mrsas0: port 0x2000-0x20ff mem=20 The following command triggers the panic: dd if=3D/dev/da0 of=3D/dev/null bs=3D1M Sometimes it just causes various processes to segfault (e.g. fsck_msdosfs, logger, csh), other times it causes a panic, such as "Memory modified after free", or "_sleep: curthread not running" I've attached the full dmesg, and will also attach the kernel dump informat= ion when it finishes. --=20 You are receiving this mail because: You are the assignee for the bug.=