DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd December 2016
anthonyc anthonyc is offline
New User
 
Join Date: Dec 2016
Posts: 8
Default W^X violation issue

Hi,

I have some message in dmesg related to W^X violation for some processes.
Theses processes are installed in /usr/local in a have separate partition with wxallowed option.
Code:
> dmesg
java(28347): mprotect W^X violation
java(95393): mprotect W^X violation
node(15100): mmap W^X violation
java(77900): mprotect W^X violation
php-fpm-7.0(95855): mmap W^X violation
php-fpm-7.0(40758): mmap W^X violation
Code:
> mount
/dev/sd0a on / type ffs (local, wxallowed)
/dev/sd1d on /usr/local type ffs (local, nodev, wxallowed)
What's wrong ?

Thanks.

Last edited by ocicat; 24th December 2016 at 12:01 AM. Reason: Please use [code] & [/code] tags when posting command output.
Reply With Quote
  #2   (View Single Post)  
Old 23rd December 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Welcome!

Are you running 6.0-release or did you install -current (a snapshot)? In -current, permitting W^X violations require two steps, while in -release, only one.
  1. The wxallowed mount option must be used on the filesystem storing the binary, as with 6.0-release.
  2. The binaries must also be link-edited with the wxneeded flag.
This revision is discussed in the Following -current FAQ.
Reply With Quote
  #3   (View Single Post)  
Old 23rd December 2016
anthonyc anthonyc is offline
New User
 
Join Date: Dec 2016
Posts: 8
Default

Thanks,

I am running OpenBSD from install60.iso and nothing else, i don't know if is current or release ?
Code:
> dmesg |head -1
OpenBSD 6.0 (GENERIC.MP) #2: Mon Oct 17 10:22:47 CEST 2016

Last edited by ocicat; 24th December 2016 at 12:02 AM. Reason: Please use [code] & [/code] tags when posting command output.
Reply With Quote
  #4   (View Single Post)  
Old 23rd December 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

From the minimal information you've posted, that appears to be your own build of a -release kernel, so I assume you are using -release plus one or more published errata patches applied to the kernel.

Are your java applications working, or are they halting and producing *.core files? If they are working, the violations are only being logged as warnings.

If the applications are failing, then we must investigate more thoroughly to determine the root cause.

---

There are three Flavors of OpenBSD. -release, -stable, and -current. -release is published twice a year and never changes, -stable is the published errata patches and may also include additional minor patches, while -current is the development branch. More information may be found in the OpenBSD FAQ section on Flavors.
Reply With Quote
  #5   (View Single Post)  
Old 24th December 2016
anthonyc anthonyc is offline
New User
 
Join Date: Dec 2016
Posts: 8
Default

You right, i am running last kernel from mtier:

Code:
 
> dmesg |head -2
OpenBSD 6.0 (GENERIC.MP) #2: Mon Oct 17 10:22:47 CEST 2016
root@stable-60-amd64.mtier.org:/binpatchng/work-binpatch60-amd64/src/sys/arch/amd64/compile/GENERIC.MP
I cannot see core file and processes are still running with same PID, so is only warning messages and i can ignore it ?

Thanks
Reply With Quote
  #6   (View Single Post)  
Old 24th December 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Yes, these are warnings. If you run any of these executables from a filesystem without the wxallowed option, you will see application failures and the creation of .core dump files.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
xen 45 issue philo_neo71 NetBSD General 1 9th November 2015 11:05 AM
FTP issue? desreguard OpenBSD General 14 29th August 2011 04:21 PM
VPN Nat issue on 4.8 copetts OpenBSD Security 2 12th April 2011 10:34 AM
Possible SMP Issue? MetalHead OpenBSD General 1 25th November 2008 03:52 AM
RAM issue nikkon FreeBSD General 5 7th May 2008 04:26 AM


All times are GMT. The time now is 04:29 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick