lkml.org 
[lkml]   [2015]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ioperm is preserved across fork and execve, but iopl is not
> As recently as October 2012, 32-bit Linux kernels preserved both iopl
> and ioperm across fork and execve, but the behavior of iopl changed
> with this commit:
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/arch/x86/kernel/process_32.c?id=6783eaa2e1253fbcbe2c2f6bb4c843abf1343caf

Missed this thread initially. That perhaps does argue for it being safer
to put back.

> And the man page for iopl continues to state "permissions are
> inherited by fork and execve": http://linux.die.net/man/2/iopl
>
> A test program demonstrating the problem is attached

Is there a real world use case ?

Alan


\
 
 \ /
  Last update: 2015-05-11 23:41    [W:0.493 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site