Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp38937ybt; Tue, 23 Jun 2020 14:43:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdFXM74KSeRNrr7pNYKNy0nGqU5aE1+5isNghltXqkH3ylzApqaTmJ50mIO7a027bGnuVn X-Received: by 2002:a05:6402:6c6:: with SMTP id n6mr23059490edy.277.1592948585882; Tue, 23 Jun 2020 14:43:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592948585; cv=none; d=google.com; s=arc-20160816; b=if7Vscepk5/4DT/BFgUPdL9b8vJY3l9AYrl8qV9AC+P6SRzWebv72zfYRcPWF8ugqs 1pp20fJ2O0liyOLalCOaM/Pf76n64Nl53YBnoDkh2tw/1VDBMibCQSrdJq0aR4WwfGww SusKIAiJnCd1N2CaytLAF/aIhLSuBD21q1qP9S8n1mtO77jAy6Fc/CdIJ7QVRzApUpei UlQHUBMIwTXErMVR+9yUqUELYvjy33YvHAMFA5BFeXBqRQYAknV7nmixZaWgzFaP+/cr JOtFaH5f0Ib+LnZ6MIb3xG1677HEgBYxsxHQoTURDIYIDvbtxAdfvE2L82205FhVLzyW RqIQ== 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=md3WRq3geqJdLGPOhsJGIsEQs0nCW0GjeQLNIB2+260=; b=BkYHWmXd1bQ8znnGd9CheD/2mo2Rfah1ScU5gXZlMvuBSv9Q51XM6WgrRZHhZr1kb+ pBD+Q1BjOYHdY1hR4x/+kfi1t1FTmZTS/3H/+gRnDm8XesVP375nUYnzELciYhwYYpE2 uaVe417p9Cp7clL6iIduf4m2dI25NLqv+UWNong7ErlqA1R+yKUNw/LUTfTNc50QnNaJ 3td89J35J4Mj1WqZDHIllHUjlwuvwT8+ykzUjuVsMr/IcnkJrZI/GaPbp56jSfOVF5sU ckJL8Dyd2VBFl/avzTtxkSWSF1UbMEAO3HncPhlv9RCzNiwywol2y2henwIRDqGg4Iss xvvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EDzyiZJv; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si10931832edw.228.2020.06.23.14.42.38; Tue, 23 Jun 2020 14:43:05 -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=@gmail.com header.s=20161025 header.b=EDzyiZJv; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393903AbgFWVlJ (ORCPT + 99 others); Tue, 23 Jun 2020 17:41:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388457AbgFWVlG (ORCPT ); Tue, 23 Jun 2020 17:41:06 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADE12C061573 for ; Tue, 23 Jun 2020 14:41:06 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id h15so107862wrq.8 for ; Tue, 23 Jun 2020 14:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=md3WRq3geqJdLGPOhsJGIsEQs0nCW0GjeQLNIB2+260=; b=EDzyiZJvtCxMv+eDdYCMUvn8C/dN+/dOmev0o842aiMgBm6n5ofpm2xArfPfHY/hwK RUxb1M2dfHYMQcLNaq3VVgiwl32wI5Fw2T/BQHQ5LxgeqhjbxjElSNtePs03KKVaRRfa Ru8ynNignHOlZUHiEr2oZl83BCN8Td67IdjMHUQw2ybs62SPFx/X4x6zckSe0bHudMBX 1or47UBvL5IcXnaESTfwo+OM8PwDdHwxZu88fSMISrR9+s1vqhwiLC1h5VnNgJK6Y3l4 2fzNuhwER1WS88ulI8VWHFJ3BAflixyuRHdnOGYMvVsh0R4XDdu13CRwYi6493L97ryA 6i0Q== 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=md3WRq3geqJdLGPOhsJGIsEQs0nCW0GjeQLNIB2+260=; b=MM6Ga55yIkc/WD4PASXLuNn3ukHGI0AK4g6CXR8+GoMGmeB7mw/bk2YM+RPPQiiKPe lXw5NcfTvynrZ6GU9/8z8P+tfXgLa/ebnJpbB5jYY61pc/0OknMwzKWoIda//HKHf/MF OGid/Tk53aK5E7c8b3yYYbhSB+d15zBOsjKWBYAp4mmTbFmVguRUVn8hSS8tKFbvHFHK zkNHWb2yE0lB/IFHt+NpV7NOzFkAKS6jrHtB00SRDGrfsk17kxpxnxlUYRJJ/LzIRZMb yQcxXZdeOePKO//7grwHsgI4hKUVmxEFrY0AJ1LzPQlweakk9CJAfy4enlKEqlhCKJ/p SbnQ== X-Gm-Message-State: AOAM53016WRxMUXgfpqh4H27NoixavrGnJUH97jUX72Zm8mEJ+3Y9yAZ VEgatPO4+Nepi2bd4LJSBA== X-Received: by 2002:adf:f711:: with SMTP id r17mr27909588wrp.409.1592948465540; Tue, 23 Jun 2020 14:41:05 -0700 (PDT) Received: from localhost.localdomain ([46.53.253.162]) by smtp.gmail.com with ESMTPSA id u9sm5458017wme.16.2020.06.23.14.41.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2020 14:41:05 -0700 (PDT) Date: Wed, 24 Jun 2020 00:41:03 +0300 From: Alexey Dobriyan To: Christian Kujau Cc: Kees Cook , Andrew Morton , Willy Tarreau , Dan Carpenter , linux-kernel@vger.kernel.org Subject: Re: process '/usr/bin/rsync' started with executable stack Message-ID: <20200623214103.GA42474@localhost.localdomain> References: <202006231131.AD0A7F5F@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 23, 2020 at 02:33:50PM -0700, Christian Kujau wrote: > On Tue, 23 Jun 2020, Kees Cook wrote: > > > $ checksec --format=json --extended --file=`which rsync` | jq > > > { > > > "/usr/bin/rsync": { > > > "relro": "full", > > > "canary": "yes", > > > "nx": "no", > > ^^^^^^^^^^^^^^^^^^ > > > > It is, indeed, marked executable, it seems. What distro is this? > > Arch Linux (x86-64) with 5.6.5.a-1-hardened[0], running in a Xen DomU. Congratulations! https://www.archlinux.org/packages/extra/x86_64/rsync/ GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 RWE 0x10