Subject: Re: linux-next: Tree for Mar 6

From: Josh Cartwright <[email-masked]>
Date: Thu, 6 Mar 2014 09:53:16 -0600

On Thu, Mar 06, 2014 at 07:48:21PM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> There may be build failures in this tree due to the percpu changes in the
> akpm tree.
> 
> This tree fails (more than usual) the powerpc allyesconfig build.
> 
> Changes since 20140305:
> 

Booting on my Samsung Series 9 laptop gives me loads and loads of BUGs
triggered by __this_cpu_add(), making making the system completely
unusable:

[    5.808326] BUG: using __this_cpu_add() in preemptible [00000000] code: swapper/0/1
[    5.812331] caller is __this_cpu_preempt_check+0x2b/0x30
[    5.815654] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.14.0-rc5-next-20140306-joshc-08290-g0ffb2fe #1
[    5.819553] Hardware name: SAMSUNG ELECTRONICS CO., LTD. 900X3C/900X3D/900X3E/900X4C/900X4D/NP900X3E-A02US, BIOS P07ABK 04/09/2013
[    5.823558]  ffff8801182157c0 ffff880118215790 ffffffff81a64cec 0000000000000000
[    5.827177]  ffff8801182157b0 ffffffff81462360 ffff8800c3d553e0 ffffea00030f5500
[    5.830744]  ffff8801182157e8 ffffffff814623bb 635f736968745f5f 29286464615f7570
[    5.834134] Call Trace:
[    5.836848]  [<ffffffff81a64cec>] dump_stack+0x4e/0x7a
[    5.839943]  [<ffffffff81462360>] check_preemption_disabled+0xd0/0xe0
[    5.842997]  [<ffffffff814623bb>] __this_cpu_preempt_check+0x2b/0x30
[    5.846022]  [<ffffffff81a6331d>] __slab_free+0x38/0x590
[    5.848863]  [<ffffffff811759dd>] ? get_parent_ip+0xd/0x50
[    5.850467] BUG: using __this_cpu_add() in preemptible [00000000] code: khubd/36
[    5.850472] caller is __this_cpu_preempt_check+0x2b/0x30
[    5.859125]  [<ffffffff81175b3b>] ? preempt_count_sub+0x6b/0xf0
[    5.862521]  [<ffffffff81a7175a>] ? _raw_spin_unlock_irqrestore+0x4a/0x80
[    5.865599]  [<ffffffff81462e5e>] ? __debug_check_no_obj_freed+0x13e/0x240
[    5.868738]  [<ffffffff814623bb>] ? __this_cpu_preempt_check+0x2b/0x30
[    5.871799]  [<ffffffff81287327>] kfree+0x2f7/0x300
[    5.874754]  [<ffffffff81363e64>] ? ext4_ext_map_blocks+0x184/0x1950
[    5.877818]  [<ffffffff81363e64>] ext4_ext_map_blocks+0x184/0x1950
[    5.880862]  [<ffffffff811759dd>] ? get_parent_ip+0xd/0x50
[    5.883940]  [<ffffffff81334b2c>] ? ext4_map_blocks+0x2dc/0x530
[    5.886943]  [<ffffffff81334a55>] ext4_map_blocks+0x205/0x530
[    5.889912]  [<ffffffff81334fe6>] ext4_getblk+0x56/0x210
[    5.893511]  [<ffffffff8133fcaf>] ext4_find_entry+0x2df/0x510
[    5.896463]  [<ffffffff811759dd>] ? get_parent_ip+0xd/0x50
[    5.899355]  [<ffffffff81175b3b>] ? preempt_count_sub+0x6b/0xf0
[    5.902252]  [<ffffffff8133ff22>] ext4_lookup+0x42/0x150
[    5.905132]  [<ffffffff812a4cbd>] lookup_real+0x1d/0x50
[    5.907984]  [<ffffffff812a5813>] __lookup_hash+0x33/0x40
[    5.910827]  [<ffffffff812a58b5>] lookup_slow+0x45/0xc0
[    5.913662]  [<ffffffff812a7b22>] link_path_walk+0x872/0x8b0
[    5.916562]  [<ffffffff8119760d>] ? trace_hardirqs_on+0xd/0x10
[    5.919460]  [<ffffffff812aa20f>] path_openat+0x9f/0x6e0
[    5.922247]  [<ffffffff812aa88a>] do_filp_open+0x3a/0x90
[    5.925066]  [<ffffffff81462380>] ? debug_smp_processor_id+0x10/0x20
[    5.928009]  [<ffffffff811952fe>] ? put_lock_stats.isra.20+0xe/0x30
[    5.930945]  [<ffffffff812a2430>] ? do_execve_common.isra.25+0x290/0x8d0
[    5.933942]  [<ffffffff812a07b2>] do_open_exec+0x22/0xe0
[    5.936765]  [<ffffffff812a243f>] do_execve_common.isra.25+0x29f/0x8d0
[    5.939716]  [<ffffffff812a22b6>] ? do_execve_common.isra.25+0x116/0x8d0
[    5.942620]  [<ffffffff81a5ab90>] ? rest_init+0x140/0x140
[    5.945391]  [<ffffffff812a2a88>] do_execve+0x18/0x20
[    5.948112]  [<ffffffff8100202b>] run_init_process+0x2b/0x30
[    5.950874]  [<ffffffff81002044>] try_to_run_init_process+0x14/0x40
[    5.953682]  [<ffffffff81a5ab90>] ? rest_init+0x140/0x140
[    5.956472]  [<ffffffff81a5ac2c>] kernel_init+0x9c/0xf0
[    5.959059]  [<ffffffff81a731fc>] ret_from_fork+0x7c/0xb0
[    5.962611]  [<ffffffff81a5ab90>] ? rest_init+0x140/0x140
[    5.965244] CPU: 1 PID: 36 Comm: khubd Not tainted 3.14.0-rc5-next-20140306-joshc-08290-g0ffb2fe #1
[    5.968014] Hardware name: SAMSUNG ELECTRONICS CO., LTD. 900X3C/900X3D/900X3E/900X4C/900X4D/NP900X3E-A02US, BIOS P07ABK 04/09/2013
[    5.971766]  ffff8801179ad920 ffff8801179ad8f0 ffffffff81a64cec 0000000000000001
[    5.975058]  ffff8801179ad910 ffffffff81462360 ffff8800c302f2c8 ffffea00030c0b00
[    5.978361]  ffff8801179ad948 ffffffff814623bb 635f736968745f5f 29286464615f7570
[    5.981656] Call Trace:
[    5.981919] BUG: using __this_cpu_add() in preemptible [00000000] code: swapper/0/1
[    5.981923] caller is __this_cpu_preempt_check+0x2b/0x30
[    5.988527]  [<ffffffff81a64cec>] dump_stack+0x4e/0x7a
[    5.990873]  [<ffffffff81462360>] check_preemption_disabled+0xd0/0xe0
[    5.993367]  [<ffffffff814623bb>] __this_cpu_preempt_check+0x2b/0x30
[    5.995793]  [<ffffffff81462300>] ? check_preemption_disabled+0x70/0xe0
[    5.998281]  [<ffffffff81a6331d>] __slab_free+0x38/0x590
[    6.000635]  [<ffffffff811759dd>] ? get_parent_ip+0xd/0x50
[    6.002976]  [<ffffffff81175b3b>] ? preempt_count_sub+0x6b/0xf0
[    6.005473]  [<ffffffff81a7175a>] ? _raw_spin_unlock_irqrestore+0x4a/0x80
[    6.007976]  [<ffffffff81462e5e>] ? __debug_check_no_obj_freed+0x13e/0x240
[    6.010481]  [<ffffffff814623bb>] ? __this_cpu_preempt_check+0x2b/0x30
[    6.012914]  [<ffffffff81287327>] kfree+0x2f7/0x300
[    6.015074]  [<ffffffff816e0f04>] ? urb_destroy+0x24/0x30
[    6.017301]  [<ffffffff816e0f04>] urb_destroy+0x24/0x30
[    6.019513]  [<ffffffff816e1061>] usb_free_urb+0x21/0x30
[    6.021676]  [<ffffffff816e1e92>] usb_start_wait_urb+0xa2/0x160
[    6.023940]  [<ffffffff81a6d7c2>] ? wait_for_common+0x122/0x170
[    6.026200]  [<ffffffff816e2425>] usb_control_msg+0xc5/0x110
[    6.028378]  [<ffffffff816e2de2>] usb_get_descriptor+0x82/0xc0
[    6.030624]  [<ffffffff816e69a3>] usb_get_configuration+0x163/0x1600
[    6.032921]  [<ffffffff81a717bc>] ? _raw_spin_unlock_irq+0x2c/0x60
[    6.035158]  [<ffffffff814623bb>] ? __this_cpu_preempt_check+0x2b/0x30
[    6.037469]  [<ffffffff81175b3b>] ? preempt_count_sub+0x6b/0xf0
[    6.039703]  [<ffffffff81a717cd>] ? _raw_spin_unlock_irq+0x3d/0x60
[    6.041913]  [<ffffffff816d84b8>] usb_new_device+0x2c8/0x370
[    6.044100]  [<ffffffff816db412>] hub_thread+0x792/0x16e0
[    6.046257]  [<ffffffff8118c450>] ? __wake_up_common+0x90/0x90
[    6.048416]  [<ffffffff816dac80>] ? usb_reset_device+0x1d0/0x1d0
[    6.050639]  [<ffffffff81163ea0>] kthread+0xf0/0x110
[    6.052685]  [<ffffffff81163db0>] ? insert_kthread_work+0x80/0x80
[    6.054911]  [<ffffffff81a731fc>] ret_from_fork+0x7c/0xb0
[    6.057052]  [<ffffffff81163db0>] ? insert_kthread_work+0x80/0x80

And so on.. (full dmesg attached)

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation