lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 20 Aug 2010 15:32:54 -0700
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	runcoderen <runcoderzhcn@...il.com>
Cc:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: sys_init_module system call

On Sat, 21 Aug 2010 06:18:04 +0800 runcoderen wrote:

> hi all
> I find sys_init_module system call in kernel/module.c file.
> but it did not find any.
> the source code version is linux-2.6.35
> 
> does the kernel have changed?
> 
> the book I am reading is LDD 3rd edition

You won't find a function in kernel/module.c that looks like it has
the name "sys_init_module".  Instead, the function is defined by using
a macro, and it looks like this:

/* This is where the real work happens */
SYSCALL_DEFINE3(init_module, void __user *, umod,
		unsigned long, len, const char __user *, uargs)
{



The use of SYSCALL_DEFINEx(func_name, args) is a fairly recent change
(well, January, 2009) that may be the reason why you think that there
has been a change.  See
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1a94bc34768e463a93cb3751819709ab0ea80a01


---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ