From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A21672147E6 for ; Mon, 12 Jan 2026 20:48:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768250905; cv=none; b=r4R3a0nbdgGJ9tF57WbTm3wxxFYTzEKgArXSnh24NEmp7iKt+n5f34nHXqYKNfohVfsLAaZKbS0kzGQI4HLXtr4GIQTDJGpForgedAfKlcLKswCNINQ6dY7+gYDh4oLmzXvV3alyB2wCPMXiy+AvgBm5XnWo958imMXVJliTpss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768250905; c=relaxed/simple; bh=9Ghd4y1vzzwmLGCQBkUgixF5wHZfdAbgBykT6GYFYOs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=M/6VjY1mymjw2G9Z0zkqN+pRNNxrWd4g3gQIULvzLTVRQeVsgVh7W1TdRkIwW+N19hxNIuYuisQr1ET9gUfynQo6Rq5MJWG1AyL85/rjFkLIiRY4s/sfBxaZBemUG9TxY7MD9q2ZB79JBe5vkAf7hwrPTHj5zPceoM+bcwPGUcw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=IYTfAJym; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="IYTfAJym" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4779cc419b2so64674505e9.3 for ; Mon, 12 Jan 2026 12:48:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1768250902; x=1768855702; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=HNofD1HxaC2o6B0ekPYIm3Vf2/HOdfXWeC4iCJl6B/M=; b=IYTfAJymEInX3ZEPbkPYIeTYKbOHoN7piYcSfoSYlHUkewWg842i0MZJwPRSFddTbB H5rdLLrD+DmR9ulR06vsM9vnAh6ag+efzb8vrUgWGHYJATx20141A5t1OLT7l6OWkGuR r6I201mesOzPTApw2fI2P4sZtNMvq48+SACwM6FT6A0z++U9l/RKG/PxeNdW3d9TlI2Q Bjj2Vgzp2zRoiP5aW4GqLIk5oCGD/TqnHRTYdmFja0GTuwsXzW9Xg9ku7WVIoIpJbFvi f0PD7z57xXfixrCM3uDtqqgftAFcg0kfdU3G3FBqpwxRz58Zeu0SQLqKsnGzB/uUz1SE voxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768250902; x=1768855702; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=HNofD1HxaC2o6B0ekPYIm3Vf2/HOdfXWeC4iCJl6B/M=; b=tShsgAChJHd/lwgYF2Pxkgh5ClOax2EM4ZafmcOYkHsudQQLsba8Y7dkMp2kiv4+y5 LCGsjd286df7CBRNSQU8QLLMVCdXKPGNGm0GojiWO8TBzlcEs5c6Xtbjek2Q0BN/FS7U NA0RNCD6wEPayPDXS/NL/b5XzsoKTnofsZoohqrjQMtUWzvZKs0U3OY3DCBH/6F1XSGY Kv0W8LPTF0vfuK7rrc1Q1/odrCUw0KYgIzOdZ67jCp6gtd0R68ve9fgxVOcURF6WukVg uXpgfuN9i2+THRMocgUziiJWEx86HA+64wRs+nE6PcMsiXfVzGB8KJUzz0PsPsSq/weR IWPA== X-Forwarded-Encrypted: i=1; AJvYcCU3qxr53CtELGHCMatEwKPICACgTzzLtip1vrdQjPxcS9s149X2F+pcMEgJWdyvazHFe1XNUFRmsDfXE74=@vger.kernel.org X-Gm-Message-State: AOJu0Yxv4S2TYQaWKg92fpOi4JJZCYR9m8wwqYpaqxSt6e2zGRBKzqok y46g/FeXJa358lMvlnSauMd9z9Jnm1b91sd1B14wrf/piOLPXF/WcA470G9ufdgoBC8= X-Gm-Gg: AY/fxX6l8xQvQhQIr74dlUwDrZzO86IDNKYELagD9nJmLRx1nLr5LegpFfiqb4GnbZJ whgxwBp7fFesAaTN3tNum9HvGCEzqm+XxS/ASsgK7VQ9jSwcAsWBOxfovawOCNr6RvZKG6SyLjf jmGBHp94aCqYCYAEB9PbxhX3aCazwQcLrEza0KsWQxA0LA+mb6gTQKw4xXHgiVelPCp/BigClT9 8dnOul6jbDtpDHNjwFwn969iHLbzrSMMKbrrhZxzJY+jWfDFN2DMBlSyDqxvTiy89KQbzixqg50 K8FM9oRNakFmQBfNy4oS1h/OzZ6L03eAC7s6JL+s8oat5h01nxRjpEfzDiQI9keV9ZZFnhd7CoY vwlVCVFX2wkmbHEITA+vZCdOxGZ3ADCAtEoL5LEUlNRZJXP3a/D2Usnh5FHfrCV7xwqgr7SRBEa JG0//OhDrtf/FMPHZQSU4pPehxA39rec0IVgZOaHE= X-Google-Smtp-Source: AGHT+IH9s93gkmuBttrS+h/XBMHT7i1Su2lrCzfBTYN/NbKyqiB7rnoNQUcvLStIfPiEyeMFbmwjfQ== X-Received: by 2002:a05:600c:820f:b0:477:a978:3a7b with SMTP id 5b1f17b1804b1-47d84b32f09mr194610825e9.22.1768250901940; Mon, 12 Jan 2026 12:48:21 -0800 (PST) Received: from ?IPV6:2403:580d:fda1::299? (2403-580d-fda1--299.ip6.aussiebb.net. [2403:580d:fda1::299]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a3e3c3a51dsm184311955ad.18.2026.01.12.12.48.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Jan 2026 12:48:21 -0800 (PST) Message-ID: <07600bff-a6dc-4b86-9dd6-aa5077ca8b09@suse.com> Date: Tue, 13 Jan 2026 07:18:14 +1030 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [REGRESSION] VirtualBox VM crashes (BSOD) during Windows installation on btrfs with kernels 6.18+ (works on 6.12 LTS) To: jollycar Cc: "regressions@lists.linux.dev" , "linux-btrfs@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <5b466d2f-80ad-4b45-a643-ab64bf2b252d@suse.com> <20c3ba51-fbf1-4de2-b88f-5edf817a24d6@suse.com> Content-Language: en-US From: Qu Wenruo Autocrypt: addr=wqu@suse.com; keydata= xsBNBFnVga8BCACyhFP3ExcTIuB73jDIBA/vSoYcTyysFQzPvez64TUSCv1SgXEByR7fju3o 8RfaWuHCnkkea5luuTZMqfgTXrun2dqNVYDNOV6RIVrc4YuG20yhC1epnV55fJCThqij0MRL 1NxPKXIlEdHvN0Kov3CtWA+R1iNN0RCeVun7rmOrrjBK573aWC5sgP7YsBOLK79H3tmUtz6b 9Imuj0ZyEsa76Xg9PX9Hn2myKj1hfWGS+5og9Va4hrwQC8ipjXik6NKR5GDV+hOZkktU81G5 gkQtGB9jOAYRs86QG/b7PtIlbd3+pppT0gaS+wvwMs8cuNG+Pu6KO1oC4jgdseFLu7NpABEB AAHNGFF1IFdlbnJ1byA8d3F1QHN1c2UuY29tPsLAlAQTAQgAPgIbAwULCQgHAgYVCAkKCwIE FgID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Gqu1xF/bMAY2iCDcq6ULKQceuKkbeQ8qxvt9hVxJC2W3lHq8dlK1pkHPDg9wO JoAXek8MF37R8gpLoGWl41FIUb3hFiu3zhDDvslYM4BmzI18QgQTQnotJH8= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 在 2026/1/13 02:03, jollycar 写道: > Qemu/libvirt test results on kernel 6.18.3: > > Setup: > - Virtualization: qemu via libvirt (virt-manager) > - Disk format: qcow2 > - Disk location: /data/virtual-os/win10-qemu-test.qcow2 (same btrfs subvolume as VirtualBox VMs) > - COW disabled on disk image (chattr +C) > - ISO: Same Windows 10 ISO used in VirtualBox tests > - Guest: Windows 10 > > Result: > Windows 10 installation completed successfully without any crashes. Installation proceeded through all phases including multiple reboots and reached the desktop without issues. > > Summary of all tests on kernel 6.18.3: > - VirtualBox 7.2.4: Crashes during installation (all cache/mtype configurations tested) > - Qemu via libvirt: No crashes, installation completes successfully > > Both using the same btrfs filesystem, same subvolume location, same Windows ISO, and COW disabled. Thanks a lot, this looks like there is something wrong related to the VBox out-of-tree kernel module. In that case, the btrfs community is not going to help much unfortunately. Mind to share how is the out-of-tree kernel module installed? The pre-compiled one from the distro? The DKMS one or something else? And just some guesses, can VBox specify what type of CPU (and extensions like SSE/AVX) it uses? If so (like qemu), mind to check if you can specify some CPU types without some newer extensions while still meets the minimal CPU requirement of Windows 10? I'm wondering if it's some extension handling not done properly, which is commonly utilized by checksums. Thus triggers the checksum mismatch errors inside Windows. Thanks, Qu > > > On Sunday, January 11th, 2026 at 8:43 PM, Qu Wenruo wrote: > >> >> >> >> >> 在 2026/1/11 21:39, jollycar 写道: >> >>> Storage configuration details: >>> >>> Storage format: VDI (VirtualBox Disk Image) >>> Storage location: /data/virtual-os/ (btrfs subvolume with COW disabled, verified with lsattr) >> >> >> OK, this means it's not related to the direct IO changes in newer kernels. >> >> When COW is disabled, data checksum is also disables, thus direct IO is >> still doing the true zero-copy behavior. >> >> This ruled out the btrfs direct io change, but this means I have no clue >> what is going wrong at all now. >> >>> Controller: IntelAhci (SATA) >>> Default configuration: hostiocache on, mtype normal >>> >>> Cache and media type testing on kernel 6.18.3: >>> - Default (hostiocache on, mtype normal): BSOD within 1 minute during installation >>> - mtype writethrough: Gets much further, BSOD occurs on first VM reboot >>> - hostiocache off (mtype normal): Gets much further, BSOD occurs on first VM reboot >>> >>> None of the configurations provide a working solution - they only delay the crash. >>> >>> On kernel 6.12.63 with default settings (hostiocache on, mtype normal), Windows installation completes successfully without any crashes. >>> >>> I have not yet tested with qemu/libvirt. Should I proceed with that test? >> >> >> Yes please. Libvirt/qemu is a more common solution among developers. >> If you can reproduce it using libvirt/qemu, more btrfs developers can >> try to reproduce it and look into it. >> >> And if not, the cause may shift towards vbox other than btrfs. >> >> Thanks, >> Qu >> >>> On Sunday, January 11th, 2026 at 10:15 AM, Qu Wenruo wqu@suse.com wrote: >>> >>>> 在 2026/1/11 20:33, jollycar 写道: >>>> >>>>> #regzbot introduced: v6.12..v6.18 >>>>> >>>>> [1.] One line summary of the problem: >>>>> VirtualBox VM crashes with BSOD during Windows installation on kernels 6.18+ (works fine on 6.12 LTS) >>>>> >>>>> [2.] Full description of the problem: >>>>> Windows 10 and Windows 11 installation inside VirtualBox consistently crashes with BSOD within 1-3 minutes on Linux kernels 6.18.3 and 6.19-rc3. The same VirtualBox configuration and VM image work perfectly on kernel 6.12 LTS. The BSOD errors vary each time (most recent: 0x80070470 - "file may be corrupt or missing"). The host system remains completely stable with no logged errors. >>>>> >>>>> [3] Kernel & Hardware: >>>>> - Kernel versions tested: >>>>> * Working: 6.12.63-1 >>>>> * Broken: 6.18.3-2, 6.19.0-rc3-1 >>>>> - Distribution: Manjaro Linux >>>>> - Architecture: x86_64 >>>>> - VirtualBox: 7.2.4 r170995 (vboxdrv vermagic: 6.18.3-2-MANJARO SMP preempt mod_unload) >>>>> >>>>> [4.] Filesystem and storage: >>>>> - Root filesystem: btrfs on LUKS encryption >>>>> - Mount options: zstd compression level 3, SSD optimizations, async discard, free space tree >>>>> - VM storage: separate btrfs subvolume >>>> >>>> What's the storage file configuration? Like what's the cache mode setting? >>>> I don't know VBox at all, but there may be something similar to >>>> libvirt's cache mode (none/unsafe/writethrough etc). >>>> >>>> More importantly, will tweaking the cache mode change fix the broken >>>> kernels? >>>> If so it may point to direct IO related behavior changes. >>>> >>>> And what's the storage file format? QCOW2? RAW? Or whatever format >>>> provided by Vbox? >>>> >>>> And one final question, have you tried qemu (or libvirt + qemu) and can >>>> it still be reproduced with qemu? >>>> As I'm wondering if the direct IO related change will even affects qemu >>>> >>>> Thanks, >>>> Qu >>>> >>>>> - btrfs device stats: all zeros (no errors) >>>>> >>>>> [5.] Reproduction: >>>>> - Boot kernel 6.18.3-2 or 6.19.0-rc3 >>>>> - Start VirtualBox 7.2.4 r170995 >>>>> - Create new Windows 10 or Windows 11 VM >>>>> - Begin OS installation >>>>> - BSOD occurs within 1-3 minutes with varying errors (latest: 0x80070470) >>>>> - Issue is 100% reproducible on 6.18+, never occurs on 6.12 >>>>> >>>>> Additional context: >>>>> - Host system remains completely stable during VM crashes >>>>> - No btrfs errors in dmesg or device stats (all zero) >>>>> - Issue persists across multiple 6.18/6.19 releases over one month >>>>> - VirtualBox 7.2.4 modules load successfully on all kernel versions >>>>> >>>>> Regards, >>>>> Jollycar