Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error mounting encrypted volume #8489

Closed
jpfingstmann opened this issue Mar 8, 2019 · 2 comments
Closed

Error mounting encrypted volume #8489

jpfingstmann opened this issue Mar 8, 2019 · 2 comments

Comments

@jpfingstmann
Copy link

System information

Type Version/Name
Distribution Name Kubuntu
Distribution Version 18.10
Linux Kernel Linux melchior 4.18.0-16-generic #17-Ubuntu SMP Fri Feb 8 00:06:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Architecture x86_64
ZFS Version 0.8.0-rc3_66_gf8bb2a7e0
SPL Version 0.8.0-rc3_66_gf8bb2a7e0

Describe the problem you're observing

I have an encrypted path that has lots of smaller files in it. I was able to mount it without a problem and use it, although with heavy use, I was getting an error and the filesystem would hang until rebooted. I changed to USB 2.0 as I had seen errors related to USB and was testing when it crashed again when doing a chown -R in the encrypted directory. Upon reboot, I updated the pool, as I've been reluctant to do so and was hoping that would help. Once I imported the pool, I ran the zpool upgrade and then ran zfs load-key -a, put in the key (which was accepted) and did a zfs mount -a (at this point it did something (with heavy i/o) for about 2 minutes before returning i/o error and dmesg showed the crash as listed below.

Include any warning/errors/backtraces from the system logs

[  698.738447] BUG: unable to handle kernel NULL pointer dereference at 0000000000000001
[  698.738450] PGD 0 P4D 0 
[  698.738452] Oops: 0010 [#1] SMP PTI
[  698.738454] CPU: 3 PID: 12176 Comm: mount.zfs Tainted: P           OE     4.18.0-16-generic #17-Ubuntu
[  698.738455] Hardware name: Gigabyte Technology Co., Ltd. Z97X-SLI/Z97X-SLI-CF, BIOS F9 09/18/2015
[  698.738457] RIP: 0010:0x1
[  698.738458] Code: Bad RIP value.
[  698.738461] RSP: 0018:ffffb934c3c9b000 EFLAGS: 00010202
[  698.738463] RAX: 0000000000000001 RBX: ffff8e3cf0c602b8 RCX: 0000000000000001
[  698.738464] RDX: 0000000000000008 RSI: ffffb934c3c9b01c RDI: ffffb934c3c9b020
[  698.738465] RBP: ffffb934c3c9b058 R08: 0000000000000008 R09: 0000000000000001
[  698.738466] R10: ffff8e3e54cb6900 R11: ffff8e3dc11ef400 R12: 0000000000000000
[  698.738467] R13: ffff8e3d28210320 R14: ffff8e3d716af000 R15: 0000000000000008
[  698.738468] FS:  00007f476c0657c0(0000) GS:ffff8e3e7ecc0000(0000) knlGS:0000000000000000
[  698.738469] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  698.738470] CR2: ffffffffffffffd7 CR3: 00000007c9848004 CR4: 00000000001606e0
[  698.738471] Call Trace:
[  698.738522]  ? sa_copy_data+0x5d/0xc0 [zfs]
[  698.738527]  ? spl_kmem_alloc+0xe9/0x130 [spl]
[  698.738555]  sa_build_layouts+0x262/0x910 [zfs]
[  698.738559]  ? spl_kmem_zalloc+0xdf/0x130 [spl]
[  698.738586]  sa_modify_attrs+0x29f/0x410 [zfs]
[  698.738614]  sa_attr_op+0x289/0x3f0 [zfs]
[  698.738641]  sa_bulk_update_impl+0x65/0x100 [zfs]
[  698.738669]  sa_bulk_update+0x55/0x90 [zfs]
[  698.738698]  zfs_setattr_dir+0x2da/0x500 [zfs]
[  698.738719]  ? dmu_buf_will_dirty+0x16/0x20 [zfs]
[  698.738722]  ? spl_kmem_free+0x33/0x40 [spl]
[  698.738744]  ? dmu_tx_destroy+0xd8/0xf0 [zfs]
[  698.738773]  zfs_setattr+0x1c9d/0x21d0 [zfs]
[  698.738776]  ? _cond_resched+0x19/0x30
[  698.738779]  ? __kmalloc_node+0x204/0x2c0
[  698.738782]  ? spl_kmem_zalloc+0xdf/0x130 [spl]
[  698.738785]  ? spl_kmem_zalloc+0xdf/0x130 [spl]
[  698.738813]  ? zfs_fuid_info_alloc+0x21/0x60 [zfs]
[  698.738842]  zfs_replay_setattr+0x16f/0x210 [zfs]
[  698.738871]  zil_replay_log_record+0xb2/0x1a0 [zfs]
[  698.738900]  ? zil_replay_error.isra.21+0xa0/0xa0 [zfs]
[  698.738928]  zil_parse+0x65b/0x8f0 [zfs]
[  698.738956]  ? zil_replay_error.isra.21+0xa0/0xa0 [zfs]
[  698.738985]  ? zil_set_logbias+0x20/0x20 [zfs]
[  698.739014]  zil_replay+0xbc/0x120 [zfs]
[  698.739043]  zfsvfs_setup+0x165/0x200 [zfs]
[  698.739073]  zfs_domount+0x379/0x3e0 [zfs]
[  698.739102]  zpl_mount+0x142/0x180 [zfs]
[  698.739105]  mount_fs+0x3d/0x155
[  698.739107]  vfs_kern_mount.part.36+0x5d/0x110
[  698.739109]  do_mount+0x213/0xcf0
[  698.739111]  ? copy_mount_options+0x2c/0x220
[  698.739113]  ksys_mount+0xbf/0xe0
[  698.739114]  __x64_sys_mount+0x25/0x30
[  698.739118]  do_syscall_64+0x5a/0x110
[  698.739120]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  698.739121] RIP: 0033:0x7f476c8a190a
[  698.739122] Code: 48 8b 0d 89 85 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 56 85 0c 00 f7 d8 64 89 01 48 
[  698.739140] RSP: 002b:00007ffd01ff2438 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[  698.739141] RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f476c8a190a
[  698.739142] RDX: 000055f04d47d11b RSI: 00007ffd01ff6580 RDI: 00007ffd01ff883b
[  698.739143] RBP: 0000000000000005 R08: 00007ffd01ff3580 R09: 0000000000000000
[  698.739144] R10: 0000000001000000 R11: 0000000000000246 R12: 000055f04d4a75d0
[  698.739145] R13: 00007ffd01ff2580 R14: 0000000000000000 R15: 00007ffd01ff3580
[  698.739146] Modules linked in: zfs(POE) zavl(POE) icp(POE) zcommon(POE) znvpair(POE) spl(OE) pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) nfsv3 nfs_acl nfs lockd grace fscache xt_nat xt_tcpudp veth vxlan ip6_udp_tunnel udp_tunnel iptable_mangle xt_mark xt_conntrack ipt_MASQUERADE nfnetlink xfrm_user xfrm_algo iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack xt_addrtype bpfilter overlay aufs binfmt_misc zunicode(POE) zlua(POE) snd_hda_codec_hdmi mxm_wmi intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass snd_soc_rt5640 snd_soc_rl6231 snd_soc_core snd_compress ac97_bus snd_pcm_dmaengine snd_seq_midi snd_seq_midi_event snd_rawmidi snd_hda_intel snd_hda_codec snd_seq snd_hda_core snd_hwdep intel_cstate input_leds intel_rapl_perf
[  698.739174]  snd_pcm snd_seq_device mei_me snd_timer mei ie31200_edac snd soundcore wmi mac_hid acpi_pad nvidia_uvm(POE) sch_fq_codel iptable_filter ip6table_filter ip6_tables br_netfilter bridge stp llc arp_tables parport_pc ppdev sunrpc lp parport ip_tables x_tables autofs4 btrfs xor zstd_compress raid6_pq libcrc32c algif_skcipher af_alg dm_crypt hid_generic usbhid hid uas usb_storage crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc nvidia_drm(POE) nvidia_modeset(POE) gpio_ich nvidia(POE) drm_kms_helper aesni_intel syscopyarea sysfillrect sysimgblt fb_sys_fops aes_x86_64 crypto_simd cryptd glue_helper drm ahci e1000e ipmi_devintf libahci lpc_ich ipmi_msghandler video [last unloaded: spl]
[  698.739201] CR2: 0000000000000001
[  698.739203] ---[ end trace 392a0431d89b20ef ]---
[  698.739204] RIP: 0010:0x1
[  698.739204] Code: Bad RIP value.
[  698.739207] RSP: 0018:ffffb934c3c9b000 EFLAGS: 00010202
[  698.739208] RAX: 0000000000000001 RBX: ffff8e3cf0c602b8 RCX: 0000000000000001
[  698.739209] RDX: 0000000000000008 RSI: ffffb934c3c9b01c RDI: ffffb934c3c9b020
[  698.739210] RBP: ffffb934c3c9b058 R08: 0000000000000008 R09: 0000000000000001
[  698.739211] R10: ffff8e3e54cb6900 R11: ffff8e3dc11ef400 R12: 0000000000000000
[  698.739212] R13: ffff8e3d28210320 R14: ffff8e3d716af000 R15: 0000000000000008
[  698.739213] FS:  00007f476c0657c0(0000) GS:ffff8e3e7ecc0000(0000) knlGS:0000000000000000
[  698.739214] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  698.739215] CR2: ffffffffffffffd7 CR3: 00000007c9848004 CR4: 00000000001606e0

-->

@jpfingstmann
Copy link
Author

Looks like you're right. I will close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@jpfingstmann and others