--- - branch: netbsd-8 date: Fri Nov 1 09:29:25 UTC 2019 files: - new: 1.119.2.2 old: 1.119.2.1 path: src/sys/kern/subr_disk.c pathrev: src/sys/kern/subr_disk.c@1.119.2.2 type: modified id: 20191101T092925Z.5d43044f9da20302bea4f558eef875614b134695 log: "Pull up following revision(s) (requested by cnst in ticket #1397):\n\n\tsys/kern/subr_disk.c: revision 1.129\n\nkern/subr_disk: bounds_check_with_label: really protect against div by zero\n\nSolves kernel panic in NetBSD 8.1 amd64 on VirtualBox 6.0.12 r133076.\n\nTriggered with an NVMe controller without any actual discs behind it:\n\nnvme0 at pci0 dev 14 function 0: vendor 80ee product 4e56 (rev. 0x00)\nnvme0: NVMe 1.2\nnvme0: interrupting at ioapic0 pin 22\nnvme0: ORCL-VBOX-NVME-VER12, firmware 1.0, serial VB1234-56789\nld0 at nvme0 nsid 1\nld0: 0, 0 cyl, 16 head, 63 sec, 1 bytes/sect x 0 sectors\n\nCode path is reached 4 times during normal boot, each time after wd0a\nis already mounted; this patch avoids a crash with a dirty filesystem.\n" module: src subject: 'CVS commit: [netbsd-8] src/sys/kern' unixtime: '1572600565' user: martin