Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #712945

Bug#812928: udev: cdrom_id terminated by signal BUS

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.ports.sparc, linux.debian.kernel
Subject Bug#812928: udev: cdrom_id terminated by signal BUS
Date 2016-01-28 00:30 +0100
Message-ID <qVHHc-2KP-17@gated-at.bofh.it> (permalink)
References <qVH4u-2ek-17@gated-at.bofh.it> <qVHeb-2ip-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 3 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Control: tag -1 moreinfo

On Wed, 2016-01-27 at 23:54 +0100, Marco d'Itri wrote:
> Control: reassign -1 src:linux
> Control: found -1 4.3.0-1
> Control: retitle -1 getauxval(AT_RANDOM) broken on sparc64
> 
> On Jan 27, Anatoly Pugachev <matorola@gmail.com> wrote:
> 
> > Program terminated with signal SIGUSR1, User defined signal 1.
> > #0  0x000001000001b9b8 in initialize_srand () at src/basic/random-
> > util.c:107
> > 107                     x ^= *(unsigned*) auxv;
> > (gdb) bt
> Looks like getauxval(AT_RANDOM) returns garbage on sparc64:
>
>         x = 0;
>         auxv = (void*) getauxval(AT_RANDOM);
>         if (auxv)
>                 x ^= *(unsigned*) auxv;

There is no documented alignment guarantee for the AT_RANDOM bytes so I
think this caller is wrong to treat it as an array of unsigned int.
What happens if you change it to:

	if (auxv)
		memcpy(&x, auxv, sizeof(x));

?

Ben.

-- 
Ben Hutchings
73.46% of all statistics are made up.

Back to linux.debian.bugs.dist | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#812928: udev: cdrom_id terminated by signal BUS Anatoly Pugachev <matorola@gmail.com> - 2016-01-27 23:50 +0100
  Bug#812928: udev: cdrom_id terminated by signal BUS md@Linux.IT (Marco d'Itri) - 2016-01-28 00:00 +0100
    Bug#812928: udev: cdrom_id terminated by signal BUS Ben Hutchings <ben@decadent.org.uk> - 2016-01-28 00:30 +0100
      Bug#812928: udev: cdrom_id terminated by signal BUS Patrick Baggett <baggett.patrick@gmail.com> - 2016-01-28 01:40 +0100
        Bug#812928: udev: cdrom_id terminated by signal BUS Anatoly Pugachev <matorola@gmail.com> - 2016-01-28 07:40 +0100
          Bug#812928: udev: cdrom_id terminated by signal BUS John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2016-01-28 10:10 +0100
            Bug#812928: udev: cdrom_id terminated by signal BUS Michael Biebl <biebl@debian.org> - 2016-01-29 17:00 +0100
              Bug#812928: udev: cdrom_id terminated by signal BUS John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2016-01-29 17:10 +0100
                Bug#812928: udev: cdrom_id terminated by signal BUS Michael Biebl <biebl@debian.org> - 2016-01-29 17:50 +0100

csiph-web