Devuan bug report logs - #716
hash built-in function in python3 is salted

version graph

Package: greylistd; Maintainer for greylistd is (unknown); Source for greylistd is src:greylistd.

Reported by: "Fernando M. Maresca (Monitoring Station S.A.)" <fmaresca@monssa.com.ar>

Date: Wed, 5 Oct 2022 12:54:01 UTC

Severity: grave

Tags: debian

Found in version 0.8.8.7

Forwarded to https://bugs.debian.org/1021356

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#716; Package greylistd. (Wed, 05 Oct 2022 12:54:01 GMT) (full text, mbox, link).


Acknowledgement sent to "Fernando M. Maresca (Monitoring Station S.A.)" <fmaresca@monssa.com.ar>:
New bug report received and forwarded. Copy sent to devuan-dev@lists.dyne.org. (Wed, 05 Oct 2022 12:54:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

From: "Fernando M. Maresca (Monitoring Station S.A.)" <fmaresca@monssa.com.ar>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: hash built-in function in python3 is salted
Date: Wed, 05 Oct 2022 09:51:12 -0300
Package: greylistd
Version: 0.8.8.7
Severity: grave



The hash() function used to hash triplets in python3 has a different
behaviour that the python2 version. 

py3 hash() is salted, so the hash it produces for the same input text differs between runs.

That produces two problems in greylistd:
- multiple entries added to the lists 
- checks produces different keys

To reproduce:
- start greylistd

- greylist clear
- greylist list --white (verify is empty)
- greylist add --white a.com
- greylist list --white (verify a.com is in wl)
- greylist check a.com (should be white)

- restart greylistd
- greylist list --white (verify a.com is in wl)
- greylist check a.com (returns grey, should be white)

Thank you.



-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 3 (beowulf)
Release:	3
Codename:	beowulf
Architecture: x86_64

Kernel: Linux 5.10.0-0.bpo.7-amd64 (SMP w/12 CPU cores)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8), LANGUAGE=es_AR:es (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages greylistd depends on:
ii  adduser                3.118
ii  debconf [debconf-2.0]  1.5.71+deb10u1
ii  python                 2.7.16-1

Versions of packages greylistd recommends:
ii  exim4  4.92-8+deb10u6

greylistd suggests no packages.

-- debconf-show failed

Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#716; Package greylistd. (Wed, 05 Oct 2022 17:32:01 GMT) (full text, mbox, link).


Message #8 received at 716@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: "Fernando M. Maresca (Monitoring Station S.A.)" <fmaresca@monssa.com.ar>, 716@bugs.devuan.org
Subject: Re: bug#716: hash built-in function in python3 is salted
Date: Wed, 5 Oct 2022 18:29:22 +0100
Control: tags -1 debian

Fernando,

Thanks for this.

On Wed, Oct 05, 2022 at 09:51:12AM -0300, Fernando M. Maresca (Monitoring Station S.A.) wrote:
> Package: greylistd
> Version: 0.8.8.7
> Severity: grave

However, greylistd is not forked in Devuan and we use Debian's packages directly
without recompilation. Please report this issue to Debian's BTS to be addressed.

Thanks.

Mark

Added tag(s) debian. Request was from Mark Hindley <mark@hindley.org.uk> to 716-submit@bugs.devuan.org. (Wed, 05 Oct 2022 17:32:03 GMT) (full text, mbox, link).


Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#716; Package greylistd. (Thu, 06 Oct 2022 11:08:01 GMT) (full text, mbox, link).


Acknowledgement sent to "Fernando M. Maresca" <fmaresca@monssa.com.ar>:
Extra info received and forwarded to list. Copy sent to devuan-dev@lists.dyne.org. (Thu, 06 Oct 2022 11:08:03 GMT) (full text, mbox, link).


Message #15 received at 716@bugs.devuan.org (full text, mbox, reply):

From: "Fernando M. Maresca" <fmaresca@monssa.com.ar>
To: Mark Hindley <mark@hindley.org.uk>
Cc: 716@bugs.devuan.org
Subject: Re: bug#716: hash built-in function in python3 is salted
Date: Thu, 6 Oct 2022 08:06:09 -0300
On Wed, Oct 05, 2022 at 06:29:22PM +0100, Mark Hindley wrote:
> However, greylistd is not forked in Devuan and we use Debian's packages directly
> without recompilation. Please report this issue to Debian's BTS to be addressed.
> 
> Thanks.

Yes, sorry, my bad.
Thank you.


-- 
    Fernando M. Maresca

Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#716; Package greylistd. (Thu, 06 Oct 2022 11:48:02 GMT) (full text, mbox, link).


Acknowledgement sent to Mark Hindley <mark@hindley.org.uk>:
Extra info received and forwarded to list. Copy sent to devuan-dev@lists.dyne.org. (Thu, 06 Oct 2022 11:48:04 GMT) (full text, mbox, link).


Message #20 received at 716@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: "Fernando M. Maresca" <fmaresca@monssa.com.ar>
Cc: 716@bugs.devuan.org
Subject: Re: bug#716: hash built-in function in python3 is salted
Date: Thu, 6 Oct 2022 12:46:08 +0100
On Thu, Oct 06, 2022 at 08:06:09AM -0300, Fernando M. Maresca wrote:
> 
> On Wed, Oct 05, 2022 at 06:29:22PM +0100, Mark Hindley wrote:
> > However, greylistd is not forked in Devuan and we use Debian's packages directly
> > without recompilation. Please report this issue to Debian's BTS to be addressed.
> > 
> > Thanks.
> 
> Yes, sorry, my bad.

Not at all.

When you have, maybe you could add the Debian bug number here so we can track it
easily?

Thanks

Mark

Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#716; Package greylistd. (Thu, 06 Oct 2022 17:00:01 GMT) (full text, mbox, link).


Acknowledgement sent to "Fernando M. Maresca" <fmaresca@monssa.com.ar>:
Extra info received and forwarded to list. Copy sent to devuan-dev@lists.dyne.org. (Thu, 06 Oct 2022 17:00:05 GMT) (full text, mbox, link).


Message #25 received at 716@bugs.devuan.org (full text, mbox, reply):

From: "Fernando M. Maresca" <fmaresca@monssa.com.ar>
To: Mark Hindley <mark@hindley.org.uk>
Cc: 716@bugs.devuan.org
Subject: Re: bug#716: hash built-in function in python3 is salted
Date: Thu, 6 Oct 2022 13:58:13 -0300
On Thu, Oct 06, 2022 at 12:46:08PM +0100, Mark Hindley wrote:
> When you have, maybe you could add the Debian bug number here so we can track it
> easily?

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021356.


Best regards,
Fer

-- 
    Fernando M. Maresca
    Monitoring Station S.A.

Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#716; Package greylistd. (Thu, 06 Oct 2022 18:08:02 GMT) (full text, mbox, link).


Acknowledgement sent to Mark Hindley <mark@hindley.org.uk>:
Extra info received and forwarded to list. Copy sent to devuan-dev@lists.dyne.org. (Thu, 06 Oct 2022 18:08:05 GMT) (full text, mbox, link).


Message #30 received at 716@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: "Fernando M. Maresca" <fmaresca@monssa.com.ar>
Cc: 716@bugs.devuan.org
Subject: Re: bug#716: hash built-in function in python3 is salted
Date: Thu, 6 Oct 2022 19:05:25 +0100
Control: forwarded -1  https://bugs.debian.org/1021356.

Fernando,

On Thu, Oct 06, 2022 at 01:58:13PM -0300, Fernando M. Maresca wrote:
> On Thu, Oct 06, 2022 at 12:46:08PM +0100, Mark Hindley wrote:
> > When you have, maybe you could add the Debian bug number here so we can track it
> > easily?

Great, thanks.

Mark

Set bug forwarded-to-address to 'https://bugs.debian.org/1021356.'. Request was from Mark Hindley <mark@hindley.org.uk> to 716-submit@bugs.devuan.org. (Thu, 06 Oct 2022 18:08:08 GMT) (full text, mbox, link).


Changed bug forwarded-to-address to 'https://bugs.debian.org/1021356' from 'https://bugs.debian.org/1021356.'. Request was from Mark Hindley <mark@hindley.org.uk> to control@bugs.devuan.org. (Fri, 07 Oct 2022 06:50:02 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Mon Nov 25 05:38:02 2024;