Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable GCC stack protector when compiling zvol_id #775

Conversation

rosscameron
Copy link

This is a kludge for now,... will Valgrind the code and look for the buffer overflows and correct them as soon as time allows.

Tried adding "-fno-stack-protector" to the CFLAGS in Makefile.in first but this caused a compile error, found that just removing the "@CFLAGS@" variable allowed for compilation and functioning of zvol_id.

-- Ross Cameron
[email protected]
06/06/2012 @ 15h27

unknown and others added 2 commits June 5, 2012 18:08
This is a kludge for now,... will Valgrind the code
and look for the buffer overflows and correct them
as soon as time allows.

-- Ross Cameron
   [email protected]
   05/06/2012 @ 18h07
and look for the buffer overflows and correct them
as soon as time allows.

-- Ross Cameron
   [email protected]
   06/06/2012 @ 15h27
@@ -157,7 +157,7 @@ CCAS = @CCAS@
CCASDEPMODE = @CCASDEPMODE@
CCASFLAGS = @CCASFLAGS@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CFLAGS =
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zvol_id fails on hardened GCC profiles removing the "@CFLAGS@" variable allows for compiling zvol_id without stack protection.

Code still needs to be cleaned up with Valgrind but I haven't had time to do this yet.

@behlendorf
Copy link
Contributor

I've merged this as a work around although I want to make sure we run down the root cause so this can be reverted.

@behlendorf behlendorf closed this Jun 14, 2012
pcd1193182 pushed a commit to pcd1193182/zfs that referenced this pull request Sep 26, 2023
)

Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo) from 0.28.3 to 0.28.4.
- [Release notes](https://github.com/GuillaumeGomez/sysinfo/releases)
- [Changelog](https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/GuillaumeGomez/sysinfo/commits)

---
updated-dependencies:
- dependency-name: sysinfo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants