Bug 218204 - WARNING: CPU: x PID: xxx at kernel/dma/debug.c:1131 check_sync+0x4a0/0x640 and Call Trace related to virtnet
Summary: WARNING: CPU: x PID: xxx at kernel/dma/debug.c:1131 check_sync+0x4a0/0x640 an...
Status: RESOLVED CODE_FIX
Alias: None
Product: Virtualization
Classification: Unclassified
Component: lguest (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: virtualization_lguest
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-29 08:20 UTC by hongyuni
Modified: 2023-12-01 09:29 UTC (History)
2 users (show)

See Also:
Kernel Version: v6.7.-rc3
Subsystem:
Regression: No
Bisected commit-id:


Attachments
WARNING and Call Trace info in dmesg (4.46 KB, text/plain)
2023-11-29 08:20 UTC, hongyuni
Details

Description hongyuni 2023-11-29 08:20:57 UTC
Created attachment 305503 [details]
WARNING and Call Trace info in dmesg

Follow WARNING and Call Trace observed based on test info below:
WARNING: CPU: x PID: xxx at kernel/dma/debug.c:1131 check_sync+0x4a0/0x640
full WARNING and Call Trace in attachment

Guest Kernel under test: mainline 6.7.0-rc2 or later.

Test step: boot up above Guest Kernel in TDX VM, based on Linux KVM/QEMU

reference QEMU config:
$QEMU_IMAGE \
	-accel kvm \
	-no-reboot \
	-name process=td_hy_inext,debug-threads=on \
	-cpu host,host-phys-bits,pmu=off \
	-smp cpus=1 \
	-m ${MEM}G \
	-machine q35 \
	-bios $BIOS_IMAGE \
	-nographic \
	-vga none \
	-device virtio-net-pci,netdev=mynet0,mac=00:16:3E:68:08:FF,romfile= \
        -netdev user,id=mynet0,hostfwd=tcp::10012-:22,hostfwd=tcp::12012-:2375 \
        -device vhost-vsock-pci,guest-cid=12 \
	-chardev stdio,id=mux,mux=on,signal=off \
        -device virtio-serial,romfile= \
	-device virtconsole,chardev=mux \
	-serial chardev:mux \
	-monitor chardev:mux \
	-drive file=${GUEST_IMAGE},if=virtio,format=raw \
	-kernel ${KERNEL_IMAGE} \
	-append "root=/dev/vda3 ro console=hvc0 earlyprintk=ttyS0 ignore_loglevel debug earlyprintk l1tf=off initcall_debug log_buf_len=200M tsc=reliable nokaslr efi=debug mce=off efi=debug" \
	-monitor pty \
        -monitor telnet:127.0.0.1:9012,server,nowait \
	-no-hpet \
        -nodefaults \
Comment 1 Bagas Sanjaya 2023-11-29 23:37:57 UTC
(In reply to hongyuni from comment #0)
> Created attachment 305503 [details]
> WARNING and Call Trace info in dmesg
> 
> Follow WARNING and Call Trace observed based on test info below:
> WARNING: CPU: x PID: xxx at kernel/dma/debug.c:1131 check_sync+0x4a0/0x640
> full WARNING and Call Trace in attachment
> 
> Guest Kernel under test: mainline 6.7.0-rc2 or later.
> 

Does v6.7-rc1 not have this regression?
Comment 2 hongyuni 2023-11-30 01:19:55 UTC
(In reply to Bagas Sanjaya from comment #1)
> (In reply to hongyuni from comment #0)
> > Created attachment 305503 [details]
> > WARNING and Call Trace info in dmesg
> > 
> > Follow WARNING and Call Trace observed based on test info below:
> > WARNING: CPU: x PID: xxx at kernel/dma/debug.c:1131 check_sync+0x4a0/0x640
> > full WARNING and Call Trace in attachment
> > 
> > Guest Kernel under test: mainline 6.7.0-rc2 or later.
> > 
> 
> Does v6.7-rc1 not have this regression?

yes, it's ever seen since v6.6 cycle.

in fact, there is an email thread discussion about this issue, based on local bisect results: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2561299.html
Comment 3 hongyuni 2023-11-30 02:27:26 UTC
(In reply to hongyuni from comment #2)
> (In reply to Bagas Sanjaya from comment #1)
> > (In reply to hongyuni from comment #0)
> > > Created attachment 305503 [details]
> > > WARNING and Call Trace info in dmesg
> > > 
> > > Follow WARNING and Call Trace observed based on test info below:
> > > WARNING: CPU: x PID: xxx at kernel/dma/debug.c:1131
> check_sync+0x4a0/0x640
> > > full WARNING and Call Trace in attachment
> > > 
> > > Guest Kernel under test: mainline 6.7.0-rc2 or later.
> > > 
> > 
> > Does v6.7-rc1 not have this regression?
> 
> yes, it's ever seen since v6.6 cycle.
> 
> in fact, there is an email thread discussion about this issue, based on
> local bisect results:
> https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2561299.html

sorry, update email thread from lkml https://lore.kernel.org/lkml/f37cb55a-6fc8-4e21-8789-46d468325eea@linux.intel.com/
Comment 4 hongyuni 2023-12-01 09:29:25 UTC
issue got conclusion in lkml, close here:
https://lore.kernel.org/all/f37cb55a-6fc8-4e21-8789-46d468325eea@linux.intel.com/

Note You need to log in before you can comment on or make changes to this bug.