From patchwork Fri Mar 1 02:57:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 1049911 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 449YyW6mKkz9s7h for ; Fri, 1 Mar 2019 13:58:27 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732806AbfCAC6W (ORCPT ); Thu, 28 Feb 2019 21:58:22 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:52162 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726088AbfCAC6W (ORCPT ); Thu, 28 Feb 2019 21:58:22 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 43A03E3440FDF2E2A11F; Fri, 1 Mar 2019 10:58:20 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.408.0; Fri, 1 Mar 2019 10:58:11 +0800 From: Yue Haibing To: , , CC: , , YueHaibing Subject: [PATCH v2 0/2] appletalk: small cleanup and bugfix Date: Fri, 1 Mar 2019 10:57:55 +0800 Message-ID: <20190301025757.27592-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: YueHaibing v2: - Add cover letter log This patch series mainly fix a use-after-free bug in atalk_proc_exit. patch 1 use remove_proc_subtree helper to simplify atalk_proc fs code, also some other cleanup. patch 2 add proper error cleanup path in atalk_init to fix the issue, which based on the patch 1 because of the change of atalk_proc_exit context. YueHaibing (2): appletalk: use remove_proc_subtree to simplify procfs code appletalk: Fix use-after-free in atalk_proc_exit include/linux/atalk.h | 2 +- net/appletalk/atalk_proc.c | 58 +++++++++++++--------------------------- net/appletalk/ddp.c | 37 ++++++++++++++++++++----- net/appletalk/sysctl_net_atalk.c | 5 +++- 4 files changed, 54 insertions(+), 48 deletions(-)