aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core/v4l2-async.c
diff options
context:
space:
mode:
authorJean Delvare <[email protected]>2021-05-25 15:03:36 +0000
committerWolfram Sang <[email protected]>2021-05-27 19:56:42 +0000
commite4d8716c3dcec47f1557024add24e1f3c09eb24b (patch)
tree0d8cdd7bf3fa76dd4bf0d3cd69d3f2e567869db9 /drivers/media/v4l2-core/v4l2-async.c
parenti2c: mpc: implement erratum A-004447 workaround (diff)
downloadkernel-e4d8716c3dcec47f1557024add24e1f3c09eb24b.tar.gz
kernel-e4d8716c3dcec47f1557024add24e1f3c09eb24b.zip
i2c: i801: Don't generate an interrupt on bus reset
Now that the i2c-i801 driver supports interrupts, setting the KILL bit in a attempt to recover from a timed out transaction triggers an interrupt. Unfortunately, the interrupt handler (i801_isr) is not prepared for this situation and will try to process the interrupt as if it was signaling the end of a successful transaction. In the case of a block transaction, this can result in an out-of-range memory access. This condition was reproduced several times by syzbot: https://syzkaller.appspot.com/bug?extid=ed71512d469895b5b34e https://syzkaller.appspot.com/bug?extid=8c8dedc0ba9e03f6c79e https://syzkaller.appspot.com/bug?extid=c8ff0b6d6c73d81b610e https://syzkaller.appspot.com/bug?extid=33f6c360821c399d69eb https://syzkaller.appspot.com/bug?extid=be15dc0b1933f04b043a https://syzkaller.appspot.com/bug?extid=b4d3fd1dfd53e90afd79 So disable interrupts while trying to reset the bus. Interrupts will be enabled again for the following transaction. Fixes: 636752bcb517 ("i2c-i801: Enable IRQ for SMBus transactions") Reported-by: [email protected] Signed-off-by: Jean Delvare <[email protected]> Acked-by: Andy Shevchenko <[email protected]> Cc: Jarkko Nikula <[email protected]> Tested-by: Jarkko Nikula <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-async.c')
0 files changed, 0 insertions, 0 deletions