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-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <477FB82F.1070501@gmail.com>
Date:	Sat, 05 Jan 2008 18:02:39 +0100
From:	Jiri Slaby <jirislaby@...il.com>
To:	Andi Kleen <andi@...stfloor.org>
CC:	Phil Endecott <phil_wueww_endecott@...zphil.org>,
	linux-kernel@...r.kernel.org
Subject: Re: strace, accept(), ERESTARTSYS and EINTR

On 01/05/2008 04:03 PM, Andi Kleen wrote:
>    if (!strcmp(current->comm, "yourprogramwithoutpath"))
>             printk("%s:%d ERESTART\n", __FILE__, __LINE__);
> 
> [the later two might need adding linux/string.h and/or linux/sched.h includes
> to the files if they don't compile]
> 
> to all of them. Then recompile and boot that kernel.

If I'm not completely blind, there is no suspicous ERESTARTSYS in
PF_INET:SOCK_STREAM path.

Anyway even if it was returned by kernel syscall, glibc should put it in errno
and return -1 (since it is >= -4095 and < 0). He sees it in the accept retval.
Something rotten, probably broken/racy ?ntpl? implementation of syscalls or
somewhat?

regards,
-- 
Jiri Slaby
Faculty of Informatics, Masaryk University
Suse Labs

--
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