Unexpected behaviour with create_module

From: T.L.Madhu (madhu.tarikere@wipro.com)
Date: Thu Oct 24 2002 - 02:06:21 EST


Hi All,

create_module() system calls gives segmentation fault with
size (second) argument set to huge value. This behaviour is
seen only in 2.4.* series kernel but the same call in 2.5.*
series (tested with 2.5.43 kernel) fails as EXPECTED with
errno set to ENOMEM.

Check this programme,
----------------------------------------------------------
#include <linux/module.h>
#include <errno.h>
        
main()
{
        printf("Return values for too big module size %d ",
                create_module("dummy", 99999999));
        printf("errno %d\n", errno);
}
----------------------------------------------------------

Is this a known bug? wondering why this bug is not fixed in
2.4.* series?

Please let me know.

Thanks,
Madhu

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Oct 31 2002 - 22:00:22 EST