From nobody Thu Nov 21 23:06:53 2024 X-Original-To: freebsd-hackers@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 4XvYlb4yXmz5djsF for ; Thu, 21 Nov 2024 23:07:07 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XvYlZ6fCRz4Mb5 for ; Thu, 21 Nov 2024 23:07:06 +0000 (UTC) (envelope-from asomers@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of asomers@gmail.com designates 209.85.208.47 as permitted sender) smtp.mailfrom=asomers@gmail.com; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=freebsd.org (policy=none) Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5d0102fc7beso1209514a12.0 for ; Thu, 21 Nov 2024 15:07:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732230425; x=1732835225; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hf/QVpy1bW+JUfeB/enAiKfm/gt1J+LD/X+MK4Ne30s=; b=sBTZjqyJzoLCEP774yKW8G0XYBjP82L/CO3L1KbtncGrh5VOyRAd7JOqRSfHuvJEzP PY2aKmrQzkwH43egV97sN5TZGHq6cL0e0CFJHTL3KFI5hy1RV6uFYEz7SbzvMvQZTySQ Yq36+ivsTNinzmxycf8ZOZeCb9VrU/LWQQzUI8YwREhBhjQEqalZHh9lMC7CkWZZ813N jD3/5H+iceaoETUW9ss/NoSmHJLomMM5HoGHmULrptJ4uXTiSggIol7bLaenzHeXLcXy +5mVFeTTarDho7hxGKqIEHbKhVWVm7c31nMKVDImEqr9KasECO28osgOC0fOalTTV9IR DxjQ== X-Gm-Message-State: AOJu0YwoQRPeYhnNqanaGPPz7yo/CUrOqVKKMj8S4VXDYi8FQMyG4ZEm gUUf5BQa4CSJG+p5fQ+7Cv7tNnyS7o6FELopfV3TpkHsDyUCPSFZ/aEbVs7uzbSUOm5P3UI9+G9 M0uqPMwU7XLQFMhtOfJCYkJGK/9z6TXDb X-Gm-Gg: ASbGnctxf/IWsS6DS+R0W35ejbFVgwoYSkxIfsAB/B+UODXxXfAHYLYg+lPHHXFTLM9 LAf3fm+YE/oVI8K/fcPNRUoMKPfxo3XQ= X-Google-Smtp-Source: AGHT+IFF7ruwhFhXar4BZb1j5nNdGlPOS1kCblHx+TtXJZ2jMk3YkBrjqnb37McpdgfZP3KBeVIQd2YFVxMZ0dzFlFc= X-Received: by 2002:a05:6402:3788:b0:5cf:8dc1:9406 with SMTP id 4fb4d7f45d1cf-5d020641201mr328254a12.20.1732230424631; Thu, 21 Nov 2024 15:07:04 -0800 (PST) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 From: Alan Somers Date: Thu, 21 Nov 2024 16:06:53 -0700 Message-ID: Subject: KMSAN and dtrace To: FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" X-Spamd-Result: default: False [0.34 / 15.00]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; NEURAL_HAM_LONG(-0.88)[-0.878]; FORGED_SENDER(0.30)[asomers@freebsd.org,asomers@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; NEURAL_SPAM_SHORT(0.12)[0.122]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), No valid DKIM,none]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.47:from]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; FROM_NEQ_ENVFROM(0.00)[asomers@freebsd.org,asomers@gmail.com]; MISSING_XM_UA(0.00)[]; R_DKIM_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.47:from]; TO_DOM_EQ_FROM_DOM(0.00)[]; FREEFALL_USER(0.00)[asomers]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4XvYlZ6fCRz4Mb5 X-Spamd-Bar: / Would it be possible to make dtrace with with KMSAN? It would certainly make my life easier. As it is, every time I try to kldload traceall, whether from the command line or in the loader, my VM infinite loops printing alerts like this: MSan: Uninitialized stack memory from isize64+0x2e #0 0xffffffff833d8f10 at __msan_warning+0x140 #1 0xffffffff86ec9c03 at dtrace_disp_opnd+0xd3 #2 0xffffffff86ebe552 at dtrace_disx86+0xc602 #3 0xffffffff86eca98e at dtrace_instr_size+0xee #4 0xffffffff86d5ec27 at fbt_provide_module_function+0x957 #5 0xffffffff83303eff at link_elf_each_function_nameval+0x56f #6 0xffffffff86d56cb3 at fbt_provide_module+0x423 #7 0xffffffff86d56871 at fbt_linker_file_cb+0x41 #8 0xffffffff830d9f5c at linker_file_foreach+0xdc #9 0xffffffff830d63dd at linker_load_module+0x413d #10 0xffffffff830e6116 at linker_load_dependencies+0x1136 #11 0xffffffff853b70b8 at link_elf_load_file+0x65c8 #12 0xffffffff830d542e at linker_load_module+0x318e #13 0xffffffff830e0611 at kern_kldload+0x5d1 #14 0xffffffff830e0d74 at sys_kldload+0x1a4 #15 0xffffffff84fe56f6 at amd64_syscall+0x706 #16 0xffffffff84f0ef4b at fast_syscall_common+0xf8