This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 6963.950713] Modules linked in: tun ovpn_dco(OE) ip6_udp_tunnel udp_tunnel intel_rapl_msr intel_rapl_common nfit libnvdimm ppdev intel_rapl_perf parport_pc parport ena i2c_piix4 drm ip_tables xfs libcrc32c crct10dif_pclmul crc32_pclmul crc32c_intel nvme ghash_clmulni_intel nvme_core serio_raw | |
[ 6963.961016] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G OE 5.6.19-300.fc32.x86_64 #1 | |
[ 6963.964528] Hardware name: Amazon EC2 c5.xlarge/, BIOS 1.0 10/16/2017 | |
[ 6963.967157] RIP: 0010:ovpn_peer_release+0xc2/0xd0 [ovpn_dco] | |
[ 6963.969453] Code: 04 00 00 e8 80 58 40 c6 48 8b 45 00 48 8b 00 48 8b 80 c0 04 00 00 65 ff 08 48 89 ef 5d e9 36 a3 e1 c5 0f 0b eb 89 0f 0b eb a9 <0f> 0b eb c9 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 48 8d | |
[ 6963.976928] RSP: 0018:ffffb42200003ec0 EFLAGS: 00010286 | |
[ 6963.979029] RAX: 0000000000000000 RBX: 000000000000000a RCX: 0000000080040002 | |
[ 6963.981898] RDX: 0000000080040003 RSI: 0000000080040002 RDI: ffff9114ac9d6000 | |
[ 6963.984762] RBP: ffff9114dd109800 R08: 00000000000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ~ clang++ -fsanitize=address -fsanitize=undefined test.cc -v | |
Apple LLVM version 8.0.0 (clang-800.0.38) | |
Target: x86_64-apple-darwin15.5.0 | |
Thread model: posix | |
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin | |
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.11.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name test.cc -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 274.1 -v -dwarf-column-info -debugger-tuning=lldb -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0 -stdlib=libc++ -fdeprecated-macro -fdebug-compilation-dir /Users/admin -ferror-limit 19 -fmessage-length 272 -fsanitize=address,alignment,array-b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/bin/echo 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/bin/echo 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <unistd.h> | |
#include <stdio.h> | |
#include <errno.h> | |
#include <sys/types.h> | |
#include <sys/wait.h> | |
#include <string.h> | |
#define BUFSIZE 4096 | |
int main(int argc, char const *argv[]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _GNU_SOURCE | |
#include <sched.h> | |
#include <stdio.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <stdlib.h> | |
#define STACK_SIZE 1024*1024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
#include <dirent.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <memory.h> | |
#include <linux/limits.h> | |
#include <sys/wait.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void processDir(const char* d) { | |
DIR* dir = NULL; | |
chdir(d); | |
dir = opendir("./"); | |
/* | |
char newdir[PATH_MAX]; | |
strcpy(newdir, "./"); | |
strcat(newdir, d); |