Bug 2144 - Alpha kernel oops from stat(NULL,...)
Alpha kernel oops from stat(NULL,...)
Status: CLOSED NEXTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: kernel (Show other bugs)
6.0
alpha Linux
medium Severity medium
: ---
: ---
Assigned To: Cristian Gafton
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-04-12 14:38 EDT by Owen Taylor
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-08-21 14:18:52 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Owen Taylor 1999-04-12 14:38:14 EDT
Calling stat with a NULL pointer produces an oops on the
current Alpha kernel instead of correct returning
EFAULT. (as it does on Intel)

The following program demonstrates.

====
#include <sys/stat.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <unistd.h>

int main ()
{
  struct stat buf;

  if (stat (NULL, &buf) != 0)
    printf("Error correctly returned: %s\n",
	    strerror (errno));
}
Comment 1 Jeff Johnson 1999-08-21 14:18:59 EDT
The behavior on 2.2.5 alpha is to generate an exception message
on the console and return EFAULT.

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