Summary: | Kernel panic at ip_divert_event_tag on FreeBSD 13.0-RELEASE | ||
---|---|---|---|
Product: | Base System | Reporter: | Deyan <didomeister> |
Component: | kern | Assignee: | Mark Johnston <markj> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | markj |
Priority: | --- | Keywords: | crash |
Version: | 13.0-STABLE | Flags: | koobs:
mfc-stable13+
markj: mfc-stable12- markj: mfc-stable11- |
Hardware: | i386 | ||
OS: | Any | ||
URL: | https://reviews.freebsd.org/D30129 |
Description
Deyan
2021-07-19 20:28:28 UTC
Do you have the latest 13.0 patches from freebsd-update? There was an ipdivert bug fix that could be related. (In reply to Mark Johnston from comment #1) I am not sure if I have these. How can I check? Today I built a new kernel to test if this will change something - it had no effect. I just managed to apply patches up to p3. freebsd-update output said: The following files will be updated as part of updating to 13.0-RELEASE-p3: /bin/freebsd-version /boot/kernel/if_vlan.ko /boot/kernel/ipdivert.ko /boot/kernel/ipfw.ko /boot/kernel/kernel /boot/kernel/linux.ko /boot/kernel/mpt.ko /boot/kernel/virtio_pci.ko /lib/libcasper.so.1 /usr/bin/bc /usr/bin/dc /usr/lib/debug/boot/kernel/if_vlan.ko.debug /usr/lib/debug/boot/kernel/ipdivert.ko.debug /usr/lib/debug/boot/kernel/ipfw.ko.debug /usr/lib/debug/boot/kernel/kernel.debug /usr/lib/debug/boot/kernel/linux.ko.debug /usr/lib/debug/boot/kernel/mpt.ko.debug /usr/lib/debug/boot/kernel/virtio_pci.ko.debug /usr/lib/libradius.a /usr/lib/libradius.so.4 /usr/lib/libradius_p.a /usr/src/contrib/bc/src/program.c /usr/src/lib/libc++/Makefile /usr/src/lib/libcasper/libcasper/libcasper_impl.c /usr/src/lib/libcasper/libcasper/libcasper_impl.h /usr/src/lib/libcasper/libcasper/service.c /usr/src/lib/libcasper/libcasper/zygote.c /usr/src/lib/libradius/radlib.c /usr/src/sys/amd64/amd64/support.S /usr/src/sys/amd64/linux/linux_support.s /usr/src/sys/amd64/linux32/linux32_support.s /usr/src/sys/compat/linux/linux_futex.c /usr/src/sys/conf/newvers.sh /usr/src/sys/dev/mpt/mpt_cam.c /usr/src/sys/dev/pms/freebsd/driver/ini/src/agdef.h /usr/src/sys/dev/pms/freebsd/driver/ini/src/agtiapi.c /usr/src/sys/dev/virtio/pci/virtio_pci_legacy.c /usr/src/sys/net/if_vlan.c /usr/src/sys/netinet/ip_divert.c /usr/src/sys/netpfil/ipfw/ip_fw_pfil.c /usr/src/tools/build/mk/OptionalObsoleteFiles.inc # uname -r -> 13.0-RELEASE-p3 I will report in a few days if patching did ellimnate my kernel panics. (In reply to Deyan from comment #2) Which branch did you build the kernel from? Hmm, ipdivert might be a red herring, I didn't notice the large offset before: #7 0xffc0319f at ip_divert_event_tag+0xe29cc977 Assuming that you are in fact using divert sockets though (e.g., some ipfw rule diverts packets to natd), it is worth ruling out that problem since it can cause random panics. (In reply to Mark Johnston from comment #5) I have such a rule in ipfw: ${fw} 500 divert natd ip from any to any in via ${oif} my natd.conf has these lines: interface ${natd_interface} dynamic yes unregistered_only yes redirect_port tcp ... ... multiple lines as the one above follow (In reply to Mark Johnston from comment #4) I suppose it was the 13.0 RELEASE I followed this manual: https://docs.freebsd.org/doc/6.1-RELEASE/usr/share/doc/handbook/kernelconfig-building.html Procedure 2. Building a Kernel the “New” Way Have there been any crashes on 13.0-p3? Hi, no crashes after my last comment so I assume this issue is no more present on p3. You may eventually close this ticket if no deep-digging to find the root cause is necessary. (In reply to Deyan from comment #9) Thanks. I can't find another PR to dup this to, so I'll just mark it fixed. I suspect the panic was addressed by https://cgit.freebsd.org/src/commit/?id=a1fadf7de25b973a308b86d04c4ada4fa8be193f Since that can cause fairly random memory corruption I don't think it's worth digging deeper into this particular instance. ^Triage: Assign to committer that (tentatively/probably :)) resolved, tracke merges (In reply to Mark Johnston from comment #10) Did stable/12,11 need/receive the merge? I believe epoch stuff was 12, or 12/13 only? Set '-' for the ones that didn't, ta! (In reply to Kubilay Kocak from comment #11) The bug is only in 13.0. |