Ubuntu 17.04: Kernel Page Fault when swapping (swapfile)

Bug #1692482 reported by vvhk
16
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I just had Firefox froze over, with these entries in the journal:

Svi 22 11:23:03 erebus kernel: ------------[ cut here ]------------
Svi 22 11:23:03 erebus kernel: kernel BUG at /build/linux-lz1RHE/linux-4.10.0/include/linux/swapops.h:129!
Svi 22 11:23:03 erebus kernel: invalid opcode: 0000 [#1] SMP
Svi 22 11:23:03 erebus kernel: Modules linked in: binfmt_misc zfs(PO) zunicode(PO) zavl(PO) zcommon(PO) znvpair(PO) spl(O) snd_hda_codec_hdmi eeepc_wmi asus_wmi sparse_keymap nvidia_uvm(POE) intel_rapl snd_seq_m
Svi 22 11:23:03 erebus kernel: sysfillrect aes_x86_64 sysimgblt crypto_simd glue_helper fb_sys_fops cryptd r8169 ahci libahci drm mii fjes video
Svi 22 11:23:03 erebus kernel: CPU: 2 PID: 3087 Comm: JS Helper Tainted: P OE 4.10.0-21-generic #23-Ubuntu
Svi 22 11:23:03 erebus kernel: Hardware name: ASUS All Series/H81M-R, BIOS 0504 06/04/2015
Svi 22 11:23:03 erebus kernel: task: ffff89188a7c4380 task.stack: ffff99a103664000
Svi 22 11:23:03 erebus kernel: RIP: 0010:__migration_entry_wait+0x16a/0x180
Svi 22 11:23:03 erebus kernel: RSP: 0000:ffff99a103667d68 EFLAGS: 00010246
Svi 22 11:23:03 erebus kernel: RAX: 0017ffffc0048078 RBX: fffff39c071e9ab0 RCX: fffff39c071e9ab0
Svi 22 11:23:03 erebus kernel: RDX: 0000000000000001 RSI: ffff891847a6a800 RDI: fffff39c04fec000
Svi 22 11:23:03 erebus kernel: RBP: ffff99a103667d80 R08: ffff89189120f440 R09: ffff89189120f440
Svi 22 11:23:03 erebus kernel: R10: 00007f8d8dc00119 R11: 0000000000000206 R12: fffff39c04fec000
Svi 22 11:23:03 erebus kernel: R13: 3e0000000013fb00 R14: ffff99a103667e30 R15: ffff891888fa8190
Svi 22 11:23:03 erebus kernel: FS: 00007f8d71afb700(0000) GS:ffff89189ed00000(0000) knlGS:0000000000000000
Svi 22 11:23:03 erebus kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Svi 22 11:23:03 erebus kernel: CR2: 00007f8d59500018 CR3: 00000001c7970000 CR4: 00000000001406e0
Svi 22 11:23:03 erebus kernel: Call Trace:
Svi 22 11:23:03 erebus kernel: migration_entry_wait+0x74/0x80
Svi 22 11:23:03 erebus kernel: do_swap_page+0x5b3/0x770
Svi 22 11:23:03 erebus kernel: handle_mm_fault+0x873/0x1360
Svi 22 11:23:03 erebus kernel: __do_page_fault+0x23e/0x4e0
Svi 22 11:23:03 erebus kernel: do_page_fault+0x22/0x30
Svi 22 11:23:03 erebus kernel: page_fault+0x28/0x30
Svi 22 11:23:03 erebus kernel: RIP: 0033:0x56141e78d2b4
Svi 22 11:23:03 erebus kernel: RSP: 002b:00007f8d71afac40 EFLAGS: 00010217
Svi 22 11:23:03 erebus kernel: RAX: 0000000000000000 RBX: 00007f8d8dc00040 RCX: 00007f8d8de53137
Svi 22 11:23:03 erebus kernel: RDX: 0000000000000008 RSI: 0000000000002000 RDI: 00007f8d595d0000
Svi 22 11:23:03 erebus kernel: RBP: 00007f8d59500000 R08: 0000000000002000 R09: 00007f8d27a00000
Svi 22 11:23:03 erebus kernel: R10: 00007f8d8dc00119 R11: 0000000000000206 R12: 0000000000000080
Svi 22 11:23:03 erebus kernel: R13: 00007f8d8dc000c8 R14: 00000000000000cf R15: 0000000000000002
Svi 22 11:23:03 erebus kernel: Code: ff ff ff 4c 89 e7 e8 b6 a2 f8 ff e9 3c ff ff ff 85 d2 0f 84 2a ff ff ff 8d 4a 01 89 d0 f0 41 0f b1 4d 00 39 d0 74 81 89 c2 eb e5 <0f> 0b 4c 89 e7 e8 2c fb f9 ff eb b8 4c 8d 6
Svi 22 11:23:03 erebus kernel: RIP: __migration_entry_wait+0x16a/0x180 RSP: ffff99a103667d68
Svi 22 11:23:03 erebus kernel: ---[ end trace ec7b4c0f2b200f3d ]---

Therefore I'm assuming the problem is with swapping (using swapfile, default 17.04 installation). The process was locked, was unable to kill -9 it. I tried to reboot to get rid of it, but the system just hung, had to power-cycle it.

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: linux-image-generic 4.10.0.21.23
ProcVersionSignature: Ubuntu 4.10.0-21.23-generic 4.10.11
Uname: Linux 4.10.0-21-generic x86_64
NonfreeKernelModules: zfs zunicode zavl zcommon znvpair nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.4-0ubuntu4
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: vlad 2697 F.... pulseaudio
 /dev/snd/controlC0: vlad 2697 F.... pulseaudio
CurrentDesktop: Unity:Unity7
CurrentDmesg: Error: command ['dmesg'] failed with exit code 1: dmesg: read kernel buffer failed: Operation not permitted
Date: Mon May 22 11:57:23 2017
InstallationDate: Installed on 2017-05-20 (1 days ago)
InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
IwConfig:
 lo no wireless extensions.

 enp3s0 no wireless extensions.
MachineType: ASUS All Series
ProcFB: 0 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.10.0-21-generic root=UUID=27e6d38d-dc78-4528-85ce-afcd4a1c8849 ro
RelatedPackageVersions:
 linux-restricted-modules-4.10.0-21-generic N/A
 linux-backports-modules-4.10.0-21-generic N/A
 linux-firmware 1.164.1
RfKill:

SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/04/2015
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0504
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: H81M-R
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0504:bd06/04/2015:svnASUS:pnAllSeries:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnH81M-R:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: All Series
dmi.product.version: System Version
dmi.sys.vendor: ASUS

Revision history for this message
vvhk (vvhk-deactivatedaccount-deactivatedaccount) wrote :
Revision history for this message
vvhk (vvhk-deactivatedaccount-deactivatedaccount) wrote :

A few notes, reading the attached files:

1. I have ZFS module installed, but the swapfile is on root which is ext4 over LUKS encrypted partition (SSD)

2. The journal attached is post-reboot, contains no previous errors

3. Firefox, whose pages got caught swapping and this happened, runs with an enforced AppArmor profile, but there were no denials logged when that happened.

4. The swapfile was almost empty, 1MB used of 1.4GB

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
jeffbl (jeff-mulb) wrote :
Download full text (28.2 KiB)

Jun 4 22:08:27 [[machineNameRemoved]] kernel: [260194.519761] ------------[ cut here ]------------
Jun 4 22:08:27 [[machineNameRemoved]] kernel: [260194.519856] kernel BUG at /build/linux-lz1RHE/linux-4.10.0/include/linux/swapops.h:129!
Jun 4 22:08:27 [[machineNameRemoved]] kernel: [260194.519979] invalid opcode: 0000 [#1] SMP
Jun 4 22:08:27 [[machineNameRemoved]] kernel: [260194.520050] Modules linked in: rndis_host cdc_ether usbnet mii acpi_call(OE) msr ccm rfcomm xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat libcrc32c nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp cmac bridge stp llc ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter snd_usb_audio snd_usbmidi_lib bnep btusb btrtl uvcvideo btbcm videobuf2_vmalloc btintel videobuf2_memops bluetooth videobuf2_v4l2 videobuf2_core videodev media binfmt_misc nls_iso8859_1 arc4 snd_soc_skl iwlmvm snd_soc_skl_ipc snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_ext_core mac80211 snd_soc_sst_match snd_soc_core intel_rapl snd_compress x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_hdmi ac97_bus coretemp snd_hda_codec_realtek
Jun 4 22:08:27 [[machineNameRemoved]] kernel: [260194.521123] snd_pcm_dmaengine snd_hda_codec_generic kvm_intel kvm snd_hda_intel snd_hda_codec iwlwifi snd_hda_core irqbypass rtsx_pci_ms snd_hwdep intel_cstate snd_pcm joydev input_leds intel_rapl_perf cfg80211 memstick serio_raw snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq thinkpad_acpi nvram snd_seq_device snd_timer mei_me shpchp mei snd mac_hid soundcore intel_pch_thermal tpm_crb parport_pc ppdev lp parport ip_tables x_tables autofs4 algif_skcipher af_alg dm_crypt hid_logitech_hidpp hid_logitech_dj hid_generic usbhid hid rtsx_pci_sdmmc crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc i915 aesni_intel aes_x86_64 crypto_simd glue_helper i2c_algo_bit cryptd drm_kms_helper e1000e psmouse syscopyarea ptp sysfillrect pps_core sysimgblt fb_sys_fops ahci drm rtsx_pci libahci wmi video fjes
Jun 4 22:08:27 [[machineNameRemoved]] kernel: [260194.522138] CPU: 1 PID: 10588 Comm: firefox Tainted: G OE 4.10.0-21-generic #23-Ubuntu
Jun 4 22:08:27 [[machineNameRemoved]] kernel: [260194.522242] Hardware name: LENOVO [[machineModelRemoved]]/[[machineModelRemoved]], BIOS R02ET52W (1.25 ) 12/05/2016
Jun 4 22:08:27 [[machineNameRemoved]] kernel: [260194.522331] task: ffff96ce0e6f4500 task.stack: ffffaead08c1c000
Jun 4 22:08:27 [[machineNameRemoved]] kernel: [260194.522402] RIP: 0010:__migration_entry_wait+0x16a/0x180
Jun 4 22:08:27 [[machineNameRemoved]] kernel: [260194.522463] RSP: 0000:ffffaead08c1fd68 EFLAGS: 00010246
Jun 4 22:08:27 [[machineNameRemoved]] kernel: [260194.522558] RAX: 0017ffffc0048078 RBX: ffffeb83caec2830 RCX: ffffeb83caec2830
Jun 4 22:08:27 [[machineNameRemoved]] kernel: [260194.522658] RDX: 0000000000000001 RSI: ffff96ce3b0a01a0 RDI: ffffeb83c7ed8d00
Jun 4 22:08:27 [[machineNameRemoved]] kernel: [260194.522758] RBP: ffffaead08c1fd80 R08: ffff96ce0e57cd80 R09: ffff96ce0e57cd80
Jun 4 22:08:27 [[machineNameRemoved]] kernel: [260194.522858] R10: 00131a83bd23906d R11: 0000000000000001 ...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.