Last active
January 29, 2025 11:56
-
-
Save qinqon/36583ea584bf2bc607ef87f5f6818045 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| asst$ make clean | |
| rm -f passt passt.avx2 pasta pasta.avx2 qrap *~ *.o seccomp.h pasta.1 \ | |
| passt.tar passt.tar.gz *.deb *.rpm \ | |
| passt.pid README.plain.md | |
| passt$ make valgrind | |
| Warning: no syscall number for mmap2 | |
| none of these syscalls will be allowed | |
| seccomp profile passt allows: accept accept4 bind clock_gettime close connect epoll_ctl epoll_pwait epoll_wait exit_group fallocate fcntl ftruncate futex getpid getsockopt gettid gettimeofday kill listen lseek mmap munmap | |
| open read readlink recvfrom recvmmsg recvmsg rt_sigaction rt_sigprocmask rt_sigreturn rt_sigtimedwait sendmmsg sendmsg sendto setsockopt shutdown socket statx timerfd_create timerfd_gettime timerfd_settime unlink write writev | |
| Warning: no syscall number for mmap2 | |
| none of these syscalls will be allowed | |
| seccomp profile pasta allows: accept accept4 bind clock_gettime clone close connect epoll_ctl epoll_pwait epoll_wait exit exit_group fallocate fcntl ftruncate futex getpid getsockopt gettid gettimeofday ioctl kill listen | |
| lseek mmap munmap open openat pipe2 read readlink recvfrom recvmmsg recvmsg rt_sigaction rt_sigprocmask rt_sigreturn rt_sigtimedwait sendmmsg sendmsg sendto setns setsockopt shutdown socket splice statx timerfd_create | |
| timerfd_gettime timerfd_settime unlink waitid write writev | |
| Warning: no syscall number for mmap2 | |
| none of these syscalls will be allowed | |
| seccomp profile vu allows: accept accept4 bind clock_gettime close connect epoll_ctl epoll_pwait epoll_wait exit_group fallocate fcntl ftruncate futex getpid getsockopt gettid gettimeofday kill listen lseek mmap munmap | |
| open read readlink recvfrom recvmmsg recvmsg rt_sigaction rt_sigprocmask rt_sigreturn rt_sigtimedwait sendmmsg sendmsg sendto setsockopt shutdown socket statx timerfd_create timerfd_gettime timerfd_settime unlink write writev | |
| cc -Wall -Wextra -Wno-format-zero-length -pedantic -std=c11 -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -O2 -pie -fPIE -DPAGE_SIZE=4096 -DVERSION=\"2025_01_21.4f2c8e7-1-g5ec56bf\" -DDUAL_STACK_SOCKETS=1 -DHAS_GETRANDOM -fstack-protector-strong -g -DVALGRIND arch.c arp.c checksum.c conf.c dhcp.c dhcpv6.c flow.c fwd.c icmp.c igmp.c inany.c iov.c ip.c isolation.c lineread.c log.c mld.c ndp.c netlink.c packet.c passt.c pasta.c pcap.c pif.c tap.c tcp.c tcp_buf.c tcp_splice.c tcp_vu.c udp.c udp_flow.c udp_vu.c util.c vhost_user.c virtio.c vu_common.c -o passt | |
| cc -Wall -Wextra -Wno-format-zero-length -pedantic -std=c11 -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -pie -fPIE -DPAGE_SIZE=4096 -DVERSION=\"2025_01_21.4f2c8e7-1-g5ec56bf\" -DDUAL_STACK_SOCKETS=1 -DHAS_GETRANDOM -fstack-protector-strong -g -DVALGRIND -Ofast -mavx2 -ftree-vectorize -funroll-loops \ | |
| arch.c arp.c checksum.c conf.c dhcp.c dhcpv6.c flow.c fwd.c icmp.c igmp.c inany.c iov.c ip.c isolation.c lineread.c log.c mld.c ndp.c netlink.c packet.c passt.c pasta.c pcap.c pif.c tap.c tcp.c tcp_buf.c tcp_splice.c tcp_vu.c udp.c udp_flow.c udp_vu.c util.c vhost_user.c virtio.c vu_common.c -o passt.avx2 | |
| ln -sf passt pasta | |
| ln -sf passt.avx2 pasta.avx2 | |
| cc -Wall -Wextra -Wno-format-zero-length -pedantic -std=c11 -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -O2 -pie -fPIE -DPAGE_SIZE=4096 -DVERSION=\"2025_01_21.4f2c8e7-1-g5ec56bf\" -DDUAL_STACK_SOCKETS=1 -DHAS_GETRANDOM -fstack-protector-strong -g -DVALGRIND -DARCH=\"x86_64\" qrap.c -o qrap | |
| ln -sf passt.1 pasta.1 | |
| passt$ valgrind --max-stackframe=4194304 --trace-children=yes --vgdb=no --error-exitcode=1 --suppressions=test/valgrind.supp ./passt -s /tmp/passt-tests-2AtIrX/passt/passt.socket -f -t 10001 -u 10001 -P /tmp/passt-tests-2AtIrX/passt/passt.pid | |
| ==593060== warning: connection to image /home/ellorent/Documents/cnv/upstream/passt/passt.avx2 failed | |
| ==593060== no debug info loaded | |
| ==593060== Syscall param sendmsg(msg.msg_iov[1]) points to uninitialised byte(s) | |
| ==593060== at 0x4971B34: sendmsg (in /usr/lib64/libc.so.6) | |
| ==593060== by 0x1217CE: tap_send_frames.part.0 (in /home/ellorent/Documents/cnv/upstream/passt/passt.avx2) | |
| ==593060== by 0x123064: tap_udp4_send (in /home/ellorent/Documents/cnv/upstream/passt/passt.avx2) | |
| ==593060== by 0x11310D: dhcp (in /home/ellorent/Documents/cnv/upstream/passt/passt.avx2) | |
| ==593060== by 0x122CA3: tap4_handler.isra.0 (in /home/ellorent/Documents/cnv/upstream/passt/passt.avx2) | |
| ==593060== by 0x1239E3: tap_handler_passt (in /home/ellorent/Documents/cnv/upstream/passt/passt.avx2) | |
| ==593060== by 0x109ECC: main (in /home/ellorent/Documents/cnv/upstream/passt/passt.avx2) | |
| ==593060== Address 0x1ffef6013c is on thread 1's stack | |
| ==593060== in frame #2, created by tap_udp4_send (???:) | |
| ==593060== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment