File: 06-stack-markings-to-avoid-executable-stack.patch

package info (click to toggle)
zip 3.0-12
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 6,000 kB
  • sloc: ansic: 50,445; asm: 3,907; makefile: 858; sh: 42
file content (21 lines) | stat: -rw-r--r-- 544 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Kees Cook <kees@debian.org>
Subject: put stack markings in i386 assembly to avoid executable stack
Bug-Debian: http://bugs.debian.org/528280
X-Debian-version: 3.0-2

--- a/crc_i386.S
+++ b/crc_i386.S
@@ -302,3 +302,5 @@
 #endif /* i386 || _i386 || _I386 || __i386 */
 
 #endif /* !USE_ZLIB && !CRC_TABLE_ONLY */
+.section .note.GNU-stack, "", @progbits
+.previous
--- a/match.S
+++ b/match.S
@@ -405,3 +405,5 @@
 #endif /* i386 || _I386 || _i386 || __i386  */
 
 #endif /* !USE_ZLIB */
+.section .note.GNU-stack, "", @progbits
+.previous