Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp845221ybt; Wed, 24 Jun 2020 12:40:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbUthj3u2/I5cSYIzkujYCZiUanY0sy6IrdnGuKUeGLVZ9cawFScUPALcQPuuDibtMW1M+ X-Received: by 2002:a17:906:cc58:: with SMTP id mm24mr28258805ejb.134.1593027621101; Wed, 24 Jun 2020 12:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593027621; cv=none; d=google.com; s=arc-20160816; b=dI/ZLa3Ah/B0yHA/zePBZ+aXGMZ1thIH8rcYtSRQ5D0eChVSyjiW8DnZRf8MzLMIyP SNzzUQF2p5wLCVbOp/XnAayuZxvNWM8pROC2MmGPcrkD1vVlU47VudeUEsm0sGt/+8OT iiffI7Lwttx2vsObiKVxfhzN64cZOwPSDjuJxLGgDZkMdzmBpL8QLAZfB/phUwLjZ9bW BxZd0JEvhYQZlLShQoUH3k6O5+0oWDLsXGyimNTjQC1AJaoHAcw6usqFGX/Zp8XMgxIs GKYilOzzKgXuGnGfJbKgkgv82ieOpjCnsTOAujXogrs2AVOYa5u6ETYmhqTfnW0ioXMm KX3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/a69U9KUnIP/MnmiwpDT352wL+s+ti3tEpAhYbHbhGY=; b=bjA793hMvvHGIq7UsDrDi8quV8PW4fpZGaTEZbFvgV4C/PCmf/YWF6YqPbw5ipc2vP KH3rkEpKGqIBMApJn0jbyh97Ly54/ZcZ9V2a/ZE8RLidTDxnZWGMn7ga4xbdXqRfOqmT BzcFno/esVciIOl7w15T6pEb/3XEM7KCho/KeS9Tmg6LKXGdipvVf89HAKbeSM75dRla zWc6EAmKRCM6jn7eR7eBSqAO749cHvkUCEQgNk+59hK46oOTJCig0eaGpgwd1PwJTJNa mKISWlXihhGcd+0IN+t5J9Um3WUsfMLzMkY3My7tys+l9P2ZZZ90k1jTVO09R0eNr4pb Fi+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AYAlBFRX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e23si1657568edq.600.2020.06.24.12.39.57; Wed, 24 Jun 2020 12:40:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AYAlBFRX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391326AbgFXTj3 (ORCPT + 99 others); Wed, 24 Jun 2020 15:39:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391239AbgFXTj3 (ORCPT ); Wed, 24 Jun 2020 15:39:29 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67946C061573 for ; Wed, 24 Jun 2020 12:39:27 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id x8so587112plm.10 for ; Wed, 24 Jun 2020 12:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/a69U9KUnIP/MnmiwpDT352wL+s+ti3tEpAhYbHbhGY=; b=AYAlBFRXRnMYtO6R47l2rcLiuVa9KKhciaa9QjRn234ngZHMngLpLvpIIVxxPcK9Fz lDiPEIS19OvPsoe07mKHu4PMw/IFQn7FUwE+znyljSnnGCk0jLLyAeK/xdnYBsQ6DDwv sLU0mFEqZi25KhCzuV/V57AU21Cu4ZX++JTYM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/a69U9KUnIP/MnmiwpDT352wL+s+ti3tEpAhYbHbhGY=; b=r+xKj8/tCKyFjbnSMuyCwQ+NAZUb/l5dAh8M2HIdrToe2/mhYUbIcVMW1SAV3Kz3xq tujKDztT87YI/G2B95Y8OQWtVeXIngIRppQglyftj0OWGEHTfu+BjUq2xpQ6amoWF+ju ruFNnDd1agxHZ/x8dE3g86VE5YoXjA5lB1xQvwxw2H3ocQVRf48zHapdoT8dEgWjKPc7 lK/X+foxglwrEwvWphgYo0tHY541sdD5m+dVN1xFGtgPDA36FZ/kFJMtHkDt30XBbiLB 0Rn8EObtWwwORJq2xT87v1oK0yBv31YheCCrAhK+cJN82/cQ0URIVzVS2PqKppvhF6Ga u6Pw== X-Gm-Message-State: AOAM532HA6oPOo+53eux/YCDzUJorwLTQP9iH/DqbPhMhGuJz2Aia8X5 jO50oEFEuDBQotvrYN8sC9jLYg== X-Received: by 2002:a17:902:ab8e:: with SMTP id f14mr30733842plr.80.1593027566653; Wed, 24 Jun 2020 12:39:26 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id n12sm17153037pgr.88.2020.06.24.12.39.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 12:39:25 -0700 (PDT) Date: Wed, 24 Jun 2020 12:39:24 -0700 From: Kees Cook To: Dan Carpenter Cc: Christian Kujau , Alexey Dobriyan , Andrew Morton , Willy Tarreau , linux-kernel@vger.kernel.org Subject: Re: process '/usr/bin/rsync' started with executable stack Message-ID: <202006241238.E9CB1CE85B@keescook> References: <20200624165148.GD31008@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200624165148.GD31008@kadam> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 24, 2020 at 07:51:48PM +0300, Dan Carpenter wrote: > In Debian testing the initrd triggers the warning. > > [ 34.529809] process '/usr/bin/fstype' started with executable stack Where does fstype come from there? I am going to guess it is either busybox or linked against klibc? klibc has known problems with executable stacks due to its trampoline implementation: https://wiki.ubuntu.com/SecurityTeam/Roadmap/ExecutableStacks > > $ checksec --format=json --extended --file=/var/tmp/mkinitramfs_eTyMPQ/bin/fstype | jq > { > "file": { > "relro": "no", > "canary": "no", > "nx": "no", > "pie": "no", > "clangcfi": "no", > "safestack": "no", > "rpath": "no", > "runpath": "no", > "symbols": "no", > "fortify_source": "no", > "fortified": "0", > "fortify-able": "0" > } > } Wow. _nothing_ implemented. :( -- Kees Cook