Re: [syzbot] [bluetooth?] KASAN: slab-use-after-free Write in hci_conn_drop (2)

From: syzbot
Date: Thu Nov 02 2023 - 23:54:12 EST


Hello,

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

net/bluetooth/hci_sysfs.c:16:25: error: incomplete definition of type 'struct sco_conn'
net/bluetooth/hci_sysfs.c:16:25: error: offsetof of incomplete type 'struct sco_conn'
net/bluetooth/hci_sysfs.c:16:19: error: initializing 'struct sco_conn *' with an expression of incompatible type 'void'
net/bluetooth/hci_sysfs.c:17:5: error: incomplete definition of type 'struct sco_conn'


Tested on:

commit: 8de1e7af Merge branch 'for-next/core' into for-kernelci
git tree: git://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=1683f76f1b20b826de67
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=103600ef680000