1 #pragma once 2 3 /* 4 * Copyright (C) 2012 The Android Open Source Project 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 #include <memory> 20 #include <string> 21 #include <vector> 22 23 #include <unwindstack/Regs.h> 24 25 struct ThreadInfo { 26 std::unique_ptr<unwindstack::Regs> registers; 27 long tagged_addr_ctrl = -1; 28 long pac_enabled_keys = -1; 29 30 pid_t uid; 31 32 pid_t tid; 33 std::string thread_name; 34 35 pid_t pid; 36 37 std::vector<std::string> command_line; 38 std::string selinux_label; 39 40 int signo = 0; 41 siginfo_t* siginfo = nullptr; 42 43 std::unique_ptr<unwindstack::Regs> guest_registers; 44 }; 45 46 // This struct is written into a pipe from inside the crashing process. 47 struct ProcessInfo { 48 uintptr_t abort_msg_address = 0; 49 uintptr_t fdsan_table_address = 0; 50 uintptr_t gwp_asan_state = 0; 51 uintptr_t gwp_asan_metadata = 0; 52 uintptr_t scudo_stack_depot = 0; 53 uintptr_t scudo_region_info = 0; 54 uintptr_t scudo_ring_buffer = 0; 55 size_t scudo_ring_buffer_size = 0; 56 size_t scudo_stack_depot_size = 0; 57 58 bool has_fault_address = false; 59 uintptr_t untagged_fault_address = 0; 60 uintptr_t maybe_tagged_fault_address = 0; 61 uintptr_t crash_detail_page = 0; 62 }; 63