From nobody Wed Aug 10 04:24:59 2022 X-Original-To: freebsd-current@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 4M2cKp75bbz4Y4l5 for ; Wed, 10 Aug 2022 04:25:02 +0000 (UTC) (envelope-from editor@callfortesting.org) Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M2cKp2bYvz3PBr for ; Wed, 10 Aug 2022 04:25:02 +0000 (UTC) (envelope-from editor@callfortesting.org) Received: by mail-pj1-x102c.google.com with SMTP id o5-20020a17090a3d4500b001ef76490983so935293pjf.2 for ; Tue, 09 Aug 2022 21:25:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=callfortesting-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=DZdz6lwvDqWNJNhI92tXi3RuKQ+hosvpz6nuVLIz+hQ=; b=2G9LBulM5cmvSXQYX/5NGr2seEFlmQ8Wzp70sTfLfmurT15hz9hpdBQSUr0pUylZV6 tLEMMrCIYqFu35x+v/rJR7X9lFoLv49rLpM+JlZCWwnn/R7V2/RCG4AU17qR1Vl4cHJ3 E/+tjbf8Sb2UTOanBR7Jy+HVRlDd4Dzx2AjPjPq/XwOlzYgul5LnBXuTy2uFBsqU3B2K Xiqg/fY8hyvOYuETMIYGnsisfpsTaIy9lBZejGE064/dVZkAtMwKsRySla2fKfPWuh1v pUzGGwAt1gXIDpWwsNZBjAOEC/nQryYj8vQOgPs8zBBhf21aO+pzjW2Xd1SVSEAjl5Tf ThSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=DZdz6lwvDqWNJNhI92tXi3RuKQ+hosvpz6nuVLIz+hQ=; b=jkMMZTf92DMORG7KoU5gJtlA+l8Aj6FptFdMQt21uPFkprs/e5XrzkdHUFE820uN1s 2oJCWVdpxG8cBWNL47Zkjl7E7fu4AlF31qkOjhpQPy3RP/6rGou3wEB0+nm3PVTMCLon b4HIEl0e6Bhgf6z3b2SH8VXUiCg1wJfoUyWwKE7k0mqncnoJ9h5+UiP6rjDG0lREsyQ/ lI/cHZhDYfk+1DUHFQ1LwB2JEqymL3U1Nvn7mNnircB9MhqLxoMaoPe9VS7IVtmyDU14 c+F6NFkae2+i5UMMP4Ab5XI4/5AMXxvfSzJ4+Nzc7+YN1zBAq1s8S41GhEmYW7oxSh2z PLRQ== X-Gm-Message-State: ACgBeo3DClx7Wug33WyI4tHDMCCZ9ljSSjh4EVZBah7pMsDAIKxdOSZE c2w4O8l3Q9j4yJcVJFw+eQuskEUdw1+Jlkgu X-Google-Smtp-Source: AA6agR5Yo6OgYVnPqonk2cGa2YXi9lxxlNSEVc1DMXcQ8jZNsUylK8Qel6qFt4l8HEzytq4lEA2AUw== X-Received: by 2002:a17:902:e749:b0:171:2480:4320 with SMTP id p9-20020a170902e74900b0017124804320mr5686280plf.153.1660105500627; Tue, 09 Aug 2022 21:25:00 -0700 (PDT) Received: from [10.0.0.236] (c-73-157-223-253.hsd1.or.comcast.net. [73.157.223.253]) by smtp.gmail.com with ESMTPSA id iz4-20020a170902ef8400b0016d9b101413sm11578565plb.200.2022.08.09.21.25.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Aug 2022 21:25:00 -0700 (PDT) Message-ID: <519824ef-9096-e544-e2e0-3326e70e2853@callfortesting.org> Date: Tue, 9 Aug 2022 21:24:59 -0700 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: bhyve core dump related to llvm 14 Content-Language: en-US To: freebsd-current@freebsd.org References: From: Michael Dexter In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4M2cKp2bYvz3PBr X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=callfortesting-org.20210112.gappssmtp.com header.s=20210112 header.b=2G9LBulM; dmarc=none; spf=none (mx1.freebsd.org: domain of editor@callfortesting.org has no SPF policy when checking 2607:f8b0:4864:20::102c) smtp.mailfrom=editor@callfortesting.org X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[callfortesting-org.20210112.gappssmtp.com:s=20210112]; MIME_GOOD(-0.10)[text/plain]; R_SPF_NA(0.00)[no SPF record]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::102c:from]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[callfortesting-org.20210112.gappssmtp.com:+]; RCVD_COUNT_THREE(0.00)[3]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DMARC_NA(0.00)[callfortesting.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 7/21/22 8:31 AM, Chuck Tuffli wrote: > I have a virtual machine used to test the NVMe emulation in bhyve. All > of the tests in the VM pass running under FreeBSD 13.1-R, but the same > VM running under -current causes bhyve(8) to dump core because of a > segmentation fault. > > git bisect identified the last "good" commit on main as > cb2ae6163174 sysvsem: Fix a typo > After this commit, there are a half-dozen commits related to merging > the llvm project release/14.x Chuck and I put our heads together to find a way to reproduce this issue and came up with this: Attache a 1gb disk image as emulation type "nvme" to a VM of any recent version, and run this command: nvmecontrol io-passthru -o 0x2 -l 4096 -4 0x2ffff0 -r nvme0ns1 This fails gracefully on 13.0R and 13.1R, but panics the bhyve process with a 14-CURRENT host after the LLVM 14 import. I have detailed reproduction steps and the debug output in this bug report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265749 Michael