Bug 144374 - process state TASK_ZOMBIE changed to EXIT_ZOMBIE applied in kernel 2.6.9-1.724, should be 2.6.10
process state TASK_ZOMBIE changed to EXIT_ZOMBIE applied in kernel 2.6.9-1.72...
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Dave Jones
Depends On:
  Show dependency treegraph
Reported: 2005-01-06 11:14 EST by Joe Wilde
Modified: 2015-01-04 17:14 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-01-06 16:24:17 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joe Wilde 2005-01-06 11:14:36 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041111 Firefox/1.0

Description of problem:
The planned change slated for 2.6.10 of using EXIT_ZOMBIE and
EXIT_DEAD rather than TASK_ZOMBIE and TASK_DEAD (along with
corresponding ->state vs ->exit_state changes) appears to have found
it's way into the 2.6.9-1.724 release:

$ diff /lib/modules/2.6.9-1.681_FC3/source/include/linux/sched.h
< #define TASK_ZOMBIE           16
< #define TASK_DEAD             32
> #define EXIT_ZOMBIE           16
> #define EXIT_DEAD             32

This is causing problems with drbd v0.7.6 and v0.7.7 which allow for
the change with the 2.6.10 and greater kernel, but expect the api to
be maintained throughout 2.6.9-x versions.  It looks like this also
affects openAFS, as it uses the same hooks, and has implemented
similar future support, but only for 2.6.10 and greater.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. compile code containing following:

  current->exit_state = EXIT_ZOMBIE;

2. first using kernel 2.6.9-1.681_FC3
3. code compiles fine
4. second using kernel 2.6.10-x
5. code compiles fine
6. third using kernel 2.6.9-1.724_FC3

Actual Results:  error `TASK_ZOMBIE' undeclared (first use in this

Expected Results:  code to compile without error

Additional info:

while this could be accomadated by hacking individual third party
packages, they would have to have specific hacks for the fc3
2.6.9-1.xxx kernels, not just for 2.6.9 vs 2.6.10.   In my very
limited C experience, this solution looks inconvenient at best for
thrid party maintainers, the solution within the third party package
does not appear to be as simple as a preprocessor directive based on
Comment 1 Dave Jones 2005-01-06 16:24:17 EST
testing on LINUX_VERSION_CODE is very fragile, and this isn't just a
Fedora problem.

It contains the same value for 2.6.9, 2.6.9-ac, 2.6.9-mm, and the
feature-set across all of those is incoherent. You need to check for the
presence of something before using it..

#ifdef TASK_ZOMBIE should do the trick.

Note You need to log in before you can comment on or make changes to this bug.