github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/linux/test/dev_bifrost (about)

     1  # requires: manual
     2  
     3  r0 = openat$bifrost(0xffffffffffffff9c, &AUTO='/dev/bifrost\x00', 0x2, 0x0)
     4  
     5  # These two ioctl set up kbase_context
     6  
     7  ioctl$KBASE_IOCTL_VERSION_CHECK(r0, 0xc0048000, &AUTO={0xB, 0xF})
     8  ioctl$KBASE_IOCTL_SET_FLAGS(r0, 0x40048001, &AUTO={0x0})
     9  
    10  # Offset 0x3000 is BASE_MEM_MAP_TRACKING_HANDLE
    11  
    12  mmap$bifrost(nil, 0x3000, 0x3, 0x1, r0, 0x3000)
    13  
    14  ioctl$KBASE_IOCTL_MEM_ALLOC(r0, 0xc0208005, &AUTO={0x1, 0x1, 0x0, 0xf, 0x0, 0x0})
    15  
    16  close(r0)