Commit 156c7a60 authored by Timothy Pearson's avatar Timothy Pearson
Browse files

Update to Chromium 128.0.6613.36

parent 946d093e
=================================================================================
VERSION
127.0.6533.99
128.0.6613.36
=================================================================================
APPLICATION
......
--- a/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
+++ b/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
@@ -303,6 +303,8 @@
Index: chromium-128.0.6613.36/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
===================================================================
--- chromium-128.0.6613.36.orig/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
+++ chromium-128.0.6613.36/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
@@ -303,6 +303,8 @@ bool ChromeRuntimeAPIDelegate::GetPlatfo
info->arch = extensions::api::runtime::PlatformArch::kMips;
} else if (strcmp(arch, "mips64el") == 0) {
info->arch = extensions::api::runtime::PlatformArch::kMips64;
......@@ -9,7 +11,7 @@
} else {
NOTREACHED_IN_MIGRATION();
return false;
@@ -319,6 +321,8 @@
@@ -319,6 +321,8 @@ bool ChromeRuntimeAPIDelegate::GetPlatfo
info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kMips;
} else if (strcmp(nacl_arch, "mips64") == 0) {
info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kMips64;
......@@ -18,8 +20,10 @@
} else {
NOTREACHED_IN_MIGRATION();
return false;
--- a/extensions/common/api/runtime.json
+++ b/extensions/common/api/runtime.json
Index: chromium-128.0.6613.36/extensions/common/api/runtime.json
===================================================================
--- chromium-128.0.6613.36.orig/extensions/common/api/runtime.json
+++ chromium-128.0.6613.36/extensions/common/api/runtime.json
@@ -98,7 +98,8 @@
{"name": "x86-32", "description": "Specifies the processer architecture as x86-32."},
{"name": "x86-64", "description": "Specifies the processer architecture as x86-64."},
......
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1250,7 +1250,7 @@
Index: chromium-128.0.6613.36/build/config/compiler/BUILD.gn
===================================================================
--- chromium-128.0.6613.36.orig/build/config/compiler/BUILD.gn
+++ chromium-128.0.6613.36/build/config/compiler/BUILD.gn
@@ -1445,7 +1445,7 @@ config("compiler_cpu_abi") {
cflags += [ "-maix64" ]
ldflags += [ "-maix64" ]
} else {
......@@ -9,9 +11,11 @@
ldflags += [ "-m64" ]
}
} else if (current_cpu == "riscv64") {
--- a/third_party/libvpx/BUILD.gn
+++ b/third_party/libvpx/BUILD.gn
@@ -93,7 +93,7 @@
Index: chromium-128.0.6613.36/third_party/libvpx/BUILD.gn
===================================================================
--- chromium-128.0.6613.36.orig/third_party/libvpx/BUILD.gn
+++ chromium-128.0.6613.36/third_party/libvpx/BUILD.gn
@@ -105,7 +105,7 @@ config("libvpx_config") {
if (current_cpu == "ppc64") {
cflags += [
......@@ -20,9 +24,11 @@
"-maltivec",
"-mvsx",
]
--- a/v8/BUILD.gn
+++ b/v8/BUILD.gn
@@ -1251,7 +1251,7 @@
Index: chromium-128.0.6613.36/v8/BUILD.gn
===================================================================
--- chromium-128.0.6613.36.orig/v8/BUILD.gn
+++ chromium-128.0.6613.36/v8/BUILD.gn
@@ -1419,7 +1419,7 @@ config("toolchain") {
defines += [ "V8_TARGET_ARCH_PPC_LE" ]
cflags += [
# Enable usage of AltiVec, VSX, and other POWER8 and higher features
......
Index: chromium-127.0.6533.72/third_party/breakpad/BUILD.gn
Index: chromium-128.0.6613.36/third_party/breakpad/BUILD.gn
===================================================================
--- chromium-127.0.6533.72.orig/third_party/breakpad/BUILD.gn
+++ chromium-127.0.6533.72/third_party/breakpad/BUILD.gn
@@ -620,7 +620,6 @@ if (is_linux || is_chromeos || is_androi
--- chromium-128.0.6613.36.orig/third_party/breakpad/BUILD.gn
+++ chromium-128.0.6613.36/third_party/breakpad/BUILD.gn
@@ -782,7 +782,6 @@ if (is_linux || is_chromeos || is_androi
"breakpad/src/client/minidump_file_writer.h",
"breakpad/src/common/convert_UTF.cc",
"breakpad/src/common/convert_UTF.h",
......@@ -10,7 +10,7 @@ Index: chromium-127.0.6533.72/third_party/breakpad/BUILD.gn
"breakpad/src/common/linux/elf_core_dump.cc",
"breakpad/src/common/linux/elf_core_dump.h",
"breakpad/src/common/linux/elfutils.cc",
@@ -652,6 +651,8 @@ if (is_linux || is_chromeos || is_androi
@@ -814,6 +813,8 @@ if (is_linux || is_chromeos || is_androi
configs += [ "//build/config/compiler:no_chromium_code" ]
public_configs = [ ":client_config" ]
......@@ -19,7 +19,7 @@ Index: chromium-127.0.6533.72/third_party/breakpad/BUILD.gn
if (current_cpu == "arm" && is_chromeos_ash) {
# Avoid running out of registers in
# linux_syscall_support.h:sys_clone()'s inline assembly.
@@ -709,7 +710,6 @@ if (is_linux || is_chromeos || is_androi
@@ -871,7 +872,6 @@ if (is_linux || is_chromeos || is_androi
"breakpad/src/client/linux/minidump_writer/minidump_writer_unittest.cc",
"breakpad/src/client/linux/minidump_writer/minidump_writer_unittest_utils.cc",
"breakpad/src/client/linux/minidump_writer/proc_cpuinfo_reader_unittest.cc",
......
Index: chromium-127.0.6533.72/build/config/BUILDCONFIG.gn
Index: chromium-128.0.6613.36/build/config/BUILDCONFIG.gn
===================================================================
--- chromium-127.0.6533.72.orig/build/config/BUILDCONFIG.gn
+++ chromium-127.0.6533.72/build/config/BUILDCONFIG.gn
--- chromium-128.0.6613.36.orig/build/config/BUILDCONFIG.gn
+++ chromium-128.0.6613.36/build/config/BUILDCONFIG.gn
@@ -138,7 +138,6 @@ declare_args() {
# Set to true when compiling with the Clang compiler.
is_clang = current_os != "linux" ||
......
......@@ -24,8 +24,10 @@ inconsistency in data layouts when targeting this particular platform.
The error reported by the linker is not technically an error, however, only
a warning goosed up by a --fatal-warnings flag.
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
Index: chromium-128.0.6613.36/build/config/compiler/BUILD.gn
===================================================================
--- chromium-128.0.6613.36.orig/build/config/compiler/BUILD.gn
+++ chromium-128.0.6613.36/build/config/compiler/BUILD.gn
@@ -380,7 +380,7 @@ config("compiler") {
# Linker warnings.
......
kIndex: chromium-114.0.5735.45/base/allocator/partition_allocator/partition_alloc.gni
===================================================================
Index: chromium-127.0.6533.72/base/allocator/partition_allocator/partition_alloc.gni
Index: chromium-128.0.6613.36/base/allocator/partition_allocator/partition_alloc.gni
===================================================================
--- chromium-127.0.6533.72.orig/base/allocator/partition_allocator/partition_alloc.gni
+++ chromium-127.0.6533.72/base/allocator/partition_allocator/partition_alloc.gni
--- chromium-128.0.6613.36.orig/base/allocator/partition_allocator/partition_alloc.gni
+++ chromium-128.0.6613.36/base/allocator/partition_allocator/partition_alloc.gni
@@ -19,7 +19,8 @@ if (is_nacl) {
# NaCl targets don't use 64-bit pointers.
has_64_bit_pointers = false
......
Index: chromium-127.0.6533.72/build/toolchain/gcc_toolchain.gni
Index: chromium-128.0.6613.36/build/toolchain/gcc_toolchain.gni
===================================================================
--- chromium-127.0.6533.72.orig/build/toolchain/gcc_toolchain.gni
+++ chromium-127.0.6533.72/build/toolchain/gcc_toolchain.gni
@@ -439,7 +439,13 @@ template("single_gcc_toolchain") {
--- chromium-128.0.6613.36.orig/build/toolchain/gcc_toolchain.gni
+++ chromium-128.0.6613.36/build/toolchain/gcc_toolchain.gni
@@ -441,7 +441,13 @@ template("single_gcc_toolchain") {
# -soname flag is not available on aix ld
soname_flag = "-Wl,-soname=\"$soname\""
}
......@@ -17,7 +17,7 @@ Index: chromium-127.0.6533.72/build/toolchain/gcc_toolchain.gni
# Generate a map file to be used for binary size analysis.
# Map file adds ~10% to the link time on a z620.
@@ -551,7 +557,13 @@ template("single_gcc_toolchain") {
@@ -553,7 +559,13 @@ template("single_gcc_toolchain") {
whole_archive_flag = "-Wl,--whole-archive"
no_whole_archive_flag = "-Wl,--no-whole-archive"
}
......
author: Andres Salomon <dilinger@debian.org>
description: allow ppc64le to build by using proper rustc target
Index: chromium-127.0.6533.72/build/config/rust.gni
Index: chromium-128.0.6613.36/build/config/rust.gni
===================================================================
--- chromium-127.0.6533.72.orig/build/config/rust.gni
+++ chromium-127.0.6533.72/build/config/rust.gni
--- chromium-128.0.6613.36.orig/build/config/rust.gni
+++ chromium-128.0.6613.36/build/config/rust.gni
@@ -186,6 +186,8 @@ rust_abi_target = ""
if (is_linux || is_chromeos) {
if (current_cpu == "arm64") {
......
Index: chromium-127.0.6533.72/build/config/compiler/BUILD.gn
Index: chromium-128.0.6613.36/build/config/compiler/BUILD.gn
===================================================================
--- chromium-127.0.6533.72.orig/build/config/compiler/BUILD.gn
+++ chromium-127.0.6533.72/build/config/compiler/BUILD.gn
@@ -1811,7 +1811,7 @@ config("default_warnings") {
--- chromium-128.0.6613.36.orig/build/config/compiler/BUILD.gn
+++ chromium-128.0.6613.36/build/config/compiler/BUILD.gn
@@ -1844,7 +1844,7 @@ config("default_warnings") {
# -Wno-class-memaccess warns about hash table and vector in blink.
# But the violation is intentional.
......@@ -11,7 +11,7 @@ Index: chromium-127.0.6533.72/build/config/compiler/BUILD.gn
cflags_cc += [ "-Wno-class-memaccess" ]
}
@@ -1821,7 +1821,9 @@ config("default_warnings") {
@@ -1854,7 +1854,9 @@ config("default_warnings") {
# Don't warn about "maybe" uninitialized. Clang doesn't include this
# in -Wall but gcc does, and it gives false positives.
......@@ -22,7 +22,7 @@ Index: chromium-127.0.6533.72/build/config/compiler/BUILD.gn
cflags += [ "-Wno-deprecated-declarations" ]
# -Wcomment gives too many false positives in the case a
@@ -1832,7 +1834,9 @@ config("default_warnings") {
@@ -1865,7 +1867,9 @@ config("default_warnings") {
# -Wpacked-not-aligned complains all generated mojom-shared-internal.h
# files.
......
......@@ -8,11 +8,11 @@ Subject: [PATCH] Add ppc64 target to libaom
third_party/libaom/cmake_update.sh | 3 +++
2 files changed, 15 insertions(+)
Index: chromium-127.0.6533.72/third_party/libaom/BUILD.gn
Index: chromium-128.0.6613.36/third_party/libaom/BUILD.gn
===================================================================
--- chromium-127.0.6533.72.orig/third_party/libaom/BUILD.gn
+++ chromium-127.0.6533.72/third_party/libaom/BUILD.gn
@@ -272,6 +272,18 @@ if (current_cpu == "arm64") {
--- chromium-128.0.6613.36.orig/third_party/libaom/BUILD.gn
+++ chromium-128.0.6613.36/third_party/libaom/BUILD.gn
@@ -275,6 +275,18 @@ if (current_cpu == "arm64") {
}
}
......@@ -31,7 +31,7 @@ Index: chromium-127.0.6533.72/third_party/libaom/BUILD.gn
static_library("libaom") {
check_includes = false
if (!is_debug && is_win) {
@@ -335,6 +347,9 @@ static_library("libaom") {
@@ -338,6 +350,9 @@ static_library("libaom") {
# This is needed by all arm boards due to aom_arm_cpu_caps()
sources += [ "source/libaom/aom_ports/aarch32_cpudetect.c" ]
}
......@@ -41,13 +41,13 @@ Index: chromium-127.0.6533.72/third_party/libaom/BUILD.gn
if (is_android) {
deps += [ "//third_party/cpu_features:ndk_compat" ]
}
Index: chromium-127.0.6533.72/third_party/libaom/cmake_update.sh
Index: chromium-128.0.6613.36/third_party/libaom/cmake_update.sh
===================================================================
--- chromium-127.0.6533.72.orig/third_party/libaom/cmake_update.sh
+++ chromium-127.0.6533.72/third_party/libaom/cmake_update.sh
@@ -192,6 +192,9 @@ gen_config_files linux/arm64-cpu-detect
"${toolchain}/arm64-linux-gcc.cmake -DCONFIG_RUNTIME_CPU_DETECT=1 \
${all_platforms}"
--- chromium-128.0.6613.36.orig/third_party/libaom/cmake_update.sh
+++ chromium-128.0.6613.36/third_party/libaom/cmake_update.sh
@@ -190,6 +190,9 @@ reset_dirs linux/arm64-cpu-detect
gen_config_files linux/arm64-cpu-detect \
"${toolchain}/arm64-linux-gcc.cmake ${all_platforms}"
+reset_dirs linux/ppc64
+gen_config_files linux/ppc64 "${toolchain}/ppc-linux-gcc.cmake ${all_platforms}"
......
Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm
Index: chromium-128.0.6613.36/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm
===================================================================
--- /dev/null
+++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm
+++ chromium-128.0.6613.36/third_party/libaom/source/config/linux/ppc64/config/aom_config.asm
@@ -0,0 +1,95 @@
+;
+; Copyright (c) 2024, Alliance for Open Media. All rights reserved
......@@ -98,10 +98,10 @@ Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/confi
+HAVE_VSX equ 1
+HAVE_WXWIDGETS equ 0
+STATIC_LINK_JXL equ 0
Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.c
Index: chromium-128.0.6613.36/third_party/libaom/source/config/linux/ppc64/config/aom_config.c
===================================================================
--- /dev/null
+++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.c
+++ chromium-128.0.6613.36/third_party/libaom/source/config/linux/ppc64/config/aom_config.c
@@ -0,0 +1,13 @@
+/*
+ * Copyright (c) 2024, Alliance for Open Media. All rights reserved
......@@ -116,10 +116,10 @@ Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/confi
+#include "aom/aom_codec.h"
+static const char* const cfg = "cmake ../source/libaom -G \"Unix Makefiles\" -DCMAKE_TOOLCHAIN_FILE=\"../source/libaom/build/cmake/toolchains/ppc-linux-gcc.cmake\" -DCONFIG_AV1_DECODER=0 -DCONFIG_AV1_ENCODER=1 -DCONFIG_LIBYUV=0 -DCONFIG_AV1_HIGHBITDEPTH=0 -DCONFIG_AV1_TEMPORAL_DENOISING=1 -DCONFIG_QUANT_MATRIX=0 -DCONFIG_REALTIME_ONLY=1 -DCONFIG_SIZE_LIMIT=1 -DDECODE_HEIGHT_LIMIT=16384 -DDECODE_WIDTH_LIMIT=16384";
+const char *aom_codec_build_config(void) {return cfg;}
Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.h
Index: chromium-128.0.6613.36/third_party/libaom/source/config/linux/ppc64/config/aom_config.h
===================================================================
--- /dev/null
+++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_config.h
+++ chromium-128.0.6613.36/third_party/libaom/source/config/linux/ppc64/config/aom_config.h
@@ -0,0 +1,99 @@
+/*
+ * Copyright (c) 2024, Alliance for Open Media. All rights reserved
......@@ -220,10 +220,10 @@ Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/confi
+#define INLINE inline
+#define STATIC_LINK_JXL 0
+#endif // AOM_CONFIG_H_
Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h
Index: chromium-128.0.6613.36/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h
===================================================================
--- /dev/null
+++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h
+++ chromium-128.0.6613.36/third_party/libaom/source/config/linux/ppc64/config/aom_dsp_rtcd.h
@@ -0,0 +1,1541 @@
+// This file is generated. Do not edit.
+#ifndef AOM_DSP_RTCD_H_
......@@ -1766,10 +1766,10 @@ Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/confi
+#endif
+
+#endif
Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h
Index: chromium-128.0.6613.36/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h
===================================================================
--- /dev/null
+++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h
+++ chromium-128.0.6613.36/third_party/libaom/source/config/linux/ppc64/config/aom_scale_rtcd.h
@@ -0,0 +1,107 @@
+// This file is generated. Do not edit.
+#ifndef AOM_SCALE_RTCD_H_
......@@ -1878,10 +1878,10 @@ Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/confi
+#endif
+
+#endif
Index: chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h
Index: chromium-128.0.6613.36/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h
===================================================================
--- /dev/null
+++ chromium-127.0.6533.72/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h
+++ chromium-128.0.6613.36/third_party/libaom/source/config/linux/ppc64/config/av1_rtcd.h
@@ -0,0 +1,484 @@
+// This file is generated. Do not edit.
+#ifndef AV1_RTCD_H_
......
......@@ -10,11 +10,11 @@ More investigation required.
sandbox/linux/seccomp-bpf/trap.cc | 14 ++++++++++++++
1 file changed, 14 insertions(+)
Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf/trap.cc
Index: chromium-128.0.6613.36/sandbox/linux/seccomp-bpf/trap.cc
===================================================================
--- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf/trap.cc
+++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf/trap.cc
@@ -231,6 +231,20 @@ void Trap::SigSys(int nr, LinuxSigInfo*
--- chromium-128.0.6613.36.orig/sandbox/linux/seccomp-bpf/trap.cc
+++ chromium-128.0.6613.36/sandbox/linux/seccomp-bpf/trap.cc
@@ -236,6 +236,20 @@ void Trap::SigSys(int nr, LinuxSigInfo*
SetIsInSigHandler();
}
......@@ -23,9 +23,9 @@ Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf/trap.cc
+ // parameter which causes checks against it to fail. For now, manually
+ // negate them back.
+ // TODO(shawn@anastas.io): investigate this issue further
+ auto cnr = SECCOMP_SYSCALL(ctx);
+ if (cnr == __NR_openat || cnr == __NR_mkdirat || cnr == __NR_faccessat || cnr == __NR_readlinkat ||
+ cnr == __NR_renameat || cnr == __NR_renameat2 || cnr == __NR_newfstatat || cnr == __NR_unlinkat) {
+ auto nr = SECCOMP_SYSCALL(ctx);
+ if (nr == __NR_openat || nr == __NR_mkdirat || nr == __NR_faccessat || nr == __NR_readlinkat ||
+ nr == __NR_renameat || nr == __NR_renameat2 || nr == __NR_newfstatat || nr == __NR_unlinkat) {
+ if (static_cast<int>(SECCOMP_PARM1(ctx)) > 0) {
+ SECCOMP_PARM1(ctx) = -SECCOMP_PARM1(ctx);
+ }
......
......@@ -7,10 +7,10 @@ Subject: [PATCH 1/1] sandbox: Enable seccomp_bpf for ppc64
sandbox/features.gni | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: chromium-127.0.6533.72/sandbox/features.gni
Index: chromium-128.0.6613.36/sandbox/features.gni
===================================================================
--- chromium-127.0.6533.72.orig/sandbox/features.gni
+++ chromium-127.0.6533.72/sandbox/features.gni
--- chromium-128.0.6613.36.orig/sandbox/features.gni
+++ chromium-128.0.6613.36/sandbox/features.gni
@@ -9,7 +9,8 @@
use_seccomp_bpf = (is_linux || is_chromeos || is_android) &&
(current_cpu == "x86" || current_cpu == "x64" ||
......
......@@ -17,10 +17,10 @@ GNU/Linux environments, but may require expansion elsewhere.
create mode 100644 sandbox/linux/system_headers/ppc64_linux_syscalls.h
create mode 100644 sandbox/linux/system_headers/ppc64_linux_ucontext.h
Index: chromium-127.0.6533.72/sandbox/linux/BUILD.gn
Index: chromium-128.0.6613.36/sandbox/linux/BUILD.gn
===================================================================
--- chromium-127.0.6533.72.orig/sandbox/linux/BUILD.gn
+++ chromium-127.0.6533.72/sandbox/linux/BUILD.gn
--- chromium-128.0.6613.36.orig/sandbox/linux/BUILD.gn
+++ chromium-128.0.6613.36/sandbox/linux/BUILD.gn
@@ -383,6 +383,8 @@ component("sandbox_services") {
source_set("sandbox_services_headers") {
......@@ -30,10 +30,10 @@ Index: chromium-127.0.6533.72/sandbox/linux/BUILD.gn
"system_headers/arm64_linux_syscalls.h",
"system_headers/arm_linux_syscalls.h",
"system_headers/arm_linux_ucontext.h",
Index: chromium-127.0.6533.72/sandbox/linux/system_headers/linux_syscalls.h
Index: chromium-128.0.6613.36/sandbox/linux/system_headers/linux_syscalls.h
===================================================================
--- chromium-127.0.6533.72.orig/sandbox/linux/system_headers/linux_syscalls.h
+++ chromium-127.0.6533.72/sandbox/linux/system_headers/linux_syscalls.h
--- chromium-128.0.6613.36.orig/sandbox/linux/system_headers/linux_syscalls.h
+++ chromium-128.0.6613.36/sandbox/linux/system_headers/linux_syscalls.h
@@ -35,5 +35,9 @@
#include "sandbox/linux/system_headers/arm64_linux_syscalls.h"
#endif
......@@ -44,10 +44,10 @@ Index: chromium-127.0.6533.72/sandbox/linux/system_headers/linux_syscalls.h
+
#endif // SANDBOX_LINUX_SYSTEM_HEADERS_LINUX_SYSCALLS_H_
Index: chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_syscalls.h
Index: chromium-128.0.6613.36/sandbox/linux/system_headers/ppc64_linux_syscalls.h
===================================================================
--- /dev/null
+++ chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_syscalls.h
+++ chromium-128.0.6613.36/sandbox/linux/system_headers/ppc64_linux_syscalls.h
@@ -0,0 +1,12 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
......@@ -61,10 +61,10 @@ Index: chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_syscalls.
+//TODO: is it necessary to redefine syscall numbers for PPC64?
+
+#endif // SANDBOX_LINUX_SYSTEM_HEADERS_PPC64_LINUX_SYSCALLS_H_
Index: chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_ucontext.h
Index: chromium-128.0.6613.36/sandbox/linux/system_headers/ppc64_linux_ucontext.h
===================================================================
--- /dev/null
+++ chromium-127.0.6533.72/sandbox/linux/system_headers/ppc64_linux_ucontext.h
+++ chromium-128.0.6613.36/sandbox/linux/system_headers/ppc64_linux_ucontext.h
@@ -0,0 +1,12 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
......
......@@ -7,10 +7,10 @@ Subject: [PATCH] sandbox/linux: Update IsSyscallAllowed in broker_process.cc
sandbox/linux/syscall_broker/broker_process.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: chromium-127.0.6533.72/sandbox/linux/syscall_broker/broker_process.cc
Index: chromium-128.0.6613.36/sandbox/linux/syscall_broker/broker_process.cc
===================================================================
--- chromium-127.0.6533.72.orig/sandbox/linux/syscall_broker/broker_process.cc
+++ chromium-127.0.6533.72/sandbox/linux/syscall_broker/broker_process.cc
--- chromium-128.0.6613.36.orig/sandbox/linux/syscall_broker/broker_process.cc
+++ chromium-128.0.6613.36/sandbox/linux/syscall_broker/broker_process.cc
@@ -169,7 +169,7 @@ bool BrokerProcess::IsSyscallBrokerable(
#if defined(__NR_fstatat64)
case __NR_fstatat64:
......
......@@ -12,10 +12,10 @@ Subject: [PATCH] sandbox/linux: Update syscall helpers/lists for ppc64
sandbox/linux/services/syscall_wrappers.cc | 2 +-
6 files changed, 73 insertions(+), 55 deletions(-)
Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
Index: chromium-128.0.6613.36/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
===================================================================
--- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
+++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
--- chromium-128.0.6613.36.orig/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
+++ chromium-128.0.6613.36/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
@@ -90,7 +90,8 @@ bool IsBaselinePolicyWatched(int sysno)
SyscallSets::IsPrctl(sysno) ||
SyscallSets::IsProcessGroupOrSession(sysno) ||
......@@ -54,10 +54,10 @@ Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/baseline_policy.
if (SyscallSets::IsSocketCall(sysno))
return RestrictSocketcallCommand();
#endif
Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
Index: chromium-128.0.6613.36/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
===================================================================
--- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
+++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
--- chromium-128.0.6613.36.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
+++ chromium-128.0.6613.36/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
@@ -36,7 +36,7 @@
#include "sandbox/linux/system_headers/linux_time.h"
......@@ -146,10 +146,10 @@ Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_paramete
PTRACE_GETREGS, PTRACE_GETFPREGS, PTRACE_GET_THREAD_AREA,
PTRACE_GETREGSET,
#endif
Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
Index: chromium-128.0.6613.36/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
===================================================================
--- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
+++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
--- chromium-128.0.6613.36.orig/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
+++ chromium-128.0.6613.36/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
@@ -52,7 +52,7 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr
// O_NONBLOCK | O_SYNC | O_LARGEFILE | O_CLOEXEC | O_NOATIME.
SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictFcntlCommands();
......@@ -159,10 +159,10 @@ Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_paramete
// Restrict socketcall(2) to only allow socketpair(2), send(2), recv(2),
// sendto(2), recvfrom(2), shutdown(2), sendmsg(2) and recvmsg(2).
SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictSocketcallCommand();
Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
Index: chromium-128.0.6613.36/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
===================================================================
--- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
+++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
--- chromium-128.0.6613.36.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
+++ chromium-128.0.6613.36/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
@@ -29,7 +29,8 @@ bool SyscallSets::IsAllowedGettime(int s
switch (sysno) {
case __NR_gettimeofday:
......@@ -582,10 +582,10 @@ Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
case __NR_vserver:
#endif
return true;
Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
Index: chromium-128.0.6613.36/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
===================================================================
--- chromium-127.0.6533.72.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
+++ chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
--- chromium-128.0.6613.36.orig/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
+++ chromium-128.0.6613.36/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
@@ -46,13 +46,14 @@ class SANDBOX_EXPORT SyscallSets {
static bool IsDeniedGetOrModifySocket(int sysno);
......@@ -623,10 +623,10 @@ Index: chromium-127.0.6533.72/sandbox/linux/seccomp-bpf-helpers/syscall_sets.h
// Big system V multiplexing system call.
static bool IsSystemVIpc(int sysno);
#endif
Index: chromium-127.0.6533.72/sandbox/linux/services/syscall_wrappers.cc
Index: chromium-128.0.6613.36/sandbox/linux/services/syscall_wrappers.cc
===================================================================
--- chromium-127.0.6533.72.orig/sandbox/linux/services/syscall_wrappers.cc
+++ chromium-127.0.6533.72/sandbox/linux/services/syscall_wrappers.cc
--- chromium-128.0.6613.36.orig/sandbox/linux/services/syscall_wrappers.cc
+++ chromium-128.0.6613.36/sandbox/linux/services/syscall_wrappers.cc
@@ -61,7 +61,7 @@ long sys_clone(unsigned long flags,
#if defined(ARCH_CPU_X86_64)
return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls);
......
......@@ -7,10 +7,10 @@ Subject: [PATCH 1/4] sandbox/linux/bpf_dsl: Update syscall ranges for ppc64
sandbox/linux/bpf_dsl/linux_syscall_ranges.h | 7 +++++++
1 file changed, 7 insertions(+)
Index: chromium-127.0.6533.72/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
Index: chromium-128.0.6613.36/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
===================================================================
--- chromium-127.0.6533.72.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
+++ chromium-127.0.6533.72/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
--- chromium-128.0.6613.36.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
+++ chromium-128.0.6613.36/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
@@ -56,6 +56,13 @@
#define MAX_PUBLIC_SYSCALL __NR_syscalls
#define MAX_SYSCALL MAX_PUBLIC_SYSCALL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment