Files
Linux/ipc
Davidlohr Bueso 6157dbbfbf ipc,sysv: return -EINVAL upon incorrect id/seqnum
In ipc_obtain_object_check we return -EIDRM when a bogus sequence number
is detected via ipc_checkid, while the ipc manpages state the following
return codes for such errors:

   EIDRM  <ID> points to a removed identifier.
   EINVAL Invalid <ID> value, or unaligned, etc.

EIDRM should only be returned upon a RMID call (->deleted check), and thus
return EINVAL for wrong seq.  This difference in semantics has also caused
real bugs, ie: https://bugzilla.redhat.com/show_bug.cgi?id=246509

Signed-off-by: Davidlohr Bueso <[email protected]>
Cc: Manfred Spraul <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2015-06-30 19:44:59 -07:00
..
2014-06-06 16:08:14 -07:00
2014-10-14 02:18:23 +02:00
2015-06-30 19:44:58 -07:00
2015-06-30 19:44:58 -07:00
2015-06-30 19:44:58 -07:00
2015-06-30 19:44:58 -07:00