NVSL / linux-nova

NOVA is a log-structured file system designed for byte-addressable non-volatile memories, developed at the University of California, San Diego.
http://nvsl.ucsd.edu/index.php?path=projects/nova
Other
421 stars 117 forks source link

umount fails because of stale loopback during interrupted run of ltp. #28

Open stevenjswanson opened 7 years ago

stevenjswanson commented 7 years ago

To reproduce, mount NOVA fs on /mnt/ramdisk

Then run

 /opt/ltp/runltp -f nova -d /mnt/ramdisk

and hit ctrl-C after a while. Try to unmount:

umount /mnt/ramdisk

if fails, try

losetup -d /dev/loop*
umount /mnt/ramdisk

If fails, that's the bug.

This shows up on console:

[ 32.256504] Oops: 0010 [#1] SMP [ 32.257489] Modules linked in: nova(OE) libcrc32c rfcomm bnep coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel vmw_balloon aes_x86_64 crypto_simd dax_pmem cryptd glue_helper intel_rapl_perf snd_ens1371 gameport snd_ac97_codec ac97_bus snd_pcm snd_seq_midi snd_seq_midi_event joydev input_leds uvcvideo dax serio_raw snd_rawmidi nd_pmem nd_btt videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core videodev snd_seq snd_timer snd_seq_device btusb btrtl media btbcm btintel bluetooth snd soundcore nfit vmw_vsock_vmci_transport vsock shpchp i2c_piix4 vmw_vmci mac_hid parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid psmouse vmwgfx drm_kms_helper ahci syscopyarea libahci sysfillrect e1000 sysimgblt fb_sys_fops ttm mptspi drm scsi_transport_spi [ 32.279592] mptscsih pata_acpi mptbase fjes [ 32.280914] CPU: 0 PID: 2746 Comm: loop0 Tainted: G OE 4.10.0-nova #8 [ 32.282976] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 07/02/2015 [ 32.285974] task: ffff995cc760da00 task.stack: ffffbca844b40000 [ 32.287649] RIP: 0010: (null) [ 32.288838] RSP: 0018:ffffbca844b43d20 EFLAGS: 00010246 [ 32.290605] RAX: ffffffffc067ca80 RBX: ffff995cf3043fc0 RCX: 0000000000000001 [ 32.292616] RDX: ffff995cce468888 RSI: ffffbca844b43d68 RDI: ffff995cf3043fc0 [ 32.294925] RBP: ffffbca844b43dc0 R08: 0000000000001000 R09: ffff995cf3043f78 [ 32.297431] R10: 0000000000001000 R11: ffff995cce468888 R12: 0000000000000000 [ 32.300188] R13: 0000000000000000 R14: ffff995cce468888 R15: 0000000000000001 [ 32.302801] FS: 0000000000000000(0000) GS:ffff995cf9600000(0000) knlGS:0000000000000000 [ 32.305722] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 32.307547] CR2: 0000000000000000 CR3: 00000000add03000 CR4: 00000000003406f0 [ 32.309893] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 32.311959] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 32.314002] Call Trace: [ 32.314736] ? lo_rw_aio+0x13c/0x290 [ 32.315726] ? update_curr+0xf3/0x170 [ 32.316810] loop_queue_work+0x938/0xac0 [ 32.317946] ? pick_next_task_fair+0x10d/0x4b0 [ 32.319171] ? __switch_to+0x23c/0x520 [ 32.320217] ? __schedule+0x230/0x6b0 [ 32.321295] kthread_worker_fn+0xf6/0x1c0 [ 32.322487] kthread+0x101/0x140 [ 32.323504] ? kthread_create_worker_on_cpu+0x70/0x70 [ 32.325156] ? kthread_create_on_node+0x60/0x60 [ 32.326747] ret_from_fork+0x2c/0x40 [ 32.327882] Code: Bad RIP value. [ 32.328856] RIP: (null) RSP: ffffbca844b43d20 [ 32.330487] CR2: 0000000000000000 [ 32.331366] ---[ end trace c3c35d5ea58174ef ]---

stevenjswanson commented 7 years ago

This is on a small VM, with just 2GB for NOVA.

stevenjswanson commented 7 years ago

Seems likely this is related somehow to #40.