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

Nova crashes on fsx tests in ltp #36

Closed stevenjswanson closed 7 years ago

stevenjswanson commented 7 years ago

The first/only test in runtests/fsx

fsx-linux export TCbin=$LTPROOT/testcases/bin;fsxtest02 10000

Similar to #29.

Causes a crash outside of nova. e.g.:

[  104.359924] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
[  104.362476] IP: get_page_from_freelist+0x1e6/0xb20
[  104.363930] PGD 0

[  104.365014] Oops: 0002 [#1] SMP
[  104.366116] 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 uvcvideo videobuf2_vmalloc dax_pmem videobuf2_memops snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq joydev nd_pmem vmw_vsock_vmci_transport vsock dax nd_btt videobuf2_v4l2 input_leds videobuf2_core serio_raw videodev snd_timer btusb snd_seq_device btrtl media btbcm btintel bluetooth snd soundcore i2c_piix4 vmw_vmci shpchp nfit mac_hid parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid vmwgfx psmouse drm_kms_helper mptspi scsi_transport_spi mptscsih ahci libahci e1000 syscopyarea sysfillrect sysimgblt fb_sys_fops
[  104.386730]  ttm mptbase drm pata_acpi fjes
[  104.388078] CPU: 0 PID: 24009 Comm: fsx-linux Tainted: G           OE   4.10.0-nova #8
[  104.390645] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 07/02/2015
[  104.393732] task: ffff8def8b7c8000 task.stack: ffffb5871027c000
[  104.395471] RIP: 0010:get_page_from_freelist+0x1e6/0xb20
[  104.397034] RSP: 0018:ffffb5871027fad8 EFLAGS: 00010002
[  104.398573] RAX: 0000000000000000 RBX: ffffb5871027fbb0 RCX: ffff8defb961d070
[  104.400654] RDX: 0000000000000000 RSI: 0000000000060c20 RDI: 000000000000420a
[  104.402720] RBP: ffffb5871027fb98 R08: ffffe97d42b4dfa0 R09: 0000000000000010
[  104.404800] R10: 0000000000000000 R11: 0000000000000002 R12: 0000000000000000
[  104.406826] R13: ffff8defbffd5090 R14: ffff8defbffd3680 R15: ffffe97d42b4df80
[  104.408959] FS:  00007f83168de700(0000) GS:ffff8defb9600000(0000) knlGS:0000000000000000
[  104.411270] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  104.413163] CR2: 0000000000000008 CR3: 00000000544ca000 CR4: 00000000003406f0
[  104.415463] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  104.417438] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  104.419428] Call Trace:
[  104.420142]  __alloc_pages_nodemask+0xff/0x260
[  104.421388]  alloc_pages_current+0x95/0x140
[  104.422613]  __get_free_pages+0xe/0x30
[  104.423690]  tlb_next_batch.isra.41+0x37/0x70
[  104.424971]  unmap_page_range+0x6d9/0x8b0
[  104.426108]  unmap_single_vma+0x7d/0xe0
[  104.427235]  unmap_vmas+0x51/0xa0
[  104.428209]  unmap_region+0xbd/0x130
[  104.429224]  do_munmap+0x273/0x460
[  104.430314]  SyS_munmap+0x50/0x70
[  104.431299]  entry_SYSCALL_64_fastpath+0x1e/0xad
[  104.432658] RIP: 0033:0x7f8316413c77
[  104.433709] RSP: 002b:00007ffc854957f8 EFLAGS: 00000297 ORIG_RAX: 000000000000000b
[  104.435876] RAX: ffffffffffffffda RBX: 0000000000007ac1 RCX: 00007f8316413c77
[  104.437890] RDX: 0000000000000000 RSI: 000000000000a02a RDI: 00007f83168ef000
[  104.439863] RBP: 000000000001102a R08: 0000000000000006 R09: 00007f831686d03a
[  104.441828] R10: 0000000000000001 R11: 0000000000000297 R12: 00007ffc85495820
[  104.443797] R13: 00007f83168ef000 R14: 0000000000000006 R15: 0000000000009569
[  104.445765] Code: 49 39 c0 0f 84 88 06 00 00 45 85 ff 0f 84 52 03 00 00 49 83 c1 01 49 c1 e1 04 4e 8b 44 09 08 4d 8d 78 e0 49 8b 47 28 49 8b 57 20 <48> 89 42 08 48 89 10 48 b8 00 01 00 00 00 00 ad de 49 89 47 20
[  104.451172] RIP: get_page_from_freelist+0x1e6/0xb20 RSP: ffffb5871027fad8
[  104.453072] CR2: 0000000000000008
[  104.454029] ---[ end trace 8043131bb0ae64dd ]---
[  104.775567] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
[  104.777081] IP: get_page_from_freelist+0x1e6/0xb20
[  104.777988] PGD 0

[  104.778761] Oops: 0002 [#2] SMP
[  104.779377] 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 uvcvideo videobuf2_vmalloc dax_pmem videobuf2_memops snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq joydev nd_pmem vmw_vsock_vmci_transport vsock dax nd_btt videobuf2_v4l2 input_leds videobuf2_core serio_raw videodev snd_timer btusb snd_seq_device btrtl media btbcm btintel bluetooth snd soundcore i2c_piix4 vmw_vmci shpchp nfit mac_hid parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid vmwgfx psmouse drm_kms_helper mptspi scsi_transport_spi mptscsih ahci libahci e1000 syscopyarea sysfillrect sysimgblt fb_sys_fops
[  104.795482]  ttm mptbase drm pata_acpi fjes
[  104.796600] CPU: 1 PID: 5 Comm: kworker/u256:0 Tainted: G      D    OE   4.10.0-nova #8
[  104.798473] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 07/02/2015
[  104.800968] Workqueue: events_freezable_power_ disk_events_workfn
[  104.802438] task: ffff8defb8bfda00 task.stack: ffffb5870066c000
[  104.803816] RIP: 0010:get_page_from_freelist+0x1e6/0xb20
[  104.805053] RSP: 0018:ffffb5870066fa80 EFLAGS: 00010002
[  104.806266] RAX: 0000000000000000 RBX: ffffb5870066fb58 RCX: ffff8defb965d070
[  104.807921] RDX: 0000000000000000 RSI: 0000000000060c20 RDI: 000000000000420a
[  104.809554] RBP: ffffb5870066fb40 R08: ffffe97d42b4dea0 R09: 0000000000000010
[  104.811190] R10: 0000000000000000 R11: 0000000000000002 R12: 0000000000000000
[  104.812861] R13: ffff8defbffd5090 R14: ffff8defbffd3680 R15: ffffe97d42b4de80
[  104.814625] FS:  0000000000000000(0000) GS:ffff8defb9640000(0000) knlGS:0000000000000000
[  104.816539] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  104.817947] CR2: 0000000000000008 CR3: 00000002112ba000 CR4: 00000000003406e0
[  104.819856] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  104.821596] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  104.823308] Call Trace:
[  104.823929]  ? alloc_request_struct+0x19/0x20
[  104.824985]  __alloc_pages_nodemask+0xff/0x260
[  104.826078]  alloc_pages_current+0x95/0x140
[  104.827099]  bio_copy_kern+0xce/0x200
[  104.827993]  blk_rq_map_kern+0xa1/0x130
[  104.829057]  __scsi_execute.isra.23+0x77/0x1d0
[  104.830144]  scsi_execute_req_flags+0x9c/0x110
[  104.831232]  sr_check_events+0xc4/0x2e0
[  104.832182]  cdrom_check_events+0x18/0x30
[  104.833174]  sr_block_check_events+0x2a/0x30
[  104.834280]  disk_check_events+0x5f/0x140
[  104.835408]  disk_events_workfn+0x16/0x20
[  104.836384]  process_one_work+0x1fc/0x490
[  104.837366]  worker_thread+0x4b/0x500
[  104.838264]  kthread+0x101/0x140
[  104.839075]  ? process_one_work+0x490/0x490
[  104.840113]  ? kthread_create_on_node+0x60/0x60
[  104.841214]  ret_from_fork+0x2c/0x40
[  104.842097] Code: 49 39 c0 0f 84 88 06 00 00 45 85 ff 0f 84 52 03 00 00 49 83 c1 01 49 c1 e1 04 4e 8b 44 09 08 4d 8d 78 e0 49 8b 47 28 49 8b 57 20 <48> 89 42 08 48 89 10 48 b8 00 01 00 00 00 00 ad de 49 89 47 20
[  104.846691] RIP: get_page_from_freelist+0x1e6/0xb20 RSP: ffffb5870066fa80
[  104.848321] CR2: 0000000000000008
[  104.849150] ---[ end trace 8043131bb0ae64de ]---
stevenjswanson commented 7 years ago

See #40