[Bug 270495] panic: Could not malloc 163840 bytes with M_WAITOK from /usr/src/sys/contrib/openzfs/module/zstd/zfs_zstd.c line 670

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 28 Mar 2023 04:34:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270495

            Bug ID: 270495
           Summary: panic: Could not malloc 163840 bytes with M_WAITOK
                    from
                    /usr/src/sys/contrib/openzfs/module/zstd/zfs_zstd.c
                    line 670
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: tkmcintosh@me.com

I am trying to install FreeBSD 13.1 on my legacy i386 system:

- Supermicro P5STE motherboard (Intel 430HX)
<https://theretroweb.com/motherboards/s/supermicro-p5ste>
- Pentium 90? CPU
- 64MB RAM
- Builtin dual-IDE:
  - IDE0
    - primary: 1GB WDC disk
    - secondary: Toshiba XM6202B CDROM drive
  - IDE1
    - primary: 2GB WDC disk
    - secondary: N/A
- Adaptec AHA-2940 SCSI controller (ID 0)
  - ID 6 - 1GB SEAGATE disk

In order to fit the installation media on a standard 700MB CDROM, I used
`xorriso` to create a reduced-size version of the `disc1` ISO, removing the
`src.txz` package, as follows:

```
xorriso -external_filter exclude_src default /usr/bin/grep -v src.txz -- \
-boot_image any discard \
-boot_image any bin_path=boot/cdboot \
-indev ~/Downloads/FreeBSD-13.1-RELEASE-i386-disc1.iso \
-outdev ~/Downloads/FreeBSD-13.1-RELEASE-i386-cd.iso \
-rm /usr/freebsd-dist/src.txz -- \
-set_filter exclude_src /usr/freebsd-dist/MANIFEST
```

I then attempted to boot the system from the CDROM (with the CDROM as the only
bootable drive). The complete output looks like this:

```
Consoles: internal video/keyboard
BIOS CD is cd0
BIOS drive A: is fd0
BIOS drive B: is fd1
BIOS drive C: is disk0
BIOS drive D: is disk1
BIOS drive E: is disk2
panic: Could not malloc 163840 bytes with M_WAITOK from
/usr/src/sys/contrib/openzfs/module/zstd/zfs_zstd.c line 670
--> Press a key on the console to reboot <--
```

-- 
You are receiving this mail because:
You are the assignee for the bug.