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
| ||
|
Date: Sat, 27 Aug 2022 12:18:34 -0300 From: Arnaldo Carvalho de Melo <acme@...nel.org> To: Adrian Hunter <adrian.hunter@...el.com> Cc: Ian Rogers <irogers@...gle.com>, Peter Zijlstra <peterz@...radead.org>, Ingo Molnar <mingo@...hat.com>, Mark Rutland <mark.rutland@....com>, Alexander Shishkin <alexander.shishkin@...ux.intel.com>, Jiri Olsa <jolsa@...nel.org>, Namhyung Kim <namhyung@...nel.org>, Thomas Gleixner <tglx@...utronix.de>, Darren Hart <dvhart@...radead.org>, Davidlohr Bueso <dave@...olabs.net>, André Almeida <andrealmeid@...lia.com>, Nathan Chancellor <nathan@...nel.org>, Nick Desaulniers <ndesaulniers@...gle.com>, Tom Rix <trix@...hat.com>, Weiguo Li <liwg06@...mail.com>, Athira Rajeev <atrajeev@...ux.vnet.ibm.com>, Thomas Richter <tmricht@...ux.ibm.com>, Ravi Bangoria <ravi.bangoria@....com>, Dario Petrillo <dario.pk1@...il.com>, Hewenliang <hewenliang4@...wei.com>, yaowenbin <yaowenbin1@...wei.com>, Wenyu Liu <liuwenyu7@...wei.com>, Song Liu <songliubraving@...com>, Andrii Nakryiko <andrii@...nel.org>, Dave Marchevsky <davemarchevsky@...com>, Leo Yan <leo.yan@...aro.org>, Kim Phillips <kim.phillips@....com>, Pavithra Gurushankar <gpavithrasha@...il.com>, Alexandre Truong <alexandre.truong@....com>, Quentin Monnet <quentin@...valent.com>, William Cohen <wcohen@...hat.com>, Andres Freund <andres@...razel.de>, Martin Liška <mliska@...e.cz>, Colin Ian King <colin.king@...el.com>, James Clark <james.clark@....com>, Fangrui Song <maskray@...gle.com>, Stephane Eranian <eranian@...gle.com>, Kajol Jain <kjain@...ux.ibm.com>, Alexey Bayduraev <alexey.v.bayduraev@...ux.intel.com>, Riccardo Mancini <rickyman7@...il.com>, Andi Kleen <ak@...ux.intel.com>, Masami Hiramatsu <mhiramat@...nel.org>, Zechuan Chen <chenzechuan1@...wei.com>, Jason Wang <wangborong@...rlc.com>, Christophe JAILLET <christophe.jaillet@...adoo.fr>, Remi Bernon <rbernon@...eweavers.com>, linux-kernel@...r.kernel.org, linux-perf-users@...r.kernel.org, bpf@...r.kernel.org, llvm@...ts.linux.dev Subject: Re: [PATCH v4 00/18] Mutex wrapper, locking and memory leak fixes Em Sat, Aug 27, 2022 at 10:04:44AM +0300, Adrian Hunter escreveu: > On 26/08/22 19:40, Ian Rogers wrote: > > When fixing a locking race and memory leak in: > > https://lore.kernel.org/linux-perf-users/20211118193714.2293728-1-irogers@google.com/ > > > > It was requested that debug mutex code be separated out into its own > > files. This was, in part, done by Pavithra Gurushankar in: > > https://lore.kernel.org/lkml/20220727111954.105118-1-gpavithrasha@gmail.com/ > > > > These patches fix issues with the previous patches, add in the > > original dso->nsinfo fix and then build on our mutex wrapper with > > clang's -Wthread-safety analysis. The analysis found missing unlocks > > in builtin-sched.c which are fixed and -Wthread-safety is enabled by > > default when building with clang. > > > > v4. Adds a comment for the trylock result, fixes the new line (missed > > in v3) and removes two blank lines as suggested by Adrian Hunter. > > v3. Adds a missing new line to the error messages and removes the > > pshared argument to mutex_init by having two functions, mutex_init > > and mutex_init_pshared. These changes were suggested by Adrian Hunter. > > v2. Breaks apart changes that s/pthread_mutex/mutex/g and the lock > > annotations as requested by Arnaldo and Namhyung. A boolean is > > added to builtin-sched.c to terminate thread funcs rather than > > leaving them blocked on delted mutexes. > > > > Ian Rogers (17): > > perf bench: Update use of pthread mutex/cond > > perf tests: Avoid pthread.h inclusion > > perf hist: Update use of pthread mutex > > perf bpf: Remove unused pthread.h include > > perf lock: Remove unused pthread.h include > > perf record: Update use of pthread mutex > > perf sched: Update use of pthread mutex > > perf ui: Update use of pthread mutex > > perf mmap: Remove unnecessary pthread.h include > > perf dso: Update use of pthread mutex > > perf annotate: Update use of pthread mutex > > perf top: Update use of pthread mutex > > perf dso: Hold lock when accessing nsinfo > > perf mutex: Add thread safety annotations > > perf sched: Fixes for thread safety analysis > > perf top: Fixes for thread safety analysis > > perf build: Enable -Wthread-safety with clang > > > > Pavithra Gurushankar (1): > > perf mutex: Wrapped usage of mutex and cond > > For all patches except 9 and 16 > > Reviewed-by: Adrian Hunter <adrian.hunter@...el.com> Added it, did the usual round of tests and pushed out perf/core, we can continue from there. It also contains Adrian's "multiple recording time ranges" series. Thanks! - Arnaldo
Powered by blists - more mailing lists