Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4051287imm; Tue, 25 Sep 2018 10:29:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV63bCj3SXa28vzgMp1r3QehmvkyD08yfj905mxdJEmdeLnA7iRe2jgtlMr65Lr5dlvZ64woz X-Received: by 2002:a17:902:744c:: with SMTP id e12-v6mr2185998plt.186.1537896540196; Tue, 25 Sep 2018 10:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537896540; cv=none; d=google.com; s=arc-20160816; b=zwSqCfMF+SKwDMuiNCoobu86RQe69XdBZAHMos6nYjRHgSa2wYsj6Pa9Fgue1dKGOB VZSDRnsGjZTZhOSrriCPsNMfKpy13zIdjlwCpQKvSUIb3Vh0PmxH0LFMVoUfYr1D//Dv byZC113naT5g73VZ1PE5MS+uuiYhSlnBe3omPXF6fO++sqoKKXqHOgFN5DCAke5g21BS tp+bfL2d08kqs0bmzN4rtcKaOSxe70iSsrXGusiKHfKTaFXoNKe6yF9Cc6oXUWfH3ZJV 4TGDsJ95pYB2B/TxgPaI2YkKI7vclJfBDwkkE/QgT2ieMR8XTwP10VEEZUnzesNkCGnc ZdRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:cc:date:message-id:subject :mime-version:content-transfer-encoding:from; bh=kG8qQitVo6wqrOQiPRg3bgMMzz2MOpXR3kwJBw2OFWQ=; b=HuFZo9T6aZNITSNXu4CMEreS5QUdy1HQTcTiWHopHsvHXnEFvLtUsVTLcLIa7vXhVf WewVMydU+GCVpFn4PtwXeMmnxEogYz0nDHEPFTQCcmRfu/kHXYz6MCkmNZlMEfzLAH+T kf782WKdUm+S1wjKLFqDZNXE5rNhQEAqoLtwi2xjQ/RIfKNT0THEgklLcv8RPDfoI/Wd 0j9nBx2fyMY4F2xRHvxVs4EwfHmGcDug02K/ql/sdrTS+LXmvYOLm7nr+ar7aTHGBuzT Urg3ykMN/7VeBx8+ErEFN+YoBY1tN71ZPJtcotwluupXxVSMqltvr/jZCdCDzLb8qMnH 2yPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m16-v6si418739pgl.462.2018.09.25.10.28.44; Tue, 25 Sep 2018 10:29:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728359AbeIYXfq convert rfc822-to-8bit (ORCPT + 99 others); Tue, 25 Sep 2018 19:35:46 -0400 Received: from outbound.smtp.vt.edu ([198.82.183.121]:57414 "EHLO omr2.cc.vt.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727677AbeIYXfp (ORCPT ); Tue, 25 Sep 2018 19:35:45 -0400 Received: from mr2.cc.vt.edu (smtp.ipv6.vt.edu [IPv6:2607:b400:92:9:0:9d:8fcb:4116]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id w8PHRFTr000499 for ; Tue, 25 Sep 2018 13:27:15 -0400 Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mr2.cc.vt.edu (8.14.7/8.14.7) with ESMTP id w8PHRAJC008696 for ; Tue, 25 Sep 2018 13:27:15 -0400 Received: by mail-qt1-f197.google.com with SMTP id d1-v6so9233342qth.21 for ; Tue, 25 Sep 2018 10:27:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:cc:to; bh=DhBVNj10Sbxs1XKQgkvxIWncxg6P5KZrFHtrnc5vvgo=; b=G5LXJwoYbxVqMDjJqZg44Fl3SONK7cgFFEFllhlGQP/9p9GFqNA8RtH0HpklhFVFfm cvo7OA1RckiQtKebwXxLdnxn7xs/dGGRLS5H07JyaGGcxya9N5nR+M9PNxxfx0YToRwL nHLpUkmPynD6n+jEXSnlB/CE8l7XRr/ILBe6wPTKq/JdzYx0YlZtM6fVuvyfg2orI35j 7x8YKy9JZPrHkf4Nw581pdSuyAR0zQiVkdMuUs/7LnHNr4JPxX6y1ON+H35w+BPZy7OZ PxdtgFTnt6dTNjfxeEuXv08e2qOmZNflEnY3AREnKZtnIk8a2HNwz95HLFn8MkcVIhCG UA8Q== X-Gm-Message-State: ABuFfojjiJSGCM8uCwUXrEOrch+Mrpq4tHEnz858so2H/2GDU4PaKP+F TYFtQXFETbIVRfG+IzCjZYfFgtSMyRBsAEX3dJEY2icQQXyRbX0mtZdkPYRD4wG5jZow8AJGe7Y hISRuRQAlWY5GaVJHJTuz6Z/iXLSpoJahesA= X-Received: by 2002:aed:3903:: with SMTP id l3-v6mr1614805qte.315.1537896430032; Tue, 25 Sep 2018 10:27:10 -0700 (PDT) X-Received: by 2002:aed:3903:: with SMTP id l3-v6mr1614795qte.315.1537896429895; Tue, 25 Sep 2018 10:27:09 -0700 (PDT) Received: from [192.168.15.200] (linker.cs.vt.edu. [128.173.236.60]) by smtp.gmail.com with ESMTPSA id k71-v6sm2140801qkh.30.2018.09.25.10.27.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Sep 2018 10:27:09 -0700 (PDT) From: Tong Zhang Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\)) Subject: Leaking path for set_task_comm Message-Id: Date: Tue, 25 Sep 2018 13:27:08 -0400 Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, wenbo.s@samsung.com To: adobriyan@gmail.com, akpm@linux-foundation.org, viro@zeniv.linux.org.uk, gorcunov@openvz.org X-Mailer: Apple Mail (2.3445.100.39) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kernel Version: 4.18.5 Problem Description: When using prctl(PR_SET_NAME) to set the thread name, it is checked by security_task_prctl. We discovered a leaking path that can also use method implemented in fs/proc/base.c:1526 comm_write(), to do similar thing without asking LSM’s decision. - Tong