You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Reindl Harald <h....@thelounge.net> on 2014/07/25 15:11:41 UTC

ATS and GCC stack-protector

maybe a look worth (5.0.1 source tarball)

UnixEventProcessor.cc:69:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
HostDB.cc:1119:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:164:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:316:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:272:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:358:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:62:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:358:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:62:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:358:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:62:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:164:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
Store.cc:129:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:164:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:62:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:358:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:164:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:316:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:272:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:358:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
../../iocore/cluster/P_ClusterInline.h:62:1: warning: stack protector not protecting local variables: variable
length buffer [-Wstack-protector]
./P_ClusterCache.h:1112:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
ClusterCache.cc:2508:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
ClusterCache.cc:1645:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
ClusterVConnection.cc:517:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
ClusterCache.cc:2683:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
ClusterCache.cc:375:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
./P_ClusterInline.h:164:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
./P_ClusterInline.h:316:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
./P_ClusterInline.h:272:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
./P_ClusterInline.h:358:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
./P_ClusterInline.h:62:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
ink_inet.cc:249:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
ink_inet.cc:372:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
RecHttp.cc:225:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
RecHttp.cc:225:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
HdrHeap.cc:618:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
WebMgmtUtils.cc:1289:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
WebHttp.cc:247:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
Alarms.cc:174:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
LocalManager.cc:422:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
LocalManager.cc:676:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
ProcessManager.cc:169:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
ProcessManager.cc:236:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
UrlRewrite.cc:287:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
HttpTransactHeaders.cc: In static member function 'static void
HttpTransactHeaders::insert_warning_header(HttpConfigParams*, HTTPHdr*, HTTPWarningCode, const char*, int)':
HttpTransactHeaders.cc:726:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
 HttpTransactHeaders::insert_warning_header(HttpConfigParams *http_config_param, HTTPHdr *header, HTTPWarningCode code,
HttpTransact.cc:468:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
HttpTransact.cc:7615:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
HttpTransact.cc:7916:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
HttpTransact.cc:1114:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
StatSystem.cc:395:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]
Prefetch.cc:538:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
InkAPI.cc:6999:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
../iocore/cluster/P_ClusterInline.h:164:1: warning: stack protector not protecting local variables: variable length
buffer [-Wstack-protector]
../iocore/cluster/P_ClusterInline.h:358:1: warning: stack protector not protecting local variables: variable length
buffer [-Wstack-protector]
../iocore/cluster/P_ClusterInline.h:62:1: warning: stack protector not protecting local variables: variable length
buffer [-Wstack-protector]
regex_remap.cc:870:1: warning: stack protector not protecting local variables: variable length buffer
[-Wstack-protector]


Re: ATS and GCC stack-protector

Posted by James Peach <jp...@apache.org>.
On Jul 25, 2014, at 6:11 AM, Reindl Harald <h....@thelounge.net> wrote:

> maybe a look worth (5.0.1 source tarball)

My best guess is that this is GCC not liking alloca(3). Current gcc docs say the alloca is supported by -fstack-protector, but I don't know if that's true for earlier GCC version.

> 
> UnixEventProcessor.cc:69:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> HostDB.cc:1119:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:164:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:316:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:272:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:358:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:62:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:358:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:62:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:358:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:62:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:164:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> Store.cc:129:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:164:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:62:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:358:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:164:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:316:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:272:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:358:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ../../iocore/cluster/P_ClusterInline.h:62:1: warning: stack protector not protecting local variables: variable
> length buffer [-Wstack-protector]
> ./P_ClusterCache.h:1112:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> ClusterCache.cc:2508:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> ClusterCache.cc:1645:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> ClusterVConnection.cc:517:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> ClusterCache.cc:2683:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> ClusterCache.cc:375:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> ./P_ClusterInline.h:164:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> ./P_ClusterInline.h:316:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> ./P_ClusterInline.h:272:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> ./P_ClusterInline.h:358:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> ./P_ClusterInline.h:62:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> ink_inet.cc:249:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
> ink_inet.cc:372:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
> RecHttp.cc:225:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
> RecHttp.cc:225:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
> HdrHeap.cc:618:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
> WebMgmtUtils.cc:1289:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> WebHttp.cc:247:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
> Alarms.cc:174:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
> LocalManager.cc:422:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> LocalManager.cc:676:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> ProcessManager.cc:169:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> ProcessManager.cc:236:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> UrlRewrite.cc:287:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> HttpTransactHeaders.cc: In static member function 'static void
> HttpTransactHeaders::insert_warning_header(HttpConfigParams*, HTTPHdr*, HTTPWarningCode, const char*, int)':
> HttpTransactHeaders.cc:726:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> HttpTransactHeaders::insert_warning_header(HttpConfigParams *http_config_param, HTTPHdr *header, HTTPWarningCode code,
> HttpTransact.cc:468:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> HttpTransact.cc:7615:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> HttpTransact.cc:7916:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> HttpTransact.cc:1114:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> StatSystem.cc:395:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
> Prefetch.cc:538:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
> InkAPI.cc:6999:1: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
> ../iocore/cluster/P_ClusterInline.h:164:1: warning: stack protector not protecting local variables: variable length
> buffer [-Wstack-protector]
> ../iocore/cluster/P_ClusterInline.h:358:1: warning: stack protector not protecting local variables: variable length
> buffer [-Wstack-protector]
> ../iocore/cluster/P_ClusterInline.h:62:1: warning: stack protector not protecting local variables: variable length
> buffer [-Wstack-protector]
> regex_remap.cc:870:1: warning: stack protector not protecting local variables: variable length buffer
> [-Wstack-protector]
>