From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DBC1C48BE7 for ; Thu, 27 Jun 2019 18:10:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7F41320B7C for ; Thu, 27 Jun 2019 18:10:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726578AbfF0SKj (ORCPT ); Thu, 27 Jun 2019 14:10:39 -0400 Received: from namei.org ([65.99.196.166]:49178 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726502AbfF0SKj (ORCPT ); Thu, 27 Jun 2019 14:10:39 -0400 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id x5RIAPrO018848; Thu, 27 Jun 2019 18:10:25 GMT Date: Fri, 28 Jun 2019 04:10:25 +1000 (AEST) From: James Morris To: Kees Cook cc: Casey Schaufler , casey.schaufler@intel.com, linux-security-module@vger.kernel.org, selinux@vger.kernel.org, John Johansen , Tetsuo Handa , Paul Moore , Stephen Smalley Subject: Re: [PATCH v4 00/23] LSM: Module stacking for AppArmor In-Reply-To: <201906271006.57DE3C2@keescook> Message-ID: References: <20190626192234.11725-1-casey@schaufler-ca.com> <201906271006.57DE3C2@keescook> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: On Thu, 27 Jun 2019, Kees Cook wrote: > On Thu, Jun 27, 2019 at 02:10:18PM +1000, James Morris wrote: > > On Thu, 27 Jun 2019, James Morris wrote: > > > > > Confirming there's no oops when Tomoyo is un-selected in the kernel > > > config. > > > > n/m, the problem is still there. > > Were you able to test my fix for this? I wonder if what I found was just > a coincidence. Seems to have fixed the oops I was seeing. diff --git a/drivers/android/binder.c b/drivers/android/binder.c index 4adf4d4a954b..e76dbeee979b 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -2875,7 +2875,7 @@ static void binder_transaction(struct binder_proc *proc, binder_size_t last_fixup_min_off = 0; struct binder_context *context = proc->context; int t_debug_id = atomic_inc_return(&binder_last_id); - struct lsmcontext lsmctx; + struct lsmcontext lsmctx = {}; e = binder_transaction_log_add(&binder_transaction_log); e->debug_id = t_debug_id; -- James Morris