Files
linux/fs
Tao Huang 921df26c80 f2fs: fix out-of-bounds read in update_free_nid_bitmap
test_bit will access with unsigned long, which cause this bug.
Workaround by enlarge free_nid_bitmap.

BUG: KASAN: slab-out-of-bounds in update_free_nid_bitmap+0x98/0x16c
Read of size 8 at addr ffffffc06275c9ff by task init/195

CPU: 3 PID: 195 Comm: init Not tainted 4.4.114 #55
Hardware name: Rockchip rk3326 evb board (DT)
Call trace:
 dump_backtrace+0x0/0x244
 show_stack+0x14/0x1c
 dump_stack+0xa4/0xcc
 print_address_description+0xa4/0x308
 kasan_report+0x258/0x29c
 __asan_load8+0x78/0x80
 update_free_nid_bitmap+0x98/0x16c
 build_node_manager+0x884/0x950
 f2fs_fill_super+0x14bc/0x1ca8
 mount_bdev+0x174/0x208
 f2fs_mount+0x14/0x1c
 mount_fs+0xbc/0x1b0
 vfs_kern_mount+0xbc/0x1c8
 do_mount+0xcf0/0xe68
 SyS_mount+0x94/0xe0
 el0_svc_naked+0x24/0x28

Change-Id: I9167447ded0a8c2da1b80cdc671615c9108c02be
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-02-23 11:47:45 +08:00
..
2015-06-30 19:44:57 -07:00
2017-12-20 10:04:56 +01:00
2018-01-22 13:16:20 +05:30
2015-06-25 17:00:42 -07:00
2018-01-22 13:16:20 +05:30
2017-11-30 08:37:20 +00:00
2017-06-14 13:16:24 +02:00
2016-11-10 16:36:34 +01:00
2017-11-15 14:48:58 +08:00
2015-11-23 21:11:08 -05:00
2016-10-07 15:23:47 +02:00
2014-11-19 13:01:20 -05:00
2017-06-14 13:16:24 +02:00
2015-11-16 23:54:45 -08:00
2015-08-12 15:28:45 -05:00
2014-08-26 09:35:56 +02:00
2017-06-14 13:16:24 +02:00