syzbot


KASAN: use-after-free Read in lbmIODone

Status: upstream: reported C repro on 2020/09/23 00:55
Subsystems: jfs
[Documentation on labels]
Reported-by: syzbot+9ab7fed86898172b0402@syzkaller.appspotmail.com
First crash: 1478d, last: 605d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 KASAN: use-after-free Read in lbmIODone jfs C 150 605d 1449d 0/1 upstream: reported C repro on 2020/10/22 09:37
upstream KASAN: use-after-free Read in lbmIODone (2) jfs syz 117 111d 588d 0/28 auto-obsoleted due to no activity on 2024/08/29 23:10
linux-6.1 KASAN: use-after-free Read in lbmIODone 1 186d 186d 0/3 auto-obsoleted due to no activity on 2024/07/15 22:58
upstream KASAN: use-after-free Read in lbmIODone jfs syz inconclusive unreliable 20 940d 1480d 0/28 auto-obsoleted due to no activity on 2023/01/13 19:58
linux-5.15 KASAN: use-after-free Read in lbmIODone 1 149d 149d 0/3 auto-obsoleted due to no activity on 2024/08/22 10:14
Fix bisection attempts (12)
Created Duration User Patch Repo Result
2022/08/29 13:25 29m bisect fix linux-4.14.y OK (0) job log log
2022/07/26 14:10 31m bisect fix linux-4.14.y OK (0) job log log
2022/06/26 13:49 20m bisect fix linux-4.14.y OK (0) job log log
2022/04/25 03:54 22m bisect fix linux-4.14.y OK (0) job log log
2022/03/06 16:18 23m bisect fix linux-4.14.y OK (0) job log log
2022/01/05 19:35 36m bisect fix linux-4.14.y OK (0) job log log
2021/11/07 18:10 35m bisect fix linux-4.14.y OK (0) job log log
2021/10/08 17:36 33m bisect fix linux-4.14.y OK (0) job log log
2021/09/08 17:00 36m bisect fix linux-4.14.y OK (0) job log log
2021/08/09 16:25 34m bisect fix linux-4.14.y OK (0) job log log
2021/07/10 15:55 29m bisect fix linux-4.14.y OK (0) job log log
2021/06/10 15:18 37m bisect fix linux-4.14.y OK (0) job log log

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in lbmIODone+0xb75/0xe00 fs/jfs/jfs_logmgr.c:2207
Read of size 4 at addr ffff8880ab3b7208 by task loop4/17752

CPU: 1 PID: 17752 Comm: loop4 Not tainted 4.14.295-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252
 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351
 kasan_report mm/kasan/report.c:409 [inline]
 __asan_report_load4_noabort+0x68/0x70 mm/kasan/report.c:429
 lbmIODone+0xb75/0xe00 fs/jfs/jfs_logmgr.c:2207
 bio_endio+0x290/0x690 block/bio.c:1918
 req_bio_endio block/blk-core.c:204 [inline]
 blk_update_request+0x2d0/0xa90 block/blk-core.c:2765
 blk_mq_end_request+0x4c/0x1e0 block/blk-mq.c:530
 __blk_mq_complete_request+0x30b/0x6c0 block/blk-mq.c:571
 blk_mq_complete_request+0x52/0x60 block/blk-mq.c:591
 loop_handle_cmd drivers/block/loop.c:1789 [inline]
 loop_queue_work+0x228/0x21e0 drivers/block/loop.c:1798
 kthread_worker_fn+0x271/0x6c0 kernel/kthread.c:667
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404

Allocated by task 17742:
 save_stack mm/kasan/kasan.c:447 [inline]
 set_track mm/kasan/kasan.c:459 [inline]
 kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551
 kmem_cache_alloc_trace+0x131/0x3d0 mm/slab.c:3618
 kmalloc include/linux/slab.h:488 [inline]
 lbmLogInit fs/jfs/jfs_logmgr.c:1843 [inline]
 lmLogInit+0x2f1/0x1300 fs/jfs/jfs_logmgr.c:1292
 open_inline_log fs/jfs/jfs_logmgr.c:1197 [inline]
 lmLogOpen+0x6b1/0x10e0 fs/jfs/jfs_logmgr.c:1090
 jfs_mount_rw+0x236/0x430 fs/jfs/jfs_mount.c:265
 jfs_fill_super+0x78a/0xab0 fs/jfs/super.c:598
 mount_bdev+0x2b3/0x360 fs/super.c:1134
 mount_fs+0x92/0x2a0 fs/super.c:1237
 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
 vfs_kern_mount fs/namespace.c:1036 [inline]
 do_new_mount fs/namespace.c:2572 [inline]
 do_mount+0xe65/0x2a30 fs/namespace.c:2905
 SYSC_mount fs/namespace.c:3121 [inline]
 SyS_mount+0xa8/0x120 fs/namespace.c:3098
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb

Freed by task 7997:
 save_stack mm/kasan/kasan.c:447 [inline]
 set_track mm/kasan/kasan.c:459 [inline]
 kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524
 __cache_free mm/slab.c:3496 [inline]
 kfree+0xc9/0x250 mm/slab.c:3815
 lbmLogShutdown fs/jfs/jfs_logmgr.c:1886 [inline]
 lmLogShutdown+0x2a9/0x540 fs/jfs/jfs_logmgr.c:1706
 lmLogClose+0x464/0x5d0 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:446
 kill_block_super+0x95/0xe0 fs/super.c:1161
 deactivate_locked_super+0x6c/0xd0 fs/super.c:319
 deactivate_super+0x7f/0xa0 fs/super.c:350
 cleanup_mnt+0x186/0x2c0 fs/namespace.c:1183
 task_work_run+0x11f/0x190 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:191 [inline]
 exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
 do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
 entry_SYSCALL_64_after_hwframe+0x46/0xbb

The buggy address belongs to the object at ffff8880ab3b7200
 which belongs to the cache kmalloc-192 of size 192
The buggy address is located 8 bytes inside of
 192-byte region [ffff8880ab3b7200, ffff8880ab3b72c0)
The buggy address belongs to the page:
page:ffffea0002acedc0 count:1 mapcount:0 mapping:ffff8880ab3b7000 index:0x0
flags: 0xfff00000000100(slab)
raw: 00fff00000000100 ffff8880ab3b7000 0000000000000000 0000000100000010
raw: ffffea00025ae020 ffffea00026ebc20 ffff88813fe74040 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8880ab3b7100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8880ab3b7180: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff8880ab3b7200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                      ^
 ffff8880ab3b7280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff8880ab3b7300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Crashes (68):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/09 22:29 linux-4.14.y 9d5c0b3a8e1a aea5da89 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/09/26 23:50 linux-4.14.y 4edbf74132a4 d59ba983 .config console log report syz C ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/09/25 14:01 linux-4.14.y 4edbf74132a4 0042f2b4 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/01/24 18:50 linux-4.14.y 4ba8e26127c3 214351e1 .config console log report syz C ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/01/23 10:51 linux-4.14.y 4ba8e26127c3 214351e1 .config console log report syz C ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/05/02 04:28 linux-4.14.y 7d7d1c0ab3eb 77e2b668 .config console log report syz C ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/02/22 04:57 linux-4.14.y 29c52025152b a659b3f1 .config console log report syz C ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/02/10 03:06 linux-4.14.y 2c8a3fceddf0 2bd9619f .config console log report syz C ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/01/08 21:34 linux-4.14.y 1752938529c6 c104d4a3 .config console log report syz C ci2-linux-4-14
2021/01/03 00:57 linux-4.14.y 1752938529c6 79264ae3 .config console log report syz C ci2-linux-4-14
2020/12/18 08:17 linux-4.14.y 3f2ecb86cb90 04201c06 .config console log report syz C ci2-linux-4-14
2020/11/07 04:27 linux-4.14.y 6b6446efedb2 cba33199 .config console log report syz C ci2-linux-4-14
2020/11/06 04:43 linux-4.14.y 6b6446efedb2 cba33199 .config console log report syz C ci2-linux-4-14
2020/10/23 09:42 linux-4.14.y 5b7a52cd2eef 4e740c00 .config console log report syz C ci2-linux-4-14
2020/10/21 03:47 linux-4.14.y cbfa1702aaf6 ff4a3345 .config console log report syz C ci2-linux-4-14
2023/02/13 04:23 linux-4.14.y a8ad60f2af58 93e26d60 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2023/02/04 07:15 linux-4.14.y 3949d1610004 1b2f701a .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2023/01/26 07:05 linux-4.14.y 3949d1610004 9dfcf09c .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2023/01/17 11:21 linux-4.14.y c4215ee4771b a63719e7 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/12/24 04:29 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/10/20 00:39 linux-4.14.y 9d5c0b3a8e1a b31320fc .config console log report syz [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/10/16 03:36 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report syz [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/10/11 13:37 linux-4.14.y 9d5c0b3a8e1a 5bcf0c31 .config console log report syz [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/10/02 09:27 linux-4.14.y 9d5c0b3a8e1a feb56351 .config console log report syz [disk image] [vmlinux] ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/09/25 12:23 linux-4.14.y 4edbf74132a4 0042f2b4 .config console log report syz [disk image] [vmlinux] ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2023/02/02 16:24 linux-4.14.y 3949d1610004 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/11/18 06:21 linux-4.14.y e911713e40ca 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/10/24 12:34 linux-4.14.y 9d5c0b3a8e1a faae2fda .config console log report info [disk image] [vmlinux] ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/09/18 11:10 linux-4.14.y 5df8b4735177 dd9a85ff .config console log report info [disk image] [vmlinux] ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/05/27 13:49 linux-4.14.y 501eec4f9e13 116e7a7b .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/05/05 20:50 linux-4.14.y e3a56aaade89 b3f09415 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/03/26 03:54 linux-4.14.y 004bfaafc45c 89bc8608 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/02/04 16:18 linux-4.14.y b86ee2b7ae42 a3e470b2 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/01/18 18:13 linux-4.14.y 4ba8e26127c3 731a2d23 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/01/15 00:34 linux-4.14.y 4ba8e26127c3 53e00b45 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2022/01/13 11:11 linux-4.14.y 4ba8e26127c3 44d1319a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/12/06 19:35 linux-4.14.y 66722c42ec91 579a8754 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/12/06 05:13 linux-4.14.y 66722c42ec91 a617004c .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/12/04 14:38 linux-4.14.y 66722c42ec91 a617004c .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/05/11 14:37 linux-4.14.y 7d7d1c0ab3eb ca873091 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/04/30 19:57 linux-4.14.y 7d7d1c0ab3eb 77e2b668 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/04/26 10:52 linux-4.14.y cf256fbcbe34 e60b7df1 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/04/24 01:03 linux-4.14.y cf256fbcbe34 17f0b706 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/04/23 09:00 linux-4.14.y cf256fbcbe34 590921a5 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/04/20 20:36 linux-4.14.y cf256fbcbe34 c0ced557 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/04/18 03:19 linux-4.14.y cf256fbcbe34 7e2b734b .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/04/15 03:43 linux-4.14.y 958e517f4e16 fcdb12ba .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/04/14 02:45 linux-4.14.y 958e517f4e16 a184b83e .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/04/08 16:04 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/04/07 15:33 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/04/04 04:32 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/03/27 10:59 linux-4.14.y 670d6552eda8 a8529b82 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/03/24 18:52 linux-4.14.y 670d6552eda8 607e3baf .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/03/13 17:28 linux-4.14.y c7150cd2fa8c 4a003785 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/02/28 16:57 linux-4.14.y 3242aa3a635c 4c37c133 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/02/20 23:21 linux-4.14.y 29c52025152b 3e5ed8b4 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/02/18 08:23 linux-4.14.y 2c8a3fceddf0 14052202 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/02/10 06:53 linux-4.14.y 2c8a3fceddf0 2bd9619f .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/02/10 02:03 linux-4.14.y 2c8a3fceddf0 2bd9619f .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/02/10 01:27 linux-4.14.y 2c8a3fceddf0 2bd9619f .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/02/07 14:38 linux-4.14.y 2c8a3fceddf0 2ce644fc .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/02/04 00:44 linux-4.14.y 2c8a3fceddf0 624dad51 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/01/28 15:19 linux-4.14.y 2d2791fce891 eefc07f2 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2021/01/21 22:01 linux-4.14.y 2762b48e9611 d4f4eca5 .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in lbmIODone
2020/12/20 19:54 linux-4.14.y 3f2ecb86cb90 04201c06 .config console log report info ci2-linux-4-14
2020/11/23 09:19 linux-4.14.y 0df445b0f0da 0d27f508 .config console log report info ci2-linux-4-14
2020/11/15 19:04 linux-4.14.y 27ce4f2a6817 1bf9a662 .config console log report info ci2-linux-4-14
2020/09/23 00:54 linux-4.14.y cbfa1702aaf6 3e8f6c27 .config console log report info ci2-linux-4-14
* Struck through repros no longer work on HEAD.