Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3823309ybt; Tue, 23 Jun 2020 11:34:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyalTKTSeT6JSV4f+HA0YpZuvQBkftgsQTe5l7hAScpGq7loxTJScLZpJyk2Hm7iOArrPd X-Received: by 2002:a17:906:82d2:: with SMTP id a18mr592601ejy.522.1592937268548; Tue, 23 Jun 2020 11:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592937268; cv=none; d=google.com; s=arc-20160816; b=UZcorQEBPVyhszKuscAwWjR00UqPz6QiFlyyMG9gUMwTLHJe+uxkMBF1z47Xhw/262 U2ewRI2vcYEd6ynHhB1k17+qIfVKLHVMowcw6bKOpAKctkCQbDHQDobN0rMJWYS++P/d KDYihSqcVoeDI7hCfEEv9sqb0kZao66AzrH8xf1b+WxxQxzBUNOBhjxV4b7irxxdcbHM 9iaXIS1MY33f/GeWKMRpiKf5zATswaBvTJIOu9zuypahmelnmQ5IVqI1S/2a3lA3+b1I 7u0c7z5G6VMCZCxA9kOOPb7e+Yaz571JuiPnD6vvoeeza6a66Henz8TWzOP8k1/aRHRS Opyw== 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=zM9UJPmqH/uivaDuT+boW9jaBhqjP7MlOqWA/nUW2MY=; b=0GWOPrJdTJyi6E7sip7RaXTfGQYdCzZBl9ZP22k55KvSFExwJEMNY3Xv2qdTtQ9cIn K66cxCT/Zdjy7kvU+IF1MLDCEm/R/k7cvWpHTKT8cBibTvx13neXJ8BsvJ8AHw3evKzH WhMNAh7ho7/xI5iNuA+8KrMZvJwbmQRyWAircSVsXc2i/fXv0eX7sDHwjQ27joCXFay8 f1AkciV4nBVXo4O2qjUdcEFlUsNRSZzGLFt1vULlA9oytCe278KXWYdzdvN25H5BDrlu wXQeiN10Z3rhzybt8ZoyOsEPvC9tPxiHtsVjmINzj+FyeNe9rUi7HV4sDItzs3xTAtY9 luzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AENfaNVE; 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 lb19si10978264ejb.295.2020.06.23.11.34.05; Tue, 23 Jun 2020 11:34:28 -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=AENfaNVE; 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 S1733295AbgFWScs (ORCPT + 99 others); Tue, 23 Jun 2020 14:32:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733102AbgFWScr (ORCPT ); Tue, 23 Jun 2020 14:32:47 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B2EDC061573 for ; Tue, 23 Jun 2020 11:32:47 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id g17so289240plq.12 for ; Tue, 23 Jun 2020 11:32:47 -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=zM9UJPmqH/uivaDuT+boW9jaBhqjP7MlOqWA/nUW2MY=; b=AENfaNVEdXr6w72rhyrdTL92lkyid8j6xhmJvbaCRkkHMG4QPB3bQq4xfUY/nk/anr UdAcmEUJDpXWI3sgCow99B1wadOUIbh9mS9fNzEYwnAvq8zMt00iIOwEtiUgR15swyi8 NP0C4RRE0Mt1BNbSZOiDpAxCi/owmZYLr38nQ= 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=zM9UJPmqH/uivaDuT+boW9jaBhqjP7MlOqWA/nUW2MY=; b=Pgi91ZvG9n1M9Bq+TnChccackELGzl200PDIddoxjnXXOcu/9I7PtMZgLxpQGsnB6w Zs6ZuYB5X7dDb7gywIaFURSdx2Hg8Hn/g2sO+or5efBfzpqhE80YlEjBINBqVg9fKsaf 7yN4+FLjF5lEh5x54XDiLqgrF/+Zt8rRYWrfGJXrIuW0V/ZQN5nasSHJw/1qw1f0pNMG sz+LIlNzL1yn8V1DPu4PzlILLkqDx/nENZLzzkRtJaMCi716A6W1VquEQlYzRsH8gXTz kg+Q5ygjyyKvplKrLhsLFCd1DJ4DvpJnd757WM4UE5vwI3iNn1+H/L0pFJIhG4WsE55c lKfg== X-Gm-Message-State: AOAM531+bqvMKKDnFQl/D8AeS+MoMwlTs3MkS9pnTBCL/ZVPUUXZnCxO V1QRXn1CWrhyFXqUHEjvexQsASZO5Fc= X-Received: by 2002:a17:90b:234f:: with SMTP id ms15mr546488pjb.7.1592937166889; Tue, 23 Jun 2020 11:32:46 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id v9sm17578308pfe.198.2020.06.23.11.32.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2020 11:32:46 -0700 (PDT) Date: Tue, 23 Jun 2020 11:32:44 -0700 From: Kees Cook To: Christian Kujau Cc: Alexey Dobriyan , Andrew Morton , Willy Tarreau , Dan Carpenter , linux-kernel@vger.kernel.org Subject: Re: process '/usr/bin/rsync' started with executable stack Message-ID: <202006231131.AD0A7F5F@keescook> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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. 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? > > Please advise? :-) > > Thanks, > Christian. > > [0] https://lore.kernel.org/patchwork/patch/1164047/#1362722 > > > $ 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? -Kees > "pie": "yes", > "clangcfi": "no", > "safestack": "no", > "rpath": "no", > "runpath": "no", > "symbols": "no", > "fortify_source": "yes", > "fortified": "10", > "fortify-able": "19" > } > } > > -- > BOFH excuse #244: > > Your cat tried to eat the mouse. -- Kees Cook