Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion infra/ci/check_base_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
SUPPORTED_VERSIONS = [
'legacy',
# 'ubuntu-20-04',
# 'ubuntu-24-04',
'ubuntu-24-04',
]

# A map from the base_os_version in project.yaml to the expected Dockerfile
Expand Down
1 change: 1 addition & 0 deletions infra/presubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ class ProjectYamlChecker:
'view_restrictions',
'file_github_issue',
'indexer', # Flags specific to infra/indexer.
'base_os_version',
]

REQUIRED_SECTIONS = ['main_repo']
Expand Down
27 changes: 27 additions & 0 deletions projects/bios-bmc-smm-error-logger/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################

FROM gcr.io/oss-fuzz-base/base-builder:ubuntu-24-04

RUN apt-get update && apt-get install --reinstall -y patchelf libboost-all-dev git python3-pip python3-venv libmount-dev libcap-dev gperf vim clang-18 libc++-18-dev lsb-release wget software-properties-common gnupg systemd make pkg-config libsystemd-dev libfmt-dev cmake ninja-build
RUN python3 -m venv /env && . /env/bin/activate && pip install meson mako inflection pyyaml jinja2 jsonschema

ENV CC=clang-18
ENV CXX=clang++-18

RUN git clone --branch fuzzing https://github.com/javanlacerda/bios-bmc-smm-error-logger
COPY build.sh $SRC/
WORKDIR $SRC/bios-bmc-smm-error-logger
28 changes: 28 additions & 0 deletions projects/bios-bmc-smm-error-logger/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash -eu
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################

unset CFLAGS
unset CXXFLAGS
unset RUSTFLAGS

rm -rf $OUT/*

source /env/bin/activate
meson setup build -Ddefault_library=static -Dtests=disabled -Dcpp_std=c++23 -Dread-interval-ms=10000 -Dmemory-region-size=1048576 -Dmemory-region-offset=3220176896 -Dbmc-interface-version=3 -Dqueue-region-size=16384 -Due-region-size=768 -Dmagic-number-byte1=2319403398 -Dmagic-number-byte2=1343703436 -Dmagic-number-byte3=2173375339 -Dmagic-number-byte4=3360702380 --buildtype=debug -Dfuzzing=true -Dcpp_args="-stdlib=libstdc++"
ninja -C build

cp build/src/bios-bmc-smm-error-logger_fuzzer $OUT
13 changes: 13 additions & 0 deletions projects/bios-bmc-smm-error-logger/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
homepage: "https://github.com/openbmc/docs/blob/master/designs/bios-bmc-smm-error-logging.md"
language: c++
primary_contact: "javanlacerda@google.com"
auto_ccs:
- pedroysb@google.com

main_repo: "https://github.com/javanlacerda/bios-bmc-smm-error-logger"
fuzzing_engines:
- libfuzzer
sanitizers:
- address

base_os_version: ubuntu-24-04
Loading