[Bug 657613] New: access /proc/sched_debug cause kernel crash
https://bugzilla.novell.com/show_bug.cgi?id=657613 https://bugzilla.novell.com/show_bug.cgi?id=657613#c0 Summary: access /proc/sched_debug cause kernel crash Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Critical Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: grabli_2005@mail.ru QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) After first detecting this crash, I`ve update to latest kernel from factory and try again - problem remains. I try access /proc/sched_debug via Midnight Commander, but think cat /proc/sched_debug do the same (do not want restart again to chek it). Here log form /var/log/messages: Dec 5 02:45:05 srv kernel: [ 197.549106] BUG: unable to handle kernel NULL pointer dereference at 0000000000000038 Dec 5 02:45:05 srv kernel: [ 197.549113] IP: [<ffffffff810a785e>] cgroup_path+0x1e/0xd0 Dec 5 02:45:05 srv kernel: [ 197.549121] PGD 18fc99067 PUD 19110e067 PMD 0 Dec 5 02:45:05 srv kernel: [ 197.549125] Oops: 0000 [#1] PREEMPT SMP Dec 5 02:45:05 srv kernel: [ 197.549129] last sysfs file: /sys/devices/system/cpu/cpu7/cache/index2/shared_cpu_map Dec 5 02:45:05 srv kernel: [ 197.549133] CPU 4 Dec 5 02:45:05 srv kernel: [ 197.549135] Modules linked in: pppoe pppox f71882fg coretemp edd ip6t_LOG ipt_MASQUERADE xt_pkttype xt_TCPMSS xt_tcpudp ipt_LOG xt_limit iptable_nat nf_nat af_packet ppp_generic slhc ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_raw xt_NOTRACK ipt_REJECT iptable_raw iptable_filter ip6table_mangle nf_conntrack_netbios_ns nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables quota_v2 quota_tree fuse loop dm_mod r8169 i7core_edac shpchp edac_core sg i2c_i801 serio_raw pci_hotplug pcspkr button iTCO_wdt iTCO_vendor_support ext4 jbd2 crc16 radeon ttm drm_kms_helper drm i2c_algo_bit fan processor thermal thermal_sys Dec 5 02:45:05 srv kernel: [ 197.549187] Dec 5 02:45:05 srv kernel: [ 197.549190] Pid: 4560, comm: mc Not tainted 2.6.37-rc3-git6-8-desktop #1 MSI X58 PLATINUM SLI(MS-7522)/MS-7522 Dec 5 02:45:05 srv kernel: [ 197.549195] RIP: 0010:[<ffffffff810a785e>] [<ffffffff810a785e>] cgroup_path+0x1e/0xd0 Dec 5 02:45:05 srv kernel: [ 197.549201] RSP: 0018:ffff88018eb93d08 EFLAGS: 00010092 Dec 5 02:45:05 srv kernel: [ 197.549204] RAX: ffff8801903ccc00 RBX: ffff88018eb93d48 RCX: 0000000000000001 Dec 5 02:45:05 srv kernel: [ 197.549208] RDX: 0000000000000040 RSI: ffff88018eb93d48 RDI: 0000000000000000 Dec 5 02:45:05 srv kernel: [ 197.549212] RBP: 0000000000000000 R08: 0000000000000042 R09: 000000000006a7c9 Dec 5 02:45:05 srv kernel: [ 197.549215] R10: 0000000000000001 R11: 0000000000000246 R12: ffff88018eb93d48 Dec 5 02:45:05 srv kernel: [ 197.549219] R13: ffff88018ebc4ec0 R14: ffff88018fa4c1c0 R15: ffff88018fa4c1c0 Dec 5 02:45:05 srv kernel: [ 197.549223] FS: 00007fc890c2e700(0000) GS:ffff8800df500000(0000) knlGS:0000000000000000 Dec 5 02:45:05 srv kernel: [ 197.549228] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Dec 5 02:45:05 srv kernel: [ 197.549231] CR2: 0000000000000038 CR3: 000000018fa1c000 CR4: 00000000000006e0 Dec 5 02:45:05 srv kernel: [ 197.549235] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 Dec 5 02:45:05 srv kernel: [ 197.549239] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Dec 5 02:45:05 srv kernel: [ 197.549243] Process mc (pid: 4560, threadinfo ffff88018eb92000, task ffff88018fa4c1c0) Dec 5 02:45:05 srv kernel: [ 197.549247] Stack: Dec 5 02:45:05 srv kernel: [ 197.549249] 0000000000000033 ffff88018eb93d48 ffff88018eb93d98 ffff88018ebc4ec0 Dec 5 02:45:05 srv kernel: [ 197.549255] ffff88018ebc4ec0 ffffffff81044c9c 0000000000002d44 0000000000052025 Dec 5 02:45:05 srv kernel: [ 197.549260] 0000000000000020 ffff88018eb93da8 ffff88018eb93d68 8f92e1918111c922 Dec 5 02:45:05 srv kernel: [ 197.549266] Call Trace: Dec 5 02:45:05 srv kernel: [ 197.549275] [<ffffffff81044c9c>] print_task+0x1ac/0x440 Dec 5 02:45:05 srv kernel: [ 197.549281] [<ffffffff8104aaae>] print_cpu+0x52e/0x8a0 Dec 5 02:45:05 srv kernel: [ 197.549286] [<ffffffff8104affa>] sched_debug_show+0x1da/0x3d0 Dec 5 02:45:05 srv kernel: [ 197.549292] [<ffffffff81170c9e>] seq_read+0xde/0x450 Dec 5 02:45:05 srv kernel: [ 197.549299] [<ffffffff811acb4e>] proc_reg_read+0x7e/0xc0 Dec 5 02:45:05 srv kernel: [ 197.549306] [<ffffffff81151a83>] vfs_read+0xc3/0x180 Dec 5 02:45:05 srv kernel: [ 197.549312] [<ffffffff81151b8e>] sys_read+0x4e/0x90 Dec 5 02:45:05 srv kernel: [ 197.549318] [<ffffffff8100300b>] system_call_fastpath+0x16/0x1b Dec 5 02:45:05 srv kernel: [ 197.549324] [<00007fc88fdc4370>] 0x7fc88fdc4370 Dec 5 02:45:05 srv kernel: [ 197.549327] Code: 0f 0b 0f 0b 0f 0b 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 6c 24 10 4c 89 64 24 18 48 89 fd 48 89 5c 24 08 4c 89 6c 24 20 49 89 f4 <48> 8b 47 38 48 85 c0 74 09 48 81 ff 10 f2 cc 81 75 28 66 41 c7 Dec 5 02:45:05 srv kernel: [ 197.549353] RIP [<ffffffff810a785e>] cgroup_path+0x1e/0xd0 Dec 5 02:45:05 srv kernel: [ 197.549358] RSP <ffff88018eb93d08> Dec 5 02:45:05 srv kernel: [ 197.549360] CR2: 0000000000000038 Dec 5 02:45:05 srv kernel: [ 197.771015] ---[ end trace 031f7447158fe122 ]--- Dec 5 02:45:05 srv kernel: [ 197.771019] note: mc[4560] exited with preempt_count 1 Dec 5 02:45:05 srv kernel: [ 197.771309] BUG: scheduling while atomic: mc/4560/0x10000002 Dec 5 02:45:05 srv kernel: [ 197.771315] Modules linked in: pppoe pppox f71882fg coretemp edd ip6t_LOG ipt_MASQUERADE xt_pkttype xt_TCPMSS xt_tcpudp ipt_LOG xt_limit iptable_nat nf_nat af_packet ppp_generic slhc ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_raw xt_NOTRACK ipt_REJECT iptable_raw iptable_filter ip6table_mangle nf_conntrack_netbios_ns nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables quota_v2 quota_tree fuse loop dm_mod r8169 i7core_edac shpchp edac_core sg i2c_i801 serio_raw pci_hotplug pcspkr button iTCO_wdt iTCO_vendor_support ext4 jbd2 crc16 radeon ttm drm_kms_helper drm i2c_algo_bit fan processor thermal thermal_sys Dec 5 02:45:05 srv kernel: [ 197.771388] Pid: 4560, comm: mc Tainted: G D 2.6.37-rc3-git6-8-desktop #1 Dec 5 02:45:05 srv kernel: [ 197.771394] Call Trace: Dec 5 02:45:05 srv kernel: [ 197.771405] [<ffffffff81005a49>] dump_trace+0x79/0x340 Dec 5 02:45:05 srv kernel: [ 197.771415] [<ffffffff8151f087>] dump_stack+0x69/0x6f Dec 5 02:45:05 srv kernel: [ 197.771424] [<ffffffff8151fdb2>] thread_return+0x3cb/0x3f9 Dec 5 02:45:05 srv kernel: [ 197.771434] [<ffffffff8104da55>] __cond_resched+0x25/0x40 Dec 5 02:45:05 srv kernel: [ 197.771441] [<ffffffff8151ff0c>] _cond_resched+0x2c/0x40 Dec 5 02:45:05 srv kernel: [ 197.771450] [<ffffffff8111e086>] unmap_vmas+0x1c6/0x360 Dec 5 02:45:05 srv kernel: [ 197.771460] [<ffffffff81124f67>] exit_mmap+0xe7/0x1b0 Dec 5 02:45:05 srv kernel: [ 197.771469] [<ffffffff81055657>] mmput+0x37/0x100 Dec 5 02:45:05 srv kernel: [ 197.771478] [<ffffffff8105c0ca>] exit_mm+0x11a/0x150 Dec 5 02:45:05 srv kernel: [ 197.771487] [<ffffffff8105c24a>] do_exit+0x14a/0x430 Dec 5 02:45:05 srv kernel: [ 197.771496] [<ffffffff815237fc>] oops_end+0x9c/0xe0 Dec 5 02:45:05 srv kernel: [ 197.771504] [<ffffffff81525a35>] do_page_fault+0x485/0x520 Dec 5 02:45:05 srv kernel: [ 197.771513] [<ffffffff81522b8f>] page_fault+0x1f/0x30 Dec 5 02:45:05 srv kernel: [ 197.771522] [<ffffffff810a785e>] cgroup_path+0x1e/0xd0 Dec 5 02:45:05 srv kernel: [ 197.771530] [<ffffffff81044c9c>] print_task+0x1ac/0x440 Dec 5 02:45:05 srv kernel: [ 197.771539] [<ffffffff8104aaae>] print_cpu+0x52e/0x8a0 Dec 5 02:45:06 srv kernel: [ 197.771547] [<ffffffff8104affa>] sched_debug_show+0x1da/0x3d0 Dec 5 02:45:06 srv kernel: [ 197.771556] [<ffffffff81170c9e>] seq_read+0xde/0x450 Dec 5 02:45:06 srv kernel: [ 197.771565] [<ffffffff811acb4e>] proc_reg_read+0x7e/0xc0 Dec 5 02:45:06 srv kernel: [ 197.771574] [<ffffffff81151a83>] vfs_read+0xc3/0x180 Dec 5 02:45:06 srv kernel: [ 197.771583] [<ffffffff81151b8e>] sys_read+0x4e/0x90 Dec 5 02:45:06 srv kernel: [ 197.771592] [<ffffffff8100300b>] system_call_fastpath+0x16/0x1b Dec 5 02:45:06 srv kernel: [ 197.771598] [<00007fc88fdc4370>] 0x7fc88fdc4370 Dec 5 02:45:06 srv kernel: [ 197.771723] BUG: scheduling while atomic: mc/4560/0x10000002 Dec 5 02:45:06 srv kernel: [ 197.771724] Modules linked in: pppoe pppox f71882fg coretemp edd ip6t_LOG ipt_MASQUERADE xt_pkttype xt_TCPMSS xt_tcpudp ipt_LOG xt_limit iptable_nat nf_nat af_packet ppp_generic slhc ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_raw xt_NOTRACK ipt_REJECT iptable_raw iptable_filter ip6table_mangle nf_conntrack_netbios_ns nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables quota_v2 quota_tree fuse loop dm_mod r8169 i7core_edac shpchp edac_core sg i2c_i801 serio_raw pci_hotplug pcspkr button iTCO_wdt iTCO_vendor_support ext4 jbd2 crc16 radeon ttm drm_kms_helper drm i2c_algo_bit fan processor thermal thermal_sys Dec 5 02:45:06 srv kernel: [ 197.771743] Pid: 4560, comm: mc Tainted: G D 2.6.37-rc3-git6-8-desktop #1 Dec 5 02:45:06 srv kernel: [ 197.771744] Call Trace: Dec 5 02:45:06 srv kernel: [ 197.771749] [<ffffffff81005a49>] dump_trace+0x79/0x340 Dec 5 02:45:06 srv kernel: [ 197.771753] [<ffffffff8151f087>] dump_stack+0x69/0x6f Dec 5 02:45:06 srv kernel: [ 197.771755] [<ffffffff8151fdb2>] thread_return+0x3cb/0x3f9 Dec 5 02:45:06 srv kernel: [ 197.771759] [<ffffffff8104da55>] __cond_resched+0x25/0x40 Dec 5 02:45:06 srv kernel: [ 197.771761] [<ffffffff8151ff0c>] _cond_resched+0x2c/0x40 Dec 5 02:45:06 srv kernel: [ 197.771764] [<ffffffff8105bc53>] put_files_struct+0xc3/0x140 Dec 5 02:45:06 srv kernel: [ 197.771767] [<ffffffff8105c26d>] do_exit+0x16d/0x430 Dec 5 02:45:06 srv kernel: [ 197.771770] [<ffffffff815237fc>] oops_end+0x9c/0xe0 Dec 5 02:45:06 srv kernel: [ 197.771773] [<ffffffff81525a35>] do_page_fault+0x485/0x520 Dec 5 02:45:06 srv kernel: [ 197.771777] [<ffffffff81522b8f>] page_fault+0x1f/0x30 Dec 5 02:45:06 srv kernel: [ 197.771780] [<ffffffff810a785e>] cgroup_path+0x1e/0xd0 Dec 5 02:45:06 srv kernel: [ 197.771788] [<ffffffff81044c9c>] print_task+0x1ac/0x440 Dec 5 02:45:06 srv kernel: [ 197.771791] [<ffffffff8104aaae>] print_cpu+0x52e/0x8a0 Dec 5 02:45:06 srv kernel: [ 197.771793] [<ffffffff8104affa>] sched_debug_show+0x1da/0x3d0 Dec 5 02:45:06 srv kernel: [ 197.771796] [<ffffffff81170c9e>] seq_read+0xde/0x450 Dec 5 02:45:06 srv kernel: [ 197.771800] [<ffffffff811acb4e>] proc_reg_read+0x7e/0xc0 Dec 5 02:45:06 srv kernel: [ 197.771803] [<ffffffff81151a83>] vfs_read+0xc3/0x180 Dec 5 02:45:06 srv kernel: [ 197.771806] [<ffffffff81151b8e>] sys_read+0x4e/0x90 Dec 5 02:45:06 srv kernel: [ 197.771809] [<ffffffff8100300b>] system_call_fastpath+0x16/0x1b Dec 5 02:45:06 srv kernel: [ 197.771812] [<00007fc88fdc4370>] 0x7fc88fdc4370 Dec 5 02:45:06 srv kernel: [ 197.771923] BUG: scheduling while atomic: mc/4560/0x10000002 Dec 5 02:45:06 srv kernel: [ 197.771924] Modules linked in: pppoe pppox f71882fg coretemp edd ip6t_LOG ipt_MASQUERADE xt_pkttype xt_TCPMSS xt_tcpudp ipt_LOG xt_limit iptable_nat nf_nat af_packet ppp_generic slhc ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_raw xt_NOTRACK ipt_REJECT iptable_raw iptable_filter ip6table_mangle nf_conntrack_netbios_ns nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables quota_v2 quota_tree fuse loop dm_mod r8169 i7core_edac shpchp edac_core sg i2c_i801 serio_raw pci_hotplug pcspkr button iTCO_wdt iTCO_vendor_support ext4 jbd2 crc16 radeon ttm drm_kms_helper drm i2c_algo_bit fan processor thermal thermal_sys Dec 5 02:45:06 srv kernel: [ 197.771953] Pid: 4560, comm: mc Tainted: G D 2.6.37-rc3-git6-8-desktop #1 Dec 5 02:45:06 srv kernel: [ 197.771955] Call Trace: Dec 5 02:45:06 srv kernel: [ 197.771961] [<ffffffff81005a49>] dump_trace+0x79/0x340 Dec 5 02:45:06 srv kernel: [ 197.771965] [<ffffffff8151f087>] dump_stack+0x69/0x6f Dec 5 02:45:06 srv kernel: [ 197.771969] [<ffffffff8151fdb2>] thread_return+0x3cb/0x3f9 Dec 5 02:45:06 srv kernel: [ 197.771974] [<ffffffff8104da55>] __cond_resched+0x25/0x40 Dec 5 02:45:06 srv kernel: [ 197.771978] [<ffffffff8151ff0c>] _cond_resched+0x2c/0x40 Dec 5 02:45:06 srv kernel: [ 197.771983] [<ffffffff8105bc53>] put_files_struct+0xc3/0x140 Dec 5 02:45:06 srv kernel: [ 197.771987] [<ffffffff8105c26d>] do_exit+0x16d/0x430 Dec 5 02:45:06 srv kernel: [ 197.771992] [<ffffffff815237fc>] oops_end+0x9c/0xe0 Dec 5 02:45:06 srv kernel: [ 197.771996] [<ffffffff81525a35>] do_page_fault+0x485/0x520 Dec 5 02:45:06 srv kernel: [ 197.772001] [<ffffffff81522b8f>] page_fault+0x1f/0x30 Dec 5 02:45:06 srv kernel: [ 197.772006] [<ffffffff810a785e>] cgroup_path+0x1e/0xd0 Dec 5 02:45:06 srv kernel: [ 197.772010] [<ffffffff81044c9c>] print_task+0x1ac/0x440 Dec 5 02:45:06 srv kernel: [ 197.772014] [<ffffffff8104aaae>] print_cpu+0x52e/0x8a0 Dec 5 02:45:06 srv kernel: [ 197.772019] [<ffffffff8104affa>] sched_debug_show+0x1da/0x3d0 Dec 5 02:45:06 srv kernel: [ 197.772023] [<ffffffff81170c9e>] seq_read+0xde/0x450 Dec 5 02:45:07 srv kernel: [ 197.772027] [<ffffffff811acb4e>] proc_reg_read+0x7e/0xc0 Dec 5 02:45:07 srv kernel: [ 197.772032] [<ffffffff81151a83>] vfs_read+0xc3/0x180 Dec 5 02:45:07 srv kernel: [ 197.772036] [<ffffffff81151b8e>] sys_read+0x4e/0x90 Dec 5 02:45:07 srv kernel: [ 197.772040] [<ffffffff8100300b>] system_call_fastpath+0x16/0x1b Dec 5 02:45:07 srv kernel: [ 197.772045] [<00007fc88fdc4370>] 0x7fc88fdc4370 Reproducible: Always Steps to Reproduce: 1. start from fresh OpenSuse factory 2. run cat /proc/sched_debug Actual Results: crash Expected Results: no crash -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=657613
https://bugzilla.novell.com/show_bug.cgi?id=657613#c1
Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=657613
https://bugzilla.novell.com/show_bug.cgi?id=657613#c3
Mike Galbraith
https://bugzilla.novell.com/show_bug.cgi?id=657613
https://bugzilla.novell.com/show_bug.cgi?id=657613#c4
Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=657613
https://bugzilla.novell.com/show_bug.cgi?id=657613#c5
--- Comment #5 from Jiri Slaby
I can reproduce this here with VirtualBox running Factory with linux-2.6.37-rc3-git6-8-desktop but only on x86_64.
Right you are. Only the desktop flavor is affected which I don't by default have. (In reply to comment #3)
Can you please attach your .config? I'll try to reproduce the problem.
His ".config" you can find in the master branch in config/x86_64/desktop :). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=657613
https://bugzilla.novell.com/show_bug.cgi?id=657613#c9
Jiri Slaby
git@marge:..tmp/linux-2.6.36-master> grep AUTO .config # CONFIG_LOCALVERSION_AUTO is not set # CONFIG_AUTO_IRQ_AFFINITY is not set CONFIG_SCHED_AUTOGROUP=y <=== hello there bug CONFIG_MD_AUTODETECT=y CONFIG_B44_PCI_AUTOSELECT=y CONFIG_B44_PCICORE_AUTOSELECT=y CONFIG_B43_PCI_AUTOSELECT=y CONFIG_B43_PCICORE_AUTOSELECT=y CONFIG_B43LEGACY_PCI_AUTOSELECT=y CONFIG_B43LEGACY_PCICORE_AUTOSELECT=y CONFIG_I2C_HELPER_AUTO=y CONFIG_VIDEO_HELPER_CHIPS_AUTO=y CONFIG_AUTOFS_FS=m CONFIG_AUTOFS4_FS=m
Heh, someone make booboo, include buggy WIP patch :)
Yeah, Jeff is to blame here:
commit 2d5d397022c311c2babb71b1220619a9f6c54139
Author: Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=657613
https://bugzilla.novell.com/show_bug.cgi?id=657613#c11
--- Comment #11 from lion lion
https://bugzilla.novell.com/show_bug.cgi?id=657613
https://bugzilla.novell.com/show_bug.cgi?id=657613#c12
--- Comment #12 from Mike Galbraith
https://bugzilla.novell.com/show_bug.cgi?id=657613
https://bugzilla.novell.com/show_bug.cgi?id=657613#c13
--- Comment #13 from Mike Galbraith
This ketnel patch not needed. Same can be done in user mode: http://lkml.indiana.edu/hypermail/linux/kernel/1011.2/00331.html
You can approximate the behavior from userland, but neither as efficiently, nor via the means mentioned in the quoted thread. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=657613
https://bugzilla.novell.com/show_bug.cgi?id=657613#c14
Jeff Mahoney
participants (1)
-
bugzilla_noreply@novell.com