iscsitarget kernel module compile fails in event.c:98

Bug #160104 reported by Alvin Cura
12
Affects Status Importance Assigned to Milestone
iscsitarget (Debian)
Fix Released
Unknown
iscsitarget (Ubuntu)
Fix Released
Undecided
Unassigned
Gutsy
Won't Fix
Undecided
Alvin Cura
Hardy
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: iscsitarget-source

Module build using module assistant

m-a a-i iscsitarget

-----

Following are the errors:

    CC [M] /usr/src/modules/iscsitarget-module/kernel/event.o
  /usr/src/modules/iscsitarget-module/kernel/event.c: In function
  âevent_initâ:
  /usr/src/modules/iscsitarget-module/kernel/event.c:98: warning: passing
  argument 4 of ânetlink_kernel_createâ from incompatible pointer type
  /usr/src/modules/iscsitarget-module/kernel/event.c:98: error: too few
  arguments to function netlink_kernel_create
  make[3]: *** [/usr/src/modules/iscsitarget-module/kernel/event.o] Error 1
  make[2]: *** [_module_/usr/src/modules/iscsitarget-module/kernel] Error 2
  make[2]: Leaving directory `/usr/src/linux-headers-2.6.22-14-xen'
  make[1]: *** [binary-modules] Error 2
  make[1]: Leaving directory `/usr/src/modules/iscsitarget-module'
  make: *** [kdist_build] Error 2

-----

Here is the workaround:

root@xen1:/usr/src# diff modules/iscsitarget-module/kernel/event.c modules/iscsitarget-module/kernel/event.c.DISTRIB
98c98
< nl = netlink_kernel_create(NETLINK_IET, 1, event_recv, THIS_MODULE, NULL);
---
> nl = netlink_kernel_create(NETLINK_IET, 1, event_recv, THIS_MODULE);

Which I found at this link: http://www.nabble.com/iscsitarget-0.4.15-fails-to-compile-against-2.6.22.1-t4118020.html

-----

Can a MOTU review this please?

Thanks!
- alvinc

Tags: patch
Revision history for this message
Alvin Cura (alvinc) wrote :

I'm sorry. Running Gutsy:

root@xen1:/usr/src# uname -a
Linux xen1 2.6.22-14-xen #1 SMP Sun Oct 14 23:20:20 GMT 2007 x86_64 GNU/Linux

Alvin Cura (alvinc)
Changed in iscsitarget:
assignee: nobody → alvinc
Changed in gutsy-backports:
assignee: nobody → alvinc
Revision history for this message
Alvin Cura (alvinc) wrote :

Fixes attached. Also includes fixes for Bug #160106

Emmet Hikory (persia)
Changed in iscsitarget:
status: New → Confirmed
Revision history for this message
Emmet Hikory (persia) wrote :

This issue should not be fixed in the same way in hardy, as the kernel is expected to be updated, causing symptoms similar to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=449237. Separately, it is expected that the Debian sync process will soon pull 0.4.15-4, therefore introducing the same issue (with the opposite solution) into hardy once the kernel is updated.

Changed in iscsitarget:
assignee: alvinc → nobody
status: New → Confirmed
Revision history for this message
Emmet Hikory (persia) wrote :

I've unsubscribed ubuntu-universe-sponsors, as the candidate debdiff does not match the requirements for a stable release update, and there is no "TEST CASE" section in the description (please see https://wiki.ubuntu.com/StableReleaseUpdates). Also, when updating a stable release, please only include a minimal diff to address critical issues. Thirdly, the changelog mentions that it fixes a problem in feisty, but I don't find any references to problems with 2.6.20, just with 2.6.22 and 2.6.23. Has this been tested in feisty, and shown to be addressed by the same fix? Please resubscribe ubuntu-universe-sponsors when an updated candidate revision is available.

Changed in iscsitarget:
assignee: nobody → alvinc
status: Confirmed → In Progress
Revision history for this message
Alvin Cura (alvinc) wrote : Re: [Bug 160104] Re: iscsitarget kernel module compile fails in event.c:98

Thanks Emmet.

For the purposes of staying on top of the issue... What is the target
kernel version for hardy?

As hardy is slated to be an LTS release, I am very interested that
these bugs are fixed by the time hardy releases.

iscsitarget is a service which has a lot of usefulness in Production scenarios.

Best regards,
- alvinc

Changed in iscsitarget:
status: Unknown → Fix Released
Revision history for this message
Alvin Cura (alvinc) wrote :

With guidance from Emmet, work on evaluating the impact of this bug is proceeding.

I configuring dapper and feisty environments, and constructing FAI classes and nfsroot for edgy (as the edgy ISO images are no longer available in any of the mirrors which I have checked).

More status will be added this weekend.

Revision history for this message
John Dong (jdong) wrote :

Thanks for your work, Alvin, on this bug. For now it seems to not be a backport but rather a StableReleaseUpdate.

Changed in gutsy-backports:
status: New → Invalid
Revision history for this message
Alvin Cura (alvinc) wrote :

I have FAI'd an edgy system and done a CD install of a dapper system.

iscsitarget is not present in either release, nor is it listed in any of the repositories (updates, security, backports, commercial).

Would this then qualify as a backport?

Best regards,
- alvinc

Revision history for this message
Emmet Hikory (persia) wrote :

A backport could be requested for iscsitools, but it seems a fair amount of effort considering that most users will be expected to be on either gutsy or hardy fairly soon, and it may require significant effort to follow the differences in the kernel API. I'd suggest working to get gutsy updated with the SRU, and then looking forward to hardy as a solution for all users.

Revision history for this message
Brendan Cully (bcully) wrote :

I'm being bitten by this too. What's the proper way to patch iscsitarget-source so that module-assistant can build it?
Thanks.

Revision history for this message
Alvin Cura (alvinc) wrote :

Hi Brendan,

Further up in this bug, I attached a diff of event.c. Changing line
98 of event.c in accordance with the diff will do the trick.

This will be fixed in the future, I'm working that out now (learning
pbuilder and experimenting with doing things properly). But if you're
in patient, you can try to fix it the same way I have.

Procedurally, the following:

# apt-get install iscsitarget-source
# cd /usr/src
# tar jxvf iscsitarget.tar.bz2
# vi modules/iscsitarget-module/kernel/event.c
<make the change to line 98>
# mv iscsitarget.tar.bz2 iscsitarget.tar.bz2.ORIG
# tar jcvf iscsitarget.tar.bz2 modules/

After this, module assistant will work.

# m-a a-i iscsitarget

Best regards,
- alvinc

Revision history for this message
Brendan Cully (bcully) wrote : Re: [Bug 160104] Re: iscsitarget kernel module compile fails in event.c:98

On Sunday, 25 November 2007 at 10:51, Alvin Cura wrote:
> Hi Brendan,
>
> Further up in this bug, I attached a diff of event.c. Changing line
> 98 of event.c in accordance with the diff will do the trick.
>
> This will be fixed in the future, I'm working that out now (learning
> pbuilder and experimenting with doing things properly). But if you're
> in patient, you can try to fix it the same way I have.
>
> Procedurally, the following:
>
> # apt-get install iscsitarget-source
> # cd /usr/src
> # tar jxvf iscsitarget.tar.bz2
> # vi modules/iscsitarget-module/kernel/event.c
> <make the change to line 98>
> # mv iscsitarget.tar.bz2 iscsitarget.tar.bz2.ORIG
> # tar jcvf iscsitarget.tar.bz2 modules/
>
> After this, module assistant will work.
>
> # m-a a-i iscsitarget

Thank you, this worked fine!

Revision history for this message
Alvin Cura (alvinc) wrote :

Fixes are attached.

Fixes for Bug #160106 are included in the diff. I put in a control structure to check for kernel version as well.

Cheers,
- alvinc

Revision history for this message
Emmet Hikory (persia) wrote :

I really don't see the point in fixing this in hardy, as kernel 2.6.24 is in the archives (which doesn't expose this bug). On the other hand, I believe this is likely a valid SRU, but there are a few outstanding issues:

1) For an SRU, the version should be something like 0.4.15-2.1 rather than 0.4.15.3
2) It would be a lot easier to review a debdiff than the diff.gz. You can generate this with "debdiff orig.dsc new.dsc"
3) Please just s/==/=/ in initd.debian, rather than adding initd.ubuntu: it's hard to see the change easily (this also allows you to drop the Makefile changes, making the diff even smaller)
4) Please update the bug description to contain a clear test case (for both 160104 and 160106), and subscribe ~motu-sru for approval for the stable release update.
5) Once you've received approval from ~motu-sru, if it is still not uploaded, resubscribe ubuntu-universe-sponsors to request upload.

Changed in iscsitarget:
status: Confirmed → Won't Fix
Revision history for this message
LaserJock (laserjock) wrote :

I'm closing the main task for this bug leaving the Gutsy task open as somebody still needs to get this worked up for an SRU.

Changed in iscsitarget:
status: Confirmed → Fix Released
Changed in iscsitarget:
status: In Progress → New
Revision history for this message
Alvin Cura (alvinc) wrote : Re: [Bug 160104] Re: iscsitarget kernel module compile fails in event.c:98

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It would be my honour to work on the SRU of this bug. Alas, I
have not looked at it in a while, and it will take me a little bit of
time to review the documentation which Emmet referred me to at the
beginning.

I expect to look at it this weekend (US time)

- - alvinc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: http://getfiregpg.org

iEYEARECAAYFAkiZPEoACgkQSkZVoNjHaTzaOgCgpe7g23x9hgAxTt1rzcWKQ4e5
O8AAoMbppI5ytH5UAHrrbIE4dr535E7c
=w2PP
-----END PGP SIGNATURE-----

Revision history for this message
Sergio Zanchetta (primes2h) wrote :

The 18 month support period for Gutsy Gibbon 7.10 has reached its end of life -
http://www.ubuntu.com/news/ubuntu-7.10-eol . As a result, we are closing the
Gutsy task.

Changed in iscsitarget (Ubuntu Gutsy):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.