From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.2 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by inbox.vuxu.org (OpenSMTPD) with SMTP id 516f49d4 for ; Thu, 13 Feb 2020 10:02:34 +0000 (UTC) Received: (qmail 18413 invoked by uid 550); 13 Feb 2020 10:02:32 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 18395 invoked from network); 13 Feb 2020 10:02:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=xw+esKxImZ5gZk3pPgmmYmMgQnUJq5y7UWN3V1pl78U=; b=gOTkX7etaZYepq5qXaDNIIgiHDrKUhGuP9XYBmdc8BbKYpxWHv5z1+5Yg2lugQe5un ffCg7iuzQuaY2/DPbZhXIJgGncX57OS/ekupM+uwk0n4mP/kaVWBH7i8bjzCcpYXZXql lbi6u5xTTWxM3u6IKpBmkRvLvd1+fgSJ0L2HZ7I6FdMPCNHKxSuRElZjWnLvwFLBa91/ wLxoPs9LZVDyheWaUO8UlAOFRkL9rsK4SAU51aGoSC4KXGAZ/n7bd9ZN21VYNQoPkGz2 qMZ6vJL1WiJgB1UYfWN9pf0LTVIKdjM3b8AkTtpzMtC1ivvzoQJlh4t8ZKXe1sE2bUgd seIA== 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:content-transfer-encoding; bh=xw+esKxImZ5gZk3pPgmmYmMgQnUJq5y7UWN3V1pl78U=; b=M0KI4pVy1WjZVthkv1aT3ZC9RdkWE9ZPEeEn5kWydIgKDQQ1S3UECefh/6sDiacgKB w2ujV7opIolNNS106PdFbPyJsSAeetvh3JCO3JmhaE9zbVJJ4XXZkFLJ97/RZgwHIvoG GMGH6N5xrPsAYhy7HHj07hT7Qt7hiVeqNHgqrAAJ9H451RL43sXxQ8sUvi6SH1CZPvjw gKkTN2CSqmc4a0RqYO3qetieZKgfFwGOPlnLu/UBms0ElBmoc0vnrC+KTLFGzRjvTxwa w77wVixmQTB0xuYNE6KGJOsYLwdJUpyjkXN7DN5SqMjbFUVodmjMtXOB+rA1C6CI0org 31DA== X-Gm-Message-State: APjAAAWtWgfVt0zw3GSH6RntmVLR/dlRYAQBRYMaT1tWE3a4CKGSS7Ib JBG825t0wlcGssncN7fyp0d5jX19DSUcY5K9c9IzVA== X-Google-Smtp-Source: APXvYqz/P9X9eZsv1m/3tDa5a09QgvYEO+v04otVi/jHYH9HREcwQfJgjX4rGA/MM6jVps9VdIXgQWKLSB3j1auFqAA= X-Received: by 2002:a05:6638:3b6:: with SMTP id z22mr21800539jap.35.1581588139665; Thu, 13 Feb 2020 02:02:19 -0800 (PST) MIME-Version: 1.0 References: <6ead5f7b-d645-5df0-cb06-a99178471a96@bell-sw.com> <1286e416-808c-9795-f76d-d8efa7c0125f@adelielinux.org> <20200212142743.GY1663@brightrain.aerifal.cx> In-Reply-To: <20200212142743.GY1663@brightrain.aerifal.cx> From: Micha Nelissen Date: Thu, 13 Feb 2020 11:02:08 +0100 Message-ID: To: musl@lists.openwall.com, Rich Felker Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [musl] execvp() behaviour with unrecognized file header On 12-02-2020 15:27, Rich Felker wrote: >> Since this is non-conformant to POSIX, Ad=C3=A9lie integrated quinq's pa= tch: >> https://code.foxkit.us/adelie/musl/commit/16cbbea8e97d08e0fc6e9ccda0cf8b= 6e87ed6b82 > > Note that this patch has multiple problems which is why it's not For execlp, what about 'return execvp("/bin/sh", &file);' in case of ENOEXEC? Too ugly? Assumes right-to-left push order with top-down stack (or left-to-right in case of bottom-up stack). Doesn't work for execvp itself though. Gr, Micha