From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752456Ab2AZOWo (ORCPT ); Thu, 26 Jan 2012 09:22:44 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:54168 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751631Ab2AZOWm (ORCPT ); Thu, 26 Jan 2012 09:22:42 -0500 Message-ID: <1327587732.2296.25.camel@scapa> Subject: [3.2+] BUG: scheduling while atomic: swapper/0/0/0x10000100 From: Yves-Alexis Perez To: linux-kernel@vger.kernel.org, Kuninori Morimoto , linux-usb@vger.kernel.org Date: Thu, 26 Jan 2012 15:22:12 +0100 Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-bQiHBOC49+2FxYQC8zEj" X-Mailer: Evolution 3.2.2-1 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-bQiHBOC49+2FxYQC8zEj Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I have an issue starting with 3.2 kernel on my Thinkpad x201s. I've reported a bug on kernel bugzilla (https://bugzilla.kernel.org/show_bug.cgi?id=3D42615) but I'm not too sure anyone reads it so I'm re-reporting it here. It looks like the same bug as https://bugs.launchpad.net/linux/+bug/917962. Basically everything is explained in both bugs, but here's a summary. When I first upgraded to the 3.2 linux-image package (the system runs Debian sid amd64), few seconds after the boot is complete I got the following BUG(): Jan 20 11:27:53 scapa kernel: [ 63.904544] BUG: scheduling while atomic: = swapper/0/0/0x10000100 Jan 20 11:27:53 scapa kernel: [ 63.904550] Modules linked in: bnep rfcomm= bluetooth deflate zlib_deflate ctr twofish_generic twofish_x86_64_3way two= fish_x86_64 twofish_common camellia serpent blowfish_generic blowfish_x86_6= 4 blowfish_common nf_conntrack_ipv6 nf_defrag_ipv6 cast5 ip6table_filter ip= 6_tables des_generic nf_conntrack_ipv4 cbc nf_defrag_ipv4 xt_state xcbc nf_= conntrack rmd160 iptable_filter ip_tables x_tables sha512_generic sha256_ge= neric sha1_ssse3 sha1_generic hmac crypto_null af_key ums_realtek usb_stora= ge uas ext2 acpi_cpufreq mperf snd_hda_codec_hdmi snd_hda_codec_conexant ar= c4 snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss iwlwifi = snd_pcm mac80211 snd_timer cfg80211 ehci_hcd thinkpad_acpi usbcore e1000e s= nd psmouse iTCO_wdt soundcore pcspkr rfkill i2c_i801 iTCO_vendor_support sn= d_page_alloc intel_ips serio_raw ac usb_common nvram battery tpm_tis power_= supply tpm tpm_bios wmi evdev processor ext4 mbcache jbd2 crc16 xts gf128mu= l dm_crypt dm_mod aesni_intel cryptd aes_x86_64 aes Jan 20 11:27:53 scapa kernel: _generic sd_mod crc_t10dif ahci libahci i915 = thermal drm_kms_helper libata scsi_mod drm i2c_algo_bit button i2c_core vid= eo thermal_sys Jan 20 11:27:53 scapa kernel: [ 63.904669] CPU 0=20 Jan 20 11:27:53 scapa kernel: [ 63.904671] Modules linked in: bnep rfcomm= bluetooth deflate zlib_deflate ctr twofish_generic twofish_x86_64_3way two= fish_x86_64 twofish_common camellia serpent blowfish_generic blowfish_x86_6= 4 blowfish_common nf_conntrack_ipv6 nf_defrag_ipv6 cast5 ip6table_filter ip= 6_tables des_generic nf_conntrack_ipv4 cbc nf_defrag_ipv4 xt_state xcbc nf_= conntrack rmd160 iptable_filter ip_tables x_tables sha512_generic sha256_ge= neric sha1_ssse3 sha1_generic hmac crypto_null af_key ums_realtek usb_stora= ge uas ext2 acpi_cpufreq mperf snd_hda_codec_hdmi snd_hda_codec_conexant ar= c4 snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss iwlwifi = snd_pcm mac80211 snd_timer cfg80211 ehci_hcd thinkpad_acpi usbcore e1000e s= nd psmouse iTCO_wdt soundcore pcspkr rfkill i2c_i801 iTCO_vendor_support sn= d_page_alloc intel_ips serio_raw ac usb_common nvram battery tpm_tis power_= supply tpm tpm_bios wmi evdev processor ext4 mbcache jbd2 crc16 xts gf128mu= l dm_crypt dm_mod aesni_intel cryptd aes_x86_64 aes Jan 20 11:27:53 scapa kernel: _generic sd_mod crc_t10dif ahci libahci i915 = thermal drm_kms_helper libata scsi_mod drm i2c_algo_bit button i2c_core vid= eo thermal_sys Jan 20 11:27:53 scapa kernel: [ 63.904752]=20 Jan 20 11:27:53 scapa kernel: [ 63.904756] Pid: 0, comm: swapper/0 Not ta= inted 3.2.0-1-amd64 #1 LENOVO 51434JG/51434JG Jan 20 11:27:53 scapa kernel: [ 63.904761] RIP: 0010:[]= [] intel_idle+0xea/0x119 Jan 20 11:27:53 scapa kernel: [ 63.904773] RSP: 0018:ffffffff81601e88 EF= LAGS: 00000202 Jan 20 11:27:53 scapa kernel: [ 63.904776] RAX: 0000000000000000 RBX: fff= fffff81023b30 RCX: 0000000000007fda Jan 20 11:27:53 scapa kernel: [ 63.904779] RDX: 0000000000007fda RSI: 000= 0000000000000 RDI: 00000000000003e8 Jan 20 11:27:53 scapa kernel: [ 63.904782] RBP: 0000000000000003 R08: 000= 0000000007fa9 R09: 0000000000007fa9 Jan 20 11:27:53 scapa kernel: [ 63.904785] R10: 0000000000001311 R11: fff= fffff8160d020 R12: ffffffff81065de9 Jan 20 11:27:53 scapa kernel: [ 63.904788] R13: 000000000000003f R14: fff= fffff810659e7 R15: ffffffff8101357e Jan 20 11:27:53 scapa kernel: [ 63.904792] FS: 0000000000000000(0000) GS= :ffff880137c00000(0000) knlGS:0000000000000000 Jan 20 11:27:53 scapa kernel: [ 63.904796] CS: 0010 DS: 0000 ES: 0000 CR= 0: 000000008005003b Jan 20 11:27:53 scapa kernel: [ 63.904799] CR2: 00007fc217631aa1 CR3: 000= 0000001605000 CR4: 00000000000006f0 Jan 20 11:27:53 scapa kernel: [ 63.904802] DR0: 0000000000000000 DR1: 000= 0000000000000 DR2: 0000000000000000 Jan 20 11:27:53 scapa kernel: [ 63.904805] DR3: 0000000000000000 DR6: 000= 00000ffff0ff0 DR7: 0000000000000400 Jan 20 11:27:53 scapa kernel: [ 63.904809] Process swapper/0 (pid: 0, thr= eadinfo ffffffff81600000, task ffffffff8160d020) Jan 20 11:27:53 scapa kernel: [ 63.904811] Stack: Jan 20 11:27:53 scapa kernel: [ 63.904813] 0000000000000000 000000000000= 7fda 0000000000000000 0000000000000000 Jan 20 11:27:53 scapa kernel: [ 63.904819] 0000000000007fda 0000000001f2= ae3a ffff880137c19970 ffffffff81645680 Jan 20 11:27:53 scapa kernel: [ 63.904824] 00000000fffffff0 000000000000= 0003 ffffffff81645778 ffffffff812633c3 Jan 20 11:27:53 scapa kernel: [ 63.904829] Call Trace: Jan 20 11:27:53 scapa kernel: [ 63.904839] [] ? cpuidl= e_idle_call+0xec/0x179 Jan 20 11:27:53 scapa kernel: [ 63.904846] [] ? cpu_id= le+0xa1/0xe8 Jan 20 11:27:53 scapa kernel: [ 63.904852] [] ? start_= kernel+0x3bd/0x3c8 Jan 20 11:27:53 scapa kernel: [ 63.904857] [] ? early_= idt_handlers+0x140/0x140 Jan 20 11:27:53 scapa kernel: [ 63.904861] [] ? x86_64= _start_kernel+0x104/0x111 Jan 20 11:27:53 scapa kernel: [ 63.904864] Code: 29 f0 48 89 c7 e8 77 77 = e6 ff 4c 69 e8 40 42 0f 00 48 89 04 24 48 89 54 24 08 48 89 44 24 18 48 89 = 54 24 20 49 01 d5 fb 66 66 90 <66> 66 90 85 1d ea 21 46 00 75 0f 48 8d 74 2= 4 2c bf 05 00 00 00=20 Jan 20 11:27:53 scapa kernel: [ 63.904905] Call Trace: Jan 20 11:27:53 scapa kernel: [ 63.904910] [] ? cpuidl= e_idle_call+0xec/0x179 Jan 20 11:27:53 scapa kernel: [ 63.904914] [] ? cpu_id= le+0xa1/0xe8 Jan 20 11:27:53 scapa kernel: [ 63.904918] [] ? start_= kernel+0x3bd/0x3c8 Jan 20 11:27:53 scapa kernel: [ 63.904922] [] ? early_= idt_handlers+0x140/0x140 Jan 20 11:27:53 scapa kernel: [ 63.904926] [] ? x86_64= _start_kernel+0x104/0x111 I successfully reproduced using vanilla kernel, so I started bisecting. I did two bisect rounds (complete log on the bug reports) and found the first bad commit to be: a2c76b83fdd763c826f38a55127ccf25708099ce is the first bad commit commit a2c76b83fdd763c826f38a55127ccf25708099ce Author: Kuninori Morimoto Date: Tue Oct 18 20:05:50 2011 -0700 usb: renesas_usbhs: fixup inconsistent return from usbhs_pkt_push() usbhs_pkt_push() had inconsistent return under spin lock. This patch fix it up. Special thanks to Dan Cc: Dan Carpenter Signed-off-by: Kuninori Morimoto Signed-off-by: Greg Kroah-Hartman :040000 040000 08d80fa06121151b36ae17dc693c14d58c0d5db3 86b920618ceb575cebf610798c24a104dea36a2c M drivers Reverting this commit on top of 3.2.1 removes the BUG(). If you need anything more, please ask. --=20 Yves-Alexis --=-bQiHBOC49+2FxYQC8zEj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAABCAAGBQJPIWGUAAoJEDBVD3hx7wuoZ1UP/iF8BWiRuZCn7uJAneErBKLt cZJesc53micMnNDrqj8Het5x3u0gKcuN+5/KCEY7f8c3KcvHwgNmvn68KxkjwT1E C7Yd8x5q54ZqoLI/2gAmjPTtGAtSH9uqVQtCC50qDbWpovW8Om+3qpiMYBjRErqg vdYUN/c+qjp1BEuQEFHGeij/PnE42rA+sHnQk/WyTo9GuIeYhTZ/r9oEC56GOp7k gFeB3mp1mVNJAJEXAyp5PZl0gS+hIUrkiI++2Mbt6vgrkii2oFDtSjstZFnq4Grc Xf1yIraPMDc8UNDQAD5dVtwbc7gdsnyDtj0LeXiFfaaU2PfrgnAn8tTjrSbdqVp8 oxx0jteSt/eadfdEZicTNpIeh7r8VDSyTLQxbR48Zhpme0Ob2WuZXdmmMNOnu6nL dR/7HzRP6BGHbIm0ou665lN2PowkDaJtZF1P9rusLVXF4uxukSjye25asyLhBPWe PkgVIkWFJ3fAS5txkKlcmhW3XvqzJD6hKNwCHg+pF5QudAZFsz+WJY3h0YxiI4Q0 XvBMnugu7Kck7FH24mFAW7vSteOk7QYiVbdk7bQRgtOuMha6VqJpfiatbAaXkrhc j8E18LHR4/E9kGE1dHTyTBRQO0B4Pfw0hDYEdwMY4ws0Zg1FfFd3bV+nQBphXd04 c4fq25HrPtcO+dsYbMqH =3VSE -----END PGP SIGNATURE----- --=-bQiHBOC49+2FxYQC8zEj--