Searched hist:ub (Results 1 - 25 of 90) sorted by relevance
| /src/sys/external/isc/atheros_hal/dist/ar5211/ | ||
| H A D | ar5211reg.h | 1.2 Mon May 30 13:58:24 GMT 2011 joerg Define a few macros as unsigned to avoid UB when later shifting them in ways that involve integer overflow. |
| /src/sys/external/isc/atheros_hal/dist/ar5210/ | ||
| H A D | ar5210reg.h | 1.2 Mon May 30 13:58:23 GMT 2011 joerg branches: 1.2.14; 1.2.28; Define a few macros as unsigned to avoid UB when later shifting them in ways that involve integer overflow. |
| /src/sys/arch/arm/dts/ | ||
| H A D | zynq-red-pitaya-122-16.dts | 1.1 Sat May 04 02:21:48 GMT 2024 dyoung Add a device tree for the Red Pitaya SDRlab 122-16. To boot NetBSD on the 122-16, copy the .dtb built from zynq-red-pitays-122-16.dts, the first-stage bootloader (called boot.bin) and U-Boot that came with the 122-16 and a kernel image, netbsd.ub, built for earmv7hf to an MS-DOS partition on an MBR-partitioned SD card. At the U-Boot prompt, "Zynq> ", type these commands: i2c dev 0 eeprom read 0 0x50 0 0x1804 0x400 env import -b 0 0x400 hw_rev serial ethaddr setenv bootargs "root=ld0a" fatload mmc 0 0x01f00000 device~1.dtb fatload mmc 0 0x02000000 netbsd.ub fdt addr 0x01f00000 fdt set /axi/ethernet@e000b000 local-mac-address $ethaddr bootm 0x02000000 - 0x01f00000 Note that the ethernet PHY will not attach unless you have applied the patches from Lloyd Parkes in kern/58083. 1.1 Sat May 04 02:21:48 GMT 2024 dyoung Add a device tree for the Red Pitaya SDRlab 122-16. To boot NetBSD on the 122-16, copy the .dtb built from zynq-red-pitays-122-16.dts, the first-stage bootloader (called boot.bin) and U-Boot that came with the 122-16 and a kernel image, netbsd.ub, built for earmv7hf to an MS-DOS partition on an MBR-partitioned SD card. At the U-Boot prompt, "Zynq> ", type these commands: i2c dev 0 eeprom read 0 0x50 0 0x1804 0x400 env import -b 0 0x400 hw_rev serial ethaddr setenv bootargs "root=ld0a" fatload mmc 0 0x01f00000 device~1.dtb fatload mmc 0 0x02000000 netbsd.ub fdt addr 0x01f00000 fdt set /axi/ethernet@e000b000 local-mac-address $ethaddr bootm 0x02000000 - 0x01f00000 Note that the ethernet PHY will not attach unless you have applied the patches from Lloyd Parkes in kern/58083. |
| /src/common/lib/libc/string/ | ||
| H A D | memmem.c | 1.6 Sat Dec 14 16:48:13 GMT 2024 riastradh memmem(3): Avoid undefined behaviour in shift. PR lib/58906: memmem.c: sync with musl upstream that fixes UB on signed overflow 1.5 Sat Dec 14 16:48:05 GMT 2024 riastradh memmem(3): Nix trailing whitespace. No functional change intended. Preparation for: PR lib/58906: memmem.c: sync with musl upstream that fixes UB on signed overflow |
| /src/sys/arch/arm/xilinx/ | ||
| H A D | zynq_uartreg.h | 1.1 Tue Jun 11 13:01:48 GMT 2019 skrll branches: 1.1.10; Initial commit of FDTised Xilinx Zynq-7000 support. Tested with qemu-system-arm -M xilinx-zynq-a9 -dtb zynq-zed.dtb -kernel netbsd.ub \ -serial /dev/null -serial stdio Based on a set of diffs/files from rjs@ sys/arch/arm/zynq is kept in place to allow existing kernels (e.g. ZEDBOARD and PARALLELLA) to continue to build/work during the transition, but eventually sys/arch/arm/zynq will be deleted. |
| H A D | zynq_uartvar.h | 1.1 Tue Jun 11 13:01:48 GMT 2019 skrll branches: 1.1.10; Initial commit of FDTised Xilinx Zynq-7000 support. Tested with qemu-system-arm -M xilinx-zynq-a9 -dtb zynq-zed.dtb -kernel netbsd.ub \ -serial /dev/null -serial stdio Based on a set of diffs/files from rjs@ sys/arch/arm/zynq is kept in place to allow existing kernels (e.g. ZEDBOARD and PARALLELLA) to continue to build/work during the transition, but eventually sys/arch/arm/zynq will be deleted. |
| H A D | zynq_usbvar.h | 1.1 Tue Jun 11 13:01:48 GMT 2019 skrll branches: 1.1.10; Initial commit of FDTised Xilinx Zynq-7000 support. Tested with qemu-system-arm -M xilinx-zynq-a9 -dtb zynq-zed.dtb -kernel netbsd.ub \ -serial /dev/null -serial stdio Based on a set of diffs/files from rjs@ sys/arch/arm/zynq is kept in place to allow existing kernels (e.g. ZEDBOARD and PARALLELLA) to continue to build/work during the transition, but eventually sys/arch/arm/zynq will be deleted. |
| H A D | zynq_usbreg.h | 1.1 Tue Jun 11 13:01:48 GMT 2019 skrll branches: 1.1.10; Initial commit of FDTised Xilinx Zynq-7000 support. Tested with qemu-system-arm -M xilinx-zynq-a9 -dtb zynq-zed.dtb -kernel netbsd.ub \ -serial /dev/null -serial stdio Based on a set of diffs/files from rjs@ sys/arch/arm/zynq is kept in place to allow existing kernels (e.g. ZEDBOARD and PARALLELLA) to continue to build/work during the transition, but eventually sys/arch/arm/zynq will be deleted. |
| H A D | zynq7000_uart.c | 1.1 Tue Jun 11 13:01:48 GMT 2019 skrll branches: 1.1.10; 1.1.12; Initial commit of FDTised Xilinx Zynq-7000 support. Tested with qemu-system-arm -M xilinx-zynq-a9 -dtb zynq-zed.dtb -kernel netbsd.ub \ -serial /dev/null -serial stdio Based on a set of diffs/files from rjs@ sys/arch/arm/zynq is kept in place to allow existing kernels (e.g. ZEDBOARD and PARALLELLA) to continue to build/work during the transition, but eventually sys/arch/arm/zynq will be deleted. |
| H A D | zynq7000_usb.c | 1.1 Tue Jun 11 13:01:48 GMT 2019 skrll branches: 1.1.10; 1.1.12; Initial commit of FDTised Xilinx Zynq-7000 support. Tested with qemu-system-arm -M xilinx-zynq-a9 -dtb zynq-zed.dtb -kernel netbsd.ub \ -serial /dev/null -serial stdio Based on a set of diffs/files from rjs@ sys/arch/arm/zynq is kept in place to allow existing kernels (e.g. ZEDBOARD and PARALLELLA) to continue to build/work during the transition, but eventually sys/arch/arm/zynq will be deleted. |
| H A D | zynq_uart.c | 1.1 Tue Jun 11 13:01:48 GMT 2019 skrll Initial commit of FDTised Xilinx Zynq-7000 support. Tested with qemu-system-arm -M xilinx-zynq-a9 -dtb zynq-zed.dtb -kernel netbsd.ub \ -serial /dev/null -serial stdio Based on a set of diffs/files from rjs@ sys/arch/arm/zynq is kept in place to allow existing kernels (e.g. ZEDBOARD and PARALLELLA) to continue to build/work during the transition, but eventually sys/arch/arm/zynq will be deleted. |
| H A D | files.zynq | 1.1 Tue Jun 11 13:01:48 GMT 2019 skrll branches: 1.1.10; Initial commit of FDTised Xilinx Zynq-7000 support. Tested with qemu-system-arm -M xilinx-zynq-a9 -dtb zynq-zed.dtb -kernel netbsd.ub \ -serial /dev/null -serial stdio Based on a set of diffs/files from rjs@ sys/arch/arm/zynq is kept in place to allow existing kernels (e.g. ZEDBOARD and PARALLELLA) to continue to build/work during the transition, but eventually sys/arch/arm/zynq will be deleted. |
| H A D | zynq_cemac.c | 1.1 Tue Jun 11 13:01:48 GMT 2019 skrll branches: 1.1.10; 1.1.12; Initial commit of FDTised Xilinx Zynq-7000 support. Tested with qemu-system-arm -M xilinx-zynq-a9 -dtb zynq-zed.dtb -kernel netbsd.ub \ -serial /dev/null -serial stdio Based on a set of diffs/files from rjs@ sys/arch/arm/zynq is kept in place to allow existing kernels (e.g. ZEDBOARD and PARALLELLA) to continue to build/work during the transition, but eventually sys/arch/arm/zynq will be deleted. |
| /src/lib/libc/inet/ | ||
| H A D | inet_net_ntop.c | 1.4 Tue May 09 02:56:44 GMT 2017 maya Avoid shift of negative signed integer. this is UB. NFC. from gcc8, ok riastradh |
| /src/lib/libc/string/ | ||
| H A D | stresep.c | 1.3 Sun Feb 12 17:19:00 GMT 2017 maya branches: 1.3.4; overlapping strcpy is UB. use memmove from asan+ubsan |
| /src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/ | ||
| H A D | Makefile | 1.2 Sat May 04 02:21:49 GMT 2024 dyoung Add a device tree for the Red Pitaya SDRlab 122-16. To boot NetBSD on the 122-16, copy the .dtb built from zynq-red-pitays-122-16.dts, the first-stage bootloader (called boot.bin) and U-Boot that came with the 122-16 and a kernel image, netbsd.ub, built for earmv7hf to an MS-DOS partition on an MBR-partitioned SD card. At the U-Boot prompt, "Zynq> ", type these commands: i2c dev 0 eeprom read 0 0x50 0 0x1804 0x400 env import -b 0 0x400 hw_rev serial ethaddr setenv bootargs "root=ld0a" fatload mmc 0 0x01f00000 device~1.dtb fatload mmc 0 0x02000000 netbsd.ub fdt addr 0x01f00000 fdt set /axi/ethernet@e000b000 local-mac-address $ethaddr bootm 0x02000000 - 0x01f00000 Note that the ethernet PHY will not attach unless you have applied the patches from Lloyd Parkes in kern/58083. 1.2 Sat May 04 02:21:49 GMT 2024 dyoung Add a device tree for the Red Pitaya SDRlab 122-16. To boot NetBSD on the 122-16, copy the .dtb built from zynq-red-pitays-122-16.dts, the first-stage bootloader (called boot.bin) and U-Boot that came with the 122-16 and a kernel image, netbsd.ub, built for earmv7hf to an MS-DOS partition on an MBR-partitioned SD card. At the U-Boot prompt, "Zynq> ", type these commands: i2c dev 0 eeprom read 0 0x50 0 0x1804 0x400 env import -b 0 0x400 hw_rev serial ethaddr setenv bootargs "root=ld0a" fatload mmc 0 0x01f00000 device~1.dtb fatload mmc 0 0x02000000 netbsd.ub fdt addr 0x01f00000 fdt set /axi/ethernet@e000b000 local-mac-address $ethaddr bootm 0x02000000 - 0x01f00000 Note that the ethernet PHY will not attach unless you have applied the patches from Lloyd Parkes in kern/58083. |
| /src/tests/include/sys/ | ||
| H A D | t_types.c | 1.5 Wed Jul 25 21:51:32 GMT 2018 kamil Avoid undefined behavior in an ATF test: t_types Replace UB with implementation defined logic to check whether ssize_t can wrap to a negative number. t_types.c:63:7, signed integer overflow: 9223372036854775807 + 1 cannot be represented in type 'long int' Detected with micro-UBSan in the user mode. |
| /src/sys/arch/evbarm/conf/ | ||
| H A D | mk.ti | 1.2 Sat Dec 09 11:52:38 GMT 2017 jmcneill Reduce the number of build artifacts and use a compressed version of the kernel for legacy U-Boot images (netbsd.ub). |
| H A D | mk.gumstix | 1.5 Tue Apr 19 00:02:55 GMT 2016 kiyohara branches: 1.5.2; OVERO's .ub file includes release |
| /src/distrib/sets/lists/dtb/ | ||
| H A D | ad.earmv7 | 1.11 Sat May 04 02:21:48 GMT 2024 dyoung Add a device tree for the Red Pitaya SDRlab 122-16. To boot NetBSD on the 122-16, copy the .dtb built from zynq-red-pitays-122-16.dts, the first-stage bootloader (called boot.bin) and U-Boot that came with the 122-16 and a kernel image, netbsd.ub, built for earmv7hf to an MS-DOS partition on an MBR-partitioned SD card. At the U-Boot prompt, "Zynq> ", type these commands: i2c dev 0 eeprom read 0 0x50 0 0x1804 0x400 env import -b 0 0x400 hw_rev serial ethaddr setenv bootargs "root=ld0a" fatload mmc 0 0x01f00000 device~1.dtb fatload mmc 0 0x02000000 netbsd.ub fdt addr 0x01f00000 fdt set /axi/ethernet@e000b000 local-mac-address $ethaddr bootm 0x02000000 - 0x01f00000 Note that the ethernet PHY will not attach unless you have applied the patches from Lloyd Parkes in kern/58083. 1.11 Sat May 04 02:21:48 GMT 2024 dyoung Add a device tree for the Red Pitaya SDRlab 122-16. To boot NetBSD on the 122-16, copy the .dtb built from zynq-red-pitays-122-16.dts, the first-stage bootloader (called boot.bin) and U-Boot that came with the 122-16 and a kernel image, netbsd.ub, built for earmv7hf to an MS-DOS partition on an MBR-partitioned SD card. At the U-Boot prompt, "Zynq> ", type these commands: i2c dev 0 eeprom read 0 0x50 0 0x1804 0x400 env import -b 0 0x400 hw_rev serial ethaddr setenv bootargs "root=ld0a" fatload mmc 0 0x01f00000 device~1.dtb fatload mmc 0 0x02000000 netbsd.ub fdt addr 0x01f00000 fdt set /axi/ethernet@e000b000 local-mac-address $ethaddr bootm 0x02000000 - 0x01f00000 Note that the ethernet PHY will not attach unless you have applied the patches from Lloyd Parkes in kern/58083. |
| H A D | ad.earmv7hf | 1.11 Sat May 04 02:21:48 GMT 2024 dyoung Add a device tree for the Red Pitaya SDRlab 122-16. To boot NetBSD on the 122-16, copy the .dtb built from zynq-red-pitays-122-16.dts, the first-stage bootloader (called boot.bin) and U-Boot that came with the 122-16 and a kernel image, netbsd.ub, built for earmv7hf to an MS-DOS partition on an MBR-partitioned SD card. At the U-Boot prompt, "Zynq> ", type these commands: i2c dev 0 eeprom read 0 0x50 0 0x1804 0x400 env import -b 0 0x400 hw_rev serial ethaddr setenv bootargs "root=ld0a" fatload mmc 0 0x01f00000 device~1.dtb fatload mmc 0 0x02000000 netbsd.ub fdt addr 0x01f00000 fdt set /axi/ethernet@e000b000 local-mac-address $ethaddr bootm 0x02000000 - 0x01f00000 Note that the ethernet PHY will not attach unless you have applied the patches from Lloyd Parkes in kern/58083. 1.11 Sat May 04 02:21:48 GMT 2024 dyoung Add a device tree for the Red Pitaya SDRlab 122-16. To boot NetBSD on the 122-16, copy the .dtb built from zynq-red-pitays-122-16.dts, the first-stage bootloader (called boot.bin) and U-Boot that came with the 122-16 and a kernel image, netbsd.ub, built for earmv7hf to an MS-DOS partition on an MBR-partitioned SD card. At the U-Boot prompt, "Zynq> ", type these commands: i2c dev 0 eeprom read 0 0x50 0 0x1804 0x400 env import -b 0 0x400 hw_rev serial ethaddr setenv bootargs "root=ld0a" fatload mmc 0 0x01f00000 device~1.dtb fatload mmc 0 0x02000000 netbsd.ub fdt addr 0x01f00000 fdt set /axi/ethernet@e000b000 local-mac-address $ethaddr bootm 0x02000000 - 0x01f00000 Note that the ethernet PHY will not attach unless you have applied the patches from Lloyd Parkes in kern/58083. |
| H A D | ad.earmv7hfeb | 1.11 Sat May 04 02:21:48 GMT 2024 dyoung Add a device tree for the Red Pitaya SDRlab 122-16. To boot NetBSD on the 122-16, copy the .dtb built from zynq-red-pitays-122-16.dts, the first-stage bootloader (called boot.bin) and U-Boot that came with the 122-16 and a kernel image, netbsd.ub, built for earmv7hf to an MS-DOS partition on an MBR-partitioned SD card. At the U-Boot prompt, "Zynq> ", type these commands: i2c dev 0 eeprom read 0 0x50 0 0x1804 0x400 env import -b 0 0x400 hw_rev serial ethaddr setenv bootargs "root=ld0a" fatload mmc 0 0x01f00000 device~1.dtb fatload mmc 0 0x02000000 netbsd.ub fdt addr 0x01f00000 fdt set /axi/ethernet@e000b000 local-mac-address $ethaddr bootm 0x02000000 - 0x01f00000 Note that the ethernet PHY will not attach unless you have applied the patches from Lloyd Parkes in kern/58083. 1.11 Sat May 04 02:21:48 GMT 2024 dyoung Add a device tree for the Red Pitaya SDRlab 122-16. To boot NetBSD on the 122-16, copy the .dtb built from zynq-red-pitays-122-16.dts, the first-stage bootloader (called boot.bin) and U-Boot that came with the 122-16 and a kernel image, netbsd.ub, built for earmv7hf to an MS-DOS partition on an MBR-partitioned SD card. At the U-Boot prompt, "Zynq> ", type these commands: i2c dev 0 eeprom read 0 0x50 0 0x1804 0x400 env import -b 0 0x400 hw_rev serial ethaddr setenv bootargs "root=ld0a" fatload mmc 0 0x01f00000 device~1.dtb fatload mmc 0 0x02000000 netbsd.ub fdt addr 0x01f00000 fdt set /axi/ethernet@e000b000 local-mac-address $ethaddr bootm 0x02000000 - 0x01f00000 Note that the ethernet PHY will not attach unless you have applied the patches from Lloyd Parkes in kern/58083. |
| /src/sys/dev/cadence/ | ||
| H A D | if_cemacvar.h | 1.6 Sat Oct 05 07:37:22 GMT 2024 skrll Make cemac(4) MP safe. Tested with qemu and qemu-system-arm \ -kernel netbsd.ub \ -dtb zynq-zc702.dtb \ -M xilinx-zynq-a9 \ -sd armv7.img \ -append "root=ld0a -x -v" \ -serial null -serial mon:stdio \ -nographic |
| /src/sys/arch/evbppc/conf/ | ||
| H A D | Makefile.evbppc.inc | 1.5 Sat May 28 00:06:38 GMT 2011 matt Add common processing for .srec, .bin, and .ub (ubootimage) files. When creating u-boot image, use a compressed binary kernel. |
| /src/usr.sbin/fwctl/ | ||
| H A D | fwdv.c | 1.9 Thu Aug 10 20:49:20 GMT 2023 mrg don't assign struct pointers to smaller then structure regions of memory. in all cases here, the later parts of the structure are not actually accessed, so there are no existing bugs here beyond general UB. for the ufs ones, this also removes some casts. found by GCC 12. |
Completed in 84 milliseconds