lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 23 Aug 2011 11:36:10 -0400
From:	Vince Weaver <vweaver1@...s.utk.edu>
To:	Peter Zijlstra <a.p.zijlstra@...llo.nl>
CC:	<linux-kernel@...r.kernel.org>, <mingo@...e.hu>,
	<paulus@...ba.org>, <acme@...stprotocols.net>,
	Stephane Eranian <eranian@...il.com>, <krentel@...rice.edu>
Subject: perf: overflow signal survives an exec call starting in 3.0

Hello

Mark Krentel noticed that starting with Linux 3.0 perf_event signals
survive a call to exec().  

This means that if you exec() from within a perf-monitored process
and don't immediately start a signal handler, your process will
quickly be killed with a SIGIO signal.

I'm guessing this was an unintended change, although what to do in
this situation is a bit vague.

I tediously bisected this to the following commit:

commit f506b3dc0ec454a16d40cab9ee5d75435b39dc50
Author: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Date:   Thu May 26 17:02:53 2011 +0200

    perf: Fix SIGIO handling

Attached is an example program that exhibits the problem.

Vince

View attachment "signal_after_exec.c" of type "text/x-csrc" (3036 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ