Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp23446ybt; Tue, 23 Jun 2020 14:16:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAsPecefZRANIsqyVmNAi8+g3g297RnnWEoLgrThdXydrjDYTOpl+k1j4aS44UzZhT6MlP X-Received: by 2002:a17:906:5590:: with SMTP id y16mr23283044ejp.228.1592946964957; Tue, 23 Jun 2020 14:16:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592946964; cv=none; d=google.com; s=arc-20160816; b=ar3MDndnaCrOcS3iJa+kx+RAnrowVBxwcoNyoxI4lab33dXn/9NYnLjg/iWWj466EH 0a6cjLr0BhdQJfw4XRfc47JSoj6TlIKj55hBQ/cn5bj0poBThCVm6oG9j+HEC50ZVj6E c/hvXvFz9ObneUUs4pqaHoP3s+136PUl1yRw1OUVfBQBRM3SvpwZ4hV0Gwt6rFcLufSi VjaYFbULa6+ouasqszX9Rth9dUmIM9jTTKyBmL/AoHQQmp90lOlGDBEAOjtKDubCtukb tf7gr0iXPyj3uKSzYzMiCIxZx3fsWlTKRtoPQF8zbPIaFuQbLp0d+RS5a3p5nMDcPEtN 3IXQ== 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=Fkq9ZLDXUn+7v5h5NYAGxclwihh9EdJ53ZL4LdO1hnU=; b=aMEwpxycceBjginJCvxKEzjwdonGGY/L5j0gPBKW0M4CSSjMq7AvB6rze+IBSziIJP xoHeOAOKGfxiYW5uNT7yJ+TWPj4K70fIANQ4q7NRputp9R1etySQxMJ1SniFbVi3tTPo DoKCSXmRhGIq+ZINVjD9CP57P+9xMPX6HE7ttgqTyAak/p/V30tA1+tvONDcmMTBFF/K fv1ItaxwcQo9vLaGLu7bW5uIKz5WtJoyOKA7aSmWQ+vqfVI3SBxuZto7bzKNj0xcHB5G hk9e/IvvrIH8xfqpOTgHEUhJJdtelnuaLvCoz3qupIhceiYqBVapG4UH+ZINszRknPO9 sR/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YLbyCocs; 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 c3si11278039edw.365.2020.06.23.14.15.38; Tue, 23 Jun 2020 14:16:04 -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=YLbyCocs; 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 S2393223AbgFWVM2 (ORCPT + 99 others); Tue, 23 Jun 2020 17:12:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393266AbgFWVMX (ORCPT ); Tue, 23 Jun 2020 17:12:23 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F520C061573 for ; Tue, 23 Jun 2020 14:12:23 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id q5so47581wru.6 for ; Tue, 23 Jun 2020 14:12:23 -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=Fkq9ZLDXUn+7v5h5NYAGxclwihh9EdJ53ZL4LdO1hnU=; b=YLbyCocsMXvHK7YAaraaoWys7UOHuW2b8BY/f1rkazivx1iqxVALjBmnG6IYUPMlcl bMliOaMVVm4yunIOU7URiSBEhUVFZL0Wl6wmlrcnfUZjkDzk07aoCFNoBOCTZJvSp7LO qZs+mtKdLFgL44ANhN9QMuUcHWcl+bOvi+D7x3cI4e1U70X6ba0EucBOqVzWxFmXinSi APIBF/qyyWtJch9Gg8IES8kKRU6pgu+KJ4y5nfVbUf+6aLVSZqIgWtLZiNqeKEClhx8S Is0UZU32P3INGJPuiEdOh3Q+zqsf05GynqrDhvh81eYsljZGTvcZPFJ0sBSAdhEYPSOP aGPQ== 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=Fkq9ZLDXUn+7v5h5NYAGxclwihh9EdJ53ZL4LdO1hnU=; b=mPfIgt+PEhnxVBruOkA3G+8tenx6bgHiwNPaVRHx7nojzpfytWgbVCjabpZuWVl6Ap K0uc5nwxoxQe4Lf9Z+iLe+4o/0cOGJp/ZO7oD8eZQcZj0YptvPYeERU387WEztfwy09q HldSGIYQinh10h3YuzUdhGdYdQkBFeiw1NH8xMvbMOkkOiX2XSSqTVsBIY6AfAYnNXWE F9oC/ZwhK4IN+7iBngVXI4g8XRZz/kYWRgSQqXct2n3873i0fXDWwsWpXo6TjMmLfakB W/Q0KD8MaUp4Ml4gcetKD8hijckU4iMpdggL2k7r4pcuBtyhqUQwKpgG4u8qrnf8TJCN 2Oiw== X-Gm-Message-State: AOAM5308dcNu+XHnZDcVWJjPKt9M/MNC+OUe78q31BqP1yx54E7qbUER SbMQsf+lDfsSRBOVIwfmtrMIlGM= X-Received: by 2002:adf:e60a:: with SMTP id p10mr8859099wrm.181.1592946741898; Tue, 23 Jun 2020 14:12:21 -0700 (PDT) Received: from localhost.localdomain ([46.53.253.162]) by smtp.gmail.com with ESMTPSA id f12sm10994093wrw.53.2020.06.23.14.12.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2020 14:12:20 -0700 (PDT) Date: Wed, 24 Jun 2020 00:12:18 +0300 From: Alexey Dobriyan To: Christian Kujau Cc: Andrew Morton , Willy Tarreau , Dan Carpenter , Kees Kook , linux-kernel@vger.kernel.org Subject: Re: process '/usr/bin/rsync' started with executable stack Message-ID: <20200623211218.GA40110@localhost.localdomain> References: 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 10:39:26AM -0700, Christian Kujau wrote: > Hi, > > exactly this[0] happened today, on a 5.6.5 kernel: > > process '/usr/bin/rsync' started with executable stack > > But I can't reproduce this message, and rsync (v3.2.0, not exactly > abandonware) runs several times a day, so to repeat Andrew's questions[0] > from last year: > > > What are poor users supposed to do if this message comes out? > > Hopefully google the message and end up at this thread. What do you > > want to tell them? > > Also, the PID is missing from that message. That's intentional. I for one hate pids. > I had some long running rsync > processes running earlier, maybe the RWE status would have been visible in > /proc/$PID/map, or somewhere else maybe? If you think process is still running, /proc/*/maps should have 'rwxp' indeed. You can do quick $ grep -e '\[stack\]' /proc/*/maps' to find it. > $ checksec --format=json --extended --file=`which rsync` | jq > { > "/usr/bin/rsync": { > "relro": "full", > "canary": "yes", > "nx": "no", > "pie": "yes", > "clangcfi": "no", > "safestack": "no", > "rpath": "no", > "runpath": "no", > "symbols": "no", > "fortify_source": "yes", > "fortified": "10", > "fortify-able": "19" > } > } $ readelf -l /usr/bin/rsync | grep GNU_STACK -A1 GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 RW 0x10