Re: WARNING in generic_make_request_checks

From: Kees Cook
Date: Tue Nov 26 2019 - 23:55:18 EST


On Fri, Nov 22, 2019 at 04:05:01AM -0800, syzbot wrote:
> syzbot has bisected this bug to:
>
> commit a32e236eb93e62a0f692e79b7c3c9636689559b9
> Author: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
> Date: Fri Aug 3 19:22:09 2018 +0000
>
> Partially revert "block: fail op_is_write() requests to read-only
> partitions"
>
> bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=119503d2e00000
> start commit: 60f5a217 Merge tag 'usercopy-fix-v4.18-rc8' of git://git.k..
> git tree: upstream
> final crash: https://syzkaller.appspot.com/x/report.txt?x=139503d2e00000
> console output: https://syzkaller.appspot.com/x/log.txt?x=159503d2e00000
> kernel config: https://syzkaller.appspot.com/x/.config?x=2dc0cd7c2eefb46f
> dashboard link: https://syzkaller.appspot.com/bug?extid=21cfe1f803e0e158acf1
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17b87bfc400000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=117ccc8c400000
>
> Reported-by: syzbot+21cfe1f803e0e158acf1@xxxxxxxxxxxxxxxxxxxxxxxxx
> Fixes: a32e236eb93e ("Partially revert "block: fail op_is_write() requests
> to read-only partitions"")
>
> For information about bisection process see: https://goo.gl/tpsmEJ#bisection

#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 8b2ded1c94c06f841f8c1612bcfa33c85012a36b

See https://lore.kernel.org/lkml/20191125174037.GA768@xxxxxxxxxxxxx/

--
Kees Cook