summaryrefslogtreecommitdiff
path: root/scripts/Makefile.gcc-plugins
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>2021-12-17 17:51:25 +0300
committerJens Axboe <axboe@kernel.dk>2021-12-21 19:34:29 +0300
commite338924bd05d6e71574bc13e310c89e10e49a8a5 (patch)
tree47ef4b851875b480e5de9324d79c78427d4e5274 /scripts/Makefile.gcc-plugins
parent37ae5a0f5287a52cf51242e76ccf198d02ffe495 (diff)
downloadlinux-e338924bd05d6e71574bc13e310c89e10e49a8a5.tar.xz
block: check minor range in device_add_disk()
ioctl(fd, LOOP_CTL_ADD, 1048576) causes sysfs: cannot create duplicate filename '/dev/block/7:0' message because such request is treated as if ioctl(fd, LOOP_CTL_ADD, 0) due to MINORMASK == 1048575. Verify that all minor numbers for that device fit in the minor range. Reported-by: wangyangbo <wangyangbo@uniontech.com> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/b1b19379-23ee-5379-0eb5-94bf5f79f1b4@i-love.sakura.ne.jp Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/Makefile.gcc-plugins')
0 files changed, 0 insertions, 0 deletions