From patchwork Mon Dec 2 08:35:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Yi X-Patchwork-Id: 11268779 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 28F0B14B7 for ; Mon, 2 Dec 2019 08:14:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 07D4C22464 for ; Mon, 2 Dec 2019 08:14:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726564AbfLBIOY (ORCPT ); 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 X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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(-)