FS#23778 - [kernel26] Kernel divide error: 0000 [#1] PREEMPT SMP causes system freeze

Attached to Project: Arch Linux
Opened by Vacca Muc (vaccaaa) - Friday, 15 April 2011, 13:02 GMT
Last edited by Tobias Powalowski (tpowa) - Thursday, 16 February 2012, 17:52 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Tobias Powalowski (tpowa)
Thomas Bächler (brain0)
Architecture i686
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 9
Private No

Details

Don't know if I have to report it to bugzilla.kernel.org...
Description:
System crashes completely (screen freezed, magic keys don't work) and I have to hard reboot when i do "dd if=/dev/urandom of=/dev/mmcblk0" (dd on a sd memory card) (the freeze happens a while after I have issued the command... and the command is still in execution in the moment the freeze happens)
I attached the trace from the log

Additional info:
kernel26-2.6.38.2-1
log attached

Steps to reproduce:

- loaded four modules: mmc_core mmc_block sdhci sdhci_pci (I don't normally have these loaded)
- note that nothing happens if I simply mount and use the memory card
- issue "dd if=/dev/urandom of=/dev/mmcblk0"
- after a while the system hangs completely
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Thursday, 16 February 2012, 17:52 GMT
Reason for closing:  Fixed
Comment by Vacca Muc (vaccaaa) - Saturday, 16 April 2011, 09:01 GMT
I found the full call trace :P sorry
Comment by Enjolras (enjolras) - Sunday, 17 April 2011, 09:23 GMT
Hi, you should report upstream. I did'nt find any report yet.

If you want to look at the sources you can find them in git at linux/drivers/mmc/host/sdhci.c [sdhci] for sdhci_send_command, and then calls to functions in linux/drivers/mmc/core/core.c [mmc_core],drivers/mmc/card/block.c [mmc_block] and linux/drivers/mmc/card/queue.c.
regards.
Comment by Sander Jansen (GogglesGuy) - Thursday, 12 May 2011, 15:23 GMT
I didn't find any upstream bug report, which is possibly my fault of not using the correct search terms, so I filed one:
https://bugzilla.kernel.org/show_bug.cgi?id=35002
Comment by dif (dif) - Saturday, 14 May 2011, 08:56 GMT
I do not think this bug here is the same as the one described at https://bbs.archlinux.org/viewtopic.php?pid=933952
But perhaps it is so I'm adding this post here.
The system freezes at booting if an SDHC card is put in my card reader.
The system starts up OK without the card in the reader.
The system freazes dead the moment the card is put in the reader.

The reader manufactured by JMicron Technology Corp.
Laptop HP dv5
kernel26 2.6.38.6-2
The problem started with kernel26 2.6.38.6-1
Comment by Taylor Venable (metasyntax) - Sunday, 15 May 2011, 01:21 GMT
Similar error occurs with Ricoh R5C822 reader on x86_64 (Intel Core2 Duo CPU P8800 @ 2.66GHz) using core/kernel26 2.6.38.6-2; trace is identical to the one posted upstream by Sander Jansen. Machine is a Lenovo ThinkPad T500.

Edited to add: Downgrading to core/kernel26 2.6.38.5-1 fixes the problem for me, so at least there's a workaround.
Comment by Jan Tulak (Zopper) - Wednesday, 18 May 2011, 08:55 GMT
Same... I have thinkpad T61 and kernel 2.6.38.6-2. I get this crash when I plug-in the SD card (adata SDHC 16GB class 6), when automount try access it (if KDE/GNOME session is disabled, it appears when I try to write anything to the card, formating/partitioning included).

With kernel 2.6.38.5-1 it is OK.
Comment by Alex Vorobyev (almad) - Thursday, 26 May 2011, 12:59 GMT
SD card not work.
Hardware - Asus M50Vm. kernel - 2.6.38.6-2 (base).
https://bugs.archlinux.org/task/24452
Comment by Sander Jansen (GogglesGuy) - Thursday, 26 May 2011, 15:26 GMT
Things started working again with Kernel 2.6.39
Comment by Daniel Campbell (xelados) - Monday, 30 May 2011, 17:34 GMT
I tried using the 2.6.39 kernel and experienced the same panic when I plugged in a USB SD card reader.

AMD Phenom II x6 1090T
8 GB RAM

running kernel 2.6.39 x86_64
udev 171-1
Comment by Alex Vorobyev (almad) - Thursday, 02 June 2011, 12:00 GMT
On kernel26 2.6.38.7-1 x86_64 working fine!
Comment by Daniel Campbell (xelados) - Saturday, 04 June 2011, 04:21 GMT
almad: Could you upload and link us to that older kernel for a temporary workaround until this issue gets resolved? That'd be awesome! I'd use my pkg cache, but this is a fresh install and it's the only x64 install of Arch I have.
Comment by Alex Vorobyev (almad) - Sunday, 05 June 2011, 14:26 GMT
Current stable kernel x86_64 kernel26-2.6.38.7-1-x86_64.pkg.tar.xz working fine for me. I installed through - pacman -Syu.
Old stable kernel kernel26-2.6.38.5-1-x86_64.pkg.tar.xz worked fine.
I have trouble only with the kernel26-2.6.38.6-..-x86_64.
I uploaded working kernel to:
http://dl.dropbox.com/u/3766571/kernel26-2.6.38.5-1-x86_64.pkg.tar.xz
http://dl.dropbox.com/u/3766571/kernel26-2.6.38.7-1-x86_64.pkg.tar.xz

Loading...