From nobody Wed Jan 22 20:04:54 2025 X-Original-To: fs@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 4YdZmk3mt0z5l0Hd for ; Wed, 22 Jan 2025 20:04:54 +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 4YdZmk37G7z3DBY for ; Wed, 22 Jan 2025 20:04:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737576294; 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=Ask8X0VR5oHQMPv2xxqGrTwMgR5q6Kw7COkwELtoJaE=; b=dKQLYRgxNid7ReSKq/t3SiufXiKdqtOAj7yFrsl4e2K2hGhZJ3ATTE+HGk9oQz9M5FqqrB Pp0yfiX1Jk5QhSM3VKIlmpmwbF8gTaFtlDSWolc0pmfUUMtFYuuTVuzx51QqpgJ7zI59F5 RU8h8Zlu+U+/JvvrsiGZLwUtWYLuLccYCpF9ebL6mh3Wh41SkJzF0jRAws+tEGx9q6Etn7 +16hIN1sVwCcqOZ9v8ONRu7g72axeUHjKr09/aT6l45uIA90aQxUKJJePcftLsw6NQzS75 FscwKKq1j0iZoAdrg2LLHgcUfAeRIlw6weDc/LdS1Fwu0B5rbjrj3IXNAP/Rsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737576294; 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=Ask8X0VR5oHQMPv2xxqGrTwMgR5q6Kw7COkwELtoJaE=; b=RDId03OdJdNlLxiaPc39s4/8FVSjEpruigIicFh7AwRyNWE4jTZVGA+u8w4aQGsr7ytOI4 +wJmzbUOoWbuZPraMYm0woN0BmLDULLp12qFKsXpyI5SsOJauu45+lZ4xMH6mT07u4R4OM 7ecPCXAB8HOoLVsU01hO08b1h9iOt/QpcvVy0e9uBPkT7lUpCRbvAFY1btgi6q3F6bM5rP eGPciFP3XoSWmSYdProWWUE24n1HF7YtCC5Lk97Vq2udtiSxUb5gq2NJDxcGDSnygqR14i WFvhC+OCJdDMv4wdFsLiWwV5mo7znMSzWrfOxJejy3os88KQ4MYsP0rhMtD9jg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737576294; a=rsa-sha256; cv=none; b=jynl1F5E4OZ0rEv9sUgpxhuCwNDfSgM9Bs4ZCZOMAZncijzaV0uHJbeYwL+Qn4SBZVYNVv 6PDm9eiILv0dfpSDz6HcWDE/P+F/gTvx3HVq+n1Q9VSI4FHekjBfDDh3QcqgKfmVn9rlu2 OUXQ+ViLcPOgP8RyLO7P5JSey6gABeDJB28hYCyTK4Z+9pekJxghNB9SkHh1jLoMQG4yPp ymw4HG/LrD//JPlEi/8VePw9GkkPPRPSgzrfXOp5hlo5iq6bPPv9y86IWDss0xI260Z9/i 9lQSUWPH7AwDh7opqPhKNTm1M2ZTWIwhvmZKuPme2i9GXOgej2X0xx+bgQIAIQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YdZmk1trMz16CN for ; Wed, 22 Jan 2025 20:04:54 +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 50MK4sA4079316 for ; Wed, 22 Jan 2025 20:04:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50MK4srD079315 for fs@FreeBSD.org; Wed, 22 Jan 2025 20:04:54 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: fs@FreeBSD.org Subject: [Bug 281402] zfs: kmsan reports Uninitialized UMA memory from zio_data_buf_alloc Date: Wed, 22 Jan 2025 20:04:54 +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: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281402 --- Comment #6 from Mark Johnston --- (In reply to Alan Somers from comment #5) Oh, yes, that's quite possible if the accelerated routines are implemented = in assembly or use intrinsics, or there's some bug in the build which causes s= ome file(s) to be compiled without -fsanitize=3Dkernel-memory. I believe LLVM = has some ability to instrument inline asm blocks based on the input and output operand descriptions, not sure if that's relevant here. It should be possible to use kmsan_mark(buf, sz, KMSAN_STATE_INITED) to manually mark a region as initialized. You might also want to use kmsan_check() to ensure that the inputs are initialized. I presume that Linux's KMSAN has similar interfaces, but I'm not sure what those are. --=20 You are receiving this mail because: You are the assignee for the bug.=