Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp761487ybg; Tue, 28 Jul 2020 19:10:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIlLxGcZM20znZfoZAtttYTa/y+TRUhPaSJ0wTjTVSJ1EU0L3NgFEnE5U6aa4HFPtio59K X-Received: by 2002:a05:6402:a4c:: with SMTP id bt12mr4484892edb.360.1595988646243; Tue, 28 Jul 2020 19:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595988646; cv=none; d=google.com; s=arc-20160816; b=hVYzG3SFW0le7QU987egrQlJ0S82qco2fBCpK4Po7QMoZfS1Y10z5/Mbmsg7ssTVQ/ HVK0xTNLzroIfL1tQ4ud//bFed2CyDvFZhXyJ4WbyHH1Hx4sK/viuAYFjLW7MxQg/oov R/bOKgF6E4Xg5T5MzhFO2gTbuELFicqHPyHcXXBIlRtQQxyrvLDYQJ5XxntKGaBx6N6I +RAXve/ALcoGHNo281jz8ZgceFE7efrzXqEbJTkkKiMOAGQPPO0qFp2b3grSsY09nTW9 gWHVLFJpX63R1z+a3c8ayK7BHRAjhITKheGNehfNkgTojXYES8lTPPZGvcPj2f+50wLN IG0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=DeolwL/8SdMeyvaIjqFbfDjnFfnpKQhKODlzhWE0ad4=; b=URVOyftRyomB+cbjbuUwOG3JABZAjjt4jBkTBOC96ZGTnEE2cQO7Vn8eBm2HxJelXG Hv2st92D8agBtC7gVmJ+jga2U+DP7WUBFSaTJMS8TExqC32UEf8f3KvpXUDn/UFGpuzA lmLotxXCnvQ+Gr/ifijiuXAzrpTwjfzA/CHF8LodY8WMKueGp45gBLCWCGilkaKyqieF TxJLP6QzcHPOrP2kckDo6Ocvh2DgjzoLLpbra360c3DPCWgy1BWAaT0DAuA2gJCUOFNd eb5aQSd0VCueFK5/Ft36F9r1cdCGLV5do90PaHZp3AaM5JtqQeMV/o9FNs3iLiyZUCAm KHIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=K7wKjCul; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si365983edj.504.2020.07.28.19.10.23; Tue, 28 Jul 2020 19:10:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=K7wKjCul; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730524AbgG2CH1 (ORCPT + 99 others); Tue, 28 Jul 2020 22:07:27 -0400 Received: from us-smtp-delivery-74.mimecast.com ([63.128.21.74]:32000 "EHLO us-smtp-delivery-74.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728401AbgG2CH1 (ORCPT ); Tue, 28 Jul 2020 22:07:27 -0400 X-Greylist: delayed 303 seconds by postgrey-1.27 at vger.kernel.org; Tue, 28 Jul 2020 22:07:26 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595988444; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DeolwL/8SdMeyvaIjqFbfDjnFfnpKQhKODlzhWE0ad4=; b=K7wKjCuldFiHSEJy65oR/auF1xx3bLnbGXzhw7DR1GCYwDtKJ4B2UwbzrWiDnIV7RVpXVw N7R9ATz7K5e8l5Cu1Lg4TUpvYZsKMA94quWEGntauf6snXYx5Q6t/pasIR1kNZ8T7nopZH zyhnkueof4qcSJmKOfoHKrX7+t/dmS0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-315-5cxjp49uMeyN4-6Az-5SbA-1; Tue, 28 Jul 2020 22:01:17 -0400 X-MC-Unique: 5cxjp49uMeyN4-6Az-5SbA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 78F8D1DE2; Wed, 29 Jul 2020 02:01:16 +0000 (UTC) Received: from madcap2.tricolour.ca (unknown [10.10.110.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 986A38A169; Wed, 29 Jul 2020 02:01:09 +0000 (UTC) Date: Tue, 28 Jul 2020 22:01:06 -0400 From: Richard Guy Briggs To: Paul Moore Cc: Eric Paris , Linux Security Module list , Linux-Audit Mailing List , LKML Subject: Re: [PATCH V3fix ghak120] audit: initialize context values in case of mandatory events Message-ID: <20200729020106.x5tfijvnxdmujtbj@madcap2.tricolour.ca> References: <20200728162722.djvy3qyclj57wsfn@madcap2.tricolour.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-07-28 14:47, Paul Moore wrote: > On Tue, Jul 28, 2020 at 12:27 PM Richard Guy Briggs wrote: > > I know you like only really minimal fixes this late, but this seemed > > pretty minimal to me... > > Minimal is a one (two?) line NULL check in audit_log_name(), this > patch is not that. I didn't try and test that since I'm not sure that would have worked because there appeared to be a low non-NULL value in it. brauer1's trace had 0x60 and mine had 0xd0. Or am I missing something obvious? The patch provided the information rather than ignoring the problem (which maybe should have been caught by WARN_ONCE?). > paul moore - RGB -- Richard Guy Briggs Sr. S/W Engineer, Kernel Security, Base Operating Systems Remote, Ottawa, Red Hat Canada IRC: rgb, SunRaycer Voice: +1.647.777.2635, Internal: (81) 32635