From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20128 invoked by alias); 24 Feb 2012 09:25:51 -0000 Received: (qmail 20094 invoked by uid 22791); 24 Feb 2012 09:25:50 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SUBJ_OBFU_PUNCT_MANY,TW_CB X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Feb 2012 09:25:39 +0000 From: "freeordie.k at gmail dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug libc/13740] New: lio_listio: when pass aiocb with a invalid aio_lio_opcode, __error_code is not set Date: Fri, 24 Feb 2012 09:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: freeordie.k at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00439.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13740 Bug #: 13740 Summary: lio_listio: when pass aiocb with a invalid aio_lio_opcode, __error_code is not set Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: unassigned@sourceware.org ReportedBy: freeordie.k@gmail.com CC: drepper.fsp@gmail.com Classification: Unclassified when pass aiocb with a invalid aio_lio_opcode, the values gets passed down to the AIO layer. It checks aio_lio_opcode in sysdeps/pthread/aio_misc.c, when aio_lio_opcode is not valid, it set aiocb.__return_value but doesn't set __error_code. Line 584: else { /* This is an invalid opcode. */ aiocbp->aiocb.__return_value = -1; __set_errno (EINVAL); } -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.