Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp778342ybz; Wed, 15 Apr 2020 18:51:14 -0700 (PDT) X-Google-Smtp-Source: APiQypIynMam/UIFU1dNG63oWArRW9DYy5j61FRv3RUqa57LfKS5VPM0Ht3OHx61c0DuN9H/1U7S X-Received: by 2002:a50:beca:: with SMTP id e10mr27692850edk.294.1587001874428; Wed, 15 Apr 2020 18:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587001874; cv=none; d=google.com; s=arc-20160816; b=HV4uV80im1oWew8eoIzy8wJ0D36BhcAP/x/62BHgmGf//3lq4FyS+SC1un36igvof1 Lk29xGBLy6TqMI8CIEo0BCTWcktbjtnTc/rK95tCkpRj9/eeHusi3VxIqNiroi3Om0GH vEUp7lAfxAxe1mH1fGc+u0UIq6G6FmwVJCX83ugvxF21bg4AuvwwljmQT4wf/kwTCiOf X8wMm6Dy5FAARqh8W6+s3P/3pNWOCUQXfRpFaQoyH0A1GTZcB+BbiwHKRKQgMDK6PVaK f4CKpGgtUJ5yE9bvgYAy44HhsKA8SowJcw4YPanR+Pij9IAWvuuJJlXFWh1yCQhmRF0k Hy0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5OcF7TWn34i9EQblMYEKpClfav9C/6cS7BZfVRtY1ig=; b=xABYDvX5ptOyy0w9GGwOLs7BMRQgRw/g/tmwtkhmyVFllRDBRH2f61g/jBexhzSyUv 3z8jj+g1on7yWacl4HsqtUn2jvNZ2M0H/5447BCLGJxwWnq0zF/qmWAyGSakTJTJND1X uAtjMihlPgPJPXMHyNEfKEhvHfx1uU0fm8YbqWPU/bz38wVDzNpvYbLSLAdzL8f31nv1 6/sDMReGWo8C6uV/vEUGpm3UcIiphBKANsywPmBcTFbicM2RP7eSri67oJPwwduPF/0Q Ls32UKHXKVTDwSunYngMKt1/GiGWz8vI6xmz7MMHYLiuntluoN9bvyEig3AKBFPBQDud i6vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y7bDos5w; 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 aq1si11964652ejc.344.2020.04.15.18.50.51; Wed, 15 Apr 2020 18:51:14 -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=Y7bDos5w; 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 S1416304AbgDOQyC (ORCPT + 99 others); Wed, 15 Apr 2020 12:54:02 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:57460 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1416286AbgDOQxs (ORCPT ); Wed, 15 Apr 2020 12:53:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586969626; 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=5OcF7TWn34i9EQblMYEKpClfav9C/6cS7BZfVRtY1ig=; b=Y7bDos5wO2M4VbCFu32z2ZPVL4HIN8IM0T1ibBJQkfB9YY4DfImcNeCmktGxXWuqQaBjOl WJRunKnP9dGn9Q2z1nogc1BQ/60wL+ZaLIQpUyCUZlu8oslXNlS5hW2LgVXF0QJ1RFfQ+Y T56MX/bCUbpQs7fSw2nO5oFeRMUWy0Q= Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-468-mpjXo2FdOpWDLE7xQgcAIA-1; Wed, 15 Apr 2020 12:53:45 -0400 X-MC-Unique: mpjXo2FdOpWDLE7xQgcAIA-1 Received: by mail-ot1-f70.google.com with SMTP id f3so381386otf.21 for ; Wed, 15 Apr 2020 09:53:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5OcF7TWn34i9EQblMYEKpClfav9C/6cS7BZfVRtY1ig=; b=Poz7eM77gJHDEeNZb1ttqMRrZQbWty3ZM2LvA5yg/LfC3XN7co05FmbjtiA7n/esj+ aiXWh375GXL9/BPkU3rQefaB6EOJ6dlitPWc/A2Z6SOPWtKafGSNGBqSApqFSGnduFqK H1MPNwXNyixvjPzMo654Y0Pwu+H3aGwb+WG8goRGCn9B+0q98XAaDmT8JwBaxPHcfRV3 n1mWuKX4VS1HX3gRGscNMX7OH0QoDDuBEOEYXUZsVqJcOFomXqleqsesXrKKLNfgsDoH Na+L0DfK1jFaACH26MeWpNzRp9PnPH9XFrx+9v4bcfbNnA1TfVnytDUwfgdJTWLEQKYm LuuQ== X-Gm-Message-State: AGi0PuZrSRr+C2HZscJkrrvae5zq9qc+43Z1h36XkmM6KxD/2iQlERH2 AiqpdfnJHFkXUtKZtGnNa1WSJ2RqvcyzVH7I/kStA7vpgFwNJrTZunQxCiiEnfxIKVyxIOSEDji JICIxP12UkInJGWXAYh/8eIOzMkeGz7zhX10cddWM X-Received: by 2002:aca:b104:: with SMTP id a4mr98038oif.103.1586969623612; Wed, 15 Apr 2020 09:53:43 -0700 (PDT) X-Received: by 2002:aca:b104:: with SMTP id a4mr98019oif.103.1586969623350; Wed, 15 Apr 2020 09:53:43 -0700 (PDT) MIME-Version: 1.0 References: <20191128153203.GA23803@workstation-kernel-dev> <20191130020742.GF157739@google.com> <20200415153417.svpbimg66vbeuk7u@madcap2.tricolour.ca> <20200415161503.umujm6v4gadmf6qm@madcap2.tricolour.ca> In-Reply-To: <20200415161503.umujm6v4gadmf6qm@madcap2.tricolour.ca> From: Ondrej Mosnacek Date: Wed, 15 Apr 2020 18:53:32 +0200 Message-ID: Subject: Re: [PATCH v2] kernel: audit.c: Add __rcu notation to RCU pointer To: Richard Guy Briggs Cc: Paul Moore , Amol Grover , Linux kernel mailing list , Linux-Audit Mailing List , Shuah Khan , Joel Fernandes , linux-kernel-mentees@lists.linuxfoundation.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 15, 2020 at 6:15 PM Richard Guy Briggs wrote: > On 2020-04-15 12:06, Paul Moore wrote: > > On Wed, Apr 15, 2020 at 11:34 AM Richard Guy Briggs wrote: > > > On 2019-11-29 21:07, Joel Fernandes wrote: > > > > On Thu, Nov 28, 2019 at 09:02:03PM +0530, Amol Grover wrote: > > > > > add __rcu notation to RCU protected global pointer auditd_conn > > > > > > > > Again, please use proper punctuation and captilization. This is unacceptable. > > > > Please put more effort into changelog. > > > > > > > > Otherwise the patch diff itself looks good to me, with the above nit > > > > corrected, you could add my tag to the next revision: > > > > > > > > Reviewed-by: Joel Fernandes (Google) > > > > > > > > thanks, > > > > > > > > - Joel > > > > > > > > > > > > > > Fixes multiple instances of sparse error: > > > > > error: incompatible types in comparison expression > > > > > (different address spaces) > > > > > > Amol or Joel: Is there a reproducer recipe for this? > > > > The commit which was merged has a slightly better description which may help. > > I've already seen this. Perhaps I should have replied to this message > instead to make that evident. What really needed was Amol's original > message sent to this list, but it was Joel who included this list in his > reply (all 3 versions). > > I'm looking for the specific setup and commands that produced this error. You can run make with "C=1", which will run sparse on all files that are rebuilt during that make run. For example, if I fully build the kernel and then revert commit cb5172d96d16df72db8b55146b0ec00bfd97f079, I get: $ make [...] C=1 [...] CHECK [...]/kernel/audit.c [...]/kernel/audit.c:218:14: error: incompatible types in comparison expression (different address spaces): [...]/kernel/audit.c:218:14: struct auditd_connection [noderef] * [...]/kernel/audit.c:218:14: struct auditd_connection * (...and a lot more errors like this + 2 different warnings) And when I un-revert it again, I get only the 2 warnings. -- Ondrej Mosnacek Software Engineer, Security Technologies Red Hat, Inc.