swapops.h:129!

Un peu d'Admin
1 mai 2017

ERRATUM
En fait le build 4.10.0-21-generic ne corrige pas le problème.
Au dire de https://www.mail-archive.com/ubuntu-bugs@lists.ubuntu.com/msg5179478.html , le kernel mainline 4.10.12 http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.12/ fixe le bug.
Download:

linux-headers-4.10.12-041012_4.10.12-041012.201704210512_all.deb
linux-headers-4.10.12-041012-generic_4.10.12-041012.201704210512_amd64.deb
linux-image-4.10.12-041012-generic_4.10.12-041012.201704210512_amd64.deb

Install

dpkg -i linux*-4.10.12*.deb 

Depuis la mise à jour de ma machine vers ubuntu 17.04, de temps en temps je me prends une sorte de Kernel panic qui m’oblige a redémarrer le PC.

kernel BUG at /build/linux-2NWldV/linux-4.10.0/include/linux/swapops.h:129!
May  1 14:55:53 woody kernel: [69674.335277] invalid opcode: 0000 [#1] SMP
May  1 14:55:53 woody kernel: [69674.335279] Modules linked in: nfnetlink_queue nfnetlink_log nfnetlink btrfs xor raid6_pq ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs cpuid xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp bridge stp llc ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter vmnet(OE) nfsv3 nfs_acl vmw_vsock_vmci_transport vsock vmw_vmci rpcsec_gss_krb5 auth_rpcgss nfsv4 vmmon(OE) nfs lockd grace fscache rfcomm pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) cmac bnep vboxdrv(OE) binfmt_misc uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core videodev media joydev snd_hda_codec_hdmi ath3k btusb btrtl btbcm btintel bluetooth input_leds snd_usb_audio intel_rapl
May  1 14:55:53 woody kernel: [69674.335310]  snd_usbmidi_lib xpad ff_memless x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm snd_hda_codec_realtek snd_hda_codec_generic irqbypass crct10dif_pclmul snd_hda_intel snd_hda_codec crc32_pclmul ghash_clmulni_intel snd_hda_core cryptd snd_hwdep intel_cstate intel_rapl_perf snd_pcm nvidia_uvm(POE) snd_seq_midi snd_seq_midi_event arc4 ath9k snd_rawmidi ath9k_common ath9k_hw ath mac80211 snd_seq cfg80211 snd_seq_device snd_timer snd mei_me soundcore mei ie31200_edac shpchp edac_core lpc_ich wmi mac_hid nf_nat_pptp nf_nat_proto_gre nf_conntrack_pptp nf_conntrack_proto_gre nf_nat nf_conntrack libcrc32c cuse parport_pc ppdev sunrpc lp parport ip_tables x_tables autofs4 uas usb_storage hid_generic usbhid hid nvidia_drm(POE) nvidia_modeset(POE) nvidia(POE) drm_kms_helper syscopyarea
May  1 14:55:53 woody kernel: [69674.335339]  ahci sysfillrect sysimgblt libahci e1000e fb_sys_fops drm ptp pps_core fjes video
May  1 14:55:53 woody kernel: [69674.335346] CPU: 3 PID: 4573 Comm: IPDL Background Tainted: P           OE   4.10.0-20-generic #22-Ubuntu
May  1 14:55:53 woody kernel: [69674.335347] Hardware name: Acer Aspire M3985/Aspire M3985, BIOS P11-A3 10/18/2012
May  1 14:55:53 woody kernel: [69674.335349] task: ffff997d7cae9680 task.stack: ffffa59f8ac74000
May  1 14:55:53 woody kernel: [69674.335355] RIP: 0010:__migration_entry_wait+0x16a/0x180
May  1 14:55:53 woody kernel: [69674.335356] RSP: 0000:ffffa59f8ac77d68 EFLAGS: 00010246
May  1 14:55:53 woody kernel: [69674.335358] RAX: 000fffffc0048078 RBX: fffff107c08fc270 RCX: fffff107c08fc270
May  1 14:55:53 woody kernel: [69674.335359] RDX: 0000000000000001 RSI: ffff997823f09800 RDI: fffff107c07b4000
May  1 14:55:53 woody kernel: [69674.335360] RBP: ffffa59f8ac77d80 R08: ffff997d7e1bdd00 R09: ffff997d7e1bdd00
May  1 14:55:53 woody kernel: [69674.335362] R10: 00007f8bb98fcfe8 R11: 00007f8bb98fcfd0 R12: fffff107c07b4000
May  1 14:55:53 woody kernel: [69674.335363] R13: 3e0000000001ed00 R14: ffffa59f8ac77e30 R15: ffff99795f3a5bb8
May  1 14:55:53 woody kernel: [69674.335364] FS:  00007f8bcc1fd700(0000) GS:ffff997d9dd80000(0000) knlGS:0000000000000000
May  1 14:55:53 woody kernel: [69674.335366] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
May  1 14:55:53 woody kernel: [69674.335367] CR2: 00007f8b43b00000 CR3: 00000004bba42000 CR4: 00000000001406e0
....

La version du kernel est celle livrée par défaut: 4.10.0-20-generic
Il semble que ce bug commence à être référencé pour certaine configuration de matériel: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1687267
Pour solutionné ce problème, j’ai trouvé le PPA for Canonical Kernel Team, ce ppa ne doit normalement pas être utilisé car ce repo permet de tester les futurs kernels des distributions UBUNTU.
En attendant le sortie OFFICIELLE du kernel 4.10.0-21-generic qui semble corriger le problème:

sudo add-apt-repository ppa:canonical-kernel-team/ppa
sudo apt-get update
sudo apt-get dist-upgrade.

Moss : « I came here to drink milk and kick ass… and I’ve just finished my milk. »