Hello list, I'm experiencing crashes in wg_allowedips_insert_v4 and wg_allowedips_insert_v6 in the wireguard kernel module. It happens both with the current snapshot (0.0.20190227-wg1~bionic) and the current git master (65e1f283). It seems to be caused by commit 20a230b3 (allowedips: maintain per-peer list of allowedips), since I can't trigger the bug(s) after reverting that commit. I have attached a dmesg dump of one general protection fault, and included two scripts below which triggers the bug(s). I am running Ubuntu 18.04 x86_64 with mainline linux 5.0.5 from https://kernel.ubuntu.com/~kernel-ppa/mainline. /Mikma #!/bin/sh name=wgtest key="pUZ1gXtFRRNeJFcBx2cGLELdeJTA00nTdQMuHjMYI2E=" ips=" 0.0.0.0/0 10.0.0.0/8 100.64.0.0/10 172.16.0.0/12 192.168.0.0/16 " allowed_ips=$(echo $ips | tr ' ' ',') ip l add $name type wireguard wg set $name peer $key allowed-ips $allowed_ips wg set $name peer $key allowed-ips '0.0.0.0/0' #!/bin/sh name=wgtest key="pUZ1gXtFRRNeJFcBx2cGLELdeJTA00nTdQMuHjMYI2E=" ips=" ::/0 17e5:9cdb:34ce:1800::/111 5000::/4 eb3f:fbec:5000::/37 9730:9636:d403:e000::/75 " allowed_ips=$(echo $ips | tr ' ' ',') ip l add $name type wireguard wg set $name peer $key allowed-ips $allowed_ips wg set $name peer $key allowed-ips '::/0'