summaryrefslogtreecommitdiffstats
path: root/results/classifier/zero-shot-user-mode/output/instruction/1093
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/output/instruction/1093
parent1a3c4faf4e0a25ed0b86e8739d5319a634cb9112 (diff)
downloademulator-bug-study-5aa276efcbd67f4300ca1a7f809c6e00aadb03da.tar.gz
emulator-bug-study-5aa276efcbd67f4300ca1a7f809c6e00aadb03da.zip
restructure results
Diffstat (limited to 'results/classifier/zero-shot-user-mode/output/instruction/1093')
-rw-r--r--results/classifier/zero-shot-user-mode/output/instruction/109339
1 files changed, 0 insertions, 39 deletions
diff --git a/results/classifier/zero-shot-user-mode/output/instruction/1093 b/results/classifier/zero-shot-user-mode/output/instruction/1093
deleted file mode 100644
index bb569fb8..00000000
--- a/results/classifier/zero-shot-user-mode/output/instruction/1093
+++ /dev/null
@@ -1,39 +0,0 @@
-instruction: 0.604
-syscall: 0.242
-runtime: 0.154
-
-
-
-RISC-V: signal frame is misaligned in signal handlers
-Description of problem:
-`qemu-user` misaligns the signal frame (to 4 bytes rather than 16 bytes) on RISC-V 64, e.g causing pointer misalignment diagnostics to be triggered by UBSan.
-Steps to reproduce:
-1. Create a C file with the following contents:
-```c
-#include <signal.h>
-#include <stdio.h>
-
-void handler(int sig, siginfo_t *info, void *context) {
- printf("signal occurred, info: %p, context: %p\n", info, context);
-}
-
-int main() {
- struct sigaction act;
- act.sa_flags = SA_SIGINFO;
- act.sa_sigaction = handler;
- sigaction(SIGINT, &act, NULL);
-
- // Deliberately misalign the stack
- asm volatile ("addi sp, sp, -4");
-
- while(1);
- // Unreachable
-}
-```
-2. Compile with an appropriate RISC-V toolchain and run with `qemu-riscv64 ./a.out`.
-3. Send a `SIGINT` (e.g by hitting Ctrl-C), and observe that the signal frame will be misaligned:
-```
-signal occurred, info: 0x400080025c, context: 0x40008002dc
-```
-Additional information:
-This issue is alluded to in the source code, see https://gitlab.com/qemu-project/qemu/-/blob/master/linux-user/riscv/signal.c#L68-69. It should be sufficient to change that constant to 15.