NetBSD Problem Report #58557

From www@netbsd.org  Tue Aug  6 21:48:18 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 96C2C1A923A
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  6 Aug 2024 21:48:18 +0000 (UTC)
Message-Id: <20240806214742.0C41D1A923C@mollari.NetBSD.org>
Date: Tue,  6 Aug 2024 21:47:42 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: ALIGN32 leaks from mips_param.h via sys/param.h into userland
X-Send-Pr-Version: www-1.0

>Number:         58557
>Category:       kern
>Synopsis:       ALIGN32 leaks from mips_param.h via sys/param.h into userland
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 06 21:50:00 +0000 2024
>Originator:     Taylor R Campbell
>Release:        current, ...
>Organization:
The NetBSD Aligndation32
>Environment:
>Description:
--- ssl/quic/libssl-shlib-quic_demux.o ---
In file included from ssl/quic/quic_demux.c:12:
include/internal/common.h:30: error: "ALIGN32" redefined [-Werror]
   30 | #  define ALIGN32       __attribute((aligned(32)))
      |
In file included from /home/riastradh/netbsd/current/obj.evbmips64-eb/destdir.evbmips/usr/include/machine/param.h:47,
                 from /home/riastradh/netbsd/current/obj.evbmips64-eb/destdir.evbmips/usr/include/sys/param.h:142,
                 from include/internal/sockets.h:85,
                 from include/internal/bio_addr.h:14,
                 from include/internal/quic_demux.h:16,
                 from ssl/quic/quic_demux.c:10:
/home/riastradh/netbsd/current/obj.evbmips64-eb/destdir.evbmips/usr/include/mips/mips_param.h:80: note: this is the location of the previous definition
   80 | #define ALIGN32(p)              (((uintptr_t)(p) + ALIGNBYTES32) &~ALIGNBYTES32)
      |

>How-To-Repeat:
cross-build openssl for mips
>Fix:
Yes, please!

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.