Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /opt/rh/gcc-toolset-11/root/usr/share/systemtap/tapset/linux/powerpc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/rh/gcc-toolset-11/root/usr/share/systemtap/tapset/linux/powerpc/sysc_compat_set_mempolicy.stp
# compat_set_mempolicy ________________________________________
#
# asmlinkage long compat_set_mempolicy(int mode, compat_ulong_t __user *nmask,
#				compat_ulong_t maxnode)
#

@define _SYSCALL_COMPAT_SET_MEMPOLICY_NAME
%(
	name = "compat_set_mempolicy"
%)

@define _SYSCALL_COMPAT_SET_MEMPOLICY_ARGSTR
%(
	argstr = sprintf("%d, %p, %d", policy, nodemask_uaddr, maxnode)
%)

probe syscall.compat_set_mempolicy = dw_syscall.compat_set_mempolicy !,
                                     nd_syscall.compat_set_mempolicy ? {}
probe syscall.compat_set_mempolicy.return = dw_syscall.compat_set_mempolicy.return !,
                                            nd_syscall.compat_set_mempolicy.return ? {}

# dw_compat_set_mempolicy _____________________________________________________

probe dw_syscall.compat_set_mempolicy = kernel.function("compat_set_mempolicy") ?
{
	@_SYSCALL_COMPAT_SET_MEMPOLICY_NAME
	policy = $mode
	nodemask_uaddr = $nmask
	maxnode = $maxnode
	@_SYSCALL_COMPAT_SET_MEMPOLICY_ARGSTR
}
probe dw_syscall.compat_set_mempolicy.return = kernel.function("compat_set_mempolicy").return ?
{
	@_SYSCALL_COMPAT_SET_MEMPOLICY_NAME
	@SYSC_RETVALSTR($return)
}

# nd_compat_set_mempolicy _____________________________________________________

probe nd_syscall.compat_set_mempolicy = kprobe.function("compat_set_mempolicy") ?
{
	@_SYSCALL_COMPAT_SET_MEMPOLICY_NAME
	asmlinkage()
	policy = int_arg(1)
	nodemask_uaddr = uint_arg(2)
	maxnode = uint_arg(3)
	@_SYSCALL_COMPAT_SET_MEMPOLICY_ARGSTR
}
probe nd_syscall.compat_set_mempolicy.return = kprobe.function("compat_set_mempolicy").return ?
{
	@_SYSCALL_COMPAT_SET_MEMPOLICY_NAME
	@SYSC_RETVALSTR(returnval())
}

Spamworldpro Mini