From nobody Sat Apr 15 16:14:57 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PzJLT4sBzz45bN6; Sat, 15 Apr 2023 16:14:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PzJLT49S5z4HKH; Sat, 15 Apr 2023 16:14:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681575297; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mZiDaQPW5kIUK51SeBOcUH5+28J662l5S95qjwXXoWk=; b=nZWxI74E86WeqpIZdCWaCjNJK/yNMa1LBtNB/HCWU3uXbjiQ8Qjgm0nPiEuLCanKBfwujx NQQtuJEqzThBPrFuW6gtTW07BrZE51d2MhOmVvJCHZigAEnVsmLNv8Hnpe4AKBYV80iMej xI3A/VQnPKnktpa5tMelxh1XR6wiludusbagvf27Y7YonYO3BJ+Vb1cI3uqCLDMeXY80Ni kgky+Y3IM7T6GKgmCdNHCax0degzHb1uQyLJN0nOI/m/KCi3BQqyrAfRy23OK48NhADoiJ FHVaA/a5tWzxM5iKzBEQaJhHrVZtXl22hRs0z+ZHAkaBYXRCDpbRbvRYGQRyBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681575297; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mZiDaQPW5kIUK51SeBOcUH5+28J662l5S95qjwXXoWk=; b=GK0fc/an8ASlM/JmgXp3HW2TU8Dw81GbjseN3oPgFQhfwe5c7ZxNlCCrgnU25gIF0/2XbL H8vW95wfFuk4n1e8cyTPslj7mUZasSNSdRMbm/0LE2TBb7u496/SL/g6YlsGYa/1HWWi+0 +HkrgAuPlXMNJ40aahZeSdBcHoH9HqRi79mjXOqupx/n8Oe81Qms/8Xq1dR1GYddc4ITMf 48d32iwDWjExm3T130GC/ivlwkRefCHHr9VJ8BJcuVkldFbOajY7jR6WHLoyj9/9yWG7Ah nOA7WzbfQBHLJ+tpoocnP0+fapZuB4g9gUV9qO17IKdSphn2Iwl//znxvooWqQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681575297; a=rsa-sha256; cv=none; b=JjaziN6/7LP5Vpu7O0BRJrxYPSdFFP1jM5LH5pt6MrtWtbToDVWPmYEacKV9hJ7mLtO7NP yGmt17biDsAfIT9bCobyC4WehpbqNrJldcxYE/huJoy6iK07vOPyY7+34L/OgmM+5PB+FQ Za/kqLCBWKXSqs0xUO3baIQGLYhgRB0MKoorTTKYZ+HONeXcJL4RtfOV3NPOE2oSk6jzXV dJ7+pmYvpom9Me07/Iubez6jdU+dQ/2bvGm+NgsltARWhfN//aMdZ+dFMavENB92Ruvq3/ ZV8as7y3o5T3KjbCpQh6jOK0n1hGpt+PaMy4roAP0bMBZ5hsODUqjTNjEygvdA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PzJLT3Dzlz1BZP; Sat, 15 Apr 2023 16:14:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33FGEvEG075344; Sat, 15 Apr 2023 16:14:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33FGEvQC075343; Sat, 15 Apr 2023 16:14:57 GMT (envelope-from git) Date: Sat, 15 Apr 2023 16:14:57 GMT Message-Id: <202304151614.33FGEvQC075343@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 42742fe72510 - main - KASAN: add bus_space*read*_8 for aarch64 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 42742fe725102a73b09800f4d041ad69b5d81edb Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=42742fe725102a73b09800f4d041ad69b5d81edb commit 42742fe725102a73b09800f4d041ad69b5d81edb Author: Bjoern A. Zeeb AuthorDate: 2023-04-15 15:35:50 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-04-15 16:13:56 +0000 KASAN: add bus_space*read*_8 for aarch64 Add the remaining bus_space*read*_8 functions conditionally for only arm64 in order to not break KASAN builds with new code using one of them. Suggested by: markj Reviewed by: markj MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D39581 --- sys/kern/subr_asan.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/kern/subr_asan.c b/sys/kern/subr_asan.c index 8a70b525648b..e7dea254da08 100644 --- a/sys/kern/subr_asan.c +++ b/sys/kern/subr_asan.c @@ -957,6 +957,13 @@ ASAN_BUS_READ_PTR_FUNC(region, 4, uint32_t) ASAN_BUS_READ_PTR_FUNC(region_stream, 4, uint32_t) ASAN_BUS_READ_FUNC(, 8, uint64_t) +#if defined(__aarch64__) +ASAN_BUS_READ_FUNC(_stream, 8, uint64_t) +ASAN_BUS_READ_PTR_FUNC(multi, 8, uint64_t) +ASAN_BUS_READ_PTR_FUNC(multi_stream, 8, uint64_t) +ASAN_BUS_READ_PTR_FUNC(region, 8, uint64_t) +ASAN_BUS_READ_PTR_FUNC(region_stream, 8, uint64_t) +#endif #define ASAN_BUS_WRITE_FUNC(func, width, type) \ void kasan_bus_space_write##func##_##width(bus_space_tag_t tag, \