NetBSD Problem Report #57125

From mlelstv@gossam.localdomain  Wed Dec 21 09:27:56 2022
Return-Path: <mlelstv@gossam.localdomain>
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))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 1AE841A921F
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 21 Dec 2022 09:27:56 +0000 (UTC)
Message-Id: <20221221092749.7DEAEB139@gossam.localdomain>
Date: Wed, 21 Dec 2022 10:27:49 +0100 (CET)
From: mlelstv@netbsd.org
Reply-To: mlelstv@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: build fails for USE_FORT USE_SSP
X-Send-Pr-Version: 3.95

>Number:         57125
>Category:       bin
>Synopsis:       build fails for USE_FORT USE_SSP
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 21 09:30:00 +0000 2022
>Originator:     Michael van Elst
>Release:        NetBSD 9.3_STABLE
>Organization:

>Environment:


System: NetBSD gossam 9.3_STABLE NetBSD 9.3_STABLE (GENERIC) #39: Sun Nov 6 21:32:57 CET 2022 mlelstv@gossam:/home/netbsd9/obj.amd64/home/netbsd9/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
Building -current or netbsd-10-BETA with USE_FORT=yes USE_SSP=yes fails with
e.g.:

/home/netbsd10/src/usr.sbin/tprof/tprof_top.c:188:1: error: stack protector not 
protecting local variables: variable length buffer [-Werror=stack-protector]
  188 | lim_printf(int *lim, const char *fmt, ...)

The recently added function uses alloca() for a temporary buffer.
>How-To-Repeat:
Build release for netbsd-10 or -current with USE_FORT=yes USE_SSP_yes.
>Fix:


>Unformatted:

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-2022 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.