Re: [syzbot] [bluetooth?] KASAN: slab-use-after-free Write in sco_sock_timeout

From: syzbot
Date: Thu Nov 16 2023 - 20:12:15 EST


Hello,

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

net/bluetooth/sco.c:418:26: error: static assertion failed due to requirement '__builtin_types_compatible_p(struct sock, struct sock *) || __builtin_types_compatible_p(struct sock, void)': pointer type mismatch in container_of()


Tested on:

commit: 8de1e7af Merge branch 'for-next/core' into for-kernelci
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
kernel config: https://syzkaller.appspot.com/x/.config?x=3e6feaeda5dcbc27
dashboard link: https://syzkaller.appspot.com/bug?extid=4c0d0c4cde787116d465
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64
patch: https://syzkaller.appspot.com/x/patch.diff?x=1417b23f680000