From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by sourceware.org (Postfix) with ESMTPS id A4B363857830 for ; Thu, 15 Oct 2020 14:44:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A4B363857830 Received: by mail-ot1-x344.google.com with SMTP id m11so3073619otk.13 for ; Thu, 15 Oct 2020 07:44:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UZjyP4FJMcAdjr4dSXNW+XXLKFqGtQtssYk5Yxp0K78=; b=iKNx+tASw4RwtWNzBjQ4L4LxBPazGz7P3IdYYHwqq+EoOPvi/ru59usS3Pzbs3XzfN Oqdd+Vwf37KoQLRjC0kocrCGiWYwYRSzJYwblBPaW42z26tCeROy0gG/pxEK7AM41ef/ Wa4IoXDZgpYnBrn6ATCC2bzDYb7MJOEixVIiWgCsSKQZr5XiMNkPM2TMVMyZaQQscqPi PnZRCOnl170JA7XIDIl+LftQWyBL43vfSJZkCkqEFYEEBT/LxxYz3XH+O121h91cv2rg JVI3aD2FmV9fHh69zpmeY1bBlgYIE5aQ31B8mIs27jUTt7GzvGpUHrC4zNY8nKNnd9cE czxg== X-Gm-Message-State: AOAM530eQndB1YCpGaHEFV/vvImNiv/yZ81o7I/T7pRK3qVuqH5vE0Fm sy69z227dAcTs/bda+SRGgHkGr3apYfj6cCcfLh1ULxl61Y= X-Google-Smtp-Source: ABdhPJxiSoADVMi0Kkryx2CFAHv9/h3e8/cV+yaL8zCjvtU8ZcSbYVSohhRcpWO5IwgsA3EiX/+raL78stSQPjYLCSo= X-Received: by 2002:a05:6830:3081:: with SMTP id f1mr2733427ots.269.1602773075021; Thu, 15 Oct 2020 07:44:35 -0700 (PDT) MIME-Version: 1.0 References: <20201005171152.676380-1-adhemerval.zanella@linaro.org> In-Reply-To: <20201005171152.676380-1-adhemerval.zanella@linaro.org> From: "H.J. Lu" Date: Thu, 15 Oct 2020 07:43:58 -0700 Message-ID: Subject: Re: [PATCH v2 1/2] sysvipc: Fix IPC_INFO and SHM_INFO handling [BZ #26636] To: Adhemerval Zanella Cc: GNU C Library Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3030.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2020 14:44:37 -0000 On Mon, Oct 5, 2020 at 10:12 AM Adhemerval Zanella via Libc-alpha wrote: > > Changes from previous version: > > - Read the shm /proc tunables as 64-bit values to handle 32-bit > binaries running on 64-bit kernels. > - Handle shmmax value larger than INT_MAX. > - Move SHM_STAT_ANY prior SHM_STAT to avoid the test finish early. > > -- > > Both commands are Linux extensions where the third argument is either > a 'struct shminfo' (IPC_INFO) or a 'struct shm_info' (SHM_INFO) instead > of 'struct shmid_ds'. And their information does not contain any time > related fields, so there is no need to extra conversion for __IPC_TIME64. > > The regression testcase checks for Linux specifix SysV ipc message > control extension. For SHM_INFO it tries to match the values against the > tunable /proc values and for MSG_STAT/MSG_STAT_ANY it check if the create\ > shared memory is within the global list returned by the kernel. > > Checked on x86_64-linux-gnu and on i686-linux-gnu (Linux v5.4 and on > Linux v4.15). This triggered: https://sourceware.org/bugzilla/show_bug.cgi?id=26736 -- H.J.