system crash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

system crash

1,010 Views
codehopezhang
Contributor I

hi, 

   i use i.MX6 Processors,and version 4.1.15 of kernel.

   i had added some options about iptables  ,namespace ,cgroup  to the kernel ,and then i change something like this

1.sysctl net.netfilter.nf_conntrack_max=131072
2.echo "32768" > /sys/module/nf_conntrack/parameters/hashsize

When I enter the second article, the system crashed like this

[ 4433.931432] ------------[ cut here ]------------
[ 4433.936109] WARNING: CPU: 1 PID: 580 at kernel/sched/core.c:2574 preempt_count_add+0x118/0x11c()
[ 4433.945000] DEBUG_LOCKS_WARN_ON((preempt_count() & PREEMPT_MASK) >= PREEMPT_MASK - 10)
[ 4433.952818] Modules linked in: ip_vs libcrc32c evbug
[ 4433.958101] CPU: 1 PID: 580 Comm: bash Not tainted 4.1.15 #34
[ 4433.963932] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[ 4433.970588] [<80015f1c>] (unwind_backtrace) from [<8001284c>] (show_stack+0x10/0x14)
[ 4433.978376] [<8001284c>] (show_stack) from [<80871bc4>] (dump_stack+0x84/0xc4)
[ 4433.985703] [<80871bc4>] (dump_stack) from [<80036f54>] (warn_slowpath_common+0x84/0xb4)
[ 4433.993899] [<80036f54>] (warn_slowpath_common) from [<80036fb4>] (warn_slowpath_fmt+0x30/0x40)
[ 4434.002698] [<80036fb4>] (warn_slowpath_fmt) from [<80056c5c>] (preempt_count_add+0x118/0x11c)
[ 4434.011418] [<80056c5c>] (preempt_count_add) from [<80879e38>] (_raw_spin_lock+0x10/0x50)
[ 4434.019640] [<80879e38>] (_raw_spin_lock) from [<806c1f0c>] (nf_conntrack_set_hashsize+0xa4/0x224)
[ 4434.028702] [<806c1f0c>] (nf_conntrack_set_hashsize) from [<8004eda4>] (param_attr_store+0x4c/0x98)
[ 4434.037862] [<8004eda4>] (param_attr_store) from [<80163010>] (kernfs_fop_write+0xb8/0x19c)
[ 4434.046319] [<80163010>] (kernfs_fop_write) from [<800ffbb4>] (__vfs_write+0x20/0xd8)
[ 4434.054250] [<800ffbb4>] (__vfs_write) from [<80100398>] (vfs_write+0x90/0x164)
[ 4434.061654] [<80100398>] (vfs_write) from [<80100bc0>] (SyS_write+0x44/0x9c)
[ 4434.068750] [<80100bc0>] (SyS_write) from [<8000f5c0>] (ret_fast_syscall+0x0/0x3c)
[ 4434.076401] ---[ end trace 296b90dad5b60445 ]---
root@node139:~# [ 4434.082696] BUG: scheduling while atomic: bash/580/0x00000401
[ 4434.089805] Modules linked in: ip_vs libcrc32c evbug

how can i do to fix this problem ?

Attachment is the kernel information.

Best regards

Labels (2)
0 Kudos
Reply
2 Replies

838 Views
igorpadykov
NXP Employee
NXP Employee

Hi hpzz

one can try to debug it using AN4553 Using Open Source Debugging Tools for Linux on i.MX Processors
https://www.nxp.com/docs/en/application-note/AN4553.pdf

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

838 Views
codehopezhang
Contributor I

I did some other things to circumvent this problem. If there is time, I will debug it according to the way you provide, thank you.

0 Kudos
Reply