Error: /proc/self/status is larger than expected

Elisamuel Resto Donate sam at samresto.dev
Wed Mar 22 00:58:36 UTC 2023


Hello,

gaia ~ # uname -a
Linux gaia 6.1.12-gentoo-x86_64 #1 SMP Thu Mar  9 19:57:24 CST 2023 
x86_64 Intel(R) Core(TM) i5-3470S CPU @ 2.90GHz GenuineIntel GNU/Linux
gaia ~ # dovecot --version
2.3.20 (80a5ac675d)
gaia ~ # cat /proc/self/status | wc --bytes

See attached for example content of /proc/self/status and the 
dovecot.conf through 'dovecot -n'

Regards,
-Sam

On 3/21/2023 2:32 AM, Aki Tuomi wrote:
>> On 21/03/2023 05:29 EET Elisamuel Resto Donate<sam at samresto.dev>  wrote:
>>
>>
>> Hello,
>> Writing to get some insight as to how I might rid myself of a the pesky error message on the subject. Every binary throws out that error, every LMTP delivery... basically every time any dovecot binary is executed. I am unsure if this is configuration related or not, but intuition says it is an issue with a kernel feature or compiler issue.
>> I saw the error message in the source code (file ), but I don't understand enough of the dovecot architecture or what the code itself is doing in this case. Below and excerpt of a few lines of logs. Since I don't know what specifically this would relate to (and I don't quite remember the command to send the "safe" version of the configuration), I am sending this message in hopes that whatever is needed can be asked and I will provide it.
>>
>> Regards,
>>   -Sam
>>
>>
>> [... postfix and rspamd output...]
>>   Mar 20 22:17:02 gaia postfix/qmgr[21403]: 4PgcGQ33LfzdT4h: from=<list at someml.tld>, size=12064, nrcpt=1 (queue active)
>>   Mar 20 22:17:02 gaia postfix/smtpd[18941]: disconnect from some.list.server[1.2.3.4] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
>>   Mar 20 22:17:02 gaia dovecot: lmtp(18954): Error: /proc/self/status is larger than expected
>>   Mar 20 22:17:02 gaia dovecot: lmtp(18954): Connect from local
>>   Mar 20 22:17:02 gaia dovecot: lmtp(sam at samresto.dev)<18954><vbRKLa4hGWQKSgAAw1YR2w>: Error: /proc/self/status is larger than expected
>>   Mar 20 22:17:02 gaia dovecot: message repeated 2 times: [ lmtp(sam at samresto.dev)<18954><vbRKLa4hGWQKSgAAw1YR2w>: Error: /proc/self/status is larger than expected]
>>   Mar 20 22:17:02 gaia dovecot: lmtp(sam at samresto.dev)<18954><vbRKLa4hGWQKSgAAw1YR2w>: sieve: msgid=<84cf4a75-db54-f33c-cea2-f4772cd182d8 at samresto.dev>: fileinto action: stored mail into mailbox 'Lists/Folder'
>>   Mar 20 22:17:02 gaia dovecot: lmtp(sam at samresto.dev)<18954><vbRKLa4hGWQKSgAAw1YR2w>: Error: /proc/self/status is larger than expected
>>   Mar 20 22:17:02 gaia dovecot: indexer-worker(sam at samresto.dev)<18956><vbRKLa4hGWQKSgAAw1YR2w:RtkiMa4hGWQMSgAAw1YR2w>: Error: /proc/self/status is larger than expected
>>   Mar 20 22:17:02 gaia postfix/lmtp[18943]: 4PgcGQ33LfzdT4h: to=<sam at samresto.dev>, relay=wyvern.samresto.dev[private/dovecot-lmtp], delay=0.4, delays=0.31/0/0.01/0.07, dsn=2.0.0, status=sent (250 2.0.0<sam at samresto.dev>  vbRKLa4hGWQKSgAAw1YR2w Saved)
>>   Mar 20 22:17:02 gaia dovecot: lmtp(18954): Disconnect from local: Logged out (state=READY)
>>   Mar 20 22:17:02 gaia dovecot: lmtp(18954): Error: /proc/self/status is larger than expected
>>   Mar 20 22:17:02 gaia postfix/qmgr[21403]: 4PgcGQ33LfzdT4h: removed
>>
> Hi!
>
> Which distro is this?
>
> Aki

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20230321/1eae91ec/attachment-0001.htm>
-------------- next part --------------
# 2.3.20 (80a5ac675d): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.20 (149edcf2)
# OS: Linux 6.1.12-gentoo-x86_64 x86_64 Gentoo Base System release 2.13 btrfs
# Hostname: wyvern.samresto.dev
auth_mechanisms = plain login
dict {
  lastlogin = mysql:/etc/dovecot/dovecot-lastlogin-dict.conf.ext
  metadata = mysql:/etc/dovecot/dovecot-metadata-dict.conf.ext
  quota_clone = mysql:/etc/dovecot/dovecot-quota-dict.conf.ext
}
doveadm_worker_count = 5
first_valid_gid = 5000
first_valid_uid = 5000
imap_client_workarounds = delay-newmail tb-extra-mailbox-sep tb-lsub-flags
last_valid_gid = 5000
last_valid_uid = 5000
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
lda_original_recipient_header = X-Original-To
lmtp_client_workarounds = whitespace-before-path
lmtp_rcpt_check_quota = yes
lmtp_save_to_detail_mailbox = yes
mail_attachment_detection_options = add-flags-on-save
mail_attribute_dict = file:%h/dovecot-attributes
mail_gid = 5000
mail_home = /var/mail/virtual/%Ld/%Ln
mail_location = maildir:/var/mail/virtual/%Ld/%Ln
mail_plugins = " quota quota_clone mailbox_alias trash fts fts_flatcurve"
mail_uid = 5000
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext spamtestplus virustest vnd.dovecot.pipe vnd.dovecot.filter
namespace inbox {
  inbox = yes
  location =
  mailbox Archive {
    auto = subscribe
    special_use = \Archive
  }
  mailbox Drafts {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    auto = no
    special_use = \Sent
  }
  mailbox Spam {
    auto = subscribe
    autoexpunge = 30 days
    special_use = \Junk
  }
  mailbox Trash {
    auto = subscribe
    autoexpunge = 60 days
    special_use = \Trash
  }
  prefix =
  separator = /
  type = private
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  antispam_backend = pipe
  antispam_pipe_program = /usr/local/sbin/spam-learn
  antispam_pipe_program_notspam_arg = --ham
  antispam_pipe_program_spam_arg = --spam
  antispam_pipe_tmpdir = /tmp
  antispam_spam = Junk;Spam
  antispam_trash = trash;Trash;Deleted Items;Deleted Messages
  fts = flatcurve
  fts_autoindex = yes
  fts_autoindex_exclude = \Spam
  fts_autoindex_exclude2 = \Trash
  fts_enforced = yes
  fts_flatcurve_commit_limit = 500
  fts_flatcurve_max_term_size = 30
  fts_flatcurve_min_term_size = 2
  fts_flatcurve_optimize_limit = 10
  fts_flatcurve_rotate_size = 5000
  fts_flatcurve_rotate_time = 5000
  fts_flatcurve_substring_search = yes
  fts_languages = en es
  fts_tokenizer_generic = algorithm=simple
  fts_tokenizers = generic email-address
  imapsieve_mailbox1_after = file:/var/lib/dovecot/sieve/report-spam.sieve
  imapsieve_mailbox1_causes = COPY
  imapsieve_mailbox1_name = Junk
  imapsieve_mailbox2_after = file:/var/lib/dovecot/sieve/report-spam.sieve
  imapsieve_mailbox2_causes = COPY
  imapsieve_mailbox2_name = Spam
  imapsieve_mailbox3_after = file:/var/lib/dovecot/sieve/report-ham.sieve
  imapsieve_mailbox3_causes = COPY
  imapsieve_mailbox3_from = Junk
  imapsieve_mailbox3_name = *
  imapsieve_mailbox4_after = file:/var/lib/dovecot/sieve/report-ham.sieve
  imapsieve_mailbox4_causes = COPY
  imapsieve_mailbox4_from = Spam
  imapsieve_mailbox4_name = *
  imapsieve_mailbox5_after = file:/var/lib/dovecot/sieve/report-ham.sieve
  imapsieve_mailbox5_causes = COPY
  imapsieve_mailbox5_name = Archive
  imapsieve_mailbox6_after = file:/var/lib/dovecot/sieve/mark-seen.sieve
  imapsieve_mailbox6_causes = COPY
  imapsieve_mailbox6_name = Trash
  imapsieve_url = sieve://wyvern.samresto.dev:4190
  last_login_dict = proxy::lastlogin
  last_login_key = # hidden, use -P to show it
  mailbox_alias_new = Sent Messages
  mailbox_alias_new2 = Sent Items
  mailbox_alias_new3 = Junk
  mailbox_alias_old = Sent
  mailbox_alias_old2 = Sent
  mailbox_alias_old3 = Spam
  quota = count:User quota
  quota_clone_dict = proxy::quota_clone
  quota_grace = 10%%
  quota_max_mail_size = 30M
  quota_rule = *:storage=1G
  quota_rule2 = Trash:ignore
  quota_rule3 = Spam:ignore
  quota_status_nouser = DUNNO
  quota_status_overquota = 552 5.2.2 Mailbox is full
  quota_status_success = DUNNO
  quota_vsizes = yes
  sieve = file:~/sieve;active=~/dovecot.sieve
  sieve_before = /var/lib/dovecot/sieve.d/
  sieve_extensions = +spamtestplus +virustest +vnd.dovecot.pipe +vnd.dovecot.filter
  sieve_max_redirects = 30
  sieve_plugins = sieve_extprograms
  sieve_vacation_send_from_recipient = yes
  trash = /etc/dovecot/dovecot-trash.conf.ext
}
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
pop3_enable_last = yes
pop3_reuse_xuidl = yes
protocols = imap pop3 lmtp sieve
quota_full_tempfail = yes
service auth-worker {
  user = $default_internal_user
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-userdb {
    mode = 0666
  }
}
service dict {
  unix_listener dict {
    group = vmail
    mode = 0660
    user = vmail
  }
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  inet_listener imaps {
    port = 993
    ssl = yes
  }
  process_min_avail = 1
  service_count = 1
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
  unix_listener lmtp {
    mode = 0666
  }
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
  process_min_avail = 1
  service_count = 1
}
service managesieve {
  process_limit = 20
}
service pop3-login {
  inet_listener pop3 {
    port = 110
  }
  inet_listener pop3s {
    port = 995
    ssl = yes
  }
}
service stats {
  unix_listener stats-reader {
    group = vmail
    mode = 0664
    user = vmail
  }
  unix_listener stats-writer {
    group = vmail
    mode = 0666
    user = vmail
  }
}
service submission-login {
  inet_listener submission {
    port = 587
  }
}
ssl_cert = </etc/letsencrypt/live/wyvern.samresto.dev/fullchain.pem
ssl_cipher_list = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
ssl_prefer_server_ciphers = yes
userdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
verbose_proctitle = yes
protocol lmtp {
  auth_username_format = %Lu
  mail_plugins = " quota quota_clone mailbox_alias trash fts fts_flatcurve sieve"
}
protocol !indexer-worker {
  mail_vsize_bg_after_count = 100
}
protocol lda {
  mail_plugins = " quota quota_clone mailbox_alias trash fts fts_flatcurve sieve"
}
protocol imap {
  imap_metadata = yes
  mail_plugins = " quota quota_clone mailbox_alias trash fts fts_flatcurve imap_quota last_login"
}
protocol sieve {
  mail_plugins =
}
protocol pop3 {
  mail_plugins = " quota quota_clone mailbox_alias trash fts fts_flatcurve last_login"
}
protocol submission {
  mail_plugins = " quota quota_clone mailbox_alias trash fts fts_flatcurve"
}
-------------- next part --------------
Name:   cat
Umask:  0022
State:  R (running)
Tgid:   25920
Ngid:   0
Pid:    25920
PPid:   25863
TracerPid:      0
Uid:    0       0       0       0
Gid:    0       0       0       0
FDSize: 256
Groups: 0 1 2 3 4 6 10 11 26 27
NStgid: 25920
NSpid:  25920
NSpgid: 25920
NSsid:  25863
VmPeak:     5904 kB
VmSize:     5904 kB
VmLck:         0 kB
VmPin:         0 kB
VmHWM:      1044 kB
VmRSS:      1044 kB
RssAnon:              88 kB
RssFile:             956 kB
RssShmem:              0 kB
VmData:      340 kB
VmStk:       132 kB
VmExe:        24 kB
VmLib:      1532 kB
VmPTE:        48 kB
VmSwap:        0 kB
HugetlbPages:          0 kB
CoreDumping:    0
THP_enabled:    1
Threads:        1
SigQ:   2/31275
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000000000
SigCgt: 0000000000000000
CapInh: 0000000000000000
CapPrm: 000001ffffffffff
CapEff: 000001ffffffffff
CapBnd: 000001ffffffffff
CapAmb: 0000000000000000
NoNewPrivs:     0
Seccomp:        0
Seccomp_filters:        0
Speculation_Store_Bypass:       vulnerable
SpeculationIndirectBranch:      always enabled
Cpus_allowed:   00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,0000000f
Cpus_allowed_list:      0-3
Mems_allowed:   00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001
Mems_allowed_list:      0
voluntary_ctxt_switches:        0
nonvoluntary_ctxt_switches:     0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xD2D5FB6118615F19.asc
Type: application/pgp-keys
Size: 7034 bytes
Desc: OpenPGP public key
URL: <https://dovecot.org/pipermail/dovecot/attachments/20230321/1eae91ec/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://dovecot.org/pipermail/dovecot/attachments/20230321/1eae91ec/attachment-0001.sig>


More information about the dovecot mailing list