blob: 11c9015d8c6bed71c366fe59d4ddb635115a1317 (
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
|
graphic: 0.872
instruction: 0.820
network: 0.650
device: 0.641
vnc: 0.538
semantic: 0.485
socket: 0.480
other: 0.444
boot: 0.361
KVM: 0.225
mistranslation: 0.118
assembly: 0.043
Unreachable code
Description of problem:
There is always a false condition in the function `alloc_code_gen_buffer_splitwx_memfd` in the file `tcg/region.c`. If `buf_rw == NULL` we go to the mark __fail__:
https://gitlab.com/qemu-project/qemu/-/blob/master/tcg/region.c?ref_type=heads#L580-L583
But the value of `buf_rx` is __`MAP_FAILED`__:
https://gitlab.com/qemu-project/qemu/-/blob/master/tcg/region.c?ref_type=heads#L577
And this line will never be reached:
https://gitlab.com/qemu-project/qemu/-/blob/master/tcg/region.c?ref_type=heads#L601
Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
Author A. Voronin.
|