Unexpected behaviour with create_module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

create_module() system call is giving 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 out 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.

Anyone knows about it.

Thanks,
Madhu







--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux