Skip to content

syzkaller: fake coverage due to rt_sigaction #6015

@a-nogikh

Description

@a-nogikh

https://syzkaller.appspot.com/upstream/graph/fuzzing?Instances=ci-snapshot-upstream-root&Metrics=MaxPCs&Months=1

+200K fake PCs at the moment

There's the following SYZFAIL: too much cover report that hints at the way the coverage is generated.

program:
rt_sigaction(0xd, &(0x7f0000000040)={&(0x7f0000000380)="c441f96ec866400fe2dec441a16dfb46c7045300101000f00fc01e66410f6f150400000052c4637bf02640f5c4b93c10", 0xdc000006, 0x0, {[0x5]}}, 0x0, 0x8, &(0x7f0000000000))
r0 = socket$inet6_tcp(0xa, 0x1, 0x0)
sendmmsg$inet6(r0, &(0x7f0000003c00)=[{{0x0, 0x0, 0x0}}], 0x1, 0x63)
r1 = syz_init_net_socket$nl_rdma(0x10, 0x3, 0x10)
sendmsg$netlink(r1, &(0x7f00000001c0)={0x0, 0x0, &(0x7f0000000000)=[{&(0x7f0000005d00)=ANY=[@ANYBLOB="140100002d00010000000000fcdbdf250401f280080018000bac0f"], 0x114}], 0x1, 0x0, 0x0, 0x1}, 0x0)
mkdir(&(0x7f0000000080)='./file0\x00', 0x10e)

[   81.056528][   T49] Bluetooth: hci0: command tx timeout
[   81.060278][ T1311] ieee802154 phy0 wpan0: encryption failed: -22
[   81.062861][ T1311] ieee802154 phy1 wpan1: encryption failed: -22
[   81.214687][ T5316] SYZFAIL: too much cover
[   81.219992][ T5316] cov=886
[   81.220118][ T5316]  (errno 11: Resource temporarily unavailable)
[   81.316123][ T5301] SYZFAIL: child failed
[   81.323751][ T5301]  (errno 0: Success)
[   83.469609][ T5288] loop exited with status 67

I tried to run that program with syz-crush on a non-shapshot based instance with

--- a/pkg/instance/instance.go
+++ b/pkg/instance/instance.go
@@ -488,7 +488,7 @@ func ExecprogCmd(execprog, executor, OS, arch, vmType string, opts csource.Optio
                })
        }
        return fmt.Sprintf("%v -executor=%v -arch=%v%v -sandbox=%v"+
-               " -procs=%v -repeat=%v -threaded=%v -collide=%v -cover=0%v %v",
+               " -procs=%v -repeat=%v -threaded=%v -collide=%v -cover=1%v %v",
                execprog, executor, arch, osArg, opts.Sandbox,
                opts.Procs, repeatCount, opts.Threaded, opts.Collide,
                optionalArg, progFile)

but it didn't reproduce.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug in the syzkaller project (e.g. a crash or misbehavior).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions