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]
Message-Id: <201002161520.26700@zigzag.lvk.cs.msu.su>
Date:	Tue, 16 Feb 2010 15:20:26 +0300
From:	"Nikita V. Youshchenko" <yoush@...msu.su>
To:	LKML <linux-kernel@...r.kernel.org>
Subject: Extended error reporting to user space?

Hi

I'm developing a device driver that, in it's ioctl()s, accepts a complex 
data structure. Before doing it's operation, it performs large number of 
checks if data is valid. If one of those checks fail, driver 
returns -EINVAL.

Unfortunately this -EINVAL is not really useful. E.g. if a developer, 
sitting in his IDE and debugging his code, will see ioctl() 
returning -EINVAL, and will have hard times finding what exactly is wrong.

Before inventing driver-specific extended error reporting, I'd like to ask 
if there is anything more or less generic for this.
I believe situation when -Exxx is too weak interface for error reporting is 
common.

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