Bug 834262
Summary: | RHEL6 guest kernel panic when try to format rw floppy with -drive ... -global ... | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Joy Pu <ypu> |
Component: | kernel | Assignee: | John Snow <jsnow> |
Status: | CLOSED WONTFIX | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.3 | CC: | areis, chayang, juzhang, mkenneth, phrdina, rbalakri, rpacheco, shuang, virt-bugs, virt-maint, ypu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-07-03 19:44:18 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Joy Pu
2012-06-21 11:31:51 UTC
Is this configuration supported by libvirt, or are you calling qemu by hand with a custom config? (just so that we have a better idea of the priority of this bug) Hi Ademar Try to boot guest with floppy by virsh with this xml: <disk type='file' device='floppy'> <driver name='qemu' type='raw'/> <source file='/home/kvm_autotest_root/images/fd1.img'/> <target dev='fda' bus='fdc'/> <readonly/> And the commadline part is using -drive ... -global...: -drive file=/home/kvm_autotest_root/images/fd1.img,if=none,id=drive-fdc0-0-0,readonly=on,format=raw -global isa-fdc.driveA=drive-fdc0-0-0 *** This bug has been marked as a duplicate of bug 815472 *** (In reply to comment #6) > > *** This bug has been marked as a duplicate of bug 815472 *** Actually, I'll do the other way: I'll mark Bug 815472 as a dupe of this one (this one contains more details). *** Bug 815472 has been marked as a duplicate of this bug. *** Hi Ypu, Could you have a try and update the testing result in the bz? Best Regards, Junyi Now it is hard to reproduce it. Reproduce it once out put of 600 times testing. Steps to Reproduce: 1. boot up guest with floppy wiht -drive -global: 2. modprobe floppy in guest #modprobe floppy 3. try to format floppy, then guest will panic # mkfs -t ext3 /dev/fd0 4. mount it to the guest: mount /dev/fd0 /mnt/ Guest will panic after this. Output from serial port and call trace: 2014-06-11 13:28:24: Floppy drive(s): fd0 is 1.44M 2014-06-11 13:28:24: FDC 0 is a S82078B 2014-06-11 13:28:25: BUG: unable to handle kernel NULL pointer dereference at 0000000000000035 2014-06-11 13:28:25: IP: [<ffffffffa00e2a0b>] setup_rw_floppy+0x6b/0x380 [floppy] 2014-06-11 13:28:25: PGD 0 2014-06-11 13:28:25: Oops: 0000 [#1] SMP 2014-06-11 13:28:25: last sysfs file: /sys/module/mbcache/initstate 2014-06-11 13:28:25: CPU 3 2014-06-11 13:28:25: Modules linked in: ext2 floppy 8021q garp stp llc ipt_REJECT nf_conntrack_ipv4 nf_defrag_ipv4 iptable_filter ip_tables ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 xt_state nf_conntrack ip6table_filter ip6_tables ipv6 uinput microcode snd_intel8x0 snd_ac97_codec ac97_bus snd_seq snd_seq_device snd_pcm snd_timer snd soundcore snd_page_alloc i2c_piix4 i2c_core ext4 jbd2 mbcache virtio_net virtio_blk virtio_pci virtio_ring virtio pata_acpi ata_generic ata_piix dm_mirror dm_region_hash dm_log dm_mod [last unloaded: speedstep_lib] 2014-06-11 13:28:25: 2014-06-11 13:28:25: Pid: 22, comm: events/3 Not tainted 2.6.32-431.20.2.el6.x86_64 #1 Red Hat KVM 2014-06-11 13:28:25: RIP: 0010:[<ffffffffa00e2a0b>] [<ffffffffa00e2a0b>] setup_rw_floppy+0x6b/0x380 [floppy] 2014-06-11 13:28:25: RSP: 0018:ffff88011dc79d90 EFLAGS: 00010246 2014-06-11 13:28:25: RAX: 0000000000000000 RBX: 00000000000000da RCX: 000000000000000b 2014-06-11 13:28:25: RDX: 0000000000000000 RSI: 0000000000000246 RDI: 00000000ffffffff 2014-06-11 13:28:25: RBP: ffff88011dc79db0 R08: 20c49ba5e353f7cf R09: 0000000000000000 2014-06-11 13:28:25: R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 2014-06-11 13:28:25: R13: 0000000000000008 R14: 0000000000000009 R15: ffff880028399448 2014-06-11 13:28:25: FS: 0000000000000000(0000) GS:ffff880028380000(0000) knlGS:0000000000000000 2014-06-11 13:28:25: CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b 2014-06-11 13:28:25: CR2: 0000000000000035 CR3: 0000000001a85000 CR4: 00000000000406e0 2014-06-11 13:28:25: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 2014-06-11 13:28:25: DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 2014-06-11 13:28:25: Process events/3 (pid: 22, threadinfo ffff88011dc78000, task ffff88011dc77500) 2014-06-11 13:28:25: Stack: 2014-06-11 13:28:25: 0000000000000000 0000000000000400 0000000000000000 ffff88011dc79fd8 2014-06-11 13:28:25: <d> ffff88011dc79de0 ffffffffa00e2ffe ffff880028399440 0000000000000202 2014-06-11 13:28:25: <d> ffff880028399440 ffff880028399440 ffff88011dc79e30 ffffffffa00e3585 2014-06-11 13:28:25: Call Trace: 2014-06-11 13:28:25: [<ffffffffa00e2ffe>] floppy_ready+0x2de/0x730 [floppy] 2014-06-11 13:28:25: [<ffffffffa00e3585>] floppy_start+0x135/0x160 [floppy] 2014-06-11 13:28:25: [<ffffffffa00e3450>] ? floppy_start+0x0/0x160 [floppy] 2014-06-11 13:28:25: [<ffffffff81094a20>] worker_thread+0x170/0x2a0 2014-06-11 13:28:25: [<ffffffff8109afa0>] ? autoremove_wake_function+0x0/0x40 2014-06-11 13:28:25: [<ffffffff810948b0>] ? worker_thread+0x0/0x2a0 2014-06-11 13:28:25: [<ffffffff8109abf6>] kthread+0x96/0xa0 2014-06-11 13:28:25: [<ffffffff8100c20a>] child_rip+0xa/0x20 2014-06-11 13:28:25: [<ffffffff8109ab60>] ? kthread+0x0/0xa0 2014-06-11 13:28:25: [<ffffffff8100c200>] ? child_rip+0x0/0x20 2014-06-11 13:28:25: Code: e5 08 75 6c 45 31 e4 45 31 f6 80 78 35 00 74 24 49 63 d6 41 83 c6 01 0f be 7c 10 36 e8 0f be ff ff 41 09 c4 48 8b 05 95 4c 00 00 <0f> b6 50 35 44 39 f2 7f dc 0f b6 05 19 57 00 00 48 c1 e0 07 f6 2014-06-11 13:28:25: RIP [<ffffffffa00e2a0b>] setup_rw_floppy+0x6b/0x380 [floppy] 2014-06-11 13:28:25: RSP <ffff88011dc79d90> 2014-06-11 13:28:25: CR2: 0000000000000035 kernel version: host: 2.6.32-471 guest: 2.6.32-431.20.2 qemu version: 0.12.1.2-2.427 (In reply to Joy Pu from comment #11) > Now it is hard to reproduce it. Reproduce it once out put of 600 times > testing. > Given this is such an old bug, on a corner case of a non-critical feature and so hard to reproduce, I'm closing it as WONTFIX. |