Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1261365ybl; Mon, 2 Dec 2019 00:18:06 -0800 (PST) X-Google-Smtp-Source: APXvYqxHDBfW2rLdqe5hBcOZ5Q016ZJKP0sp9oxSg0SeOFrlKQgVDm3vJLz25JHwNwLQCUd5AerJ X-Received: by 2002:a05:6402:1771:: with SMTP id da17mr7994102edb.68.1575274686170; Mon, 02 Dec 2019 00:18:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575274686; cv=none; d=google.com; s=arc-20160816; b=JNgty7sEj8O/sVaNaSPUsvwNefm4GfSAzhPRXW7LMKpB9JNQYZXWVkXDtShEO/9tay ulqRvUsTSZVY4Iv6fpoJ/FqKHVpOuGVMZq03AEKAMvjvFGoBVodmC/MApvhNoKUtL7uT 3aJHe2fP4sbL5g8je2GvNKf5VBQel5xFgdu0KfglVv7UOun3Hjw4/JoOe1XBsppL2A7b 2k8wvH82cPZiqMSI+3Eut9r1oFzi891yUaRlOONrRjrriFQm/ou8SlX9vRPvwr8eGsRF fyDrQqjYzEJva1Kcvh7FTSpZ8bULxxbx7KM2cK06EHWZS4+J7hXhR/jg2XDrfCuEDLVG 57Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=pDEaHrIuSH1PquxQ0PLhLUS5ccvTxHD2DRwdxDB02Rk=; b=x9K5tFYrnI1DCp2WJqwapSYRWGfQrR0lIoPTnPUT6HIZcDqd0O4e30cnwAopKn3oes KcaAXKN5JxvcREo8gfotARyoIYl3FhTma4MbT0p3+XKgcg7FNwfWiD2mSiTvdZkieN9S VEXi0tQCbLNE7ARQ0zpL53PQnlt7SEohHUtLUznC+Un/y9uRyoZD+XuaXeOpM3aGTI+W 4uoKiPdKqtwhlzqoHwKmlTi4xyawdYMmuTE9s+LvpXYV5dTrKmnC43nJwz3OoxqX2VtR w3vV2othK5LFMsIkHYbSVhIpdQqLLRqjH10BqzX8YZv8fx1crUIYoe00h6gPhcDRAcbC OlPg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l17si1894044ejc.311.2019.12.02.00.17.42; Mon, 02 Dec 2019 00:18:06 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726678AbfLBIOY (ORCPT + 99 others); Mon, 2 Dec 2019 03:14:24 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:37314 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726251AbfLBIOY (ORCPT ); Mon, 2 Dec 2019 03:14:24 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 8AA411A6202CFEA882E6; Mon, 2 Dec 2019 16:14:17 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Mon, 2 Dec 2019 16:14:07 +0800 From: "zhangyi (F)" To: CC: , , , , , , , , , , , Subject: [PATCH 4.4 0/7] fs/proc: Stop reporting eip and esp in Date: Mon, 2 Dec 2019 16:35:12 +0800 Message-ID: <20191202083519.23138-1-yi.zhang@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reporting eip and esp fields on a non-current task is dangerous, so backport this series for 4.4 to fix protential oops and info leak problems. The first 3 patch are depended on the 6/7 patch. Alexey Dobriyan (1): proc: fix coredump vs read /proc/*/stat race Andy Lutomirski (3): sched/core: Allow putting thread_info into task_struct sched/core: Add try_get_task_stack() and put_task_stack() fs/proc: Stop reporting eip and esp in /proc/PID/stat Heiko Carstens (1): sched/core, x86: Make struct thread_info arch specific again John Ogness (2): fs/proc: Report eip/esp in /prod/PID/stat for coredumping fs/proc/array.c: allow reporting eip/esp for all coredumping threads fs/proc/array.c | 18 ++++++++++--- include/linux/init_task.h | 9 +++++++ include/linux/sched.h | 52 +++++++++++++++++++++++++++++++++++-- include/linux/thread_info.h | 4 +++ init/Kconfig | 10 +++++++ init/init_task.c | 7 +++-- kernel/sched/sched.h | 4 +++ 7 files changed, 97 insertions(+), 7 deletions(-) -- 2.17.2