From nobody Fri Nov 22 14:05:09 2024 X-Original-To: dev-commits-src-main@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 4Xvxgn4Y9Dz5dwx9; Fri, 22 Nov 2024 14:05:09 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xvxgn3rMqz4xFF; Fri, 22 Nov 2024 14:05:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732284309; 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=WmckdWA3Ijae6H8OZrIX1mpOh4IKTqUEkPs8RQSaZ/k=; b=PmAZT4YknG7WIWOxUG48ieuxoiWNEA08kUeB8NOLO2qw+ZHQFXFrMER1cdCeS1/C8WUBAm PVDxWQwcmnVvuWZStcSxQ28DY1g1Au8LlhQHQvrO/CdPvcsP5y1Nlso7ah3xdm1IanB61C 9WXV2qJ9SBwpbUA/7rhjFrperM5nCGJ+Kw3gq7QFoaEZt43Eamc/uTLJsWdhPbrpPhMJ/L 8PHoMfv2FsR/EvAf2YMMMzYIIOxU9pS0aRENWERE3tcka7DdXqqqpM1wcYI40MP/OjoVKn O4V9RH5KWfoAnILmu1Q23AhNqELMv/LZdZPIuikj5L85A1dCrVSRZT9ZX4+XzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732284309; 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=WmckdWA3Ijae6H8OZrIX1mpOh4IKTqUEkPs8RQSaZ/k=; b=myPKqbN+hgVI6AuZ5sLgO5N68+Lex04tyyMWY8dLIIdSGFEtAwpjqsUQtR9Ix/iVVIQblf YFx7DeWPRsm4h4VJ97NjF397KvpD2YLJ5HnKMxc7nucQGN3hUVguIuIZqaQQh1QlyAK5RR 2RX9/3ygodUmadIus2IGK6BHlIthUmloYu6PEaLSnyj+FPk/0owZ85LaU1wI/HfS1Fe4rV o3vRFs27il/V0i0lVuULCJHIht05a9edgOu1gV8Wxsj019f7pPG+rKXVCsDzJouwe9TRgp lG1YMqWA6ml9az5+qyMH3sVg4RG2fo4C9RV0v6QMDTBoIMdI1cJNJTySSi0ZuA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732284309; a=rsa-sha256; cv=none; b=D/FTtT4oE2D4suDc5md2z+b/MCT1H5bXM8cBF9PWlEHnnj4QvqQEFXcHbXJ1Y5FikPM8+A xYTXmuUTczlCqZDeYHa8SQEYuUUcZySqxRJgieevWDAHlBoxHKqSvfbQOQRYZ0HI4eX6pV fyFIzw4x96XkFp890Y+F/gRZkGQFFMtKo/j+2edvWRGJSZx5//4Cm3ls1BuvUIjO2yhSfI nYuDy1SNz7yUzNieuGvMnctAKlcaargSZXY6FG6Fz/MscI7fKeIPLcpREBTUNpJbiAZ7nA a0IXv0hNOzKWtm5RXKmWx9z6ChQV2iKimeuYlj4r9sU66k0WNHJUj9pVuo9gqg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4Xvxgn3S1LzQjV; Fri, 22 Nov 2024 14:05:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AME597b065072; Fri, 22 Nov 2024 14:05:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AME59VH065069; Fri, 22 Nov 2024 14:05:09 GMT (envelope-from git) Date: Fri, 22 Nov 2024 14:05:09 GMT Message-Id: <202411221405.4AME59VH065069@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 418d8f0dc269 - main - dtrace: Address KMSAN warnings in dtrace_disx86 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 418d8f0dc269b314bba51de63869b20da1d9a76e Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=418d8f0dc269b314bba51de63869b20da1d9a76e commit 418d8f0dc269b314bba51de63869b20da1d9a76e Author: Mark Johnston AuthorDate: 2024-11-22 13:50:26 +0000 Commit: Mark Johnston CommitDate: 2024-11-22 14:03:40 +0000 dtrace: Address KMSAN warnings in dtrace_disx86 wbit was not being initialized in a couple of cases. Reported by: asomers MFC after: 2 weeks --- sys/cddl/dev/dtrace/x86/dis_tables.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/cddl/dev/dtrace/x86/dis_tables.c b/sys/cddl/dev/dtrace/x86/dis_tables.c index 1afadc94afc2..44c96437055b 100644 --- a/sys/cddl/dev/dtrace/x86/dis_tables.c +++ b/sys/cddl/dev/dtrace/x86/dis_tables.c @@ -3720,8 +3720,8 @@ dtrace_disx86(dis86_t *x, uint_t cpu_mode) x->d86_len = 0; x->d86_rmindex = -1; x->d86_error = 0; -#ifdef DIS_TEXT x->d86_numopnds = 0; +#ifdef DIS_TEXT x->d86_seg_prefix = NULL; x->d86_mnem[0] = 0; for (i = 0; i < 4; ++i) { @@ -4860,6 +4860,7 @@ mm_shift: dtrace_rex_adjust(rex_prefix, mode, NULL, &r_m); dtrace_get_operand(x, mode, r_m, LONG_OPND, vbit); dtrace_get_operand(x, REG_ONLY, reg, SEG_OPND, 1 - vbit); + wbit = SEG_OPND; break; /* @@ -5787,6 +5788,7 @@ xmmprm: #endif dtrace_rex_adjust(rex_prefix, mode, ®, &r_m); dtrace_get_operand(x, mode, r_m, BYTE_OPND, 0); + wbit = LONG_OPND; } break; @@ -6442,7 +6444,7 @@ done: else x->d86_memsize = dp->it_size; - } else if (wbit == 0) { + } else if (wbit == BYTE_OPND) { x->d86_memsize = 1; } else if (wbit == LONG_OPND) {