Re: [syzbot] [ext4?] KASAN: use-after-free Read in __ext4_check_dir_entry (2)

From: syzbot
Date: Wed Jun 26 2024 - 04:10:11 EST


Hello,

syzbot tried to test the proposed patch but the build/boot failed:

scripts/extract-cert.c:46:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
scripts/extract-cert.c:59:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
scripts/sign-file.c:89:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
scripts/sign-file.c:102:9: warning: 'ERR_get_error_line' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
orc_dump.c:106:9: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations]
orc_dump.c:111:9: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations]
elf.c:135:9: error: 'elf_getshnum' is deprecated [-Werror=deprecated-declarations]
elf.c:140:9: error: 'elf_getshstrndx' is deprecated [-Werror=deprecated-declarations]
subcmd-util.h:56:23: error: pointer may be used after 'realloc' [-Werror=use-after-free]
subcmd-util.h:58:31: error: pointer may be used after 'realloc' [-Werror=use-after-free]


Tested on:

commit: e40ff213 ext4: force revalidation of directory pointer..
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel config: https://syzkaller.appspot.com/x/.config?x=9d7ea7de0cb32587
dashboard link: https://syzkaller.appspot.com/bug?extid=11af34d3c0711f233fd4
compiler: Debian clang version 15.0.6

Note: no patches were applied.