Re: BUG: unable to handle kernel NULL pointer dereference in write_port

From: Dmitry Vyukov
Date: Wed Nov 21 2018 - 05:26:09 EST


On Wed, Nov 21, 2018 at 11:11 AM, Kyungtae Kim <kt0755@xxxxxxxxx> wrote:
> Thank you for your reply.
> But I think this kind of crash can occur in real PC as well, and I'm
> just thinking of some way to stop it in the first place (if possible).
> because malicious users can use this, so as to make the whole system
> (kernel) work incorrectly.

If I am not mistaken this program writes to /dev/port. /dev/port is
strictly privileged.

p.s. if you are extending syzkaller to do new things, it can make
sense to send pull requests upstream. Then we can review the changes
and figure out what should be tested, and what does not make sense to
fuzz. E.g. also don't give /dev/mem to syzkaller ;)