| Summary: | app-cdr/cdemud-1.3.0 + sys-fs/vhba-20101015 + 2.6.37 = kernel oops and hard lock | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Alexandre Rostovtsev (RETIRED) <tetromino> |
| Component: | Current packages | Assignee: | Marcelo Goes (RETIRED) <vanquirius> |
| Status: | RESOLVED FIXED | ||
| Severity: | critical | CC: | galtgendo, main.haarp, matrix47, xmw |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
locking patch to 1.2.1
patch for kernel 2.6.37 compatibility Ebuild for 2.6.37 patch vhba-20101015.ebuild.patch |
||
|
Description
Alexandre Rostovtsev (RETIRED)
2011-01-05 23:40:06 UTC
On the first two lines of the above comment, replace "2.6.27" with "2.6.37". I apologize for the typo. Created attachment 258993 [details, diff]
locking patch to 1.2.1
Could you see if 1.2.1 with this patch works ?
(In reply to comment #2) > Created an attachment (id=258993) [details] > locking patch to 1.2.1 > > Could you see if 1.2.1 with this patch works ? This patch needs #include <linux/smp_lock.h> (otherwise it doesn't compile with 2.6.37), and it does not fix the bug: vhba-1.2.1 with the patch and with the correct #include produces the same oops followed by panic and hard lock. I also tried porting the patch to vhba-20101015; that doesn't help either. Created attachment 259009 [details, diff] patch for kernel 2.6.37 compatibility These oopses/panics are caused by the SCSI host lock push-down changes introduced in 2.6.37 (see http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=f281233d3eba15fb225d21ae2e228fd4553d824a for more details). This patch adds some #ifdefs to enable compatibility both with 2.6.37 and older API. As far as I can tell, with the patch applied, cdemud-1.3.0 and vhba-20101015 work fine on 2.6.37. I have also submitted this patch upstream at https://sourceforge.net/tracker/?func=detail&aid=3152330&group_id=93175&atid=603425 Created attachment 259423 [details]
Ebuild for 2.6.37 patch
Added the 2.6.37 patch to the vhba-20101015 ebuild (put patch in files/). The patch applies nicely and no kernel oopses arises when loading vhba and using cdemu. Thanks!
Alexandre, your patch indeed seems to work. Thanks. Created attachment 259748 [details, diff]
vhba-20101015.ebuild.patch
Crash + Fix verfiedin x86_64 + gentoo-sources-2.6.37 + cdemud-1.2.0
Please commit it into tree asap
This is a bug that causes a kernel panic after simply starting up the god damn thing. How on earth is this patch not in the tree already? I just lost a whole day of CPU time because of this. If the patch works, just put it in the tree, it's not that much work for fixing a critical kernel-crashing bug Sorry for the delay, but Marcelo seems to be away. I hope he doesn't mind that I've committed Alexanre's patch to sys-fs/vhba-20101015-r1 during his absence. Closing this bug as fixed. |