lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201123140552.GN3021@hirez.programming.kicks-ass.net>
Date:   Mon, 23 Nov 2020 15:05:52 +0100
From:   Peter Zijlstra <peterz@...radead.org>
To:     Pingfan Liu <kernelfans@...il.com>
Cc:     linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...hat.com>,
        Arnaldo Carvalho de Melo <acme@...nel.org>,
        Mark Rutland <mark.rutland@....com>,
        Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
        Jiri Olsa <jolsa@...hat.com>,
        Namhyung Kim <namhyung@...nel.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        Borislav Petkov <bp@...en8.de>,
        "H. Peter Anvin" <hpa@...or.com>, Omar Sandoval <osandov@...com>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Mike Rapoport <rppt@...nel.org>, x86@...nel.org
Subject: Re: [PATCH 1/2] events/core: introduce perf_pmu_disable_all() to
 turn off all PMU

On Mon, Nov 23, 2020 at 01:37:25PM +0800, Pingfan Liu wrote:

> +/* When crashed, other cpus hang in idle loop, so here do an emergency job under no lock */

-ENOPARSE, -ETOOLONG

> +void perf_pmu_disable_all(void)
> +{
> +	struct pmu *pmu;
> +
> +	list_for_each_entry(pmu, &pmus, entry)
> +		if (pmu->pmu_disable)
> +			pmu->pmu_disable(pmu);
> +}

This violates both locking rules and coding style.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ