← Back to team overview

kernel-packages team mailing list archive

[Bug 1496438] Re: 4.2.0.7 BUG: unable to handle kernel NULL pointer dereference at 0000000000000334

 

Hello.
I got the closest kernel bug on ubuntu vivid in linkage: lxc-container+sparse file+overlayfs+btrfs+apt-get

uname -a
Linux codio 3.19.0-28-generic #30-Ubuntu SMP Mon Aug 31 15:52:51 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux


[ 3108.003616] BUG: unable to handle kernel NULL pointer dereference at 0000000000000394
[ 3108.004433] IP: [<ffffffffc05a20a7>] btrfs_sync_file+0xa7/0x310 [btrfs]
[ 3108.004983] PGD 0 
[ 3108.005314] Oops: 0002 [#2] SMP 
[ 3108.005739] Modules linked in: binfmt_misc veth overlay squashfs btrfs xor raid6_pq xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_i
pv4 nf_nat nf_conntrack xt_tcpudp bridge stp llc iptable_filter ip_tables x_tables nfsv3 nfs_acl nfs lockd grace fscache vboxsf(OE) ppdev crct10dif_pclmul crc32_pclmul ghash_clmulni_intel parport_pc serio_
raw parport vboxguest(OE) video sunrpc autofs4 aesni_intel aes_x86_64 glue_helper lrw gf128mul ablk_helper cryptd psmouse e1000 ahci libahci
[ 3108.011335] CPU: 0 PID: 560 Comm: apt-get Tainted: G      D    OE  3.19.0-28-generic #30-Ubuntu
[ 3108.012120] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
[ 3108.012862] task: ffff8800d52844b0 ti: ffff880081870000 task.ti: ffff880081870000
[ 3108.013561] RIP: 0010:[<ffffffffc05a20a7>]  [<ffffffffc05a20a7>] btrfs_sync_file+0xa7/0x310 [btrfs]
[ 3108.014479] RSP: 0018:ffff880081873e88  EFLAGS: 00010292
[ 3108.014890] RAX: ffff8800d52844b0 RBX: ffff8800d55f1300 RCX: 0000000000000001
[ 3108.015438] RDX: 0000000080000000 RSI: ffff880081873df0 RDI: ffff88008012d6d8
[ 3108.015942] RBP: ffff880081873ef8 R08: 0000000000000001 R09: 0000000000000001
[ 3108.016417] R10: 0000000000000000 R11: 00007ff6639ba000 R12: ffff88008012d6d8
[ 3108.016896] R13: ffff88008012d630 R14: 0000000000000000 R15: 00007ff6639ba000
[ 3108.017395] FS:  00007ff6672ab740(0000) GS:ffff8800da600000(0000) knlGS:0000000000000000
[ 3108.018087] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 3108.018518] CR2: 0000000000000394 CR3: 00000000d42a2000 CR4: 00000000000406f0
[ 3108.019010] Stack:
[ 3108.019286]  ffff88007fe24e08 ffff8800801fa840 0000000000004fff 0000000000000000
[ 3108.020130]  0000000000000000 ffff8800d5284958 0000000000000001 0000000000000004
[ 3108.020924]  ffff88007fe6e180 ffff8800d5773e40 00007ff6651ba000 0000000000000000
[ 3108.021690] Call Trace:
[ 3108.021976]  [<ffffffff81226bab>] vfs_fsync_range+0x1b/0x30
[ 3108.022391]  [<ffffffff811b5e22>] SyS_msync+0x212/0x270
[ 3108.022785]  [<ffffffff817cb6cd>] system_call_fastpath+0x16/0x1b
[ 3108.023211] Code: 49 83 c7 10 44 89 e2 48 89 de ff d1 49 8b 0f 48 85 c9 75 e8 eb a7 66 0f 1f 44 00 00 4d 8d a5 a8 00 00 00 4c 89 e7 e8 19 71 22 c1 <f0> 41 ff 86 94 03 00 00 49 8b 45 80 48 8b 55 a0 48 c1
 e8 07 83 
[ 3108.027139] RIP  [<ffffffffc05a20a7>] btrfs_sync_file+0xa7/0x310 [btrfs]
[ 3108.027650]  RSP <ffff880081873e88>
[ 3108.027989] CR2: 0000000000000394
[ 3108.028363] ---[ end trace 09cb25e18c13cc77 ]---


How to repeat:

truncate -s 5G images/databases.img
mkfs.btrfs -b 5G images/databases.img
sudo mount -t btrfs images/databases.img mounts/databases

lxc config is:

lxc.include = /usr/share/lxc/config/ubuntu.common.conf
lxc.include = /usr/share/lxc/config/ubuntu.userns.conf
lxc.arch = x86_64
lxc.rootfs = overlayfs:/var/lib/lxc/database/rootfs:./databases/delta0
lxc.rootfs.mount = ./databases/rootfs
lxc.network.type = veth
lxc.network.link = lxcbr0
lxc.network.flags = up

/var/lib/lxc/database/rootfs is lxc template for ubuntu vivid

sudo lxc-start -F -P . -n databases

In started containet trying to run any apt-get install command. it is
failed with log above

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1496438

Title:
  4.2.0.7 BUG: unable to handle kernel NULL pointer dereference at
  0000000000000334

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  I don't know how to reproduce this, as it worked for 2 weeks before
  happening, but was consistent then.

  I used btrfs on top of bcache on top of lvm. While trying to sbuild a
  package I got strange errors, got this messge in dmesg.

  Kernel 4.2.0-7-lowlatency release: wily:

  lsblk:
  NAME             MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
  sda                8:0    0 465,8G  0 disk  
  ├─hdd-Work       252:4    0 232,9G  0 lvm   
  │ └─bcache0      251:0    0 232,9G  0 disk  /home
  └─hdd-Home       252:5    0 232,9G  0 lvm   
    └─bcache1      251:1    0 232,9G  0 disk  /media/Work
  sdb                8:16   0 238,5G  0 disk  
  ├─sdb1             8:17   0   512M  0 part  /boot/efi
  ├─sdb2             8:18   0   244M  0 part  /boot
  └─sdb3             8:19   0 237,8G  0 part  
    ├─ssd-root     252:0    0    64G  0 lvm   /
    ├─ssd-bcache   252:1    0    64G  0 lvm   
    │ ├─bcache0    251:0    0 232,9G  0 disk  /home
    │ └─bcache1    251:1    0 232,9G  0 disk  /media/Work
    ├─ssd-swap     252:2    0     8G  0 lvm   
    │ └─cryptswap1 252:6    0     8G  0 crypt [SWAP]
    └─ssd-Free     252:3    0 101,8G  0 lvm   /media/Free
  loop0              7:0    0   800M  0 loop  
  └─secrets        252:7    0   798M  0 crypt /home/kick/Secrets

  Kernel traces:
  [  224.670454] BUG: unable to handle kernel NULL pointer dereference at 0000000000000334
  [  224.672387] IP: [<ffffffffc0305601>] btrfs_sync_file+0xc1/0x360 [btrfs]
  [  224.674261] PGD 8451a067 PUD 84527067 PMD 0
  [  224.676056] Oops: 0002 [#1] PREEMPT SMP
  [  224.677810] Modules linked in: algif_skcipher af_alg ipt_REJECT nf_reject_ipv4 ebtable_filter ebtables ip6_tables overlay xt_addrtype xt_conntrack xt_CHECKSUM ax88179_178a iptable_mangle usbnet ipt_MASQUERADE rtsx_usb_ms nf_nat_masquerade_ipv4 aufs iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 mii memstick nf_nat_ipv4 nf_nat nf_conntrack xt_tcpudp bridge stp llc binfmt_misc iptable_filter ip_tables x_tables bnep drbg ansi_cprng dm_crypt nls_iso8859_1 intel_rapl iosf_mbi x86_pkg_temp_thermal intel_powerclamp coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul snd_soc_rt5640 glue_helper ablk_helper snd_soc_rl6231 cryptd snd_soc_core input_leds serio_raw hid_sensor_rotation snd_compress ac97_bus snd_pcm_dmaengine snd_seq_midi snd_seq_midi_event snd_hda_codec_realtek
  [  224.683606]  hid_sensor_incl_3d uvcvideo videobuf2_vmalloc snd_hda_codec_generic hid_sensor_als videobuf2_memops hid_sensor_magn_3d snd_hda_codec_hdmi hid_sensor_accel_3d hid_sensor_gyro_3d btusb hid_sensor_trigger btrtl industrialio_triggered_buffer btbcm snd_rawmidi joydev btintel videobuf2_core kfifo_buf snd_hda_intel industrialio snd_hda_codec hid_sensor_iio_common v4l2_common videodev snd_hda_core hid_multitouch snd_hwdep media bluetooth mei_me snd_seq lpc_ich mei snd_pcm snd_seq_device dw_dmac dw_dmac_core snd_timer snd soundcore ideapad_laptop sparse_keymap 8250_dw i2c_designware_platform mac_hid spi_pxa2xx_platform soc_button_array i2c_designware_core snd_soc_sst_acpi kvm_intel kvm parport_pc ppdev lp parport autofs4 btrfs xor raid6_pq hid_sensor_custom hid_sensor_hub uas usb_storage bcache
  [  224.689905]  hid_generic usbhid rtsx_usb_sdmmc rtsx_usb i915 i2c_algo_bit drm_kms_helper drm psmouse ahci libahci sdhci_acpi sdhci video i2c_hid hid
  [  224.694241] CPU: 1 PID: 2915 Comm: debconf-set-sel Tainted: G        W       4.2.0-7-lowlatency #7-Ubuntu
  [  224.696433] Hardware name: LENOVO 20344/INVALID, BIOS 96CN25WW(V1.11) 07/09/2014
  [  224.698641] task: ffff880099723800 ti: ffff880084510000 task.ti: ffff880084510000
  [  224.700843] RIP: 0010:[<ffffffffc0305601>]  [<ffffffffc0305601>] btrfs_sync_file+0xc1/0x360 [btrfs]
  [  224.703068] RSP: 0018:ffff880084513e38  EFLAGS: 00010292
  [  224.705272] RAX: ffff880099723800 RBX: ffff880159625400 RCX: 0000000000000000
  [  224.707505] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff880098237a58
  [  224.709733] RBP: ffff880084513eb8 R08: 0000000000000001 R09: 0000000001f94ff0
  [  224.711962] R10: 000000000000009c R11: 0000000000000246 R12: ffff880098237a58
  [  224.714191] R13: ffff8800982379b0 R14: 0000000000000000 R15: 0000000000000000
  [  224.716431] FS:  00007fdffa459700(0000) GS:ffff88015f240000(0000) knlGS:0000000000000000
  [  224.718656] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  [  224.720882] CR2: 0000000000000334 CR3: 000000008456a000 CR4: 00000000001406e0
  [  224.723098] Stack:
  [  224.725289]  ffff880159625410 0000000200000001 8000000000000000 ffff8800981d7d80
  [  224.727494]  7fffffffffffffff 0000000000000000 0000000000000000 ffff88009a803000
  [  224.729686]  0000000000001144 0000000000000002 ffff880084513ea8 ffff880159625400
  [  224.731860] Call Trace:
  [  224.733994]  [<ffffffff8122468b>] vfs_fsync_range+0x4b/0xb0
  [  224.736142]  [<ffffffff8122474d>] do_fsync+0x3d/0x70
  [  224.738275]  [<ffffffff812249d0>] SyS_fsync+0x10/0x20
  [  224.740379]  [<ffffffff817c4bf2>] entry_SYSCALL_64_fastpath+0x16/0x75
  [  224.742476] Code: eb a1 e8 37 da cf c0 eb 9a 48 8b 45 a0 4c 8b 75 a8 4d 8d a5 a8 00 00 00 4c 89 e7 4c 29 f0 48 83 c0 01 48 89 45 90 e8 0f d4 4b c1 <f0> 41 ff 87 34 03 00 00 49 8b 85 70 ff ff ff 48 c1 e8 07 83 e0
  [  224.744787] RIP  [<ffffffffc0305601>] btrfs_sync_file+0xc1/0x360 [btrfs]
  [  224.746956]  RSP <ffff880084513e38>
  [  224.749088] CR2: 0000000000000334
  [  224.751273] ---[ end trace 7e8588f0d9eb10fa ]---

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1496438/+subscriptions


References