[Bug 1230149] PPC64LE: ioctl(LOOP_SET_BLOCK_SIZE) accepts values larger than pagesize
https://bugzilla.suse.com/show_bug.cgi?id=1230149 https://bugzilla.suse.com/show_bug.cgi?id=1230149#c3 Martin Doucha <martin.doucha@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(martin.doucha@sus | |e.com) | --- Comment #3 from Martin Doucha <martin.doucha@suse.com> --- (In reply to Jiri Slaby from comment #1)
Do you really use PAGE_SIZE? As ppc64le uses 64k pages.
Yes, that is the first thing I checked: https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/sysca... The ioctl()s fail as expected on kernels up to v6.10. Here's the output from a modified test which prints the blocksize it's going to set: https://openqa.opensuse.org/tests/4459817#step/ioctl_loop06/8 ioctl_loop06.c:76: TINFO: Using LOOP_CONFIGURE with block_size < 512 ioctl_loop06.c:96: TINFO: Setting loopdev block size to 256 ioctl_loop06.c:67: TPASS: Set block size failed as expected: EINVAL (22) ioctl_loop06.c:76: TINFO: Using LOOP_CONFIGURE with block_size > PAGE_SIZE ioctl_loop06.c:96: TINFO: Setting loopdev block size to 131072 ioctl_loop06.c:59: TFAIL: Set block size succeed unexpectedly ioctl_loop06.c:76: TINFO: Using LOOP_CONFIGURE with block_size != power_of_2 ioctl_loop06.c:96: TINFO: Setting loopdev block size to 65535 ioctl_loop06.c:67: TPASS: Set block size failed as expected: EINVAL (22) -- You are receiving this mail because: You are the assignee for the bug.
participants (1)
-
bugzilla_noreply@suse.com