page dumped because: PAGE_FLAGS_CHECK_AT_PREP flag set
1. Configuration
- Preempt-RT: patch-4.13.7 based on Linux kernel 4.13.7
- CentOS Linux 7.
2. Issue
During our driver initialization, we get the following issue when allocating a memory. The issue is repeated consistently on every power-up and during our driver initialization. Please let us know a possible cause of the issue.
BUG: Bad page state in process ksoftirqd/1 pfn:00094
<0>[ 562.905453] page:ffffea0000002500 count:0 mapcount:0 mapping: (null) index:0x0
<0>[ 562.913493] flags: 0xfffff80000800(reserved)
<1>[ 562.917782] raw: 000fffff80000800 0000000000000000 0000000000000000 00000000ffffffff
<1>[ 562.917783] raw: dead000000000100 dead000000000200 0000000000000000 0000000000000000
<1>[ 562.917783] page dumped because: PAGE_FLAGS_CHECK_AT_PREP flag set
<1>[ 562.917784] bad because of flags: 0x800(reserved)
<4>[ 562.917785] Modules linked in: imc_ipc(O) b3fpga(O) bnep fuse xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 tun ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter dm_mirror dm_region_hash dm_log dm_mod dax iTCO_wdt snd_hda_codec_hdmi iTCO_vendor_support ax88179_178a usbnet mii vfat fat intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel snd_hda_intel crypto_simd glue_helper cryptd snd_hda_codec intel_cstate snd_hda_core mei_wdt snd_hwdep snd_seq intel_rapl_perf snd_seq_device snd_pcm sg pcspkr snd_timer i2c_i801 mei_me snd soundcore mei shpchp intel_pch_thermal hci_uart btbcm btqca btintel
<4>[ 562.917802] bluetooth ecdh_generic intel_lpss_acpi rfkill intel_lpss acpi_als mfd_core kfifo_buf acpi_pad industrialio nfsd auth_rpcgss nfs_acl lockd grace sunrpc ip_tables xfs libcrc32c sd_mod crc32c_intel e1000e i915 i2c_algo_bit drm_kms_helper syscopyarea ahci sysfillrect libahci sysimgblt fb_sys_fops ixgbe libata mdio drm dca ptp pps_core video i2c_hid [last unloaded: imc_ipc]
<4>[ 562.917814] CPU: 1 PID: 23 Comm: ksoftirqd/1 Tainted: G O 4.13.7-mtpnr_release-develop_rc2-1778-gcf55fd6-rt1 #1
<4>[ 562.917814] Hardware name: ADLINK TECHNOLOGY Inc. Express-KL/To be filled by O.E.M., BIOS 2.02.10 07/06/2017
<4>[ 562.917815] Call Trace:
<4>[ 562.917819] dump_stack+0x65/0x85
<4>[ 562.917821] bad_page+0xfe/0x11a
<4>[ 562.917822] check_new_page_bad+0x85/0x87
<4>[ 562.917823] get_page_from_freelist+0x77e/0xcd0
<4>[ 562.917825] ? next_arg+0x30/0xf0
<4>[ 562.917827] __alloc_pages_nodemask+0xe5/0x290
<4>[ 562.917830] alloc_pages_current+0x6a/0xb0
<4>[ 562.917831] new_slab+0x3e2/0x520
<4>[ 562.917833] ___slab_alloc+0x3ca/0x560
<4>[ 562.917839] ? ipc_util_kcalloc+0x45/0xa0 [imc_ipc]
<4>[ 562.917841] ? _raw_spin_unlock_irqrestore+0x24/0x60
<4>[ 562.917843] ? try_to_wake_up+0x6d/0x6b0
<4>[ 562.917845] __slab_alloc.isra.76+0x72/0xb6
<4>[ 562.917848] ? ipc_util_kcalloc+0x45/0xa0 [imc_ipc]
<4>[ 562.917850] __kmalloc+0x1df/0x240
<4>[ 562.917853] ipc_util_kcalloc+0x45/0xa0 [imc_ipc]
<4>[ 562.917855] imem_event_handler_cb+0x685/0xd40 [imc_ipc]
<4>[ 562.917858] ipc_ctrl_tasklet+0x45/0x90 [imc_ipc]
<4>[ 562.917859] __tasklet_action.isra.12+0x56/0xd0
<4>[ 562.917860] tasklet_action+0x78/0x80
<4>[ 562.917861] do_current_softirqs+0x1ea/0x3a0
<4>[ 562.917862] run_ksoftirqd+0x26/0x50
<4>[ 562.917863] smpboot_thread_fn+0x246/0x2d0
<4>[ 562.917865] kthread+0x109/0x140
<4>[ 562.917866] ? smpboot_update_cpumask_percpu_thread+0x1f0/0x1f0
<4>[ 562.917867] ? kthread_create_on_node+0x70/0x70
<4>[ 562.917868] ? kthread_create_on_node+0x70/0x70
<4>[ 562.917869] ret_from_fork+0x25/0x30
<4>[ 562.917871] Disabling lock debugging due to kernel taint
|