vUSBf icon indicating copy to clipboard operation
vUSBf copied to clipboard

facing problem in getting logs

Open jitendriya09 opened this issue 9 years ago • 1 comments

Hello Schumilo

As mentioned in the README file I did increase the printk level to max i.e 7 After that when I execute the testcase in network mode(external VM) I can see all the kernel logs including kernel panic in external VM.

However when I am trying to execute the test case in non network mode(i.e using the configuration file) I am getting only the first line of enumeration for every test case. . (like [ 92.787133] usb 1-1: new full-speed USB device number 2 using xhci_hcd), So even if all the test cases are executed there is no bug found in the logs.

Let me tell you the exact steps I followed: 1)Install qemu and usbredir using your script.( https://github.com/schumilo/vUSBf/issues/2)

  1. create a QCOW2-image for virtual machine. (qemu-img create -f qcow2 vm.qcow2 10G)

3)Installed Ubuntu 14.04 in VM (qemu-system-x86_64 -hda vm.qcow2 -m 1024 -boot d -cdrom ../ubuntu-14.04.4-desktop-amd64.iso)

4)start the VM and Configured ttyS0 in VM

5)Creating backing file and image qemu-img create -b vm.img -f qcow2 overlay.qcow2 qemu-img create -f qcow2 ram.qcow2 1G

6)Start the VM qemu-system-x86_64 --enable-kvm -m 1024 -hdb ram.qcow2 -hda overlay.qcow2 -serial mon:stdio -device nec-usb-xhci -device usb-redir,chardev=usbchardev,debug=0 -chardev socket,server,id=usbchardev,nowait,host=127.0.0.1,port=1336

7)Change the verbosity of printk Vim /etc/sysctl.conf Added the line “kernel.printk = 7 4 1 7” This will change the content of the file /proc/sys/kernel/printk to 7 4 1 7 in next boot

8)close and start the VM again

  1. take the snapshot by pressing ctrl+a and c and then type savevm

10)changed the configuration file ubuntu1404.config file (I took the snapshot name(TAG) by the command info snapshots in qemu terminal)

11)Execute the command python vusbf.py –eo panic_1.obj –o ubuntu1404.config –v1

Please let me know If I am doing anything wrong. Thanks in advance.

Regards jitendriya

jitendriya09 avatar Nov 14 '16 05:11 jitendriya09

I think the framework fuzzes only 2 things for now

  1. enumeration phase
  2. HID driver

shrivinayak avatar Aug 10 '18 15:08 shrivinayak