Re: [PATCH] Fix: buffer overflow during hvc_alloc().

From: Andrew Donnellan
Date: Tue Apr 07 2020 - 02:23:19 EST


On 6/4/20 6:05 pm, Andrew Melnichenko wrote:

Steps to Reproduce:

1. boot guest with command [1]
2. load and unload virtio_console inside guest with loop.sh
 Â# cat loop.sh
  while [ 1 ]
  do
modprobe virtio_console
lsmod | grep virt
modprobe -r virtio_console
lsmod | grep virt
  done



Actual results:
Guest reboot and can get vmcore-dmesg.txt file


Expected results:
Guest works well without error


Additional info:
The whole log will attach to the attachments.

Call Trace:
[ Â 22.974500] fuse: init (API version 7.31)
[ Â 81.498208] ------------[ cut here ]------------
[ Â 81.499263] pvqspinlock: lock 0xffffffff92080020 has corrupted
value 0xc0774ca0!
[ Â 81.501000] WARNING: CPU: 0 PID: 785 at
kernel/locking/qspinlock_paravirt.h:500

[snip]

Thanks!

You should include an appropriate excerpt from this - the WARNING message and stack trace, and the steps to reproduce - in the commit message of the patch.


--
Andrew Donnellan OzLabs, ADL Canberra
ajd@xxxxxxxxxxxxx IBM Australia Limited