Re: assert failed: bp->b_vp == vp

1 view
Skip to first unread message

syzbot

unread,
Jul 12, 2022, 9:45:42 PM7/12/22
to Chuck Silvers, ch...@chuq.com, syzkaller-...@googlegroups.com
> #syz test

"Index:" does not look like a valid git repo address.

>
> Index: src/sys/uvm/uvm_swap.c
> ===================================================================
> RCS file: /home/chs/netbsd/cvs/src/sys/uvm/uvm_swap.c,v
> retrieving revision 1.206
> diff -u -p -r1.206 uvm_swap.c
> --- src/sys/uvm/uvm_swap.c 23 Aug 2021 13:08:18 -0000 1.206
> +++ src/sys/uvm/uvm_swap.c 11 Jul 2022 17:05:56 -0000
> @@ -1190,6 +1190,22 @@ again:
> */
>
> /*
> + * swopen: allow the initial open from uvm_swap_init() and reject all others.
> + */
> +
> +static int
> +swopen(dev_t dev, int flag, int mode, struct lwp *l)
> +{
> + static bool inited = false;
> +
> + if (!inited) {
> + inited = true;
> + return 0;
> + }
> + return ENODEV;
> +}
> +
> +/*
> * swstrategy: perform I/O on the drum
> *
> * => we must map the i/o request from the drum to the correct swapdev.
> @@ -1308,8 +1324,8 @@ swwrite(dev_t dev, struct uio *uio, int
> }
>
> const struct bdevsw swap_bdevsw = {
> - .d_open = nullopen,
> - .d_close = nullclose,
> + .d_open = swopen,
> + .d_close = noclose,
> .d_strategy = swstrategy,
> .d_ioctl = noioctl,
> .d_dump = nodump,

syzbot

unread,
Jul 12, 2022, 10:24:15 PM7/12/22
to ch...@chuq.com, syzkaller-...@googlegroups.com
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+90a23d...@syzkaller.appspotmail.com

Tested on:

commit: 17ae6630 make.1: fix markup for options, they are not ..
git tree: netbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=1358d1c8080000
kernel config: https://syzkaller.appspot.com/x/.config?x=739e57438eb9ed9e
dashboard link: https://syzkaller.appspot.com/bug?extid=90a23d2f19e5a0a302b3
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63
patch: https://syzkaller.appspot.com/x/patch.diff?x=1355927c080000

Note: testing is done by a robot and is best-effort only.
Reply all
Reply to author
Forward
0 new messages