From 99e3b0a7e8b3ba990fd3ff3e7d10cbd92b957b14 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 1 Apr 2018 18:29:56 +0200 Subject: sys/linux: add support for reading partition tables --- sys/linux/amd64.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/linux/amd64.go') diff --git a/sys/linux/amd64.go b/sys/linux/amd64.go index 999d80221..418156648 100644 --- a/sys/linux/amd64.go +++ b/sys/linux/amd64.go @@ -23888,6 +23888,11 @@ var syscalls_amd64 = []*Syscall{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "fd", TypeSize: 4}}, &FlagsType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "open_flags", FldName: "flags", TypeSize: 8}}, Vals: []uint64{0, 1, 2, 1024, 8192, 524288, 64, 16384, 65536, 128, 32768, 262144, 256, 131072, 2048, 2097152, 1052672, 512, 4194304}}, }, Ret: &ResourceType{TypeCommon: TypeCommon{TypeName: "fd_tty", FldName: "ret", TypeSize: 4, ArgDir: 1}}}, + {Name: "syz_read_part_table", CallName: "syz_read_part_table", Args: []Type{ + &IntType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "intptr", FldName: "size", TypeSize: 8}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "nsegs", TypeSize: 8}}, Buf: "segments"}, + &PtrType{TypeCommon: TypeCommon{TypeName: "ptr", FldName: "segments", TypeSize: 8}, Type: &ArrayType{TypeCommon: TypeCommon{TypeName: "array", IsVarlen: true}, Type: &StructType{Key: StructKey{Name: "fs_image_segment"}}}}, + }}, {NR: 276, Name: "tee", CallName: "tee", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fdin", TypeSize: 4}}, &ResourceType{TypeCommon: TypeCommon{TypeName: "fd", FldName: "fdout", TypeSize: 4}}, @@ -28481,4 +28486,4 @@ var consts_amd64 = []ConstValue{ {Name: "bpf_insn_load_imm_dw", Value: 24}, } -const revision_amd64 = "f52cb963bdf72aed0f98688ac20cb16e40b3b2d3" +const revision_amd64 = "14883eb285af454acfe15491ef6052eed4b8d77c" -- cgit mrf-deployment