mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-24 03:49:45 +00:00
sys/linux: add binder descriptions
This commit is contained in:
parent
deb5f6aea2
commit
afba0b55e6
@ -2,7 +2,7 @@
|
||||
|
||||
#if defined(__i386__) || 0
|
||||
#define GOARCH "386"
|
||||
#define SYZ_REVISION "7b73237cb232e01d49ea4c08e81af6e75a46e73b"
|
||||
#define SYZ_REVISION "b47da9932d66ae2a9b70a3e4b05351547128a86a"
|
||||
#define __NR_syz_emit_ethernet 1000000
|
||||
#define __NR_syz_extract_tcp_res 1000001
|
||||
#define __NR_syz_fuse_mount 1000002
|
||||
@ -13,7 +13,7 @@
|
||||
#define __NR_syz_open_pts 1000007
|
||||
#define __NR_syz_test 1000008
|
||||
|
||||
unsigned syscall_count = 1484;
|
||||
unsigned syscall_count = 1490;
|
||||
call_t syscalls[] = {
|
||||
{"accept4", 364},
|
||||
{"accept4$ax25", 364},
|
||||
@ -356,6 +356,11 @@ call_t syscalls[] = {
|
||||
{"io_setup", 245},
|
||||
{"io_submit", 248},
|
||||
{"ioctl", 54},
|
||||
{"ioctl$BINDER_GET_NODE_DEBUG_INFO", 54},
|
||||
{"ioctl$BINDER_SET_CONTEXT_MGR", 54},
|
||||
{"ioctl$BINDER_SET_MAX_THREADS", 54},
|
||||
{"ioctl$BINDER_THREAD_EXIT", 54},
|
||||
{"ioctl$BINDER_WRITE_READ", 54},
|
||||
{"ioctl$DRM_IOCTL_ADD_BUFS", 54},
|
||||
{"ioctl$DRM_IOCTL_ADD_CTX", 54},
|
||||
{"ioctl$DRM_IOCTL_ADD_MAP", 54},
|
||||
@ -912,6 +917,7 @@ call_t syscalls[] = {
|
||||
{"mlock2", 376},
|
||||
{"mlockall", 152},
|
||||
{"mmap", 192},
|
||||
{"mmap$binder", 192},
|
||||
{"modify_ldt$read", 123},
|
||||
{"modify_ldt$read_default", 123},
|
||||
{"modify_ldt$write", 123},
|
||||
@ -938,7 +944,6 @@ call_t syscalls[] = {
|
||||
{"openat", 295},
|
||||
{"openat$audio", 295},
|
||||
{"openat$autofs", 295},
|
||||
{"openat$binder", 295},
|
||||
{"openat$capi20", 295},
|
||||
{"openat$cuse", 295},
|
||||
{"openat$dsp", 295},
|
||||
@ -1371,6 +1376,7 @@ call_t syscalls[] = {
|
||||
{"syz_open_dev$adsp", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$amidi", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$audion", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$binder", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$dmmidi", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$dri", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$dricontrol", 1000005, (syscall_t)syz_open_dev},
|
||||
@ -1505,7 +1511,7 @@ call_t syscalls[] = {
|
||||
|
||||
#if defined(__x86_64__) || 0
|
||||
#define GOARCH "amd64"
|
||||
#define SYZ_REVISION "792dfe8f3933b557194005fe4859b202f6f2349d"
|
||||
#define SYZ_REVISION "d326eae46892a5fa16a8984a340fbdfbd08bbd4e"
|
||||
#define __NR_syz_emit_ethernet 1000000
|
||||
#define __NR_syz_extract_tcp_res 1000001
|
||||
#define __NR_syz_fuse_mount 1000002
|
||||
@ -1516,7 +1522,7 @@ call_t syscalls[] = {
|
||||
#define __NR_syz_open_pts 1000007
|
||||
#define __NR_syz_test 1000008
|
||||
|
||||
unsigned syscall_count = 1545;
|
||||
unsigned syscall_count = 1551;
|
||||
call_t syscalls[] = {
|
||||
{"accept", 43},
|
||||
{"accept$alg", 43},
|
||||
@ -1870,6 +1876,11 @@ call_t syscalls[] = {
|
||||
{"io_setup", 206},
|
||||
{"io_submit", 209},
|
||||
{"ioctl", 16},
|
||||
{"ioctl$BINDER_GET_NODE_DEBUG_INFO", 16},
|
||||
{"ioctl$BINDER_SET_CONTEXT_MGR", 16},
|
||||
{"ioctl$BINDER_SET_MAX_THREADS", 16},
|
||||
{"ioctl$BINDER_THREAD_EXIT", 16},
|
||||
{"ioctl$BINDER_WRITE_READ", 16},
|
||||
{"ioctl$DRM_IOCTL_ADD_BUFS", 16},
|
||||
{"ioctl$DRM_IOCTL_ADD_CTX", 16},
|
||||
{"ioctl$DRM_IOCTL_ADD_MAP", 16},
|
||||
@ -2437,6 +2448,7 @@ call_t syscalls[] = {
|
||||
{"mlock2", 325},
|
||||
{"mlockall", 151},
|
||||
{"mmap", 9},
|
||||
{"mmap$binder", 9},
|
||||
{"modify_ldt$read", 154},
|
||||
{"modify_ldt$read_default", 154},
|
||||
{"modify_ldt$write", 154},
|
||||
@ -2473,7 +2485,6 @@ call_t syscalls[] = {
|
||||
{"openat", 257},
|
||||
{"openat$audio", 257},
|
||||
{"openat$autofs", 257},
|
||||
{"openat$binder", 257},
|
||||
{"openat$capi20", 257},
|
||||
{"openat$cuse", 257},
|
||||
{"openat$dsp", 257},
|
||||
@ -2935,6 +2946,7 @@ call_t syscalls[] = {
|
||||
{"syz_open_dev$adsp", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$amidi", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$audion", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$binder", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$dmmidi", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$dri", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$dricontrol", 1000005, (syscall_t)syz_open_dev},
|
||||
@ -3069,7 +3081,7 @@ call_t syscalls[] = {
|
||||
|
||||
#if defined(__arm__) || 0
|
||||
#define GOARCH "arm"
|
||||
#define SYZ_REVISION "deea6ad319804166d910ed7154162b899667be87"
|
||||
#define SYZ_REVISION "512a5cb323de201b25caa745088d9fa121bc24bc"
|
||||
#define __NR_syz_emit_ethernet 1000000
|
||||
#define __NR_syz_extract_tcp_res 1000001
|
||||
#define __NR_syz_fuse_mount 1000002
|
||||
@ -3080,7 +3092,7 @@ call_t syscalls[] = {
|
||||
#define __NR_syz_open_pts 1000007
|
||||
#define __NR_syz_test 1000008
|
||||
|
||||
unsigned syscall_count = 1494;
|
||||
unsigned syscall_count = 1500;
|
||||
call_t syscalls[] = {
|
||||
{"accept", 285},
|
||||
{"accept$alg", 285},
|
||||
@ -3429,6 +3441,11 @@ call_t syscalls[] = {
|
||||
{"io_setup", 243},
|
||||
{"io_submit", 246},
|
||||
{"ioctl", 54},
|
||||
{"ioctl$BINDER_GET_NODE_DEBUG_INFO", 54},
|
||||
{"ioctl$BINDER_SET_CONTEXT_MGR", 54},
|
||||
{"ioctl$BINDER_SET_MAX_THREADS", 54},
|
||||
{"ioctl$BINDER_THREAD_EXIT", 54},
|
||||
{"ioctl$BINDER_WRITE_READ", 54},
|
||||
{"ioctl$DRM_IOCTL_ADD_BUFS", 54},
|
||||
{"ioctl$DRM_IOCTL_ADD_CTX", 54},
|
||||
{"ioctl$DRM_IOCTL_ADD_MAP", 54},
|
||||
@ -3959,6 +3976,7 @@ call_t syscalls[] = {
|
||||
{"mlock2", 390},
|
||||
{"mlockall", 152},
|
||||
{"mmap", 192},
|
||||
{"mmap$binder", 192},
|
||||
{"mount", 21},
|
||||
{"move_pages", 344},
|
||||
{"mprotect", 125},
|
||||
@ -3991,7 +4009,6 @@ call_t syscalls[] = {
|
||||
{"openat", 322},
|
||||
{"openat$audio", 322},
|
||||
{"openat$autofs", 322},
|
||||
{"openat$binder", 322},
|
||||
{"openat$capi20", 322},
|
||||
{"openat$cuse", 322},
|
||||
{"openat$dsp", 322},
|
||||
@ -4450,6 +4467,7 @@ call_t syscalls[] = {
|
||||
{"syz_open_dev$adsp", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$amidi", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$audion", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$binder", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$dmmidi", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$dri", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$dricontrol", 1000005, (syscall_t)syz_open_dev},
|
||||
@ -4582,7 +4600,7 @@ call_t syscalls[] = {
|
||||
|
||||
#if defined(__aarch64__) || 0
|
||||
#define GOARCH "arm64"
|
||||
#define SYZ_REVISION "be5522c0679cce2f51bb79928a58c2e472a6a27c"
|
||||
#define SYZ_REVISION "62bcc9345113622ae003695850017489cadfe5aa"
|
||||
#define __NR_syz_emit_ethernet 1000000
|
||||
#define __NR_syz_extract_tcp_res 1000001
|
||||
#define __NR_syz_fuse_mount 1000002
|
||||
@ -4593,7 +4611,7 @@ call_t syscalls[] = {
|
||||
#define __NR_syz_open_pts 1000007
|
||||
#define __NR_syz_test 1000008
|
||||
|
||||
unsigned syscall_count = 1474;
|
||||
unsigned syscall_count = 1480;
|
||||
call_t syscalls[] = {
|
||||
{"accept", 202},
|
||||
{"accept$alg", 202},
|
||||
@ -4933,6 +4951,11 @@ call_t syscalls[] = {
|
||||
{"io_setup", 0},
|
||||
{"io_submit", 2},
|
||||
{"ioctl", 29},
|
||||
{"ioctl$BINDER_GET_NODE_DEBUG_INFO", 29},
|
||||
{"ioctl$BINDER_SET_CONTEXT_MGR", 29},
|
||||
{"ioctl$BINDER_SET_MAX_THREADS", 29},
|
||||
{"ioctl$BINDER_THREAD_EXIT", 29},
|
||||
{"ioctl$BINDER_WRITE_READ", 29},
|
||||
{"ioctl$DRM_IOCTL_ADD_BUFS", 29},
|
||||
{"ioctl$DRM_IOCTL_ADD_CTX", 29},
|
||||
{"ioctl$DRM_IOCTL_ADD_MAP", 29},
|
||||
@ -5469,6 +5492,7 @@ call_t syscalls[] = {
|
||||
{"mlock2", 284},
|
||||
{"mlockall", 230},
|
||||
{"mmap", 222},
|
||||
{"mmap$binder", 222},
|
||||
{"mount", 40},
|
||||
{"move_pages", 239},
|
||||
{"mprotect", 226},
|
||||
@ -5499,7 +5523,6 @@ call_t syscalls[] = {
|
||||
{"openat", 56},
|
||||
{"openat$audio", 56},
|
||||
{"openat$autofs", 56},
|
||||
{"openat$binder", 56},
|
||||
{"openat$capi20", 56},
|
||||
{"openat$cuse", 56},
|
||||
{"openat$dsp", 56},
|
||||
@ -5947,6 +5970,7 @@ call_t syscalls[] = {
|
||||
{"syz_open_dev$adsp", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$amidi", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$audion", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$binder", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$dmmidi", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$dri", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$dricontrol", 1000005, (syscall_t)syz_open_dev},
|
||||
@ -6075,7 +6099,7 @@ call_t syscalls[] = {
|
||||
|
||||
#if defined(__ppc64__) || defined(__PPC64__) || defined(__powerpc64__) || 0
|
||||
#define GOARCH "ppc64le"
|
||||
#define SYZ_REVISION "8580724acc23030aa1a3828f7e9f90f5ec452f13"
|
||||
#define SYZ_REVISION "f13f7d406031c03cb669592f12d0978ca59b06ec"
|
||||
#define __NR_syz_emit_ethernet 1000000
|
||||
#define __NR_syz_extract_tcp_res 1000001
|
||||
#define __NR_syz_fuse_mount 1000002
|
||||
@ -6086,7 +6110,7 @@ call_t syscalls[] = {
|
||||
#define __NR_syz_open_pts 1000007
|
||||
#define __NR_syz_test 1000008
|
||||
|
||||
unsigned syscall_count = 1454;
|
||||
unsigned syscall_count = 1460;
|
||||
call_t syscalls[] = {
|
||||
{"accept", 330},
|
||||
{"accept$alg", 330},
|
||||
@ -6438,6 +6462,11 @@ call_t syscalls[] = {
|
||||
{"io_setup", 227},
|
||||
{"io_submit", 230},
|
||||
{"ioctl", 54},
|
||||
{"ioctl$BINDER_GET_NODE_DEBUG_INFO", 54},
|
||||
{"ioctl$BINDER_SET_CONTEXT_MGR", 54},
|
||||
{"ioctl$BINDER_SET_MAX_THREADS", 54},
|
||||
{"ioctl$BINDER_THREAD_EXIT", 54},
|
||||
{"ioctl$BINDER_WRITE_READ", 54},
|
||||
{"ioctl$DRM_IOCTL_ADD_BUFS", 54},
|
||||
{"ioctl$DRM_IOCTL_ADD_CTX", 54},
|
||||
{"ioctl$DRM_IOCTL_ADD_MAP", 54},
|
||||
@ -6960,6 +6989,7 @@ call_t syscalls[] = {
|
||||
{"mlock2", 378},
|
||||
{"mlockall", 152},
|
||||
{"mmap", 90},
|
||||
{"mmap$binder", 90},
|
||||
{"modify_ldt$read", 123},
|
||||
{"modify_ldt$read_default", 123},
|
||||
{"modify_ldt$write", 123},
|
||||
@ -6986,7 +7016,6 @@ call_t syscalls[] = {
|
||||
{"openat", 286},
|
||||
{"openat$audio", 286},
|
||||
{"openat$autofs", 286},
|
||||
{"openat$binder", 286},
|
||||
{"openat$capi20", 286},
|
||||
{"openat$cuse", 286},
|
||||
{"openat$dsp", 286},
|
||||
@ -7414,6 +7443,7 @@ call_t syscalls[] = {
|
||||
{"syz_open_dev$adsp", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$amidi", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$audion", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$binder", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$dmmidi", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$dri", 1000005, (syscall_t)syz_open_dev},
|
||||
{"syz_open_dev$dricontrol", 1000005, (syscall_t)syz_open_dev},
|
||||
|
@ -37,6 +37,10 @@ sudo sed -i "/^root/ { s/:x:/::/ }" disk.mnt/etc/passwd
|
||||
echo "T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100" | sudo tee -a disk.mnt/etc/inittab
|
||||
echo -en "auto lo\niface lo inet loopback\nauto eth0\niface eth0 inet dhcp\n" | sudo tee disk.mnt/etc/network/interfaces
|
||||
echo "debugfs /sys/kernel/debug debugfs defaults 0 0" | sudo tee -a disk.mnt/etc/fstab
|
||||
for i in {0..31}; do
|
||||
echo "KERNEL==\"binder$i\", NAME=\"binder$i\", MODE=\"0666\"" | \
|
||||
tee -a disk.mnt/etc/udev/50-binder.rules
|
||||
done
|
||||
|
||||
echo "kernel.printk = 7 4 1 3" | sudo tee -a disk.mnt/etc/sysctl.conf
|
||||
echo "debug.exception-trace = 0" | sudo tee -a disk.mnt/etc/sysctl.conf
|
||||
|
2517
sys/linux/386.go
2517
sys/linux/386.go
File diff suppressed because it is too large
Load Diff
2617
sys/linux/amd64.go
2617
sys/linux/amd64.go
File diff suppressed because it is too large
Load Diff
2525
sys/linux/arm.go
2525
sys/linux/arm.go
File diff suppressed because it is too large
Load Diff
2503
sys/linux/arm64.go
2503
sys/linux/arm64.go
File diff suppressed because it is too large
Load Diff
214
sys/linux/binder.txt
Normal file
214
sys/linux/binder.txt
Normal file
@ -0,0 +1,214 @@
|
||||
# Copyright 2017 syzkaller project authors. All rights reserved.
|
||||
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
|
||||
|
||||
# Description uses binder device per test process, they are expected to be configured with
|
||||
# CONFIG_ANDROID_BINDER_DEVICES="binder0,...,binder31".
|
||||
# Description assumes CONFIG_ANDROID_BINDER_IPC_32BIT is not set.
|
||||
|
||||
include <linux/android/binder.h>
|
||||
include <linux/fcntl.h>
|
||||
|
||||
resource fd_binder[fd]
|
||||
resource binder_ptr[int64]: 0
|
||||
|
||||
syz_open_dev$binder(dev ptr[in, string["/dev/binder#"]], id proc[0, 1], flags flags[binder_open_flags]) fd_binder
|
||||
|
||||
mmap$binder(addr vma, len len[addr], prot flags[mmap_prot], flags flags[mmap_flags], fd fd_binder, offset fileoff) binder_ptr
|
||||
|
||||
ioctl$BINDER_SET_MAX_THREADS(fd fd_binder, cmd const[BINDER_SET_MAX_THREADS], nthreads int32)
|
||||
ioctl$BINDER_SET_CONTEXT_MGR(fd fd_binder, cmd const[BINDER_SET_CONTEXT_MGR], arg const[0])
|
||||
ioctl$BINDER_THREAD_EXIT(fd fd_binder, cmd const[BINDER_THREAD_EXIT], arg const[0])
|
||||
ioctl$BINDER_GET_NODE_DEBUG_INFO(fd fd_binder, cmd const[BINDER_GET_NODE_DEBUG_INFO], arg ptr[inout, binder_node_debug_info])
|
||||
ioctl$BINDER_WRITE_READ(fd fd_binder, cmd const[BINDER_WRITE_READ], arg ptr[in, binder_write_read])
|
||||
|
||||
binder_open_flags = O_RDWR, O_NONBLOCK
|
||||
legacy_mmap_number_binder = __NR_mmap2
|
||||
|
||||
binder_node_debug_info {
|
||||
ptr binder_ptr
|
||||
cookie const[0, int64]
|
||||
has_strong_ref const[0, int32]
|
||||
has_weak_ref const[0, int32]
|
||||
}
|
||||
|
||||
binder_write_read {
|
||||
write_size bytesize[write_buffer, int64]
|
||||
write_consumed const[0, int64]
|
||||
write_buffer ptr64[in, array[binder_write_cmd]]
|
||||
read_size bytesize[read_buffer, int64]
|
||||
read_consumed const[0, int64]
|
||||
read_buffer ptr64[in, array[int8]]
|
||||
}
|
||||
|
||||
binder_write_cmd [
|
||||
transaction binder_cmd_transaction
|
||||
reply binder_cmd_reply
|
||||
transaction_sg binder_cmd_transaction_sg
|
||||
reply_sg binder_cmd_reply_sg
|
||||
free_buffer binder_cmd_free_buffer
|
||||
increfs binder_cmd_increfs
|
||||
acquire binder_cmd_acquire
|
||||
release binder_cmd_release
|
||||
decrefs binder_cmd_decrefs
|
||||
increfs_done binder_cmd_increfs_done
|
||||
acquire_done binder_cmd_acquire_done
|
||||
register_looper binder_cmd_register_looper
|
||||
enter_looper binder_cmd_enter_looper
|
||||
exit_looper binder_cmd_exit_looper
|
||||
request_death binder_cmd_request_death
|
||||
clear_death binder_cmd_clear_death
|
||||
dead_binder_done binder_cmd_dead_binder_done
|
||||
] [varlen]
|
||||
|
||||
binder_cmd_transaction {
|
||||
cmd const[BC_TRANSACTION, int32]
|
||||
data binder_transaction_data
|
||||
} [packed]
|
||||
|
||||
binder_cmd_reply {
|
||||
cmd const[BC_REPLY, int32]
|
||||
data binder_transaction_data
|
||||
} [packed]
|
||||
|
||||
binder_cmd_transaction_sg {
|
||||
cmd const[BC_TRANSACTION_SG, int32]
|
||||
data binder_transaction_data_sg
|
||||
} [packed]
|
||||
|
||||
binder_cmd_reply_sg {
|
||||
cmd const[BC_REPLY_SG, int32]
|
||||
data binder_transaction_data_sg
|
||||
} [packed]
|
||||
|
||||
binder_transaction_data {
|
||||
handle int32[0:4]
|
||||
# there is a union of handle with binder_uintptr_t
|
||||
pad const[0, int32]
|
||||
cookie int64[0:4]
|
||||
code const[0, int32]
|
||||
flags flags[binder_transaction_flags, int32]
|
||||
sender_pid const[0, int32]
|
||||
sender_euid const[0, int32]
|
||||
data_size bytesize[buffer, int64]
|
||||
offsets_size bytesize[offsets, int64]
|
||||
buffer ptr64[in, array[binder_object, 0:3]]
|
||||
offsets ptr64[in, array[flags[binder_buffer_offsets, int64]]]
|
||||
}
|
||||
|
||||
binder_transaction_data_sg {
|
||||
trx binder_transaction_data
|
||||
buffers_size int64
|
||||
} [packed]
|
||||
|
||||
# These are sizes of flat_binder_object, binder_fd_object, binder_fd_array_object and
|
||||
# binder_buffer_object, and also sums of all pairs of these sizes.
|
||||
# This allows guessing offsets for up to 3 objects.
|
||||
binder_buffer_offsets = 0, 24, 32, 40, 48, 56, 64, 72
|
||||
binder_transaction_flags = TF_ONE_WAY, TF_ACCEPT_FDS
|
||||
|
||||
binder_object [
|
||||
flat flat_binder_object
|
||||
fd binder_fd_object
|
||||
fda binder_fd_array_object
|
||||
ptr binder_buffer_object
|
||||
] [varlen]
|
||||
|
||||
flat_binder_object {
|
||||
type flags[binder_flat_types, int32]
|
||||
flags flags[binder_flat_flags, int32]
|
||||
binder binder_ptr
|
||||
cookie int64[0:4]
|
||||
}
|
||||
|
||||
binder_flat_types = BINDER_TYPE_BINDER, BINDER_TYPE_WEAK_BINDER, BINDER_TYPE_HANDLE, BINDER_TYPE_WEAK_HANDLE
|
||||
binder_flat_flags = 1, 10, FLAT_BINDER_FLAG_ACCEPTS_FDS
|
||||
|
||||
binder_fd_object {
|
||||
type const[BINDER_TYPE_FD, int32]
|
||||
pad const[0, int32]
|
||||
fd fd
|
||||
pad2 const[0, int32]
|
||||
cookie int64[0:4]
|
||||
}
|
||||
|
||||
binder_fd_array_object {
|
||||
type const[BINDER_TYPE_FDA, int32]
|
||||
num_fds int64[0:10]
|
||||
parnt int64[0:4]
|
||||
parent_offset int64[0:64]
|
||||
}
|
||||
|
||||
binder_buffer_object {
|
||||
type const[BINDER_TYPE_PTR, int32]
|
||||
flags int32[0:1]
|
||||
buffer ptr64[in, const[0, int8]]
|
||||
length bytesize[buffer, int64]
|
||||
parnt int64[0:4]
|
||||
parent_offset int64[0:64]
|
||||
}
|
||||
|
||||
binder_cmd_free_buffer {
|
||||
cmd const[BC_FREE_BUFFER, int32]
|
||||
ptr binder_ptr
|
||||
} [packed]
|
||||
|
||||
binder_cmd_increfs {
|
||||
cmd const[BC_INCREFS, int32]
|
||||
ref int32[0:4]
|
||||
} [packed]
|
||||
|
||||
binder_cmd_acquire {
|
||||
cmd const[BC_ACQUIRE, int32]
|
||||
ref int32[0:4]
|
||||
} [packed]
|
||||
|
||||
binder_cmd_release {
|
||||
cmd const[BC_RELEASE, int32]
|
||||
ref int32[0:4]
|
||||
} [packed]
|
||||
|
||||
binder_cmd_decrefs {
|
||||
cmd const[BC_DECREFS, int32]
|
||||
ref int32[0:4]
|
||||
} [packed]
|
||||
|
||||
binder_cmd_increfs_done {
|
||||
cmd const[BC_INCREFS_DONE, int32]
|
||||
ptr binder_ptr
|
||||
cookie int64[0:4]
|
||||
} [packed]
|
||||
|
||||
binder_cmd_acquire_done {
|
||||
cmd const[BC_ACQUIRE_DONE, int32]
|
||||
ptr binder_ptr
|
||||
cookie int64[0:4]
|
||||
} [packed]
|
||||
|
||||
binder_cmd_register_looper {
|
||||
cmd const[BC_REGISTER_LOOPER, int32]
|
||||
} [packed]
|
||||
|
||||
binder_cmd_enter_looper {
|
||||
cmd const[BC_ENTER_LOOPER, int32]
|
||||
} [packed]
|
||||
|
||||
binder_cmd_exit_looper {
|
||||
cmd const[BC_EXIT_LOOPER, int32]
|
||||
} [packed]
|
||||
|
||||
binder_cmd_request_death {
|
||||
cmd const[BC_REQUEST_DEATH_NOTIFICATION, int32]
|
||||
handle int32[0:4]
|
||||
cookie int64[0:4]
|
||||
} [packed]
|
||||
|
||||
binder_cmd_clear_death {
|
||||
cmd const[BC_CLEAR_DEATH_NOTIFICATION, int32]
|
||||
handle int32[0:4]
|
||||
cookie int64[0:4]
|
||||
} [packed]
|
||||
|
||||
binder_cmd_dead_binder_done {
|
||||
cmd const[BC_DEAD_BINDER_DONE, int32]
|
||||
cookie int64[0:4]
|
||||
} [packed]
|
38
sys/linux/binder_386.const
Normal file
38
sys/linux/binder_386.const
Normal file
@ -0,0 +1,38 @@
|
||||
# AUTOGENERATED FILE
|
||||
BC_ACQUIRE = 1074029317
|
||||
BC_ACQUIRE_DONE = 1074815753
|
||||
BC_CLEAR_DEATH_NOTIFICATION = 1074553615
|
||||
BC_DEAD_BINDER_DONE = 1074291472
|
||||
BC_DECREFS = 1074029319
|
||||
BC_ENTER_LOOPER = 25356
|
||||
BC_EXIT_LOOPER = 25357
|
||||
BC_FREE_BUFFER = 1074291459
|
||||
BC_INCREFS = 1074029316
|
||||
BC_INCREFS_DONE = 1074815752
|
||||
BC_REGISTER_LOOPER = 25355
|
||||
BC_RELEASE = 1074029318
|
||||
BC_REPLY = 1077961473
|
||||
BC_REPLY_SG = 1078485778
|
||||
BC_REQUEST_DEATH_NOTIFICATION = 1074553614
|
||||
BC_TRANSACTION = 1077961472
|
||||
BC_TRANSACTION_SG = 1078485777
|
||||
BINDER_GET_NODE_DEBUG_INFO = 3222823435
|
||||
BINDER_SET_CONTEXT_MGR = 1074029063
|
||||
BINDER_SET_MAX_THREADS = 1074029061
|
||||
BINDER_THREAD_EXIT = 1074029064
|
||||
BINDER_TYPE_BINDER = 1935813253
|
||||
BINDER_TYPE_FD = 1717840517
|
||||
BINDER_TYPE_FDA = 1717854597
|
||||
BINDER_TYPE_HANDLE = 1936206469
|
||||
BINDER_TYPE_PTR = 1886661253
|
||||
BINDER_TYPE_WEAK_BINDER = 2002922117
|
||||
BINDER_TYPE_WEAK_HANDLE = 2003315333
|
||||
BINDER_WRITE_READ = 3224396289
|
||||
FLAT_BINDER_FLAG_ACCEPTS_FDS = 256
|
||||
O_NONBLOCK = 2048
|
||||
O_RDWR = 2
|
||||
TF_ACCEPT_FDS = 16
|
||||
TF_ONE_WAY = 1
|
||||
__NR_ioctl = 54
|
||||
__NR_mmap = 192
|
||||
__NR_mmap2 = 192
|
37
sys/linux/binder_amd64.const
Normal file
37
sys/linux/binder_amd64.const
Normal file
@ -0,0 +1,37 @@
|
||||
# AUTOGENERATED FILE
|
||||
BC_ACQUIRE = 1074029317
|
||||
BC_ACQUIRE_DONE = 1074815753
|
||||
BC_CLEAR_DEATH_NOTIFICATION = 1074553615
|
||||
BC_DEAD_BINDER_DONE = 1074291472
|
||||
BC_DECREFS = 1074029319
|
||||
BC_ENTER_LOOPER = 25356
|
||||
BC_EXIT_LOOPER = 25357
|
||||
BC_FREE_BUFFER = 1074291459
|
||||
BC_INCREFS = 1074029316
|
||||
BC_INCREFS_DONE = 1074815752
|
||||
BC_REGISTER_LOOPER = 25355
|
||||
BC_RELEASE = 1074029318
|
||||
BC_REPLY = 1077961473
|
||||
BC_REPLY_SG = 1078485778
|
||||
BC_REQUEST_DEATH_NOTIFICATION = 1074553614
|
||||
BC_TRANSACTION = 1077961472
|
||||
BC_TRANSACTION_SG = 1078485777
|
||||
BINDER_GET_NODE_DEBUG_INFO = 3222823435
|
||||
BINDER_SET_CONTEXT_MGR = 1074029063
|
||||
BINDER_SET_MAX_THREADS = 1074029061
|
||||
BINDER_THREAD_EXIT = 1074029064
|
||||
BINDER_TYPE_BINDER = 1935813253
|
||||
BINDER_TYPE_FD = 1717840517
|
||||
BINDER_TYPE_FDA = 1717854597
|
||||
BINDER_TYPE_HANDLE = 1936206469
|
||||
BINDER_TYPE_PTR = 1886661253
|
||||
BINDER_TYPE_WEAK_BINDER = 2002922117
|
||||
BINDER_TYPE_WEAK_HANDLE = 2003315333
|
||||
BINDER_WRITE_READ = 3224396289
|
||||
FLAT_BINDER_FLAG_ACCEPTS_FDS = 256
|
||||
O_NONBLOCK = 2048
|
||||
O_RDWR = 2
|
||||
TF_ACCEPT_FDS = 16
|
||||
TF_ONE_WAY = 1
|
||||
__NR_ioctl = 16
|
||||
__NR_mmap = 9
|
38
sys/linux/binder_arm.const
Normal file
38
sys/linux/binder_arm.const
Normal file
@ -0,0 +1,38 @@
|
||||
# AUTOGENERATED FILE
|
||||
BC_ACQUIRE = 1074029317
|
||||
BC_ACQUIRE_DONE = 1074815753
|
||||
BC_CLEAR_DEATH_NOTIFICATION = 1074553615
|
||||
BC_DEAD_BINDER_DONE = 1074291472
|
||||
BC_DECREFS = 1074029319
|
||||
BC_ENTER_LOOPER = 25356
|
||||
BC_EXIT_LOOPER = 25357
|
||||
BC_FREE_BUFFER = 1074291459
|
||||
BC_INCREFS = 1074029316
|
||||
BC_INCREFS_DONE = 1074815752
|
||||
BC_REGISTER_LOOPER = 25355
|
||||
BC_RELEASE = 1074029318
|
||||
BC_REPLY = 1077961473
|
||||
BC_REPLY_SG = 1078485778
|
||||
BC_REQUEST_DEATH_NOTIFICATION = 1074553614
|
||||
BC_TRANSACTION = 1077961472
|
||||
BC_TRANSACTION_SG = 1078485777
|
||||
BINDER_GET_NODE_DEBUG_INFO = 3222823435
|
||||
BINDER_SET_CONTEXT_MGR = 1074029063
|
||||
BINDER_SET_MAX_THREADS = 1074029061
|
||||
BINDER_THREAD_EXIT = 1074029064
|
||||
BINDER_TYPE_BINDER = 1935813253
|
||||
BINDER_TYPE_FD = 1717840517
|
||||
BINDER_TYPE_FDA = 1717854597
|
||||
BINDER_TYPE_HANDLE = 1936206469
|
||||
BINDER_TYPE_PTR = 1886661253
|
||||
BINDER_TYPE_WEAK_BINDER = 2002922117
|
||||
BINDER_TYPE_WEAK_HANDLE = 2003315333
|
||||
BINDER_WRITE_READ = 3224396289
|
||||
FLAT_BINDER_FLAG_ACCEPTS_FDS = 256
|
||||
O_NONBLOCK = 2048
|
||||
O_RDWR = 2
|
||||
TF_ACCEPT_FDS = 16
|
||||
TF_ONE_WAY = 1
|
||||
__NR_ioctl = 54
|
||||
__NR_mmap = 192
|
||||
__NR_mmap2 = 192
|
37
sys/linux/binder_arm64.const
Normal file
37
sys/linux/binder_arm64.const
Normal file
@ -0,0 +1,37 @@
|
||||
# AUTOGENERATED FILE
|
||||
BC_ACQUIRE = 1074029317
|
||||
BC_ACQUIRE_DONE = 1074815753
|
||||
BC_CLEAR_DEATH_NOTIFICATION = 1074553615
|
||||
BC_DEAD_BINDER_DONE = 1074291472
|
||||
BC_DECREFS = 1074029319
|
||||
BC_ENTER_LOOPER = 25356
|
||||
BC_EXIT_LOOPER = 25357
|
||||
BC_FREE_BUFFER = 1074291459
|
||||
BC_INCREFS = 1074029316
|
||||
BC_INCREFS_DONE = 1074815752
|
||||
BC_REGISTER_LOOPER = 25355
|
||||
BC_RELEASE = 1074029318
|
||||
BC_REPLY = 1077961473
|
||||
BC_REPLY_SG = 1078485778
|
||||
BC_REQUEST_DEATH_NOTIFICATION = 1074553614
|
||||
BC_TRANSACTION = 1077961472
|
||||
BC_TRANSACTION_SG = 1078485777
|
||||
BINDER_GET_NODE_DEBUG_INFO = 3222823435
|
||||
BINDER_SET_CONTEXT_MGR = 1074029063
|
||||
BINDER_SET_MAX_THREADS = 1074029061
|
||||
BINDER_THREAD_EXIT = 1074029064
|
||||
BINDER_TYPE_BINDER = 1935813253
|
||||
BINDER_TYPE_FD = 1717840517
|
||||
BINDER_TYPE_FDA = 1717854597
|
||||
BINDER_TYPE_HANDLE = 1936206469
|
||||
BINDER_TYPE_PTR = 1886661253
|
||||
BINDER_TYPE_WEAK_BINDER = 2002922117
|
||||
BINDER_TYPE_WEAK_HANDLE = 2003315333
|
||||
BINDER_WRITE_READ = 3224396289
|
||||
FLAT_BINDER_FLAG_ACCEPTS_FDS = 256
|
||||
O_NONBLOCK = 2048
|
||||
O_RDWR = 2
|
||||
TF_ACCEPT_FDS = 16
|
||||
TF_ONE_WAY = 1
|
||||
__NR_ioctl = 29
|
||||
__NR_mmap = 222
|
37
sys/linux/binder_ppc64le.const
Normal file
37
sys/linux/binder_ppc64le.const
Normal file
@ -0,0 +1,37 @@
|
||||
# AUTOGENERATED FILE
|
||||
BC_ACQUIRE = 2147771141
|
||||
BC_ACQUIRE_DONE = 2148557577
|
||||
BC_CLEAR_DEATH_NOTIFICATION = 2148295439
|
||||
BC_DEAD_BINDER_DONE = 2148033296
|
||||
BC_DECREFS = 2147771143
|
||||
BC_ENTER_LOOPER = 536896268
|
||||
BC_EXIT_LOOPER = 536896269
|
||||
BC_FREE_BUFFER = 2148033283
|
||||
BC_INCREFS = 2147771140
|
||||
BC_INCREFS_DONE = 2148557576
|
||||
BC_REGISTER_LOOPER = 536896267
|
||||
BC_RELEASE = 2147771142
|
||||
BC_REPLY = 2151703297
|
||||
BC_REPLY_SG = 2152227602
|
||||
BC_REQUEST_DEATH_NOTIFICATION = 2148295438
|
||||
BC_TRANSACTION = 2151703296
|
||||
BC_TRANSACTION_SG = 2152227601
|
||||
BINDER_GET_NODE_DEBUG_INFO = 3222823435
|
||||
BINDER_SET_CONTEXT_MGR = 2147770887
|
||||
BINDER_SET_MAX_THREADS = 2147770885
|
||||
BINDER_THREAD_EXIT = 2147770888
|
||||
BINDER_TYPE_BINDER = 1935813253
|
||||
BINDER_TYPE_FD = 1717840517
|
||||
BINDER_TYPE_FDA = 1717854597
|
||||
BINDER_TYPE_HANDLE = 1936206469
|
||||
BINDER_TYPE_PTR = 1886661253
|
||||
BINDER_TYPE_WEAK_BINDER = 2002922117
|
||||
BINDER_TYPE_WEAK_HANDLE = 2003315333
|
||||
BINDER_WRITE_READ = 3224396289
|
||||
FLAT_BINDER_FLAG_ACCEPTS_FDS = 256
|
||||
O_NONBLOCK = 2048
|
||||
O_RDWR = 2
|
||||
TF_ACCEPT_FDS = 16
|
||||
TF_ONE_WAY = 1
|
||||
__NR_ioctl = 54
|
||||
__NR_mmap = 90
|
2439
sys/linux/ppc64le.go
2439
sys/linux/ppc64le.go
File diff suppressed because it is too large
Load Diff
@ -485,7 +485,6 @@ openat$fb0(fd const[AT_FDCWD], file ptr[in, string["/dev/fb0"]], flags flags[ope
|
||||
openat$cuse(fd const[AT_FDCWD], file ptr[in, string["/dev/cuse"]], flags flags[open_flags], mode const[0]) fd
|
||||
openat$capi20(fd const[AT_FDCWD], file ptr[in, string["/dev/capi20"]], flags flags[open_flags], mode const[0]) fd
|
||||
openat$autofs(fd const[AT_FDCWD], file ptr[in, string["/dev/autofs"]], flags flags[open_flags], mode const[0]) fd
|
||||
openat$binder(fd const[AT_FDCWD], file ptr[in, string["/dev/binder"]], flags flags[open_flags], mode const[0]) fd
|
||||
openat$keychord(fd const[AT_FDCWD], file ptr[in, string["/dev/keychord"]], flags flags[open_flags], mode const[0]) fd
|
||||
openat$zygote(fd const[AT_FDCWD], file ptr[in, string["/dev/socket/zygote"]], flags flags[open_flags], mode const[0]) fd
|
||||
openat$sw_sync(fd const[AT_FDCWD], file ptr[in, string["/dev/sw_sync"]], flags flags[open_flags], mode const[0]) fd
|
||||
|
@ -76,6 +76,10 @@ sudo sed -i "/^root/ { s/:x:/::/ }" disk.mnt/etc/passwd
|
||||
echo "T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100" | sudo tee -a disk.mnt/etc/inittab
|
||||
echo -en "auto lo\niface lo inet loopback\nauto eth0\niface eth0 inet dhcp\n" | sudo tee disk.mnt/etc/network/interfaces
|
||||
echo "debugfs /sys/kernel/debug debugfs defaults 0 0" | sudo tee -a disk.mnt/etc/fstab
|
||||
for i in {0..31}; do
|
||||
echo "KERNEL==\"binder$i\", NAME=\"binder$i\", MODE=\"0666\"" | \
|
||||
tee -a disk.mnt/etc/udev/50-binder.rules
|
||||
done
|
||||
|
||||
# sysctls
|
||||
echo "kernel.printk = 7 4 1 3" | sudo tee -a disk.mnt/etc/sysctl.conf
|
||||
|
Loading…
Reference in New Issue
Block a user