Skip to content

Instantly share code, notes, and snippets.

@melver
melver / kfence-cron
Last active June 18, 2024 09:26
kfence-cron: Minimal script that can be run as a cron job to alert the system administrator of KFENCE reports
#!/usr/bin/env bash
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Google LLC.
# Author: Marco Elver <melver AT kernel.org>
#
# kfence-cron: Minimal script that can be run as a cron job to alert the system
# administrator of KFENCE reports.
#
# Enables KFENCE if not already enabled. If KFENCE is unavailable (or cannot be
# enabled) exits with an error.
#!/usr/bin/env bash
# SPDX-License-Identifier: Apache-2.0
# Copyright 2020 Google LLC.
# Author: Marco Elver
#
# Helper script to checkout and build a recent Git version of Clang/LLVM.
set -ue
readonly LLVM_REPO="https://github.com/llvm/llvm-project.git"