libvirt/tools
Adam Julis bdee774285 virsh: Fix overflow error of freepages command
Trying to print pages of a size larger than the UINT_MAX of the
given platform (for example, 4G on 64-bit ARM), results in a
system error even though this is a legitimate request.

The vshCommandOptScaledInt() used for parsing the pagesize is
given UINT_MAX as the upper limit. The parsed value is then
divided by 1024 and fed to virNodeGetFreePages() which expects an
unsigned int. We can't change the public API but the upper limit
can be raised by the factor of 1024.

Resolves: https://issues.redhat.com/browse/RHEL-23608

Signed-off-by: Adam Julis <ajulis@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2024-03-05 12:22:06 +01:00
..
bash-completion
nss syntax-check: Forbid use of qsort() 2023-11-24 09:53:14 +01:00
wireshark
libvirt_recover_xattrs.sh
libvirt_win_icon_16x16.ico
libvirt_win_icon_32x32.ico
libvirt_win_icon_48x48.ico
libvirt_win_icon_64x64.ico
libvirt-guests.service.in systemd: More tweaks to Description and Documentation lines 2023-11-06 23:45:04 +01:00
libvirt-guests.sh.in libvirt-guests: Remove unused variable 'libvirtd' 2023-08-01 10:46:11 -06:00
meson.build build: suppress "ignoring duplicate libraries" warning on macOS 2023-11-03 15:56:37 -04:00
virsh_win_icon.rc
virsh-backup.c
virsh-backup.h
virsh-checkpoint.c lib: Replace qsort() with g_qsort_with_data() 2023-11-24 09:53:14 +01:00
virsh-checkpoint.h
virsh-completer-checkpoint.c
virsh-completer-checkpoint.h
virsh-completer-domain.c virsh: Command completion, add comp-methods with zlib and zstd 2024-01-11 13:15:08 +01:00
virsh-completer-domain.h
virsh-completer-host.c
virsh-completer-host.h
virsh-completer-interface.c
virsh-completer-interface.h
virsh-completer-network.c
virsh-completer-network.h
virsh-completer-nodedev.c conf: move/rename hostdev PCI driver type enum to device_conf.h 2024-01-07 23:57:09 -05:00
virsh-completer-nodedev.h
virsh-completer-nwfilter.c
virsh-completer-nwfilter.h
virsh-completer-pool.c virsh-completer: modify and fix bug in virshPoolTypeCompleter, now used for more commands 2024-02-20 12:08:22 +01:00
virsh-completer-pool.h virsh-completer: modify and fix bug in virshPoolTypeCompleter, now used for more commands 2024-02-20 12:08:22 +01:00
virsh-completer-secret.c
virsh-completer-secret.h
virsh-completer-snapshot.c
virsh-completer-snapshot.h
virsh-completer-volume.c
virsh-completer-volume.h
virsh-completer.c
virsh-completer.h
virsh-console.c virsh: add console --resume support 2023-10-24 13:51:32 +02:00
virsh-console.h virsh: add console --resume support 2023-10-24 13:51:32 +02:00
virsh-domain-event.c tools: Move error messages onto a single line 2023-09-04 09:35:36 +02:00
virsh-domain-event.h
virsh-domain-monitor.c lib: Replace qsort() with g_qsort_with_data() 2023-11-24 09:53:14 +01:00
virsh-domain-monitor.h
virsh-domain.c virsh-domain: Fix return of virshGetDBusDisplay() in one error path 2024-02-07 18:01:03 +01:00
virsh-domain.h
virsh-edit.c
virsh-host.c virsh: Fix overflow error of freepages command 2024-03-05 12:22:06 +01:00
virsh-host.h
virsh-interface.c lib: Replace qsort() with g_qsort_with_data() 2023-11-24 09:53:14 +01:00
virsh-interface.h
virsh-network.c lib: Replace qsort() with g_qsort_with_data() 2023-11-24 09:53:14 +01:00
virsh-network.h
virsh-nodedev.c nodedev: allow modify on define of a persistent node device 2024-02-26 11:15:27 +01:00
virsh-nodedev.h
virsh-nwfilter.c lib: Replace qsort() with g_qsort_with_data() 2023-11-24 09:53:14 +01:00
virsh-nwfilter.h
virsh-pool.c virsh-completer: modify and fix bug in virshPoolTypeCompleter, now used for more commands 2024-02-20 12:08:22 +01:00
virsh-pool.h
virsh-secret.c lib: Replace qsort() with g_qsort_with_data() 2023-11-24 09:53:14 +01:00
virsh-secret.h
virsh-snapshot.c lib: Replace qsort() with g_qsort_with_data() 2023-11-24 09:53:14 +01:00
virsh-snapshot.h
virsh-util.c lib: Replace xmlKeepBlanksDefault() with virXMLParseWithIndent() 2023-11-21 14:43:39 +01:00
virsh-util.h virsh exposure of Network Metadata APIs 2023-08-25 12:36:37 +02:00
virsh-volume.c lib: Replace qsort() with g_qsort_with_data() 2023-11-24 09:53:14 +01:00
virsh-volume.h
virsh.c virshCatchDisconnect: Don't probe connection URI 2024-01-15 14:05:20 +01:00
virsh.h
virt-admin-completer.c
virt-admin-completer.h
virt-admin.c virt-admin: Add warning when connection to default daemon fails 2024-02-02 16:06:15 +01:00
virt-admin.h
virt-host-validate-bhyve.c virHostValidateBhyve: Heap allocate massive 'struct kld_file_stat' 2023-09-04 10:31:53 +02:00
virt-host-validate-bhyve.h
virt-host-validate-ch.c tools: Move error messages onto a single line 2023-09-04 09:35:36 +02:00
virt-host-validate-ch.h
virt-host-validate-common.c
virt-host-validate-common.h
virt-host-validate-lxc.c
virt-host-validate-lxc.h
virt-host-validate-qemu.c tools: Move error messages onto a single line 2023-09-04 09:35:36 +02:00
virt-host-validate-qemu.h
virt-host-validate.c
virt-login-shell-helper.c
virt-login-shell.c
virt-login-shell.conf
virt-pki-query-dn.c
virt-pki-validate.in meson: Use initconfdir 2023-05-05 15:08:25 +02:00
virt-qemu-qmp-proxy scripts: Fix the flake8 syntax-check failures 2023-06-29 11:51:27 +02:00
virt-qemu-sev-validate vir-qemu-sev-validate: Use string() method in xpath 2023-12-05 12:21:38 +01:00
virt-sanlock-cleanup.in
virt-xml-validate.in
vsh-table.c lib: use struct zero initializer instead of memset 2023-08-03 16:41:19 +02:00
vsh-table.h
vsh.c tools: Move error messages onto a single line 2023-09-04 09:35:36 +02:00
vsh.h vsh: Introduce simple version of VSH_ALTERNATIVE_OPTIONS_EXPR 2023-12-14 16:06:23 +01:00