From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13399 invoked from network); 16 Sep 2021 16:49:03 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Sep 2021 16:49:03 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1631810943; b=h9ZHFkxELoQGoVuSMCGRJ0bowEAfzwY7PSi5eqfI/AKZYhIP3GueiDaNoGA8jMi7ltR/1+/uxv gCu7T8sKUs9R/zP893eVX37d73870jSSl2MLpf1lh8ccYr2AGmPpGis6jhi5/GEGB7Ky7xic5o scPe3WMpKyPG55sdsgL8B8BEGr/WTEnjkmn+C5nZcAgk0XVWYVJzSwQZhOJ9PydHSE26krOduh uiChdabWTlh93NsTQ5uF8a3C7p/3w50pbilnaxyBLVCkgT5VVis7PNgUQQwC+8bhbvmx7XfY6L XwRk8ULYeR3LRSUtpgZJMGEeOkiR0nfXwUIktTtbe5wboA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-qk1-f176.google.com) smtp.remote-ip=209.85.222.176; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1631810943; bh=Ds0bqG48t4YxJFMIu48G8yMwkXcTF85dnAJBpOPk5WI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=DMJE4OmseNZiFj1ahGN2+nPmLAWsPR5bHbjMyqy4qFU4m9UOv/2U901iEaZ2mome0DQsAGa2iS qzww/MsIcZX0GNhgQgDUHvJcx8BU7RZqgHDshJAIYK4B5dhEUNbZnrZYZ+C35VlY4AMtgbDVn/ CRIkK1ZR0TP+tMc7DDskEeD1mpp6zVDs5fxSXkCKs1IeDEUZzkKHfMYUa7QNibFQpPX2zgHuZR FDR0G3eWdzdZtpAUjp56Mvjrxu+fGpaJuDzddze2eFTWtcmuoyfMoqC4UYSf+THJqs17mqFtAF azJ38kG0AmYpr6mdc3zoPBy5H6wtrwKGI5YQ0g0k3VrHdw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=er2T90HqgHM2+pj18g/h4NvxGpLly0jeCS42NWvzq/8=; b=GFGJ6QzKNvagAC6XzD4gFpqgzs 1N224glY8J2aie9c3bH19U55toY1g8IWTYk4CkzE8kCuZRz2P4PjGAg8gGZ7KAbtZuuXu8LLByz4H HGEk+XcyW+diS1hJ80UjbqgV7QH9wHU5jnSBhrSi2puEbCMaj5uuBtVyx1F/OPvYV+o2EkcQWFAP7 iKZwo/aE0PSH3AMZt0Lb7+kB+3+7VOW1/f7/TOrPqm91+MP2pm91COfnNZQBQXGLGb2GzfIXX11Ey ul/MgP6jLq6ckGiVvGF5ac17k75Uh46YgPLpJTsGyBvdL7uDVVYt6qTiw5coVJEe8JNyCwxkE11lC 5NLUzinQ==; Received: from authenticated user by zero.zsh.org with local id 1mQuZJ-000EXx-2S; Thu, 16 Sep 2021 16:49:01 +0000 Authentication-Results: zsh.org; iprev=pass (mail-qk1-f176.google.com) smtp.remote-ip=209.85.222.176; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-qk1-f176.google.com ([209.85.222.176]:35688) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mQuYl-000Dxy-R8; Thu, 16 Sep 2021 16:48:29 +0000 Received: by mail-qk1-f176.google.com with SMTP id c7so2899947qka.2 for ; Thu, 16 Sep 2021 09:48:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=er2T90HqgHM2+pj18g/h4NvxGpLly0jeCS42NWvzq/8=; b=rnWyZXiTlIibUkwn+jnK8OyI0YRfdYHZaeYkcvSvYnJltbXc4rBA0430pfO2cj0WBJ Xpf74r1XOQyentompA7YNmlERbfka2J0B/veHy4EdYFY6P+2lq+mec3iO/63aWGnT4lh 65gevIQvjgEpVF4I2+Aer0iPj2Mibqw5uDQ3jZf+rEvcWeTsDjYJvCs/XapWeEQxQaPs O3/wQW53JDwi9SnO39B7cJal5Rs9oAHPt7Vr513wAeLG6ODu3fhJs74zkWxH7cay/Zhi 0SEMt8Oo4t9WMUzxlTm4Ue2d5yRTwtYgutHXfF1Sx/gE028OAEy1IoXFwj5CLYI+O33y A8CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=er2T90HqgHM2+pj18g/h4NvxGpLly0jeCS42NWvzq/8=; b=0HraghQLzQhc+oyTN7jIhKmXBy4l08fCarED6HXHTeYUWdZQWBM4vEt98h3JMDMPCM CJtYFCsKy9gCOm4Ww5T8DQkJr+lOb+NyXH13gPa9ZIXhtLrTZDcvPPbnvoGvIwvUJlGG AlPw+bC/cZc49+u1LL6/cvPT3uZO4SWbvLxnCQuLsN+RT8jsApRlf87M5DxThWq+Fs3I uVO1T3Sp0bFnhPxIjnIHLmm7JQBm0bwxTKKAEWhjuyW7gjqcvJNIdrJxUFgJrwkH0rmV 4qB738iP7SN7/ag7eepFa7sZKrVAGsIPlfQg+FY1s+DoEzVLVyFppU8UKi3Y4UHLrK/F TAMw== X-Gm-Message-State: AOAM532ICnzS8j6pRkW798RpK7IrCpf/e2ykiOrdb/gV/zqJJ5wUPhtH jwsu6GGrwmhVQCMnipuOn0ENdRGMoUCzxvBzm5JCrzCE9l8= X-Google-Smtp-Source: ABdhPJwoFvl/Xg7aQsJwPPNv06jdETzNIEyZxq/TzUxhKJrYfaqxIYJuQXo3n9TDKUgTJCIV4Q/8xJcQRJ6UAtMb8ok= X-Received: by 2002:a25:7449:: with SMTP id p70mr8567150ybc.89.1631810906442; Thu, 16 Sep 2021 09:48:26 -0700 (PDT) MIME-Version: 1.0 References: <20210908011251.GA2387366@zira.vinc17.org> <20210915143102.pw5uup7bvufi7wse@sym.noone.org> <887BC7E8-0D19-4D16-BFE6-9AE8EA5E9040@kba.biglobe.ne.jp> <20210916121056.p4zainnlnoi74yiw@sym.noone.org> In-Reply-To: <20210916121056.p4zainnlnoi74yiw@sym.noone.org> From: Bart Schaefer Date: Thu, 16 Sep 2021 09:48:15 -0700 Message-ID: Subject: Re: [BUG] With --disable-dynamic-nss, not all functions calls are protected To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 49416 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: > > > Based on the strace, my guess would be that getrlimit() is what's > > > attempting to link to the dynamic library. This is based on the > > > success of the uname() call and on what does NOT appear in the > > > subsequent trace output. > > > > Probably getrlimit() is implemented by prlimit64() that appears > > in the strace log, I guess. Hmm. There are two calls to uname() in the strace. There are only two places in the source code that might call uname(), both happen via createparamtable(), and createparamtable() is called from setupvals() before it calls getrlimit() to populate the limits array. Yet the two uname() calls are one before prlimit64() and one after, so if prlimit == getrlimit, I can't find a code flow that matches the order of events in the strace.