Your message dated Wed, 18 Mar 2020 02:50:51 +0000
with message-id <[email protected]>
and subject line Bug#954062: Removed package(s) from unstable
has caused the Debian Bug report #453712,
regarding hibernate network scriptlet doesn't correctly obtain active 
interfaces in 'auto' mode
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
453712: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=453712
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: hibernate
Version: 1.94-2
Severity: normal

*** Please type your report below this line ***

Hibernate network scriptlet in /usr/share/hibernate/scriptlets.d/network
incorrectly "auto" gathers the list of active interfaces to bring down/restore
during suspend cycle. This bug takes place when DownInterfaces and UpInterfaces
are set to "auto" and there are downed but existing interfaces.

The script uses sed expression to extract a list of interfaces from
/proc/net/dev. Unfortunately a reference to an interface in that file does not
guarantee interface actually being up (it could have been up a month ago,
therefore stats are available, but it is not necessarily up at the moment)

Example outputs:

`cat /proc/net/dev:`
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    
packets errs drop fifo colls carrier compressed
    lo:   15912     196    0    0    0     0          0         0    15912     
196    0    0    0     0       0          0
  eth0:    9286     188    0    0    0     0          0         0      780      
11    0    0    0     0       0          0
 wifi0:       0       0    0    0    0     0          0         0        0      
 0    0    0    0     0       0          0
  ath0:       0       0    0    0    0     0          0         0        0      
 0    0    0    0     0       0          0

`/sbin/ifconfig`
eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx  
          inet addr:xxx.xxx.xxx.xxx  Bcast:xxx.xxx.xxx.xxx  Mask:255.255.255.0
          inet6 addr: xxxx::xxx:xxxx:xxxx:xxxx/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:197 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9700 (9.4 KiB)  TX bytes:780 (780.0 b)
          Interrupt:22 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:196 errors:0 dropped:0 overruns:0 frame:0
          TX packets:196 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:15912 (15.5 KiB)  TX bytes:15912 (15.5 KiB)

As you can see, ath0 is listed in /proc/net/dev, but it is not actually
up, so it should not be restored.

/proc/net/route can be used to determine "active" interfaces:

Iface   Destination     Gateway         Flags   RefCnt  Use     Metric  Mask    
        MTU     Window  IRTT 
eth0    xxxxxxxx        xxxxxxxx        0001    0       0       0       
00FFFFFF        0       0       0
eth0    00000000        xxxxxxxx        0003    0       0       0       
00000000        0       0       0

Below is a patch for /usr/share/hibernate/scriptlets.d/network that
gathers a list of active interfaces from /proc/net/route:


--- network.orig        2007-11-30 11:36:04.000000000 -0600
+++ network     2007-11-30 11:35:58.000000000 -0600
@@ -20,7 +20,7 @@
     ret=0
     do_auto=
     case $NETWORK_DOWNIFS in *\ auto\ *) do_auto=yes ;; esac
-    for int in `sed -rne 's,[[:space:]]*([[:alnum:]]+):.*,\1,p' 
/proc/net/dev`; do
+    for int in `perl -nle '($if) = m/^(.*?)\s+/; if (!exists $ifaces{$if} && 
$if ne "Iface" ){ $ifaces{$if}=1; print "$if";}'  /proc/net/route`; do
 
        if [ -z "$do_auto" ] ; then
            # Only proceed if we were given "auto" or this interface was meant


-- Package-specific info:

--- configuration
==> /etc/hibernate/common.conf <==
Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 1
Distribution debian
SaveClock restore-only
UnloadBlacklistedModules yes
LoadModules auto
DownInterfaces auto
UpInterfaces auto
SwitchToTextMode yes
==> /etc/hibernate/disk.conf <==
TryMethod ususpend-disk.conf
TryMethod sysfs-disk.conf
==> /etc/hibernate/hibernate.conf <==
TryMethod ram.conf
==> /etc/hibernate/ram.conf <==
TryMethod sysfs-ram.conf
==> /etc/hibernate/suspend2.conf <==
UseSuspend2 yes
Reboot no
EnableEscape yes
DefaultConsoleLevel 1
Compressor lzf
Encryptor none
FullSpeedCPU yes
Include common.conf
==> /etc/hibernate/sysfs-disk.conf <==
UseSysfsPowerState disk
Include common.conf
==> /etc/hibernate/sysfs-ram.conf <==
UseSysfsPowerState mem
Include common.conf
==> /etc/hibernate/ususpend-both.conf <==
USuspendMethod both
Include common.conf
==> /etc/hibernate/ususpend-disk.conf <==
USuspendMethod disk
Include common.conf
==> /etc/hibernate/ususpend-ram.conf <==
USuspendMethod ram
Include common.conf

--- /sys/power
==> /sys/power/disk <==
[platform] test testproc shutdown reboot 
==> /sys/power/image_size <==
524288000
==> /sys/power/resume <==
0:0
==> /sys/power/state <==
mem disk

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable'), (90, 'testing'), (80, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22-3-686
Locale: LANG=C, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages hibernate depends on:
ii  console-tools              1:0.2.3dbs-65 Linux console and font utilities

Versions of packages hibernate recommends:
ii  dash                   0.5.3-7           The Debian Almquist Shell
ii  hdparm                 6.9-2             tune hard disk parameters for high
ii  uswsusp                0.3~cvs20060928-7 tools to use userspace software su
ii  vbetool                0.7-1.1           run real-mode video BIOS code to a

-- no debconf information




--- End Message ---
--- Begin Message ---
Version: 2.0+15+g88d54a8-1+rm

Dear submitter,

as the package hibernate has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/954062

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to