syzbot


KASAN: use-after-free Read in lbmIODone

Status: upstream: reported C repro on 2020/10/22 09:37
Subsystems: jfs
[Documentation on labels]
Reported-by: syzbot+cfa912bfb9eb92d57487@syzkaller.appspotmail.com
First crash: 1337d, last: 493d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: use-after-free Read in lbmIODone (2) jfs syz 117 3h36m 477d 0/27 upstream: reported syz repro on 2023/03/01 21:54
linux-6.1 KASAN: use-after-free Read in lbmIODone 1 75d 75d 0/3 upstream: reported on 2024/04/06 22:58
upstream KASAN: use-after-free Read in lbmIODone jfs syz inconclusive unreliable 20 829d 1368d 0/27 auto-obsoleted due to no activity on 2023/01/13 19:58
linux-4.14 KASAN: use-after-free Read in lbmIODone jfs C 68 493d 1367d 0/1 upstream: reported C repro on 2020/09/23 00:55
linux-5.15 KASAN: use-after-free Read in lbmIODone 1 37d 37d 0/3 upstream: reported on 2024/05/14 10:14

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in lbmIODone+0xcb0/0xf40 fs/jfs/jfs_logmgr.c:2207
Read of size 4 at addr ffff8880a93b9108 by task loop2/1857

CPU: 0 PID: 1857 Comm: loop2 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256
 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354
 kasan_report mm/kasan/report.c:412 [inline]
 __asan_report_load4_noabort+0x88/0x90 mm/kasan/report.c:432
 lbmIODone+0xcb0/0xf40 fs/jfs/jfs_logmgr.c:2207
 bio_endio+0x488/0x830 block/bio.c:1780
 req_bio_endio block/blk-core.c:278 [inline]
 blk_update_request+0x30f/0xaf0 block/blk-core.c:3112
 blk_mq_end_request+0x4a/0x340 block/blk-mq.c:544
 lo_complete_rq+0x201/0x2d0 drivers/block/loop.c:487
 __blk_mq_complete_request block/blk-mq.c:583 [inline]
 blk_mq_complete_request+0x472/0x660 block/blk-mq.c:620
 loop_handle_cmd drivers/block/loop.c:1931 [inline]
 loop_queue_work+0x274/0x20c0 drivers/block/loop.c:1940
 kthread_worker_fn+0x292/0x730 kernel/kthread.c:700
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415

Allocated by task 1841:
 kmem_cache_alloc_trace+0x12f/0x380 mm/slab.c:3625
 kmalloc include/linux/slab.h:515 [inline]
 lbmLogInit fs/jfs/jfs_logmgr.c:1843 [inline]
 lmLogInit+0x301/0x13e0 fs/jfs/jfs_logmgr.c:1292
 open_inline_log fs/jfs/jfs_logmgr.c:1197 [inline]
 lmLogOpen+0x718/0x11e0 fs/jfs/jfs_logmgr.c:1090
 jfs_mount_rw+0x286/0x4b0 fs/jfs/jfs_mount.c:272
 jfs_fill_super+0x814/0xb50 fs/jfs/super.c:598
 mount_bdev+0x2fc/0x3b0 fs/super.c:1158
 mount_fs+0xa3/0x310 fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2492 [inline]
 do_mount+0x115c/0x2f50 fs/namespace.c:2822
 ksys_mount+0xcf/0x130 fs/namespace.c:3038
 __do_sys_mount fs/namespace.c:3052 [inline]
 __se_sys_mount fs/namespace.c:3049 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3049
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe

Freed by task 8135:
 __cache_free mm/slab.c:3503 [inline]
 kfree+0xcc/0x210 mm/slab.c:3822
 lbmLogShutdown fs/jfs/jfs_logmgr.c:1886 [inline]
 lmLogShutdown+0x2c6/0x580 fs/jfs/jfs_logmgr.c:1706
 lmLogClose+0x4a1/0x610 fs/jfs/jfs_logmgr.c:1482
 jfs_umount+0x25f/0x310 fs/jfs/jfs_umount.c:129
 jfs_put_super+0x61/0x140 fs/jfs/super.c:223
 generic_shutdown_super+0x144/0x370 fs/super.c:456
 kill_block_super+0x97/0xf0 fs/super.c:1185
 deactivate_locked_super+0x94/0x160 fs/super.c:329
 deactivate_super+0x174/0x1a0 fs/super.c:360
 cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe

The buggy address belongs to the object at ffff8880a93b9100
 which belongs to the cache kmalloc-192 of size 192
The buggy address is located 8 bytes inside of
 192-byte region [ffff8880a93b9100, ffff8880a93b91c0)
The buggy address belongs to the page:
page:ffffea0002a4ee40 count:1 mapcount:0 mapping:ffff88813bff0040 index:0x0
flags: 0xfff00000000100(slab)
raw: 00fff00000000100 ffffea0002a3c648 ffffea0002864f48 ffff88813bff0040
raw: 0000000000000000 ffff8880a93b9000 0000000100000010 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8880a93b9000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8880a93b9080: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff8880a93b9100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                      ^
 ffff8880a93b9180: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff8880a93b9200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Crashes (150):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/25 18:23 linux-4.19.y 3f8a27f9e27b 0042f2b4 .config console log report syz C ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/06/10 19:50 linux-4.19.y 3f8a27f9e27b 0d5abf15 .config console log report syz C ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/05/17 17:13 linux-4.19.y 3f8a27f9e27b 744a39e2 .config console log report syz C ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/04/11 13:50 linux-4.19.y 3f8a27f9e27b e22c3da3 .config console log report syz C ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/02/23 01:43 linux-4.19.y 3f8a27f9e27b 6e821dbf .config console log report syz C ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2021/12/16 08:20 linux-4.19.y 3f8a27f9e27b 572bcb40 .config console log report syz C ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2021/10/17 07:40 linux-4.19.y 3f8a27f9e27b 0c5d9412 .config console log report syz C ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2021/08/25 04:10 linux-4.19.y 59456c9cc40c b599f2fc .config console log report syz C ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2021/03/27 15:29 linux-4.19.y 78fec1611cbf a8529b82 .config console log report syz C ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2021/02/27 01:41 linux-4.19.y 2d19be4653f5 4c37c133 .config console log report syz C ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2021/01/19 07:20 linux-4.19.y c110fed0e606 63631df1 .config console log report syz C ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2021/01/14 13:51 linux-4.19.y 675cc038067f 269d24e8 .config console log report syz C ci2-linux-4-19
2021/01/08 08:05 linux-4.19.y 4143d798313f c104d4a3 .config console log report syz C ci2-linux-4-19
2020/12/15 14:57 linux-4.19.y 13d2ce42de8c 97183ed7 .config console log report syz C ci2-linux-4-19
2020/12/13 02:19 linux-4.19.y 13d2ce42de8c bca53db9 .config console log report syz C ci2-linux-4-19
2020/12/02 21:35 linux-4.19.y daefdc9eb24b eff43e99 .config console log report syz C ci2-linux-4-19
2020/11/19 05:40 linux-4.19.y 2c746135a12e 0767f13f .config console log report syz C ci2-linux-4-19
2020/11/17 17:56 linux-4.19.y 31acccdc8774 bd2a760b .config console log report syz C ci2-linux-4-19
2020/11/09 05:19 linux-4.19.y b94de4d19498 cba33199 .config console log report syz C ci2-linux-4-19
2023/01/05 06:20 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report syz [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/12/29 02:58 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report syz [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/11/01 17:53 linux-4.19.y 3f8a27f9e27b a1d8560a .config console log report syz [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/10/07 18:11 linux-4.19.y 3f8a27f9e27b 79a59635 .config console log report syz [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/10/02 17:20 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report syz [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/09/26 07:12 linux-4.19.y 3f8a27f9e27b 0042f2b4 .config console log report syz ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/06/11 13:53 linux-4.19.y 3f8a27f9e27b 0d5abf15 .config console log report syz ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/02/20 03:53 linux-4.19.y 3f8a27f9e27b 3cd800e4 .config console log report syz ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2021/12/19 20:02 linux-4.19.y 3f8a27f9e27b 44068e19 .config console log report syz ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2021/10/18 13:41 linux-4.19.y 3f8a27f9e27b 0c5d9412 .config console log report syz ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2021/02/15 10:08 linux-4.19.y 811218eceeaa 98682e5e .config console log report syz ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2020/11/20 09:43 linux-4.19.y 2c746135a12e 0767f13f .config console log report syz ci2-linux-4-19
2023/02/13 12:05 linux-4.19.y 3f8a27f9e27b 957959cb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2023/02/07 21:50 linux-4.19.y 3f8a27f9e27b 15c3d445 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2023/01/13 03:51 linux-4.19.y 3f8a27f9e27b 96166539 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2023/01/12 04:41 linux-4.19.y 3f8a27f9e27b 96166539 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/12/29 18:55 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/12/28 05:22 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/11/30 09:10 linux-4.19.y 3f8a27f9e27b 579a3740 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/11/13 00:06 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/11/11 02:36 linux-4.19.y 3f8a27f9e27b 3ead01ad .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/11/09 11:52 linux-4.19.y 3f8a27f9e27b 5fa28208 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/11/02 16:58 linux-4.19.y 3f8a27f9e27b 08977f5d .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/11/02 14:03 linux-4.19.y 3f8a27f9e27b 08977f5d .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/10/14 18:29 linux-4.19.y 3f8a27f9e27b 4954e4b2 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/10/07 16:34 linux-4.19.y 3f8a27f9e27b 79a59635 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/09/27 10:39 linux-4.19.y 3f8a27f9e27b 10323ddf .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/09/27 06:11 linux-4.19.y 3f8a27f9e27b 10323ddf .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/09/15 13:00 linux-4.19.y 3f8a27f9e27b dd9a85ff .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/09/13 11:31 linux-4.19.y 3f8a27f9e27b a08652b0 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/09/11 23:11 linux-4.19.y 3f8a27f9e27b 356d8217 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/09/10 12:04 linux-4.19.y 3f8a27f9e27b 356d8217 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/08/31 21:44 linux-4.19.y 3f8a27f9e27b 51e54e30 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/08/31 04:52 linux-4.19.y 3f8a27f9e27b 4a380809 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/08/13 14:48 linux-4.19.y 3f8a27f9e27b 8dfcaa3d .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/08/08 02:23 linux-4.19.y 3f8a27f9e27b 88e3a122 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/07/30 02:40 linux-4.19.y 3f8a27f9e27b fef302b1 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/07/25 18:05 linux-4.19.y 3f8a27f9e27b 664c519c .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/07/19 13:02 linux-4.19.y 3f8a27f9e27b 72a3cc0c .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/07/17 03:06 linux-4.19.y 3f8a27f9e27b 95cb00d1 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/07/08 06:57 linux-4.19.y 3f8a27f9e27b bff65f44 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/07/07 04:13 linux-4.19.y 3f8a27f9e27b bff65f44 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/07/01 11:09 linux-4.19.y 3f8a27f9e27b 1434eec0 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/06/20 00:48 linux-4.19.y 3f8a27f9e27b 8f633d84 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/06/19 01:30 linux-4.19.y 3f8a27f9e27b 8f633d84 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/06/17 16:47 linux-4.19.y 3f8a27f9e27b cb58b3b2 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/06/17 15:20 linux-4.19.y 3f8a27f9e27b cb58b3b2 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/05/22 17:46 linux-4.19.y 3f8a27f9e27b 7268fa62 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/05/10 08:06 linux-4.19.y 3f8a27f9e27b 8b277b8e .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/05/02 23:10 linux-4.19.y 3f8a27f9e27b 2df221f6 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/04/25 01:46 linux-4.19.y 3f8a27f9e27b 131df97d .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/03/27 03:13 linux-4.19.y 3f8a27f9e27b 89bc8608 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/03/12 19:33 linux-4.19.y 3f8a27f9e27b 9e8eaa75 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/03/12 07:29 linux-4.19.y 3f8a27f9e27b 9e8eaa75 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/03/11 17:30 linux-4.19.y 3f8a27f9e27b 9e8eaa75 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/03/06 15:17 linux-4.19.y 3f8a27f9e27b 7bdd8b2c .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/02/26 14:00 linux-4.19.y 3f8a27f9e27b 45a13a73 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/02/22 23:42 linux-4.19.y 3f8a27f9e27b 6e821dbf .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/02/14 06:42 linux-4.19.y 3f8a27f9e27b 8b9ca619 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/02/06 20:41 linux-4.19.y 3f8a27f9e27b a7dab638 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2022/01/27 20:09 linux-4.19.y 3f8a27f9e27b 64a8e201 .config console log report info ci2-linux-4-19 KASAN: use-after-free Read in lbmIODone
2021/01/16 05:32 linux-4.19.y 675cc038067f 65a7a854 .config console log report info ci2-linux-4-19
2020/10/22 09:36 linux-4.19.y ad326970d25c be6b1582 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.