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] [day] [month] [year] [list]
Date:	Wed, 07 Mar 2007 08:30:47 -0800
From:	"H. Peter Anvin" <hpa@...or.com>
To:	"Chen, Dongliang" <Chen.D@...-t.com>
CC:	Andreas Schwab <schwab@...e.de>, linux-kernel@...r.kernel.org
Subject: Re: return negative number for unsigned long function in kernel

Chen, Dongliang wrote:
> Peter & Andreas,
> 
> Thank you very much for your help. 
> 
> I understood that the kernel error numbers are limited. The largest
> error number for i386 (kernel 2.6) is 131 so far.  Assume that the
> virtual address returned from do_mmap_pgoff will never exceed (unsigned
> long)(-1000L), which is in the address range one page below the maximum
> virtual address, then IS_ERR_VALUE() should work.
> 

The error value boundary is defined in <linux/err.h>, currently 4095.

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