I can reproduce this with 4.16-rc2, I've debugged this down to:

drivers/char/hpet.c, hpet_timer_set_irq():

        if (irq < HPET_MAX_IRQ) {
                spin_lock_irq(&hpet_lock);
                v = readl(&timer->hpet_config);
                v |= irq << Tn_INT_ROUTE_CNF_SHIFT;
                writel(v, &timer->hpet_config);


.. the writel to hpet_config causes the reboot.

How to reproduce this issue:

git clone git://kernel.ubuntu.com/cking/stress-ng
cd stress-ng
git revert 0124b250ec205ea3cd6d9d68fb96c03ac294d12f
make
sudo ./stress-ng --dev 1

.. wait a while and it will eventually get around to the /dev/hpet and
opening this causes the hang.

The minimal reproducer is:

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>

int main(void)
{
        int fd;

        fd = open("/dev/hpet", O_RDONLY | O_NONBLOCK);
        if (fd > 0)
                close(fd);

        exit(0);
}


run this as root and it will cause the reboot.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-aws in Ubuntu.
https://bugs.launchpad.net/bugs/1741409

Title:
  stress smoke test hang with dev test on AWS Xenial kernel

Status in linux-aws package in Ubuntu:
  In Progress

Bug description:
  The test will hang on dev STARTING, and get killed by the timeout
  setting.

  DEBUG| [stdout] dccp PASSED
  DEBUG| [stdout] dentry STARTING
  DEBUG| [stdout] dentry RETURNED 0
  DEBUG| [stdout] dentry PASSED
  DEBUG| [stdout] dev STARTING

  No interesting output in dmesg:
  [    8.281861] random: nonblocking pool is initialized
  [    8.338335] ppdev: user-space parallel port driver
  [   11.662848] cgroup: new mount options do not match the existing 
superblock, will be ignored
  [   12.272168] systemd[1]: Started ACPI event daemon.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-1045-aws 4.4.0-1045.54
  ProcVersionSignature: User Name 4.4.0-1045.54-aws 4.4.98
  Uname: Linux 4.4.0-1045-aws x86_64
  ApportVersion: 2.20.1-0ubuntu2.14
  Architecture: amd64
  Date: Fri Jan  5 06:47:45 2018
  Ec2AMI: ami-a2e544da
  Ec2AMIManifest: (unknown)
  Ec2AvailabilityZone: us-west-2b
  Ec2InstanceType: t2.nano
  Ec2Kernel: unavailable
  Ec2Ramdisk: unavailable
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: linux-aws
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-aws/+bug/1741409/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to