summary refs log tree commit diff stats
path: root/gitlab/issues/target_loongarch/host_missing/accel_missing/1261.toml
blob: 8ad96bfef87b626720f75ee63afa454df8bb6c55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
id = 1261
title = "qemu-user syscall 439 (faccessat2) not implemented - loongarch64"
state = "closed"
created_at = "2022-10-17T23:53:32.857Z"
closed_at = "2022-10-27T16:54:40.033Z"
labels = ["linux-user", "target: loongarch"]
url = "https://gitlab.com/qemu-project/qemu/-/issues/1261"
host-os = "Linux"
host-arch = "x86_64"
qemu-version = "7.1.50 (v7.1.0-177-gfd28528ece-dirty)"
guest-os = "Linux"
guest-arch = "LoongArch64"
description = """On LoongArch64 architecture faccessat syscall is missing and only faccessat2 is present, but it is not handled in  linux-user/syscall"""
reproduce = """1. Launch a simple bash test script (call it test.sh): if [[ -r test.sh ]] ; then echo OK ; else echo ERROR ; fi
2. The result is "ERROR" even if the file "test.sh" exists and it is readeable
3. The correct result should be "OK""""
additional = """test.sh:
   ```
   if [[ -r test.sh ]] ; then echo OK ; else echo ERROR ; fi
   ```
qemu-loongarch -strace log:
   ```
[...]
12579 statx(255,"",AT_EMPTY_PATH|AT_NO_AUTOMOUNT,STATX_BASIC_STATS,0x0000004000802a50) = 0
12579 lseek(255,0,SEEK_CUR) = 0
12579 read(255,0x2016d490,56) = 56
12579 Unknown syscall 439
12579 write(1,0x20172010,6) = 6
12579 read(255,0x2016d490,56) = 0
12579 rt_sigprocmask(SIG_BLOCK,0x0000004000802b60,0x0000004000802be0) = 0
12579 rt_sigprocmask(SIG_SETMASK,0x0000004000802be0,NULL) = 0
12579 exit_group(0)
   ```"""