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

System crashes after creating loopback device after mounting nova #40

Open stevenjswanson opened 7 years ago

stevenjswanson commented 7 years ago

To reproduce, checkout nova-testscripts, then

# cd nova-testscripts/nova-ci
# bash crashers/001.sh

Example Dmesg

[  157.169105] IP: free_pcppages_bulk+0x107/0x4c0
[  157.169978] PGD 0

[  157.170706] Oops: 0002 [#1] SMP
[  157.171334] Modules linked in: nova(OE) libcrc32c rfcomm bnep coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc vmw_balloon aesni_intel aes_x86_64 crypto_simd cryptd glue_helper intel_rapl_perf snd_ens1371 gameport snd_ac97_codec ac97_bus snd_pcm joydev snd_seq_midi snd_seq_midi_event uvcvideo snd_rawmidi input_leds nd_pmem nd_btt dax_pmem dax serio_raw videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core snd_seq videodev btusb btrtl btbcm media snd_timer btintel snd_seq_device bluetooth snd soundcore i2c_piix4 shpchp nfit vmw_vsock_vmci_transport vsock vmw_vmci mac_hid parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid psmouse vmwgfx mptspi scsi_transport_spi mptscsih drm_kms_helper syscopyarea sysfillrect sysimgblt ahci fb_sys_fops libahci ttm
[  157.186255]  mptbase e1000 drm pata_acpi fjes
[  157.187182] CPU: 1 PID: 18598 Comm: growfiles Tainted: G           OE   4.10.0-nova #8
[  157.188963] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 07/02/2015
[  157.191338] task: ffff955faf145a00 task.stack: ffffb1f90597c000
[  157.192723] RIP: 0010:free_pcppages_bulk+0x107/0x4c0
[  157.193816] RSP: 0018:ffffb1f90597fa08 EFLAGS: 00010046
[  157.194946] RAX: 0000000000000000 RBX: ffffdfc148be33e0 RCX: 0000000000000020
[  157.196440] RDX: ffff955fb965d0d8 RSI: ffff955fb965d0c8 RDI: ffffdfc1481cad60
[  157.198088] RBP: ffffb1f90597fa80 R08: ffff955fbffd3de0 R09: 0000000000000000
[  157.199537] R10: 0000000000000001 R11: 00000000000002b4 R12: ffffdfc148be33c0
[  157.201080] R13: dead000000000100 R14: ffff955fbffd3d00 R15: ffff955fbffd3d00
[  157.202576] FS:  0000000000000000(0000) GS:ffff955fb9640000(0000) knlGS:0000000000000000
[  157.204312] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  157.205527] CR2: 0000000000000000 CR3: 000000003c209000 CR4: 00000000003406e0
[  157.207021] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  157.208492] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  157.210039] Call Trace:
[  157.210548]  free_hot_cold_page+0x232/0x260
[  157.211418]  free_hot_cold_page_list+0x3f/0xa0
[  157.212521]  release_pages+0x2b9/0x360
[  157.213311]  free_pages_and_swap_cache+0x9b/0xb0
[  157.214286]  tlb_flush_mmu_free+0x36/0x60
[  157.215126]  tlb_finish_mmu+0x1c/0x50
[  157.215882]  exit_mmap+0xd6/0x170
[  157.216574]  mmput+0x57/0x130
[  157.217193]  do_exit+0x273/0xb00
[  157.217869]  do_group_exit+0x43/0xb0
[  157.218583]  get_signal+0x289/0x630
[  157.219285]  do_signal+0x37/0x740
[  157.219989]  ? group_send_sig_info+0x35/0x40
[  157.220849]  ? __check_object_size+0x100/0x1d7
[  157.221784]  exit_to_usermode_loop+0x71/0xa0
[  157.222635]  syscall_return_slowpath+0x59/0x60
[  157.223507]  entry_SYSCALL_64_fastpath+0xab/0xad
[  157.224394] RIP: 0033:0x7fcba53fe8b9
[  157.225095] RSP: 002b:00007fcba5a37e60 EFLAGS: 00000206 ORIG_RAX: 00000000000000ca
[  157.226542] RAX: fffffffffffffdfc RBX: 00005556b3a31e48 RCX: 00007fcba53fe8b9
[  157.227896] RDX: 000000000000031f RSI: 0000000000000189 RDI: 00007fcba5816284
[  157.229206] RBP: 0000000000000000 R08: 00007fcba58161e0 R09: 00000000ffffffff
[  157.230515] R10: 00007fcba5a37ee0 R11: 0000000000000206 R12: 000000000000031f
[  157.231864] R13: 00007fcba5a37ee0 R14: ffffffffffffff92 R15: 00007ffe47776d00
[  157.233176] Code: 48 83 c0 01 48 c1 e0 04 48 01 f0 48 89 45 a8 48 8b 45 a8 48 83 7d 90 00 48 8b 58 08 48 8b 43 08 48 8b 13 4c 8d 63 e0 48 89 42 08 <48> 89 10 48 b8 00 02 00 00 00 00 ad de 4c 89 2b 48 89 43 08 4c
[  157.236607] RIP: free_pcppages_bulk+0x107/0x4c0 RSP: ffffb1f90597fa08
[  157.237794] CR2: 0000000000000000
[  157.238420] ---[ end trace 061ca857e0ddc4ad ]---
[  157.239279] Fixing recursive fault but reboot is needed!