summary refs log tree commit diff stats
path: root/results/classifier/zero-shot-user-mode/syscall/1075272
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-07-08 13:28:15 +0200
committerChristian Krinitsin <mail@krinitsin.com>2025-07-08 13:28:28 +0200
commit5aa276efcbd67f4300ca1a7f809c6e00aadb03da (patch)
tree9b8f0e074014cda8d42f5a97a95bc25082d8b764 /results/classifier/zero-shot-user-mode/syscall/1075272
parent1a3c4faf4e0a25ed0b86e8739d5319a634cb9112 (diff)
downloadqemu-analysis-5aa276efcbd67f4300ca1a7f809c6e00aadb03da.tar.gz
qemu-analysis-5aa276efcbd67f4300ca1a7f809c6e00aadb03da.zip
restructure results
Diffstat (limited to 'results/classifier/zero-shot-user-mode/syscall/1075272')
-rw-r--r--results/classifier/zero-shot-user-mode/syscall/107527219
1 files changed, 19 insertions, 0 deletions
diff --git a/results/classifier/zero-shot-user-mode/syscall/1075272 b/results/classifier/zero-shot-user-mode/syscall/1075272
new file mode 100644
index 000000000..cc1d54279
--- /dev/null
+++ b/results/classifier/zero-shot-user-mode/syscall/1075272
@@ -0,0 +1,19 @@
+syscall: 0.679
+instruction: 0.191
+runtime: 0.130
+
+
+
+socket type mapping wrong for mips app-level emulation
+
+linux-user/syscall.c's do_socket function contains socket type remapping to work around the nonsensically-permuted MIPS socket types. However, it fails to account for the SOCK_NONBLOCK and SOCK_CLOEXEC flags that may be or'd onto the type. Thus, a call from the application such as:
+
+socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)
+
+will fail to have the type permutation performed, and will be passed to the system as:
+
+socket(AF_INET, SOCK_DGRAM, IPPROTO_TCP)
+
+resulting in EPROTONOSUPPORT.
+
+To fix this, the flag bits should be masked off of the type before the permutation. They also need remapping themselves (since MIPS uses different values for these flags bits).
\ No newline at end of file