BUG: unable to handle kernel NULL pointer dereference at 0000000000000030
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux |
Unknown
|
Unknown
|
|||
linux (Ubuntu) |
Confirmed
|
Medium
|
Tyler Hicks |
Bug Description
Trying to 'cat' a file in an overlayfs. The file is in the lowerdir which is ecryptfs. I use the attached script to create directories and randomly distributed files. $HOME is ecryptfs. /tmp/ is tmpfs.
$ pwd
$HOME/Hacking/
$ ./build.sh
$ sudo mount -t overlay overlay -o lowerdir=
$ grep /tmp /proc/mounts
tmpfs /tmp tmpfs rw,nosuid,
overlay /home/tj/
$ ls lower/1/
1b 1c 1d 1e 1f 1g 1k 1l 1o 1p 1q 1t 1u 1v 1w 1x 1y 1z
$ ls /tmp/upper/1/
1e 1i 1l 1n 1u
$ ls overlay/1/
1b 1c 1d 1e 1f 1g 1i 1k 1l 1n 1o 1p 1q 1t 1u 1v 1w 1x 1y 1z
$ cat overlay/1/1b
Killed
$ uname -r
4.13.0-
$ lsb_release -a
LSB Version: core-9.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
$ apt list linux-lowlatenc
Listing... Done
linux-lowlatenc
$ tail /var/log/kern.log
Oct 31 03:11:09 hephaestion kernel: [ 1057.380604] BUG: unable to handle kernel NULL pointer dereference at 0000000000000030
Oct 31 03:11:09 hephaestion kernel: [ 1057.380668] IP: ecryptfs_
Oct 31 03:11:09 hephaestion kernel: [ 1057.380686] PGD 20ee07067
Oct 31 03:11:09 hephaestion kernel: [ 1057.380688] P4D 20ee07067
Oct 31 03:11:09 hephaestion kernel: [ 1057.380700] PUD 20c455067
Oct 31 03:11:09 hephaestion kernel: [ 1057.380711] PMD 0
Oct 31 03:11:09 hephaestion kernel: [ 1057.380721]
Oct 31 03:11:09 hephaestion kernel: [ 1057.380741] Oops: 0000 [#1] PREEMPT SMP
Oct 31 03:11:09 hephaestion kernel: [ 1057.380755] Modules linked in: overlay hidp scsi_transport_
Oct 31 03:11:09 hephaestion kernel: [ 1057.381004] snd_hda_codec snd_hda_core input_leds snd_hwdep snd_pcm snd_seq_midi uvcvideo snd_seq_midi_event videobuf2_vmalloc videobuf2_memops snd_rawmidi videobuf2_v4l2 iwl4965 videobuf2_core iwlegacy videodev media mac80211 snd_seq r852 sm_common nand nand_ecc nand_bch bch mtd r592 memstick lpc_ich cfg80211 snd_seq_device snd_timer snd soundcore shpchp mac_hid kvm_intel kvm irqbypass parport_pc ppdev nfsd lp auth_rpcgss nfs_acl lockd grace parport sunrpc autofs4 crypto_simd glue_helper cryptd aes_x86_64 algif_skcipher af_alg dm_crypt raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear dm_mirror dm_region_hash dm_log hid_generic usbhid hid psmouse sky2 ahci nouveau libahci pata_acpi firewire_ohci sdhci_pci sdhci firewire_core
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] crc_itu_t mxm_wmi i2c_algo_bit video ttm drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm wmi
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] CPU: 0 PID: 10087 Comm: cat Tainted: P OE 4.13.0-
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] Hardware name: Dell Inc. XPS M1530 / , BIOS A12 11/19/2008
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] task: ffff8a1167050000 task.stack: ffffa10c010a8000
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] RIP: 0010:ecryptfs_
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] RSP: 0018:ffffa10c01
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] RAX: ffffa10c010abb88 RBX: ffff8a1167459540 RCX: ffff8a11677ced80
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] RDX: ffffffffbeefbe60 RSI: ffffffffbe6999fb RDI: ffffa10c010abb80
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] RBP: ffffa10c010abbd0 R08: ffffffffbdd68aa1 R09: ffff8a118a183800
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] R10: ffff8a113175d010 R11: ffff8a113175e278 R12: 0000000000000000
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] R13: ffff8a11677ced80 R14: 0000000000000000 R15: ffff8a11cd431710
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] FS: 00007f80f770070
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] CR2: 0000000000000030 CR3: 000000020d763000 CR4: 00000000000006f0
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] Call Trace:
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] ecryptfs_
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] ecryptfs_
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] do_dentry_
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] ? ecryptfs_
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] vfs_open+0x4e/0x80
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] path_openat+
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] ? unlock_
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] ? page_add_
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] do_filp_
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] ? cp_new_
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] ? __check_
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] ? __alloc_
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] do_sys_
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] ? do_sys_
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] SyS_open+0x1e/0x20
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] entry_SYSCALL_
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] RIP: 0033:0x7f80f7245010
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] RSP: 002b:00007fff05
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] RAX: ffffffffffffffda RBX: 00007fff0583fb38 RCX: 00007f80f7245010
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] RDX: 0000000000020000 RSI: 0000000000000000 RDI: 00007fff05840237
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] RBP: 0000000000001000 R08: 0000000000000000 R09: 0000000000000000
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] R10: 000000000000069d R11: 0000000000000246 R12: 00000000004025b0
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] R13: 00007fff0583fb30 R14: 0000000000000000 R15: 0000000000000000
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] Code: c2 60 be ef be 49 89 cd 65 48 8b 04 25 28 00 00 00 48 89 45 d8 31 c0 48 8d 45 90 c7 45 a8 00 00 00 00 48 8d 78 20 e8 1f 91 d5 ff <49> 8b 44 24 30 48 89 5d 90 4c 89 65 a0 4c 89 75 98 48 8b 40 28
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] RIP: ecryptfs_
Oct 31 03:11:09 hephaestion kernel: [ 1057.381012] CR2: 0000000000000030
Oct 31 03:11:09 hephaestion kernel: [ 1057.391461] ---[ end trace 1d38ad38c6419426 ]---
description: | updated |
description: | updated |
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
assignee: | nobody → Tyler Hicks (tyhicks) |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1728771
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.