From nobody Tue Jul 09 18:45:17 2024 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 4WJVKn3Cb9z5QtF5; Tue, 09 Jul 2024 18:45:17 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WJVKn2VR3z4kj0; Tue, 9 Jul 2024 18:45:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720550717; 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=PJCaPDAKvPQbXP5oqpdr27NA8V+8cn++mqcNN8C12Ig=; b=WNb8zIFA6BD1OgAsNj2Pq8ufx7H1uQ3ogyjdLjAujUnOzKoVyaelnysxHjsWC+dYGyAcYX unvgWWl0pfl2N3PBgKKdPj8xiYvZFeioqO00MgmTz8T4GfTqR3dMN3ys59onJl1sapBeGn Yp0GPXu7yFPPndYkxWX4u//MfDPO0xRukb5Ji16LoY0sTj5/ro9CdhqQAbxQNdB4ugmZW0 ztYHBnAWy89OetPUISfTNzxSh9tRfN24XHkDzYNiciOF1xfFU8DHMj0XYduWXMCi5+od/w j8fPVodHMRNX8QaP/m12bXFP19k4tWXDAFkiGjxc13Lj9fYvUjtJeZIG8SKMgg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720550717; a=rsa-sha256; cv=none; b=wfmeV2MRw/oKGp2XlrL6n3sohuLybtx542mS3CXoJaP2dL6emO0jIoJtWJY96aDfQvt8GG DGuZZkNOIVwK53EvxwODp50cPTaCZggQ3ACxVZSxrvkEITCM+Miq+mnTnTtvU1qUPmH9Pb usS9OIZfGw1p3HYdgpUxNrOu5AxXkh3s7pqWIvuV3sMGdGsrVVygATcVJz6R+3y1q3nNo+ OFCGcW+2eMoYY4ugrR8ec3FQBaQO3p4sTicmbVjq551zTHn1ZiMqYwV+HzhNhv6hBaIboZ 0FaToaZJUSTiKCKZSfErAPHlPVtkPG9btTxnwe+XyzkIR12VOn3rmjkg4qWN5w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720550717; 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=PJCaPDAKvPQbXP5oqpdr27NA8V+8cn++mqcNN8C12Ig=; b=q3t+OFzwn/r/n+H/kiWw6xGxJT+FZgMjw2KvGlCmapewqotVhznuLvpRYIXdWe93mCdj5l Fz0tBjghU768lOxTLpf1qVcOC+1Hla6mRn5M4DOdwyHKMGNUQB/KNH6LFmyiCSIDBVb2Ch +GJYTN0ap2R7zf1sHaa3A22QYC+mJXWNotg+vX5/FNPC9a890XIcnKhge0umvpXx7lcgmL hgeSfc/ni+/GvhoeRnsXALSAVZ2L5fJtPQT+Zv9m28/JXHm3QKbcmV6hPWmFgrk4mQ2gK4 GwaKiaSBAFHkqv4mrBHbV6BhBNs02vL/93dqw10Ni7QAztRlAw1lBqjSrchNcg== 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 4WJVKn25rlzlk5; Tue, 9 Jul 2024 18:45:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 469IjHKF087536; Tue, 9 Jul 2024 18:45:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 469IjHgB087533; Tue, 9 Jul 2024 18:45:17 GMT (envelope-from git) Date: Tue, 9 Jul 2024 18:45:17 GMT Message-Id: <202407091845.469IjHgB087533@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ryan Libby Subject: git: ff1c63671b73 - main - kdb_sysctl_trap: suppress gcc -Warray-bounds 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rlibby X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ff1c63671b7372ef7d52da11d02e082876c22654 Auto-Submitted: auto-generated The branch main has been updated by rlibby: URL: https://cgit.FreeBSD.org/src/commit/?id=ff1c63671b7372ef7d52da11d02e082876c22654 commit ff1c63671b7372ef7d52da11d02e082876c22654 Author: Ryan Libby AuthorDate: 2024-07-09 17:58:21 +0000 Commit: Ryan Libby CommitDate: 2024-07-09 17:58:21 +0000 kdb_sysctl_trap: suppress gcc -Warray-bounds gcc diagnosed a dereference of 0x10 with -Warray-bounds, which is entirely sensible, except that this is a deliberate trap. Throw gcc off with a volatile pointer. Reviewed by: kib (previous version) Differential Revision: https://reviews.freebsd.org/D45917 --- sys/kern/subr_kdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/subr_kdb.c b/sys/kern/subr_kdb.c index a7fc2284cbcf..56264a96c9fa 100644 --- a/sys/kern/subr_kdb.c +++ b/sys/kern/subr_kdb.c @@ -238,7 +238,7 @@ static int kdb_sysctl_trap(SYSCTL_HANDLER_ARGS) { int error, i; - int *addr = (int *)0x10; + int *volatile addr = (int *)0x10; error = sysctl_wire_old_buffer(req, sizeof(int)); if (error == 0) {