Bug#1063097: /usr/bin/mkimage: opens image and device trees (-d, -b) O_RDONLY, then O_RDWR, and fails if they're read-only (it doesn't write to them)

2024-03-20 Thread наб
Control: tags -1 + upstream On Tue, Mar 19, 2024 at 02:41:13PM -0700, Vagrant Cascadian wrote: > It would be helpful to list the exact command you are running, whoops! mkimage -f auto -A arm64 \ -T kernel -C lz4 -d Image-6.6.15.lz4 \ -b

Bug#1063097: /usr/bin/mkimage: opens image and device trees (-d, -b) O_RDONLY, then O_RDWR, and fails if they're read-only (it doesn't write to them)

2024-03-19 Thread Vagrant Cascadian
On 2024-02-05, наб wrote: > From a strace: > 1390 openat(AT_FDCWD, "/tmp/tmp.j2DX6x1MgV/Image-6.6.11.lz4", O_RDONLY) = 3 > 1390 newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=12611929, ...}, > AT_EMPTY_PATH) = 0 > 1390 close(3) = 0 > 1390 openat(AT_FDCWD,

Bug#1063097: /usr/bin/mkimage: opens image and device trees (-d, -b) O_RDONLY, then O_RDWR, and fails if they're read-only (it doesn't write to them)

2024-02-04 Thread наб
Package: u-boot-tools Version: 2024.01+dfsg-1 Severity: normal File: /usr/bin/mkimage Dear Maintainer, From a strace: 1390 openat(AT_FDCWD, "/tmp/tmp.j2DX6x1MgV/Image-6.6.11.lz4", O_RDONLY) = 3 1390 newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=12611929, ...}, AT_EMPTY_PATH) = 0 1390