bisecting fixing commit since 84316ca4e100d8cbfccd9f774e23817cb2059868 building syzkaller on 3c7fef3361a6007112b26adc1c5a550189ef43fe testing commit 84316ca4e100d8cbfccd9f774e23817cb2059868 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 590211aaf1e4433ec9c7b5575611272c1d4df4fbc88432ac9548ed5e1b5ab316 all runs: crashed: WARNING in bpf_test_run testing current HEAD 571fa247ab411f3233eeaaf837c6e646a513b9f8 testing commit 571fa247ab411f3233eeaaf837c6e646a513b9f8 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e46e705aca296dad968f62eb9b7e0e7b73b0086157ef598a7a2d916c2f0011e7 all runs: OK # git bisect start 571fa247ab411f3233eeaaf837c6e646a513b9f8 84316ca4e100d8cbfccd9f774e23817cb2059868 Bisecting: 14826 revisions left to test after this (roughly 14 steps) [a022f7d575bb68c35be0a9ea68860411dec652fe] Merge tag 'block-5.14-2021-07-08' of git://git.kernel.dk/linux-block testing commit a022f7d575bb68c35be0a9ea68860411dec652fe compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6ac19a12f5d7db609735491b142fa3f24d4357dff68e9a25a108d1632783ac08 run #0: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #1: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #2: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #3: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #4: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #5: boot failed: BUG: sleeping function called from invalid context in stack_depot_save run #6: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #7: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #8: boot failed: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM) run #9: boot failed: BUG: sleeping function called from invalid context in stack_depot_save # git bisect skip a022f7d575bb68c35be0a9ea68860411dec652fe Bisecting: 14826 revisions left to test after this (roughly 14 steps) [b0ee5e1ec44afda53aaa37f8c41ad00d170506cb] btrfs: drop from __GFP_HIGHMEM all allocations testing commit b0ee5e1ec44afda53aaa37f8c41ad00d170506cb compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9eac97eec4fe4874239d2ff06b6308edcb024f835c837dc1bd3a4ee3c94a35af all runs: crashed: WARNING in bpf_test_run # git bisect good b0ee5e1ec44afda53aaa37f8c41ad00d170506cb Bisecting: 6243 revisions left to test after this (roughly 13 steps) [1b4f3dfb4792f03b139edf10124fcbeb44e608e6] Merge tag 'usb-serial-5.15-rc1' of https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into usb-next testing commit 1b4f3dfb4792f03b139edf10124fcbeb44e608e6 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6d4e78528c702e2d938d8cb4ec69a943c49c4f9f0b2a309be340b495900cbc85 run #0: crashed: KASAN: use-after-free Read in __d_alloc run #1: crashed: KASAN: use-after-free Read in __d_alloc run #2: crashed: KASAN: use-after-free Read in __d_alloc run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK reproducer seems to be flaky # git bisect good 1b4f3dfb4792f03b139edf10124fcbeb44e608e6 Bisecting: 3215 revisions left to test after this (roughly 12 steps) [23852bec534a1633dc08f4df88b8493ae99953a9] Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma testing commit 23852bec534a1633dc08f4df88b8493ae99953a9 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 141655fca04ee7a7569cbedc1198ff57b9573a10f36c1f43a81835031305045b run #0: OK run #1: crashed: KASAN: use-after-free Read in __d_alloc run #2: crashed: KASAN: use-after-free Read in __d_alloc run #3: crashed: KASAN: use-after-free Read in __d_alloc run #4: crashed: KASAN: use-after-free Read in __d_alloc run #5: crashed: KASAN: use-after-free Read in __d_alloc run #6: crashed: KASAN: use-after-free Read in __d_alloc run #7: crashed: KASAN: use-after-free Read in __d_alloc run #8: boot failed: possible deadlock in blktrans_open run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK # git bisect good 23852bec534a1633dc08f4df88b8493ae99953a9 Bisecting: 1607 revisions left to test after this (roughly 11 steps) [4c00e1e2e58eefb288ba9ef585b6f19e1f33bf1e] Merge tag 'linux-watchdog-5.15-rc1' of git://www.linux-watchdog.org/linux-watchdog testing commit 4c00e1e2e58eefb288ba9ef585b6f19e1f33bf1e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 58c9a2ef94948eeb9b56032373fe4bf474193326e3c6e933b81aa7bca6417ba9 run #0: boot failed: KFENCE: use-after-free in kvm_fastop_exception run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK # git bisect bad 4c00e1e2e58eefb288ba9ef585b6f19e1f33bf1e Bisecting: 822 revisions left to test after this (roughly 10 steps) [4e71add02821bdd204dd29c35e66baecc9b6a235] Merge branch 'stable/for-linus-5.15-rc0' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft testing commit 4e71add02821bdd204dd29c35e66baecc9b6a235 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 091b4cc2f841fb458a942c07bf28d336b762ebc9e587fdbbe00e445f7e042eaf run #0: crashed: KASAN: use-after-free Read in __d_alloc run #1: crashed: KASAN: use-after-free Read in __d_alloc run #2: crashed: KASAN: use-after-free Read in __d_alloc run #3: crashed: KASAN: use-after-free Read in __d_alloc run #4: crashed: KASAN: use-after-free Read in __d_alloc run #5: crashed: KASAN: use-after-free Read in __d_alloc run #6: crashed: KASAN: use-after-free Read in __d_alloc run #7: crashed: KASAN: use-after-free Read in __d_alloc run #8: boot failed: possible deadlock in blktrans_open run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK # git bisect good 4e71add02821bdd204dd29c35e66baecc9b6a235 Bisecting: 383 revisions left to test after this (roughly 9 steps) [27151f177827d478508e756c7657273261aaf8a9] Merge tag 'perf-tools-for-v5.15-2021-09-04' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux testing commit 27151f177827d478508e756c7657273261aaf8a9 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 02d0d19a50e20d644a4adf8386e8d6966810902617a2d6af5419877134fc190f all runs: OK # git bisect bad 27151f177827d478508e756c7657273261aaf8a9 Bisecting: 224 revisions left to test after this (roughly 8 steps) [3fe617ccafd6f5bb33c2391d6f4eeb41c1fd0151] Enable '-Werror' by default for all kernel builds testing commit 3fe617ccafd6f5bb33c2391d6f4eeb41c1fd0151 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 0b39ba42c454c37d980192db6878f14bc1a90c6447eedcf5981931cb571f8a40 run #0: crashed: WARNING: ODEBUG bug in netdev_run_todo run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: OK run #17: OK run #18: OK run #19: OK # git bisect good 3fe617ccafd6f5bb33c2391d6f4eeb41c1fd0151 Bisecting: 112 revisions left to test after this (roughly 7 steps) [71efc48a4cbd208707b4ee4464b9eabd3b6438aa] perf evsel: Separate rlimit increase from evsel__open_cpu() testing commit 71efc48a4cbd208707b4ee4464b9eabd3b6438aa compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 96bc1d18eb8835ad7371f6267d8c7cf29f968b7576c57f5b08b7e3fcd2910398 all runs: crashed: WARNING in bpf_test_run # git bisect good 71efc48a4cbd208707b4ee4464b9eabd3b6438aa Bisecting: 56 revisions left to test after this (roughly 6 steps) [e07af2626643293fa16df655979e7963250abc63] Merge tag 'arc-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc testing commit e07af2626643293fa16df655979e7963250abc63 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 0b39ba42c454c37d980192db6878f14bc1a90c6447eedcf5981931cb571f8a40 all runs: OK # git bisect bad e07af2626643293fa16df655979e7963250abc63 Bisecting: 27 revisions left to test after this (roughly 5 steps) [f35534a2bcc7fd614a11aa7e3d91a0b1d6c962fb] ARC: mm: hack to allow 2 level build with 4 level code testing commit f35534a2bcc7fd614a11aa7e3d91a0b1d6c962fb compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7870ae8c12e9871bc7d63fc52b0134307bf7b9950b50ae1204259082429946ff all runs: crashed: WARNING in bpf_test_run # git bisect good f35534a2bcc7fd614a11aa7e3d91a0b1d6c962fb Bisecting: 13 revisions left to test after this (roughly 4 steps) [fb31f0a499332a053477ed57312b214e42476e6d] riscv: fix the global name pfn_base confliction error testing commit fb31f0a499332a053477ed57312b214e42476e6d compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2f6417f8953ff1b91c1ca8478c100735bb39e1d5f8e4f1968245e2c75e7bb4b7 run #0: basic kernel testing failed: possible deadlock in fs_reclaim_acquire run #1: crashed: WARNING in bpf_test_run run #2: crashed: WARNING in bpf_test_run run #3: crashed: WARNING in bpf_test_run run #4: crashed: WARNING in bpf_test_run run #5: crashed: WARNING in bpf_test_run run #6: crashed: WARNING in bpf_test_run run #7: crashed: WARNING in bpf_test_run run #8: crashed: WARNING in bpf_test_run run #9: crashed: WARNING in bpf_test_run run #10: crashed: WARNING in bpf_test_run run #11: crashed: WARNING in bpf_test_run run #12: crashed: WARNING in bpf_test_run run #13: crashed: WARNING in bpf_test_run run #14: crashed: WARNING in bpf_test_run run #15: crashed: WARNING in bpf_test_run run #16: crashed: WARNING in bpf_test_run run #17: crashed: WARNING in bpf_test_run run #18: crashed: WARNING in bpf_test_run run #19: crashed: WARNING in bpf_test_run # git bisect good fb31f0a499332a053477ed57312b214e42476e6d Bisecting: 6 revisions left to test after this (roughly 3 steps) [c24a19674258dcc968a198d8e0d4717c8f27700c] riscv: add support for hugepage migration testing commit c24a19674258dcc968a198d8e0d4717c8f27700c compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2f6417f8953ff1b91c1ca8478c100735bb39e1d5f8e4f1968245e2c75e7bb4b7 run #0: basic kernel testing failed: BUG: sleeping function called from invalid context in stack_depot_save run #1: crashed: WARNING in bpf_test_run run #2: crashed: WARNING in bpf_test_run run #3: crashed: WARNING in bpf_test_run run #4: crashed: WARNING in bpf_test_run run #5: crashed: WARNING in bpf_test_run run #6: crashed: WARNING in bpf_test_run run #7: crashed: WARNING in bpf_test_run run #8: crashed: WARNING in bpf_test_run run #9: crashed: WARNING in bpf_test_run run #10: crashed: WARNING in bpf_test_run run #11: crashed: WARNING in bpf_test_run run #12: crashed: WARNING in bpf_test_run run #13: crashed: WARNING in bpf_test_run run #14: crashed: WARNING in bpf_test_run run #15: crashed: WARNING in bpf_test_run run #16: crashed: WARNING in bpf_test_run run #17: crashed: WARNING in bpf_test_run run #18: crashed: WARNING in bpf_test_run run #19: crashed: WARNING in bpf_test_run # git bisect good c24a19674258dcc968a198d8e0d4717c8f27700c Bisecting: 3 revisions left to test after this (roughly 2 steps) [2dde02ab6d1a725ddccc7144ff6bf5f55d37f916] ARC: mm: support 3 levels of page tables testing commit 2dde02ab6d1a725ddccc7144ff6bf5f55d37f916 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7870ae8c12e9871bc7d63fc52b0134307bf7b9950b50ae1204259082429946ff all runs: crashed: WARNING in bpf_test_run # git bisect good 2dde02ab6d1a725ddccc7144ff6bf5f55d37f916 Bisecting: 1 revision left to test after this (roughly 1 step) [56809a28d45fcad94b28cfd614600568c0d46545] ARC: mm: vmalloc sync from kernel to user table to update PMD ... testing commit 56809a28d45fcad94b28cfd614600568c0d46545 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7870ae8c12e9871bc7d63fc52b0134307bf7b9950b50ae1204259082429946ff all runs: crashed: WARNING in bpf_test_run # git bisect good 56809a28d45fcad94b28cfd614600568c0d46545 Bisecting: 0 revisions left to test after this (roughly 0 steps) [063df71a574b88e94391a3a719cf66d1b46df884] Merge tag 'riscv-for-linus-5.15-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux testing commit 063df71a574b88e94391a3a719cf66d1b46df884 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 0b39ba42c454c37d980192db6878f14bc1a90c6447eedcf5981931cb571f8a40 all runs: OK # git bisect bad 063df71a574b88e94391a3a719cf66d1b46df884 063df71a574b88e94391a3a719cf66d1b46df884 is the first bad commit commit 063df71a574b88e94391a3a719cf66d1b46df884 Merge: 3fe617ccafd6 c24a19674258 Author: Linus Torvalds Date: Sun Sep 5 11:31:23 2021 -0700 Merge tag 'riscv-for-linus-5.15-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux Pull RISC-V updates from Palmer Dabbelt: - support PC-relative instructions (auipc and branches) in kprobes - support for forced IRQ threading - support for the hlt/nohlt kernel command line options, via the generic idle loop - show the edge/level triggered behavior of interrupts in /proc/interrupts - a handful of cleanups to our address mapping mechanisms - support for allocating gigantic hugepages via CMA - support for the undefined behavior sanitizer (UBSAN) - a handful of cleanups to the VDSO that allow the kernel to build with LLD. - support for hugepage migration * tag 'riscv-for-linus-5.15-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: (21 commits) riscv: add support for hugepage migration RISC-V: Fix VDSO build for !MMU riscv: use strscpy to replace strlcpy riscv: explicitly use symbol offsets for VDSO riscv: Enable Undefined Behavior Sanitizer UBSAN riscv: Keep the riscv Kconfig selects sorted riscv: Support allocating gigantic hugepages using CMA riscv: fix the global name pfn_base confliction error riscv: Move early fdt mapping creation in its own function riscv: Simplify BUILTIN_DTB device tree mapping handling riscv: Use __maybe_unused instead of #ifdefs around variable declarations riscv: Get rid of map_size parameter to create_kernel_page_table riscv: Introduce va_kernel_pa_offset for 32-bit kernel riscv: Optimize kernel virtual address conversion macro dt-bindings: riscv: add starfive jh7100 bindings riscv: Enable GENERIC_IRQ_SHOW_LEVEL riscv: Enable idle generic idle loop riscv: Allow forced irq threading riscv: Implement thread_struct whitelist for hardened usercopy riscv: kprobes: implement the branch instructions ... .../devicetree/bindings/riscv/starfive.yaml | 27 +++++ arch/riscv/Kconfig | 12 +- arch/riscv/Makefile | 6 + arch/riscv/include/asm/page.h | 21 +--- arch/riscv/include/asm/processor.h | 8 ++ arch/riscv/include/asm/vdso.h | 23 ++-- arch/riscv/kernel/probes/decode-insn.c | 5 +- arch/riscv/kernel/probes/simulate-insn.c | 112 ++++++++++++++++++ arch/riscv/kernel/setup.c | 2 +- arch/riscv/kernel/vdso/Makefile | 26 ++--- arch/riscv/kernel/vdso/gen_vdso_offsets.sh | 5 + arch/riscv/kernel/vdso/so2s.sh | 6 - arch/riscv/mm/init.c | 130 +++++++++------------ 13 files changed, 256 insertions(+), 127 deletions(-) create mode 100644 Documentation/devicetree/bindings/riscv/starfive.yaml create mode 100755 arch/riscv/kernel/vdso/gen_vdso_offsets.sh delete mode 100755 arch/riscv/kernel/vdso/so2s.sh Reproducer flagged being flaky revisions tested: 18, total time: 5h16m13.506106302s (build: 2h7m23.704469351s, test: 3h6m24.705167828s) first good commit: 063df71a574b88e94391a3a719cf66d1b46df884 Merge tag 'riscv-for-linus-5.15-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux recipients (to): ["aou@eecs.berkeley.edu" "linux-riscv@lists.infradead.org" "palmer@dabbelt.com" "paul.walmsley@sifive.com" "torvalds@linux-foundation.org"] recipients (cc): ["alex@ghiti.fr" "anup@brainfault.org" "atish.patra@wdc.com" "linux-kernel@vger.kernel.org" "vitaly.wool@konsulko.com"]