Summary: | After upgrade of net/syncthing 0.11.18 -> 0.11.23 in jail, the jail causes entire host to crash | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Niklaas Baudet von Gersdorff <me> | ||||
Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
Status: | Closed DUPLICATE | ||||||
Severity: | Affects Only Me | CC: | brd, peter, swills, voltagex | ||||
Priority: | --- | Keywords: | crash | ||||
Version: | 10.1-RELEASE | ||||||
Hardware: | amd64 | ||||||
OS: | Any | ||||||
See Also: |
https://github.com/syncthing/syncthing/issues/2090 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201913 |
||||||
Attachments: |
|
Description
Niklaas Baudet von Gersdorff
2015-09-08 20:06:57 UTC
syncthing does something strange with its use of local ipv6 multicast and crashes the kernel when it exits. This is definitely a kernel bug - userland apps should not be able to crash the kernel, even if they are doing something odd. In the meantime, you can work around it by DISABLING local announce. If you can't do it through the UI, you can do it by editing the config.xml while syncthing is not running. Normally it is in ~/.config/syncthing/config.xml but you can configure it to be elsewhere. change: <localAnnounceEnabled>true</localAnnounceEnabled> to <localAnnounceEnabled>false</localAnnounceEnabled> When you next start up syncthing, it won't do the weird thing with this line: <localAnnounceMCAddr>[ff32::5222]:21026</localAnnounceMCAddr> .. which is causing the kernel panic. There's a panic trace in bug #201913 There's several upstream bugs, but this one has discussion of using the wrong address: https://github.com/syncthing/syncthing/issues/2090 There's a few others.. if you search the issues list for multicast, you'll see that you can also delete the contents of <localAnnounceMCAddr> and leave localannounce enabled - that limits syncthing local announce on ipv4, and as a side effect to one daemon per machine - and it can't run like that in a jail anyway as jails can't bind to interface broadcast addresses. Anyway, I'm mentioning it here because it is possible to do limited ipv4 local announce if you need it. Thank you for the workaround. It works. In case you need further information to debug please don't hesitate to contact me. Cannot reproduce with the kernel from 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 02:10:02 UTC 2016 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 Have tested using syncthing v0.13.4 (portdowngrade net/syncthing r415988) and syncthing v0.11.23 (portdowngrade net/syncthing r395632, also requires portdowngrade lang/go r395390) I believe this bug, plus #200846 and #201913 can be closed, although someone with more experience in the kernel itself might want to check when exactly this was resolved, seeing as it's affected 10.1, 10.3 and 11-CURRENT at various stages. Re-open. Will add more context/information shortly. Underlying userland causing kernel panic is being tracked in the duplicated (original) bug 200846 *** This bug has been marked as a duplicate of bug 200846 *** |