Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Dec 2021 14:58:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 260406] pfctl: Cannot allocate memory (after a time)
Message-ID:  <bug-260406-227-aEHGO2zz6U@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-260406-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-260406-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260406

--- Comment #44 from Diego Linke <diego@bsd.com.br> ---
(In reply to Kristof Provost from comment #40)

Hi, please find below the dtrace output, I hope it will be useful.


# dtrace -s dtrace_pf.sh -c "pfctl -f /etc/pf.conf"
dtrace: script 'dtrace_pf.sh' matched 9 probes
/etc/pf.conf:21: cannot define table fireholL1: Cannot allocate memory
/etc/pf.conf:22: cannot define table fireholL2: Cannot allocate memory
/etc/pf.conf:23: cannot define table fireholL3: Cannot allocate memory
/etc/pf.conf:24: cannot define table fireholWEB: Cannot allocate memory
/etc/pf.conf:25: cannot define table normshield: Cannot allocate memory
/etc/pf.conf:26: cannot define table ipblacklistcloud: Cannot allocate memo=
ry
/etc/pf.conf:27: cannot define table Webbots: Cannot allocate memory
/etc/pf.conf:28: cannot define table haley_ssh: Cannot allocate memory
/etc/pf.conf:29: cannot define table bi_any_1_7d: Cannot allocate memory
pfctl: Syntax error in config file: pf rules not loaded
dtrace: pid 56813 exited with status 1
CPU     ID                    FUNCTION:NAME
  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e


root@server5:~# mv dtrace_pf.sh dtrace.script
root@server5:~# dtrace -s dtrace.script  -c "pfctl -f /etc/pf.conf"
dtrace: script 'dtrace.script' matched 9 probes
/etc/pf.conf:21: cannot define table fireholL1: Cannot allocate memory
/etc/pf.conf:22: cannot define table fireholL2: Cannot allocate memory
/etc/pf.conf:23: cannot define table fireholL3: Cannot allocate memory
/etc/pf.conf:24: cannot define table fireholWEB: Cannot allocate memory
/etc/pf.conf:25: cannot define table normshield: Cannot allocate memory
/etc/pf.conf:26: cannot define table ipblacklistcloud: Cannot allocate memo=
ry
/etc/pf.conf:27: cannot define table Webbots: Cannot allocate memory
/etc/pf.conf:28: cannot define table haley_ssh: Cannot allocate memory
/etc/pf.conf:29: cannot define table bi_any_1_7d: Cannot allocate memory
pfctl: Syntax error in config file: pf rules not loaded
CPU     ID                    FUNCTION:NAME
  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

  0  74366          pfr_create_kentry:entry In
  0  21147          cache_alloc_retry:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21145                cache_alloc:entry =3D> fffff80006ac1e00
(@fffff80006ac1c80)
  0  21202            zone_alloc_item:entry =3D> 0 (@fffff80006ac1c80)
  0  74367         pfr_create_kentry:return =3D> 0 (@12e)

  0  74367         pfr_create_kentry:return=20
              pf.ko`pfr_ina_define+0x6d6
              pf.ko`pfioctl+0x49bb
              kernel`devfs_ioctl+0xc7
              kernel`vn_ioctl+0x1a4
              kernel`devfs_ioctl_f+0x1e
              kernel`kern_ioctl+0x26d
              kernel`sys_ioctl+0xf6
              kernel`amd64_syscall+0x755
              kernel`0xffffffff8106227e

dtrace: pid 63447 exited with status 1

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260406-227-aEHGO2zz6U>