Re: [syzbot] [dri?] [usb?] KASAN: slab-out-of-bounds Read in drm_property_add_enum
From: syzbot
Date: Wed Aug 19 2026 - 02:27:39 EST
> Retry
> #syz test diff --git a/drivers/gpu/drm/gud/gud_connector.c
I've failed to parse your command.
Did you perhaps forget to provide the branch name, or added an extra ':'?
Please use one of the two supported formats:
1. #syz test
2. #syz test: repo branch-or-commit-hash
Note the lack of ':' in option 1.
> b/drivers/gpu/drm/gud/gud_connector.c index ea0cca58b7c89..8141c3a1e30ad
> 100644 --- a/drivers/gpu/drm/gud/gud_connector.c +++
> b/drivers/gpu/drm/gud/gud_connector.c @@ -396,8 +396,16 @@ static int
> gud_connector_add_tv_mode(struct gud_device *gdrm, struct drm_connect }
> num_modes = ret / GUD_CONNECTOR_TV_MODE_NAME_LEN; - for (i = 0; i <
> num_modes; i++) - modes[i] = &buf[i * GUD_CONNECTOR_TV_MODE_NAME_LEN]; + for
> (i = 0; i < num_modes; i++) { + char *mode = &buf[i *
> GUD_CONNECTOR_TV_MODE_NAME_LEN]; + + if (!memchr(mode, '\0',
> GUD_CONNECTOR_TV_MODE_NAME_LEN)) { + ret = -EIO; + goto free; + } + +
> modes[i] = mode; + } ret =
> drm_mode_create_tv_properties_legacy(connector->dev, num_modes, modes); free
> :
> On Wednesday, August 19, 2026 at 2:21:05 PM UTC+8 syzbot wrote:
>
>> Hello,
>>
>> syzbot tried to test the proposed patch but the build/boot failed:
>>
>> failed to apply patch:
>> error: corrupt patch at line 6
>>
>>
>>
>> Tested on:
>>
>> commit: bd5f485f Merge tag 'soc-arm-7.3' of git://git.kernel.o..
>> git tree: upstream
>> kernel config: https://syzkaller.appspot.com/x/.config?x=65bd434865e8f85c
>> dashboard link:
>> https://syzkaller.appspot.com/bug?extid=9ae8e7884e451eaed5b4
>> compiler:
>> userspace arch: i386
>> patch: https://syzkaller.appspot.com/x/patch.diff?x=168a7679580000
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@xxxxxxxxxxxxxxxx.
> To view this discussion visit https://groups.google.com/d/msgid/syzkaller-bugs/ba7a07cf-e8e9-4f55-8edf-48c994c52a79n%40googlegroups.com.