ci starts bisection 2024-02-22 23:42:38.595492834 +0000 UTC m=+19014.849522070 bisecting fixing commit since 5abde62465222edd3080b70099bd809f166d5d7d building syzkaller on fb427a0782000106c62de76d251e5a02de5406a9 ensuring issue is reproducible on original commit 5abde62465222edd3080b70099bd809f166d5d7d testing commit 5abde62465222edd3080b70099bd809f166d5d7d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: db5c1317ae0f43f600eb9f348a971d1cf7fb38d0e554086f7e2cd5f07e9b7e03 all runs: crashed: WARNING in sys_perf_event_open representative crash: WARNING in sys_perf_event_open, types: [WARNING] check whether we can drop unnecessary instrumentation disabling configs for [KASAN LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 5abde62465222edd3080b70099bd809f166d5d7d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d427d09bb07e91afd8a2fcfa28df399234db91f9a81d7c4f65440eb71b18ccd8 all runs: OK false negative chance: 0.000 kconfig minimization: base=3937 full=7658 leaves diff=2018 split chunks (needed=false): <2018> split chunk #0 of len 2018 into 5 parts testing without sub-chunk 1/5 testing commit 5abde62465222edd3080b70099bd809f166d5d7d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6b88a7fb5e75fc6bd73b067d0e619ff889f049cb34f46998a8bc40af571b29dc all runs: crashed: WARNING in sys_perf_event_open representative crash: WARNING in sys_perf_event_open, types: [WARNING] the chunk can be dropped testing without sub-chunk 2/5 testing commit 5abde62465222edd3080b70099bd809f166d5d7d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e65c44130f967539e10c4f1b9a755f397ab2f69de21330d3042eae8446a3ee9f all runs: crashed: WARNING in sys_perf_event_open representative crash: WARNING in sys_perf_event_open, types: [WARNING] the chunk can be dropped testing without sub-chunk 3/5 testing commit 5abde62465222edd3080b70099bd809f166d5d7d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5b6b77e2dfd2c2bc05a838fd13ecfd683a467843e49779feeb9d0b1b0cc79b45 all runs: crashed: WARNING in sys_perf_event_open representative crash: WARNING in sys_perf_event_open, types: [WARNING] the chunk can be dropped testing without sub-chunk 4/5 testing commit 5abde62465222edd3080b70099bd809f166d5d7d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: fa681d197f140811b359d3f1dccae78b9e567a5880f103ae9e70249dd6ef254b all runs: crashed: WARNING in sys_perf_event_open representative crash: WARNING in sys_perf_event_open, types: [WARNING] the chunk can be dropped testing without sub-chunk 5/5 testing commit 5abde62465222edd3080b70099bd809f166d5d7d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6b1a5008feae869790b33748a7ad09f1bc9a566121067835948bd5944f0ea346 all runs: crashed: WARNING in sys_perf_event_open representative crash: WARNING in sys_perf_event_open, types: [WARNING] the chunk can be dropped testing current HEAD 63c7049ef9d642ab60bb1eccf75b29dc40277664 testing commit 63c7049ef9d642ab60bb1eccf75b29dc40277664 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 150ed445cbb25ed1a14162a79e6885e677a4986aa0625a2eb051902306851e1e all runs: OK false negative chance: 0.000 # git bisect start 63c7049ef9d642ab60bb1eccf75b29dc40277664 5abde62465222edd3080b70099bd809f166d5d7d Bisecting: 7376 revisions left to test after this (roughly 13 steps) [ba5afb9a84df2e6b26a1b6389b98849cd16ea757] fs: rework listmount() implementation determine whether the revision contains the guilty commit revision 5abde62465222edd3080b70099bd809f166d5d7d crashed and is reachable testing commit ba5afb9a84df2e6b26a1b6389b98849cd16ea757 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0ee11a7a93634ea0a7e18a6e5fb740079cd42e5dccc0ce23c1f9dca503e77c39 all runs: OK false negative chance: 0.000 # git bisect bad ba5afb9a84df2e6b26a1b6389b98849cd16ea757 Bisecting: 2765 revisions left to test after this (roughly 12 steps) [49f4810356f7d4294ad63dc70fe3c65ca3b8ada9] Merge tag 'nfsd-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux determine whether the revision contains the guilty commit checking the merge base c7402612e2e61b76177f22e6e7f705adcbecc6fe no existing result, test the revision testing commit c7402612e2e61b76177f22e6e7f705adcbecc6fe gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 09a039d80ccbaa4c0d3662c9d46896d007717288cd2a1e7358d44683c44db804 all runs: crashed: WARNING in sys_perf_event_open representative crash: WARNING in sys_perf_event_open, types: [WARNING] testing commit 49f4810356f7d4294ad63dc70fe3c65ca3b8ada9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 76c7fb6e0421704a8a91d6436c3bb3f8b933751733a3f8abe9a01d8f69c1a987 all runs: OK false negative chance: 0.000 # git bisect bad 49f4810356f7d4294ad63dc70fe3c65ca3b8ada9 Bisecting: 1491 revisions left to test after this (roughly 11 steps) [d30e51aa7b1f6fa7dd78d4598d1e4c047fcc3fb9] Merge tag 'slab-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab determine whether the revision contains the guilty commit revision c7402612e2e61b76177f22e6e7f705adcbecc6fe crashed and is reachable testing commit d30e51aa7b1f6fa7dd78d4598d1e4c047fcc3fb9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 36d14325682a446825c5c96b1c1d7b49551344734a68b54234c5951e3ab66894 all runs: OK false negative chance: 0.000 # git bisect bad d30e51aa7b1f6fa7dd78d4598d1e4c047fcc3fb9 Bisecting: 640 revisions left to test after this (roughly 9 steps) [6d0dc8559c847e2dcd66c5dd93dbab3d3d887ff5] Merge tag 'soc-fixes-6.7-3a' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc determine whether the revision contains the guilty commit revision c7402612e2e61b76177f22e6e7f705adcbecc6fe crashed and is reachable testing commit 6d0dc8559c847e2dcd66c5dd93dbab3d3d887ff5 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a8f73f1a336da470cb50fb50d90c8f734d848397d260be673a5811c74dd114c1 all runs: OK false negative chance: 0.000 # git bisect bad 6d0dc8559c847e2dcd66c5dd93dbab3d3d887ff5 Bisecting: 316 revisions left to test after this (roughly 8 steps) [a4255b2e5c52abe4e94d320cf8276303e192d59d] Merge tag 'nf-23-12-20' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf determine whether the revision contains the guilty commit revision c7402612e2e61b76177f22e6e7f705adcbecc6fe crashed and is reachable testing commit a4255b2e5c52abe4e94d320cf8276303e192d59d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e0b189265b2b4f139a196bccc0bac50592f2fc49129132bc944d5b9e2afb6fd2 all runs: OK false negative chance: 0.000 # git bisect bad a4255b2e5c52abe4e94d320cf8276303e192d59d Bisecting: 158 revisions left to test after this (roughly 7 steps) [2cf4f94d8e8646803f8fb0facf134b0cd7fb691a] Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi determine whether the revision contains the guilty commit revision c7402612e2e61b76177f22e6e7f705adcbecc6fe crashed and is reachable testing commit 2cf4f94d8e8646803f8fb0facf134b0cd7fb691a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0b722f076713060d64b10d893f509cddafaa6fc700a996e79289f4dc40a13604 all runs: OK false negative chance: 0.000 # git bisect bad 2cf4f94d8e8646803f8fb0facf134b0cd7fb691a Bisecting: 80 revisions left to test after this (roughly 6 steps) [ae1914174a63a558113e80d24ccac2773f9f7b2b] cred: get rid of CONFIG_DEBUG_CREDENTIALS determine whether the revision contains the guilty commit revision c7402612e2e61b76177f22e6e7f705adcbecc6fe crashed and is reachable testing commit ae1914174a63a558113e80d24ccac2773f9f7b2b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 695febd621d149479174cc0811e594c9119e2dc269365f459ab06611eebb1edc all runs: crashed: WARNING in sys_perf_event_open representative crash: WARNING in sys_perf_event_open, types: [WARNING] # git bisect good ae1914174a63a558113e80d24ccac2773f9f7b2b Bisecting: 40 revisions left to test after this (roughly 5 steps) [ef6a7c27db54f06cc5c79f5a756d649828d42f3d] Merge tag 'edac_urgent_for_v6.7_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras determine whether the revision contains the guilty commit revision ae1914174a63a558113e80d24ccac2773f9f7b2b crashed and is reachable testing commit ef6a7c27db54f06cc5c79f5a756d649828d42f3d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ed5004cad0c375d89b9be040df7bd9a725eebbdf0f2fd8b519271ece7cdb28e2 all runs: crashed: WARNING in sys_perf_event_open representative crash: WARNING in sys_perf_event_open, types: [WARNING] # git bisect good ef6a7c27db54f06cc5c79f5a756d649828d42f3d Bisecting: 21 revisions left to test after this (roughly 4 steps) [6d04b70ea48b2d84ebf6cd9ad9b01ba50a58542e] Merge tag 'dmaengine-fix-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine determine whether the revision contains the guilty commit revision c7402612e2e61b76177f22e6e7f705adcbecc6fe crashed and is reachable testing commit 6d04b70ea48b2d84ebf6cd9ad9b01ba50a58542e gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: da7b93eabf64b84879ca7d34948ede4558a76c448d5bb50ec7715976b5b406ca all runs: crashed: WARNING in sys_perf_event_open representative crash: WARNING in sys_perf_event_open, types: [WARNING] # git bisect good 6d04b70ea48b2d84ebf6cd9ad9b01ba50a58542e Bisecting: 10 revisions left to test after this (roughly 4 steps) [177c2ffe69555dde28fad5ddb62a6d806982e53f] Merge tag 'perf_urgent_for_v6.7_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip determine whether the revision contains the guilty commit revision ef6a7c27db54f06cc5c79f5a756d649828d42f3d crashed and is reachable testing commit 177c2ffe69555dde28fad5ddb62a6d806982e53f gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3825629dc29936d1eefceabee16e216c1e80eca3cb90ba32fdc84826fafd532e all runs: OK false negative chance: 0.000 # git bisect bad 177c2ffe69555dde28fad5ddb62a6d806982e53f Bisecting: 6 revisions left to test after this (roughly 3 steps) [7f499ec27ca25c7faad74e15a6e2c72a1ea3e63c] Merge tag 'phy-fixes-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy determine whether the revision contains the guilty commit revision c7402612e2e61b76177f22e6e7f705adcbecc6fe crashed and is reachable testing commit 7f499ec27ca25c7faad74e15a6e2c72a1ea3e63c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: da3aca85c04b616848bdd0dd200c2f39a0581379c20084ae3dca2cff16aa9fff all runs: crashed: WARNING in sys_perf_event_open representative crash: WARNING in sys_perf_event_open, types: [WARNING] # git bisect good 7f499ec27ca25c7faad74e15a6e2c72a1ea3e63c Bisecting: 3 revisions left to test after this (roughly 2 steps) [accc98aff5c39fdc63bf0bac471b9c601aaf4755] Merge tag 'soundwire-6.7-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire determine whether the revision contains the guilty commit revision c7402612e2e61b76177f22e6e7f705adcbecc6fe crashed and is reachable testing commit accc98aff5c39fdc63bf0bac471b9c601aaf4755 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f0481af6ac5d52f1b5fc5343fffdbac4381a21df407dae6b71bbfb3fe658256a all runs: crashed: WARNING in sys_perf_event_open representative crash: WARNING in sys_perf_event_open, types: [WARNING] # git bisect good accc98aff5c39fdc63bf0bac471b9c601aaf4755 Bisecting: 1 revision left to test after this (roughly 1 step) [0e389834672c723435a44818ed2cabc4dad24429] Merge tag 'for-6.7-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux determine whether the revision contains the guilty commit revision accc98aff5c39fdc63bf0bac471b9c601aaf4755 crashed and is reachable testing commit 0e389834672c723435a44818ed2cabc4dad24429 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: fdbc87878232b25852f63a4ce5f082570f42f79065187e565f357b5878ff0a19 all runs: crashed: WARNING in sys_perf_event_open representative crash: WARNING in sys_perf_event_open, types: [WARNING] # git bisect good 0e389834672c723435a44818ed2cabc4dad24429 Bisecting: 0 revisions left to test after this (roughly 0 steps) [7e2c1e4b34f07d9aa8937fab88359d4a0fce468e] perf: Fix perf_event_validate_size() lockdep splat determine whether the revision contains the guilty commit checking the merge base a39b6ac3781d46ba18193c9dbb2110f31e9bffe9 no existing result, test the revision testing commit a39b6ac3781d46ba18193c9dbb2110f31e9bffe9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 253b60d0697adf5b4d4b831d55e278ee008179960b7c6f4d0745f46044d32c96 all runs: crashed: WARNING in sys_perf_event_open representative crash: WARNING in sys_perf_event_open, types: [WARNING] testing commit 7e2c1e4b34f07d9aa8937fab88359d4a0fce468e gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a0ef284994b1522fda988dae5d5b5717c9d41ae542e97d6ba6828bfdc4a0b963 all runs: OK false negative chance: 0.000 # git bisect bad 7e2c1e4b34f07d9aa8937fab88359d4a0fce468e 7e2c1e4b34f07d9aa8937fab88359d4a0fce468e is the first bad commit commit 7e2c1e4b34f07d9aa8937fab88359d4a0fce468e Author: Mark Rutland Date: Fri Dec 15 11:24:50 2023 +0000 perf: Fix perf_event_validate_size() lockdep splat When lockdep is enabled, the for_each_sibling_event(sibling, event) macro checks that event->ctx->mutex is held. When creating a new group leader event, we call perf_event_validate_size() on a partially initialized event where event->ctx is NULL, and so when for_each_sibling_event() attempts to check event->ctx->mutex, we get a splat, as reported by Lucas De Marchi: WARNING: CPU: 8 PID: 1471 at kernel/events/core.c:1950 __do_sys_perf_event_open+0xf37/0x1080 This only happens for a new event which is its own group_leader, and in this case there cannot be any sibling events. Thus it's safe to skip the check for siblings, which avoids having to make invasive and ugly changes to for_each_sibling_event(). Avoid the splat by bailing out early when the new event is its own group_leader. Fixes: 382c27f4ed28f803 ("perf: Fix perf_event_validate_size()") Closes: https://lore.kernel.org/lkml/20231214000620.3081018-1-lucas.demarchi@intel.com/ Closes: https://lore.kernel.org/lkml/ZXpm6gQ%2Fd59jGsuW@xpf.sh.intel.com/ Reported-by: Lucas De Marchi Reported-by: Pengfei Xu Signed-off-by: Mark Rutland Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20231215112450.3972309-1-mark.rutland@arm.com kernel/events/core.c | 10 ++++++++++ 1 file changed, 10 insertions(+) accumulated error probability: 0.00 culprit signature: a0ef284994b1522fda988dae5d5b5717c9d41ae542e97d6ba6828bfdc4a0b963 parent signature: 253b60d0697adf5b4d4b831d55e278ee008179960b7c6f4d0745f46044d32c96 revisions tested: 24, total time: 4h14m48.461831404s (build: 1h43m52.135742675s, test: 2h17m14.252324814s) first good commit: 7e2c1e4b34f07d9aa8937fab88359d4a0fce468e perf: Fix perf_event_validate_size() lockdep splat recipients (to): ["acme@kernel.org" "linux-perf-users@vger.kernel.org" "mark.rutland@arm.com" "mingo@redhat.com" "namhyung@kernel.org" "peterz@infradead.org" "peterz@infradead.org"] recipients (cc): ["adrian.hunter@intel.com" "alexander.shishkin@linux.intel.com" "irogers@google.com" "jolsa@kernel.org" "linux-kernel@vger.kernel.org" "mark.rutland@arm.com"]