Bug 494246

Summary: syscall fsopen not wrapped
Product: [Developer tools] valgrind Reporter: Mark Wielaard <mark>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: normal CC: pjfloyd
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mark Wielaard 2024-10-07 15:49:53 UTC
Given the following program:

#include <stdio.h>
#include <sys/mount.h>
#include <unistd.h>

int main(void) {
        int fsd = fsopen("ext4", FSOPEN_CLOEXEC);
        printf("fsd: 0x%x\n", fsd);
        return 0;
}

WARNING: unhandled amd64-linux syscall: 430
Comment 1 Mark Wielaard 2024-10-09 11:39:38 UTC
Note that this syscall is part of a group of not yet wrapped syscalls:
fsopen, open_tree, move_mount, fsconfig, fsmount and fspick
Comment 2 Mark Wielaard 2024-11-26 18:21:30 UTC
commit 4044bcea0427853fc44a3d02a0fc0b2a81935452
Author: Mark Wielaard <mark@klomp.org>
Date:   Tue Nov 26 19:00:34 2024 +0100

    Add open_tree, move_mount, fsopen, fsconfig, fsmount, fspick linux syswraps
    
    Shared linux syscalls implementing various file system mount tasks.
    Since linux kernel version 5.2.
    
    Check arguments and track file descriptors.
    
    https://bugs.kde.org/show_bug.cgi?id=494246