Comment 3 for bug 1734686

Revision history for this message
Ben Noordhuis (cdzl) wrote :

If it helps, I got a similar but not identical error today. It's the `BUG_ON(!PageCompound(page))` in the `!PageSlab(page)` branch inside kfree().

[18592.784836] ------------[ cut here ]------------
[18592.784837] kernel BUG at /build/linux-KM2a5S/linux-4.13.0/mm/slub.c:3878!
[18592.784841] invalid opcode: 0000 [#1] PREEMPT SMP
[18592.784849] Modules linked in: xt_tcpudp iptable_filter cfg80211 binfmt_misc snd_hda_codec_hdmi intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm snd_hda_codec_realtek irqbypass snd_hda_codec_generic r8712u(C) crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_hda_intel pcbc snd_hda_codec input_leds aesni_intel aes_x86_64 crypto_simd glue_helper cryptd snd_hda_core snd_hwdep intel_cstate intel_rapl_perf snd_seq_midi snd_pcm snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device snd_timer snd mei_me soundcore mei lpc_ich shpchp ie31200_edac mac_hid cuse parport_pc ppdev lp parport ip_tables x_tables autofs4 nouveau mxm_wmi wmi i2c_algo_bit ttm drm_kms_helper syscopyarea sysfillrect hid_generic sysimgblt fb_sys_fops uas ahci usbhid usb_storage drm r8169 libahci hid mii video
[18592.784900] CPU: 7 PID: 15983 Comm: cctest Tainted: G C 4.13.0-17-lowlatency #20-Ubuntu
[18592.784904] Hardware name: MEDION H77H2-EM/H77H2-EM, BIOS EM0411-M8 04/11/2012
[18592.784907] task: ffff8b9f42ad4c80 task.stack: ffffa900cd9bc000
[18592.784913] RIP: 0010:kfree+0x144/0x190
[18592.784916] RSP: 0018:ffffa900cd9bfd50 EFLAGS: 00010246
[18592.784919] RAX: ffffdb6b8e5c7fa0 RBX: ffffffffffffffff RCX: 0000000000000002
[18592.784922] RDX: 0000000000000000 RSI: 0000000000010080 RDI: 0000000317200000
[18592.784925] RBP: ffffa900cd9bfd68 R08: 000000000001f640 R09: ffffffff83fc7979
[18592.784929] R10: ffffdb6b8e5c7fc0 R11: 0000000000000000 R12: ffff8b9dd7fa5000
[18592.784934] R13: ffffffff83baa5ee R14: 0000000000000000 R15: ffff8b9f4c6110a0
[18592.784937] FS: 00007f70c231eb80(0000) GS:ffff8b9f5edc0000(0000) knlGS:0000000000000000
[18592.784941] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[18592.784944] CR2: 00007ffd2000fee8 CR3: 000000040bf6b000 CR4: 00000000001406e0
[18592.784947] Call Trace:
[18592.784953] security_sk_free+0x3e/0x50
[18592.784958] __sk_destruct+0x108/0x190
[18592.784961] sk_destruct+0x20/0x30
[18592.784964] __sk_free+0x82/0xa0
[18592.784967] sk_free+0x19/0x20
[18592.784971] tcp_close+0x230/0x3f0
[18592.784975] inet_release+0x3c/0x60
[18592.784978] sock_release+0x1f/0x80
[18592.784980] sock_close+0x12/0x20
[18592.784984] __fput+0xe1/0x220
[18592.784987] ____fput+0xe/0x10
[18592.784991] task_work_run+0x76/0x90
[18592.784995] exit_to_usermode_loop+0xc4/0xd0
[18592.784998] syscall_return_slowpath+0x59/0x60
[18592.785002] entry_SYSCALL_64_fastpath+0xa7/0xa9
[18592.785006] RIP: 0033:0x7f70c122cdf0
[18592.785008] RSP: 002b:00007ffd20010a10 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
[18592.785012] RAX: 0000000000000000 RBX: 000000000000000c RCX: 00007f70c122cdf0
[18592.785015] RDX: 0000000000000000 RSI: 0000000000000002 RDI: 000000000000000c
[18592.785018] RBP: 00007ffd20010a50 R08: 00005563aae89a50 R09: 00007ffd20010a50
[18592.785021] R10: 00007ffd20010a3c R11: 0000000000000293 R12: 00007f70c231ead8
[18592.785024] R13: 0000000000000011 R14: 00005563aa1bbeb8 R15: 00005563aa1bc140
[18592.785028] Code: 85 c0 75 e6 65 ff 0d 8c e4 5d 7c 0f 85 f0 fe ff ff e8 ee 40 dd ff e9 e6 fe ff ff 49 8b 02 f6 c4 80 75 0a 49 8b 42 20 a8 01 75 02 <0f> 0b 49 8b 02 31 f6 f6 c4 80 74 04 41 8b 72 6c 4c 89 d7 e8 a4
[18592.785050] RIP: kfree+0x144/0x190 RSP: ffffa900cd9bfd50
[18592.809568] ---[ end trace b46b59552a7a66b7 ]---