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>] [day] [month] [year] [list]
Message-ID: <20081203040303.GA4071@us.ibm.com>
Date:	Tue, 2 Dec 2008 20:03:03 -0800
From:	Sukadev Bhattiprolu <sukadev@...ux.vnet.ibm.com>
To:	linux-kernel@...r.kernel.org
Subject: Question on SI_ASYNCIO

Hi,

SI_ASYNCIO is defined in include/asm-generic/siginfo.h as:

	#define SI_ASYNCIO      -4              /* sent by AIO completion */

The negative value makes it a 'user-space' signal according to 

	#define SI_FROMUSER(siptr)      ((siptr)->si_code <= 0)
	#define SI_FROMKERNEL(siptr)    ((siptr)->si_code > 0)

But this signal is generated in the kernel async_completed() -
drivers/usb/core/devio.c

Am trying to understand why this is considered as a user-space signal ?

Isn't SI_ASYNCIO similar to SI_POLL or SI_MESGQ - both of which are
'kernel-signals' ?

POSIX.1 explicitly ignores async io. 

Thanks,

Sukadev

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ