]> git.baikalelectronics.ru Git - kernel.git/commit
block: ratelimit handle_bad_sector() message
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thu, 8 Oct 2020 13:37:23 +0000 (22:37 +0900)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Oct 2020 16:16:59 +0000 (10:16 -0600)
commitb591c2fc9ee0bdb19441bb5bf19346d742262d51
tree9645a469730736c42d607e257ccd373a14469de6
parent751c629cdb877c4c43bb11f536994126d3d02d78
block: ratelimit handle_bad_sector() message

syzbot is reporting unkillable task [1], for the caller is failing to
handle a corrupted filesystem image which attempts to access beyond
the end of the device. While we need to fix the caller, flooding the
console with handle_bad_sector() message is unlikely useful.

[1] https://syzkaller.appspot.com/bug?id=f1f49fb971d7a3e01bd8ab8cff2ff4572ccf3092

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c