lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 21 Jan 2015 12:38:35 +0800
From:	Huang Ying <ying.huang@...el.com>
To:	Joonsoo Kim <iamjoonsoo.kim@....com>
Cc:	Stephen Rothwell <sfr@...b.auug.org.au>,
	LKML <linux-kernel@...r.kernel.org>, LKP ML <lkp@...org>
Subject: [LKP] [mm/slub] BUG: using smp_processor_id() in preemptible
 [00000000] code: swapper/0/1

FYI, we noticed the below changes on

git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
commit d2dc80750ee05ceb03c9b13b0531a782116d1ade ("mm/slub: optimize alloc/free fastpath by removing preemption on/off")


+-------------------------------------------------------------+------------+------------+
|                                                             | 8e32336269 | d2dc80750e |
+-------------------------------------------------------------+------------+------------+
| boot_successes                                              | 8          | 4          |
| boot_failures                                               | 2          | 16         |
| WARNING:at_net/netlink/genetlink.c:#genl_unbind()           | 2          | 5          |
| backtrace:do_group_exit                                     | 2          | 5          |
| backtrace:SyS_exit_group                                    | 2          | 5          |
| BUG:using_smp_processor_id()in_preemptible[#]code:swapper   | 0          | 6          |
| backtrace:getname_kernel                                    | 0          | 6          |
| backtrace:run_init_process                                  | 0          | 6          |
| backtrace:do_execve                                         | 0          | 6          |
| BUG:using_smp_processor_id()in_preemptible[#]code:init      | 0          | 1          |
| backtrace:vfs_stat                                          | 0          | 1          |
| backtrace:SyS_stat64                                        | 0          | 1          |
| BUG:using_smp_processor_id()in_preemptible[#]code:kdevtmpfs | 0          | 5          |
| backtrace:devtmpfsd                                         | 0          | 5          |
| backtrace:security_inode_alloc                              | 0          | 5          |
| backtrace:inode_init_always                                 | 0          | 5          |
+-------------------------------------------------------------+------------+------------+


[   20.990104] Freeing unused kernel memory: 1080K (c2519000 - c2627000)
[   20.991245] Write protecting the kernel text: 15384k
[   20.992234] Write protecting the kernel read-only data: 4576k
[   20.993120] BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1
[   20.994412] caller is debug_smp_processor_id+0x12/0x20
[   20.995217] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.19.0-rc5-next-20150119-g9a0b319 #20
[   20.996576] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[   20.997462]  00000000 d36d5f2c c1ef8e08 c2629a00 00000001 d36d5f5c c16138f2 c2276ca0
[   21.001341]  c2275818 c22108b0 00000000 d36d82f0 00000001 c2275818 c2629a80 d36467e0
[   21.003155]  00000001 d36d5f64 c1613912 d36d5f88 c115e37b 000000e0 c11787df 000000d0
[   21.004939] Call Trace:
[   21.005457]  [<c1ef8e08>] dump_stack+0x4c/0x9b
[   21.006178]  [<c16138f2>] check_preemption_disabled+0xf2/0x100
[   21.007078]  [<c1613912>] debug_smp_processor_id+0x12/0x20
[   21.007923]  [<c115e37b>] kmem_cache_alloc+0x4b/0x2e0
[   21.008729]  [<c11787df>] ? getname_kernel+0x3f/0xa0
[   21.009519]  [<c11787df>] getname_kernel+0x3f/0xa0
[   21.010296]  [<c1000382>] run_init_process+0x12/0x30
[   21.011096]  [<c1eeb259>] kernel_init+0x39/0xe0
[   21.011838]  [<c1f033a1>] ret_from_kernel_thread+0x21/0x30
[   21.012685]  [<c1eeb220>] ? rest_init+0x80/0x80
[   21.013428] BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1
[   21.014710] caller is debug_smp_processor_id+0x12/0x20
[   21.015514] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.19.0-rc5-next-20150119-g9a0b319 #20
[   21.016838] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[   21.017714]  00000000 d36d5efc c1ef8e08 c2627200 00000001 d36d5f2c c16138f2 c2276ca0
[   21.019516]  c2275818 c22108b0 00000000 d36d82f0 00000001 c2275818 c2627238 d3401a20
[   21.021337]  00000001 d36d5f34 c1613912 d36d5f5c c115e65b 000000c8 00000000 c117557f
[   21.023124] Call Trace:
[   21.023631]  [<c1ef8e08>] dump_stack+0x4c/0x9b
[   21.024354]  [<c16138f2>] check_preemption_disabled+0xf2/0x100
[   21.025240]  [<c1613912>] debug_smp_processor_id+0x12/0x20
[   21.026085]  [<c115e65b>] kmem_cache_alloc_trace+0x4b/0x2b0
[   21.026943]  [<c117557f>] ? do_execveat_common+0xaf/0x6f0
[   21.027777]  [<c1057e48>] ? unshare_files+0x28/0x70
[   21.028559]  [<c117557f>] do_execveat_common+0xaf/0x6f0
[   21.029376]  [<c115e44f>] ? kmem_cache_alloc+0x11f/0x2e0
[   21.030216]  [<c11787df>] ? getname_kernel+0x3f/0xa0
[   21.031005]  [<c1175bd9>] do_execve+0x19/0x20
[   21.031731]  [<c1000391>] run_init_process+0x21/0x30
[   21.032524]  [<c1eeb259>] kernel_init+0x39/0xe0
[   21.033259]  [<c1f033a1>] ret_from_kernel_thread+0x21/0x30
[   21.034101]  [<c1eeb220>] ? rest_init+0x80/0x80
[   21.034843] BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1
[   21.036109] caller is debug_smp_processor_id+0x12/0x20
[   21.036919] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.19.0-rc5-next-20150119-g9a0b319 #20
[   21.038253] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[   21.039130]  00000000 d36d5ed0 c1ef8e08 c2629300 00000001 d36d5f00 c16138f2 c2276ca0
[   21.040941]  c2275818 c22108b0 00000000 d36d82f0 00000001 c2275818 c2629378 d340c6c0
[   21.042721]  00000001 d36d5f08 c1613912 d36d5f2c c115e37b 00000000 c1077501 000000d0
[   21.044511] Call Trace:
[   21.045012]  [<c1ef8e08>] dump_stack+0x4c/0x9b
[   21.045741]  [<c16138f2>] check_preemption_disabled+0xf2/0x100
[   21.046719]  [<c1613912>] debug_smp_processor_id+0x12/0x20
[   21.047569]  [<c115e37b>] kmem_cache_alloc+0x4b/0x2e0
[   21.048366]  [<c1077501>] ? prepare_creds+0x21/0xd0
[   21.049152]  [<c1077501>] prepare_creds+0x21/0xd0
[   21.049922]  [<c10775be>] prepare_exec_creds+0xe/0x40
[   21.050754]  [<c117507e>] prepare_bprm_creds+0x2e/0x90
[   21.051577]  [<c117558f>] do_execveat_common+0xbf/0x6f0
[   21.052389]  [<c115e44f>] ? kmem_cache_alloc+0x11f/0x2e0
[   21.053226]  [<c11787df>] ? getname_kernel+0x3f/0xa0
[   21.054023]  [<c1175bd9>] do_execve+0x19/0x20
[   21.054749]  [<c1000391>] run_init_process+0x21/0x30
[   21.055545]  [<c1eeb259>] kernel_init+0x39/0xe0
[   21.056284]  [<c1f033a1>] ret_from_kernel_thread+0x21/0x30
[   21.057150]  [<c1eeb220>] ? rest_init+0x80/0x80
[   21.057909] BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1
[   21.059187] caller is debug_smp_processor_id+0x12/0x20
[   21.060002] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.19.0-rc5-next-20150119-g9a0b319 #20
[   21.061367] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[   21.062243]  00000000 d36d5ea0 c1ef8e08 c2626f00 00000001 d36d5ed0 c16138f2 c2276ca0
[   21.064052]  c2275818 c22108b0 00000000 d36d82f0 00000001 c2275818 c2626fe0 d3401240
[   21.065852]  00000001 d36d5ed8 c1613912 d36d5f00 c1160dbb c22108b0 00000018 000000d0
[   21.067664] Call Trace:
[   21.068163]  [<c1ef8e08>] dump_stack+0x4c/0x9b
[   21.068898]  [<c16138f2>] check_preemption_disabled+0xf2/0x100
[   21.069788]  [<c1613912>] debug_smp_processor_id+0x12/0x20
[   21.070660]  [<c1160dbb>] __kmalloc_track_caller+0xbb/0x310
[   21.071529]  [<c1557d98>] ? selinux_cred_prepare+0x18/0x30
[   21.072376]  [<c1135abb>] kmemdup+0x1b/0x70
[   21.073078]  [<c1557d98>] selinux_cred_prepare+0x18/0x30
[   21.073908]  [<c15523f5>] security_prepare_creds+0x15/0x20
[   21.074758]  [<c107757e>] prepare_creds+0x9e/0xd0
[   21.075522]  [<c10775be>] prepare_exec_creds+0xe/0x40
[   21.076316]  [<c117507e>] prepare_bprm_creds+0x2e/0x90
[   21.077145]  [<c117558f>] do_execveat_common+0xbf/0x6f0
[   21.077972]  [<c115e44f>] ? kmem_cache_alloc+0x11f/0x2e0
[   21.078796]  [<c11787df>] ? getname_kernel+0x3f/0xa0
[   21.079658]  [<c1175bd9>] do_execve+0x19/0x20
[   21.080416]  [<c1000391>] run_init_process+0x21/0x30
[   21.081207]  [<c1eeb259>] kernel_init+0x39/0xe0
[   21.081965]  [<c1f033a1>] ret_from_kernel_thread+0x21/0x30
[   21.082820]  [<c1eeb220>] ? rest_init+0x80/0x80
[   21.083645] BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1
[   21.086668] caller is debug_smp_processor_id+0x12/0x20
[   21.088527] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.19.0-rc5-next-20150119-g9a0b319 #20
[   21.091115] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[   21.092803]  00000000 d36d5df8 c1ef8e08 c2629b00 00000000 d36d5e28 c16138f2 c2276ca0
[   21.096294]  c2275818 c22108b0 00000000 d36d82f0 00000001 c2275818 c2629be8 d3648120
[   21.098264]  00000000 d36d5e30 c1613912 d36d5e54 c115e37b d3401240 c116fe83 000080d0
[   21.100141] Call Trace:
[   21.100672]  [<c1ef8e08>] dump_stack+0x4c/0x9b
[   21.101428]  [<c16138f2>] check_preemption_disabled+0xf2/0x100
[   21.102339]  [<c1613912>] debug_smp_processor_id+0x12/0x20
[   21.103227]  [<c115e37b>] kmem_cache_alloc+0x4b/0x2e0
[   21.104055]  [<c116fe83>] ? get_empty_filp+0x53/0x210
[   21.104883]  [<c116fe83>] get_empty_filp+0x53/0x210
[   21.105687]  [<c117ced1>] path_openat+0x21/0x780
[   21.106477]  [<c1087493>] ? update_curr+0x83/0x240
[   21.107267]  [<c117d65c>] do_filp_open+0x2c/0xb0
[   21.108043]  [<c108050e>] ? preempt_count_sub+0x13e/0x150
[   21.108906]  [<c1f02adc>] ? _raw_spin_unlock_irq+0x4c/0x60
[   21.109777]  [<c107c360>] ? finish_task_switch+0xb0/0x120
[   21.110658]  [<c108050e>] ? preempt_count_sub+0x13e/0x150
[   21.111523]  [<c1efe94f>] ? __schedule+0x5af/0xab0
[   21.112385]  [<c11738d4>] do_open_execat+0x64/0x130
[   21.113211]  [<c11756aa>] do_execveat_common+0x1da/0x6f0
[   21.114069]  [<c1175bd9>] do_execve+0x19/0x20
[   21.114826]  [<c1000391>] run_init_process+0x21/0x30
[   21.115652]  [<c1eeb259>] kernel_init+0x39/0xe0
[   21.116437]  [<c1f033a1>] ret_from_kernel_thread+0x21/0x30
[   21.117313]  [<c1eeb220>] ? rest_init+0x80/0x80
[   21.118090] BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1
[   21.119426] caller is debug_smp_processor_id+0x12/0x20
[   21.120271] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.19.0-rc5-next-20150119-g9a0b319 #20
[   21.121672] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[   21.122587]  00000000 d36d5dd8 c1ef8e08 c2626f00 00000000 d36d5e08 c16138f2 c2276ca0
[   21.124464]  c2275818 c22108b0 00000000 d36d82f0 00000001 c2275818 c2626f68 d3401d80
[   21.126320]  00000000 d36d5e10 c1613912 d36d5e38 c115e65b 00000010 d36d5e2c c1558db2
[   21.128215] Call Trace:
[   21.128750]  [<c1ef8e08>] dump_stack+0x4c/0x9b
[   21.129512]  [<c16138f2>] check_preemption_disabled+0xf2/0x100
[   21.130447]  [<c1613912>] debug_smp_processor_id+0x12/0x20
[   21.131313]  [<c115e65b>] kmem_cache_alloc_trace+0x4b/0x2b0
[   21.132205]  [<c1558db2>] ? selinux_file_alloc_security+0x32/0x50
[   21.133163]  [<c1558db2>] selinux_file_alloc_security+0x32/0x50
[   21.134099]  [<c1552184>] security_file_alloc+0x14/0x20
[   21.134951]  [<c116fed4>] get_empty_filp+0xa4/0x210
[   21.135754]  [<c117ced1>] path_openat+0x21/0x780
[   21.136537]  [<c1087493>] ? update_curr+0x83/0x240
[   21.137331]  [<c117d65c>] do_filp_open+0x2c/0xb0
[   21.138108]  [<c108050e>] ? preempt_count_sub+0x13e/0x150
[   21.138975]  [<c1f02adc>] ? _raw_spin_unlock_irq+0x4c/0x60
[   21.139847]  [<c107c360>] ? finish_task_switch+0xb0/0x120
[   21.140739]  [<c108050e>] ? preempt_count_sub+0x13e/0x150
[   21.141611]  [<c1efe94f>] ? __schedule+0x5af/0xab0
[   21.142411]  [<c11738d4>] do_open_execat+0x64/0x130
[   21.143218]  [<c11756aa>] do_execveat_common+0x1da/0x6f0
[   21.144070]  [<c1175bd9>] do_execve+0x19/0x20
[   21.144812]  [<c1000391>] run_init_process+0x21/0x30
[   21.145634]  [<c1eeb259>] kernel_init+0x39/0xe0
[   21.146398]  [<c1f033a1>] ret_from_kernel_thread+0x21/0x30
[   21.147284]  [<c1eeb220>] ? rest_init+0x80/0x80
[   21.148146] BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1
[   21.150858] caller is debug_smp_processor_id+0x12/0x20
[   21.152583] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.19.0-rc5-next-20150119-g9a0b319 #20
[   21.155328] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[   21.156793]  00000000 d36d5ef0 c1ef8e08 c2629600 00000001 d36d5f20 c16138f2 c2276ca0
[   21.160640]  c2275818 c22108b0 00000000 d36d82f0 00000001 c2275818 c26296c0 d3646c60
[   21.162429]  00000001 d36d5f28 c1613912 d36d5f4c c115e37b 00000001 c1055a09 000000d0
[   21.164205] Call Trace:
[   21.164716]  [<c1ef8e08>] dump_stack+0x4c/0x9b
[   21.165443]  [<c16138f2>] check_preemption_disabled+0xf2/0x100
[   21.166323]  [<c1613912>] debug_smp_processor_id+0x12/0x20
[   21.167178]  [<c115e37b>] kmem_cache_alloc+0x4b/0x2e0
[   21.167974]  [<c1055a09>] ? mm_alloc+0x19/0x70
[   21.168707]  [<c1080125>] ? sched_exec+0x95/0xc0
[   21.169461]  [<c1055a09>] mm_alloc+0x19/0x70
[   21.170183]  [<c11757ac>] do_execveat_common+0x2dc/0x6f0
[   21.171012]  [<c1175bd9>] do_execve+0x19/0x20
[   21.171736]  [<c1000391>] run_init_process+0x21/0x30
[   21.172521]  [<c1eeb259>] kernel_init+0x39/0xe0
[   21.173254]  [<c1f033a1>] ret_from_kernel_thread+0x21/0x30
[   21.174100]  [<c1eeb220>] ? rest_init+0x80/0x80
[   21.174877] BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1
[   21.176149] caller is debug_smp_processor_id+0x12/0x20
[   21.176969] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.19.0-rc5-next-20150119-g9a0b319 #20
[   21.178296] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[   21.179173]  00000000 d36d5f00 c1ef8e08 c2629700 00000001 d36d5f30 c16138f2 c2276ca0
[   21.180981]  c2275818 c22108b0 00000000 d36d82f0 00000001 c2275818 c2629738 d3646360
[   21.182771]  00000001 d36d5f38 c1613912 d36d5f5c c115e37b d0532280 c11757cb 000080d0
[   21.184559] Call Trace:
[   21.185056]  [<c1ef8e08>] dump_stack+0x4c/0x9b
[   21.185791]  [<c16138f2>] check_preemption_disabled+0xf2/0x100
[   21.186685]  [<c1613912>] debug_smp_processor_id+0x12/0x20
[   21.187543]  [<c115e37b>] kmem_cache_alloc+0x4b/0x2e0
[   21.188332]  [<c11757cb>] ? do_execveat_common+0x2fb/0x6f0
[   21.189179]  [<c11757cb>] do_execveat_common+0x2fb/0x6f0
[   21.190023]  [<c1175bd9>] do_execve+0x19/0x20
[   21.190748]  [<c1000391>] run_init_process+0x21/0x30
[   21.191547]  [<c1eeb259>] kernel_init+0x39/0xe0
[   21.192286]  [<c1f033a1>] ret_from_kernel_thread+0x21/0x30
[   21.193129]  [<c1eeb220>] ? rest_init+0x80/0x80
[   21.193923] BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1
[   21.195202] caller is debug_smp_processor_id+0x12/0x20
[   21.196009] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.19.0-rc5-next-20150119-g9a0b319 #20
[   21.197351] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[   21.198227]  00000000 d36d5da0 c1ef8e08 c2629000 00000001 d36d5dd0 c16138f2 c2276ca0
[   21.200033]  c2275818 c22108b0 00000000 d36d82f0 00000001 c2275818 c26290a8 d340c360
[   21.201830]  00000001 d36d5dd8 c1613912 d36d5dfc c115e37b c108490a c1153272 000000d0

Thanks,
Huang, Ying


View attachment "config-3.19.0-rc4-gd2dc807" of type "text/plain" (98313 bytes)

View attachment ".dmesg" of type "text/plain" (51226 bytes)

_______________________________________________
LKP mailing list
LKP@...ux.intel.com

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ