Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Race in Capture.WriteDecryptionSecret() #20

Open
stv0g opened this issue Feb 8, 2023 · 0 comments
Open

Data Race in Capture.WriteDecryptionSecret() #20

stv0g opened this issue Feb 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@stv0g
Copy link
Collaborator

stv0g commented Feb 8, 2023

==================
WARNING: DATA RACE
Read at 0x00c0003aee57 by goroutine 173:
  encoding/binary.littleEndian.PutUint32()
      /home/stv0g/.gvm/gos/go1.20/src/encoding/binary/binary.go:85 +0x194
  github.com/gopacket/gopacket/pcapgo.(*NgWriter).WriteDecryptionSecretsBlock()
      /root/go/pkg/mod/github.com/gopacket/gopacket@v0.1.0/pcapgo/ngwrite_dsb.go:95 +0x198
  github.com/stv0g/gont/pkg.(*Capture).WriteDecryptionSecret()
      /root/go/pkg/mod/github.com/stv0g/gont@v1.6.4/pkg/capture.go:319 +0x298
  github.com/stv0g/gont/pkg.(*Network).KeyLogPipe.func1()
      /root/go/pkg/mod/github.com/stv0g/gont@v1.6.4/pkg/network.go:288 +0x25c

Previous write at 0x00c0003aee57 by goroutine 172:
  encoding/binary.littleEndian.PutUint32()
      /home/stv0g/.gvm/gos/go1.20/src/encoding/binary/binary.go:89 +0x1e4
  github.com/gopacket/gopacket/pcapgo.(*NgWriter).WriteDecryptionSecretsBlock()
      /root/go/pkg/mod/github.com/gopacket/gopacket@v0.1.0/pcapgo/ngwrite_dsb.go:95 +0x198
  github.com/stv0g/gont/pkg.(*Capture).WriteDecryptionSecret()
      /root/go/pkg/mod/github.com/stv0g/gont@v1.6.4/pkg/capture.go:319 +0x298
  github.com/stv0g/gont/pkg.(*Network).KeyLogPipe.func1()
      /root/go/pkg/mod/github.com/stv0g/gont@v1.6.4/pkg/network.go:288 +0x25c

Goroutine 173 (running) created at:
  github.com/stv0g/gont/pkg.(*Network).KeyLogPipe()
      /root/go/pkg/mod/github.com/stv0g/gont@v1.6.4/pkg/network.go:279 +0x284
  github.com/stv0g/gont/pkg.(*BaseNode).StartWith()
      /root/go/pkg/mod/github.com/stv0g/gont@v1.6.4/pkg/base_node_run.go:150 +0x900
  github.com/stv0g/cunicu/test/e2e/nodes.(*WireGuardInterface).PingPeer()
      /home/stv0g/workspace/cunicu/test/e2e/nodes/wg_interface.go:167 +0x1e8
  github.com/stv0g/cunicu/test/e2e/nodes.AgentList.PingPeers.func1()
      /home/stv0g/workspace/cunicu/test/e2e/nodes/agent_list.go:129 +0x48
  github.com/stv0g/cunicu/test/e2e/nodes.AgentList.ForEachInterfacePairOnedir.func1()
      /home/stv0g/workspace/cunicu/test/e2e/nodes/agent_list.go:111 +0x4c
  golang.org/x/sync/errgroup.(*Group).Go.func1()
      /root/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x6c

Goroutine 172 (running) created at:
  github.com/stv0g/gont/pkg.(*Network).KeyLogPipe()
      /root/go/pkg/mod/github.com/stv0g/gont@v1.6.4/pkg/network.go:279 +0x284
  github.com/stv0g/gont/pkg.(*BaseNode).StartWith()
      /root/go/pkg/mod/github.com/stv0g/gont@v1.6.4/pkg/base_node_run.go:150 +0x900
  github.com/stv0g/cunicu/test/e2e/nodes.(*WireGuardInterface).PingPeer()
      /home/stv0g/workspace/cunicu/test/e2e/nodes/wg_interface.go:167 +0x1e8
  github.com/stv0g/cunicu/test/e2e/nodes.AgentList.PingPeers.func1()
      /home/stv0g/workspace/cunicu/test/e2e/nodes/agent_list.go:129 +0x48
  github.com/stv0g/cunicu/test/e2e/nodes.AgentList.ForEachInterfacePairOnedir.func1()
      /home/stv0g/workspace/cunicu/test/e2e/nodes/agent_list.go:111 +0x4c
  golang.org/x/sync/errgroup.(*Group).Go.func1()
      /root/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x6c
==================
@stv0g stv0g added the bug Something isn't working label Feb 8, 2023
@stv0g stv0g changed the title Data Race in Capture.WriteDecryptionSecret() Data Race in Capture.WriteDecryptionSecret() May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant