LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-06-2018, 02:40 PM   #1
baonguyen911
LQ Newbie
 
Registered: Dec 2018
Posts: 2

Rep: Reputation: Disabled
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 version 4.1.2.

2. Issue
During our driver initialization, driver is allocating a memory but getting into a issue as below. This issue is repeated very consistent on every power-up during our driver initialization. Please help to let us know any possible cause to this 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
 
Old 12-07-2018, 06:49 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by baonguyen911 View Post
1. Configuration:
- Preempt-RT: patch-4.13.7 based on Linux kernel 4.13.7
- CentOS linux 7 version 4.1.2.

2. Issue
During our driver initialization, driver is allocating a memory but getting into a issue as below. This issue is repeated very consistent on every power-up during our driver initialization. Please help to let us know any possible cause to this issue.
Code:
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
Sorry, but what do you think we'll be able to tell you past "There is a bug in your driver"??

You don't tell us anything about your hardware, what driver this is, what its for, etc. And if you WROTE the driver, you are going to be the only one who can debug it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Required adding flag on packet and routing packet based on flag over ssl tunnel. sskhan Linux - Networking 1 02-02-2018 03:56 PM
Adding a flag to the page struct bagelboy62 Linux - Kernel 5 01-31-2018 02:41 PM
How can I set master bus flag for a PCI card? Anthem Linux - Hardware 1 02-19-2005 05:13 PM
cannot login because file system check fails because of bad magic number trutnev Linux - Newbie 1 03-23-2004 06:44 PM
RH & HP4050N PCL - page, pause, page, pause, page andguent Linux - Hardware 0 11-10-2003 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration