On Thu, Mar 11, 2021 at 11:47:17PM -0800, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 28806e4d Merge tag 'media/v5.12-2' of git://git.kernel.org.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=11192342d00000 > kernel config: https://syzkaller.appspot.com/x/.config?x=6bcf96204c1b8e77 > dashboard link: https://syzkaller.appspot.com/bug?extid=ffb0b3ffa6cfbc7d7b3f > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1083223ad00000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14345f0ad00000 > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+ffb0b3ffa6cfbc7d7b3f@xxxxxxxxxxxxxxxxxxxxxxxxx > > ------------[ cut here ]------------ > WARNING: CPU: 1 PID: 8406 at drivers/i2c/i2c-core-base.c:2021 __i2c_transfer+0xa87/0x17d0 drivers/i2c/i2c-core-base.c:2021 Yes, it can be argued that userspace should not be able to trigger a WARNING. For in-kernel users, the WARN is really helpful, though. I will add sanity checks much earlier to i2c-dev.c which will not be that noisy.
Attachment:
signature.asc
Description: PGP signature