duasynt / xfrm_poc

Linux kernel XFRM UAF poc (3.x - 5.x kernels)
132 stars 37 forks source link

setaffinity: Invalid argument #1

Open deprito opened 4 years ago

deprito commented 4 years ago

Hello @vnik5287 I tested on my environment, and running recurring...

But the output is : `$ ./lucky0 xfrm 3.x - 5.x kernels poc vitaly [at] duasynt.com

[+] trying to win the race. wait... setaffinity: Invalid argument ` Kernel : 3.10.0-327

Is this expected? or not?

Thank You!

NitroCao commented 4 years ago

I encountered the similar situation but unshare instead of setaffinity:

$ ./lucky0
xfrm 3.x - 5.x kernels poc
vitaly [at] duasynt.com

[+] trying to win the race. wait...
[-] unshare: Invalid argument

kernel: Linux localhost.localdomain 3.10.0-957.5.1.el7.x86_64 #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

blkryd commented 4 years ago

bash-4.2$ while :; do ./lucky0 -q && break; done while :; do ./lucky0 -q && break; done [-] unshare: Invalid argument [-] unshare: Invalid argument [-] unshare: Invalid argument [-] unshare: Invalid argument [-] unshare: Invalid argument [-] unshare: Invalid argument [-] unshare: Invalid argument [-] unshare: Invalid argument [-] unshare: Invalid argument

uname -a Linux localhost.localdomain 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

rokcarl commented 4 years ago

I get the following:

./lucky0
xfrm 3.x - 5.x kernels poc
vitaly [at] duasynt.com

[+] trying to win the race. wait...
[-] unshare: Operation not permitted

System:

uname -a
Linux test 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 GNU/Linux