diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-06-03 12:04:13 +0000 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-06-03 12:04:13 +0000 |
| commit | 256709d2eb3fd80d768a99964be5caa61effa2a0 (patch) | |
| tree | 05b2352fba70923126836a64b6a0de43902e976a /results/classifier/105/socket/1075272 | |
| parent | 2ab14fa96a6c5484b5e4ba8337551bb8dcc79cc5 (diff) | |
| download | emulator-bug-study-256709d2eb3fd80d768a99964be5caa61effa2a0.tar.gz emulator-bug-study-256709d2eb3fd80d768a99964be5caa61effa2a0.zip | |
add new classifier result
Diffstat (limited to 'results/classifier/105/socket/1075272')
| -rw-r--r-- | results/classifier/105/socket/1075272 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/results/classifier/105/socket/1075272 b/results/classifier/105/socket/1075272 new file mode 100644 index 00000000..15d761ff --- /dev/null +++ b/results/classifier/105/socket/1075272 @@ -0,0 +1,30 @@ +socket: 0.921 +instruction: 0.826 +network: 0.791 +device: 0.791 +other: 0.571 +graphic: 0.546 +mistranslation: 0.496 +vnc: 0.435 +boot: 0.360 +KVM: 0.290 +assembly: 0.110 +semantic: 0.011 + +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). + +This should be fixed in QEMU 1.6. + + |
