syzbot


KASAN: use-after-free Read in lbmIODone (3)

Status: auto-obsoleted due to no activity on 2025/08/20 03:33
Reported-by: syzbot+b4dfaa97403e1200d9fa@syzkaller.appspotmail.com
First crash: 113d, last: 113d
Similar bugs (7)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 KASAN: use-after-free Read in lbmIODone jfs 19 C 150 932d 1776d 0/1 upstream: reported C repro on 2020/10/22 09:37
upstream KASAN: use-after-free Read in lbmIODone (2) jfs 19 syz 117 439d 916d 0/29 auto-obsoleted due to no activity on 2024/08/29 23:10
linux-6.1 KASAN: use-after-free Read in lbmIODone 19 1 514d 514d 0/3 auto-obsoleted due to no activity on 2024/07/15 22:58
upstream KASAN: use-after-free Read in lbmIODone jfs 19 syz inconclusive unreliable 20 1267d 1807d 0/29 auto-obsoleted due to no activity on 2023/01/13 19:58
linux-5.15 KASAN: use-after-free Read in lbmIODone (2) 19 1 249d 249d 0/3 auto-obsoleted due to no activity on 2025/04/06 05:07
linux-4.14 KASAN: use-after-free Read in lbmIODone jfs 19 C 68 932d 1805d 0/1 upstream: reported C repro on 2020/09/23 00:55
linux-5.15 KASAN: use-after-free Read in lbmIODone 19 1 476d 476d 0/3 auto-obsoleted due to no activity on 2024/08/22 10:14

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in lbmIODone+0xfb4/0x1300 fs/jfs/jfs_logmgr.c:2207
Read of size 4 at addr ffff0000cee88208 by task ksoftirqd/1/20

CPU: 1 PID: 20 Comm: ksoftirqd/1 Not tainted 5.15.182-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
Call trace:
 dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152
 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
 __dump_stack+0x30/0x40 lib/dump_stack.c:88
 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106
 print_address_description+0x78/0x30c mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:434 [inline]
 kasan_report+0xec/0x15c mm/kasan/report.c:451
 __asan_report_load4_noabort+0x44/0x50 mm/kasan/report_generic.c:308
 lbmIODone+0xfb4/0x1300 fs/jfs/jfs_logmgr.c:2207
 bio_endio+0x744/0x788 block/bio.c:1475
 req_bio_endio block/blk-core.c:261 [inline]
 blk_update_request+0x7a4/0x1100 block/blk-core.c:1441
 blk_mq_end_request+0x54/0x88 block/blk-mq.c:575
 lo_complete_rq+0x1ec/0x250 drivers/block/loop.c:529
 blk_complete_reqs block/blk-mq.c:587 [inline]
 blk_done_softirq+0x11c/0x168 block/blk-mq.c:592
 handle_softirqs+0x344/0xbf0 kernel/softirq.c:558
 run_ksoftirqd+0x7c/0x2a0 kernel/softirq.c:925
 smpboot_thread_fn+0x4b0/0x920 kernel/smpboot.c:164
 kthread+0x374/0x454 kernel/kthread.c:334
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870

Allocated by task 4568:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:434 [inline]
 ____kasan_kmalloc mm/kasan/common.c:513 [inline]
 __kasan_kmalloc+0xb0/0xf0 mm/kasan/common.c:522
 kasan_kmalloc include/linux/kasan.h:264 [inline]
 kmem_cache_alloc_trace+0x274/0x3fc mm/slub.c:3247
 kmalloc include/linux/slab.h:604 [inline]
 lbmLogInit fs/jfs/jfs_logmgr.c:1830 [inline]
 lmLogInit+0x2f8/0x15a4 fs/jfs/jfs_logmgr.c:1278
 open_inline_log fs/jfs/jfs_logmgr.c:1183 [inline]
 lmLogOpen+0x41c/0xd68 fs/jfs/jfs_logmgr.c:1077
 jfs_mount_rw+0xe4/0x50c fs/jfs/jfs_mount.c:253
 jfs_fill_super+0x49c/0x960 fs/jfs/super.c:570
 mount_bdev+0x264/0x358 fs/super.c:1400
 jfs_do_mount+0x44/0x58 fs/jfs/super.c:675
 legacy_get_tree+0xd4/0x16c fs/fs_context.c:611
 vfs_get_tree+0x90/0x274 fs/super.c:1530
 do_new_mount+0x228/0x810 fs/namespace.c:3013
 path_mount+0x5b4/0x1000 fs/namespace.c:3343
 do_mount fs/namespace.c:3356 [inline]
 __do_sys_mount fs/namespace.c:3564 [inline]
 __se_sys_mount fs/namespace.c:3541 [inline]
 __arm64_sys_mount+0x514/0x5e4 fs/namespace.c:3541
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584

Freed by task 4023:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track+0x4c/0x84 mm/kasan/common.c:46
 kasan_set_free_info+0x28/0x4c mm/kasan/generic.c:360
 ____kasan_slab_free+0x118/0x164 mm/kasan/common.c:366
 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:374
 kasan_slab_free include/linux/kasan.h:230 [inline]
 slab_free_hook mm/slub.c:1705 [inline]
 slab_free_freelist_hook+0x128/0x1e8 mm/slub.c:1731
 slab_free mm/slub.c:3499 [inline]
 kfree+0x170/0x40c mm/slub.c:4559
 lbmLogShutdown fs/jfs/jfs_logmgr.c:1873 [inline]
 lmLogShutdown+0x36c/0x700 fs/jfs/jfs_logmgr.c:1692
 lmLogClose+0x244/0x4c8 fs/jfs/jfs_logmgr.c:1468
 jfs_umount+0x244/0x328 fs/jfs/jfs_umount.c:116
 jfs_put_super+0x90/0x188 fs/jfs/super.c:194
 generic_shutdown_super+0x130/0x2f0 fs/super.c:475
 kill_block_super+0x70/0xdc fs/super.c:1427
 deactivate_locked_super+0xb8/0x13c fs/super.c:335
 deactivate_super+0xf8/0x118 fs/super.c:366
 cleanup_mnt+0x3a4/0x458 fs/namespace.c:1143
 __cleanup_mnt+0x20/0x30 fs/namespace.c:1150
 task_work_run+0x12c/0x1e0 kernel/task_work.c:188
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 do_notify_resume+0x24b4/0x3128 arch/arm64/kernel/signal.c:949
 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
 el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609
 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584

Last potentially related work creation:
 kasan_save_stack+0x38/0x68 mm/kasan/common.c:38
 kasan_record_aux_stack+0xcc/0x114 mm/kasan/generic.c:348
 insert_work+0x64/0x388 kernel/workqueue.c:1366
 __queue_work+0xb30/0x1054 kernel/workqueue.c:1532
 queue_work_on+0xc4/0x17c kernel/workqueue.c:1559
 queue_work include/linux/workqueue.h:512 [inline]
 addr_event+0x2f8/0x3f0 drivers/infiniband/core/roce_gid_mgmt.c:853
 inetaddr_event+0xe8/0x148 drivers/infiniband/core/roce_gid_mgmt.c:869
 notifier_call_chain kernel/notifier.c:83 [inline]
 blocking_notifier_call_chain+0xf0/0x198 kernel/notifier.c:318
 __inet_insert_ifa+0x888/0xa4c net/ipv4/devinet.c:568
 inet_rtm_newaddr+0xd44/0x1540 net/ipv4/devinet.c:967
 rtnetlink_rcv_msg+0x9d4/0xd04 net/core/rtnetlink.c:5650
 netlink_rcv_skb+0x208/0x3c4 net/netlink/af_netlink.c:2489
 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:5668
 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline]
 netlink_unicast+0x60c/0x89c net/netlink/af_netlink.c:1337
 netlink_sendmsg+0x6e8/0x9cc net/netlink/af_netlink.c:1905
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 __sys_sendto+0x2e8/0x3d8 net/socket.c:2063
 __do_sys_sendto net/socket.c:2075 [inline]
 __se_sys_sendto net/socket.c:2071 [inline]
 __arm64_sys_sendto+0xd8/0xf8 net/socket.c:2071
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584

Second to last potentially related work creation:
 kasan_save_stack+0x38/0x68 mm/kasan/common.c:38
 kasan_record_aux_stack+0xcc/0x114 mm/kasan/generic.c:348
 insert_work+0x64/0x388 kernel/workqueue.c:1366
 __queue_work+0xb30/0x1054 kernel/workqueue.c:1532
 queue_work_on+0xc4/0x17c kernel/workqueue.c:1559
 queue_work include/linux/workqueue.h:512 [inline]
 call_usermodehelper_exec+0x22c/0x478 kernel/umh.c:435
 kobject_uevent_env+0x670/0x888 lib/kobject_uevent.c:633
 kobject_uevent+0x2c/0x3c lib/kobject_uevent.c:657
 driver_bound+0x150/0x268 drivers/base/dd.c:400
 really_probe+0x6c8/0xaec drivers/base/dd.c:649
 __driver_probe_device+0x180/0x314 drivers/base/dd.c:755
 driver_probe_device+0x78/0x34c drivers/base/dd.c:785
 __device_attach_driver+0x274/0x4c4 drivers/base/dd.c:907
 bus_for_each_drv+0x150/0x1d8 drivers/base/bus.c:429
 __device_attach+0x2a8/0x3d4 drivers/base/dd.c:979
 device_initial_probe+0x24/0x34 drivers/base/dd.c:1028
 bus_probe_device+0xbc/0x1c4 drivers/base/bus.c:489
 device_add+0xb04/0xf94 drivers/base/core.c:3412
 usb_set_configuration+0x15b8/0x1b2c drivers/usb/core/message.c:2165
 usb_generic_driver_probe+0x8c/0x144 drivers/usb/core/generic.c:238
 usb_probe_device+0x120/0x25c drivers/usb/core/driver.c:293
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x26c/0xaec drivers/base/dd.c:595
 __driver_probe_device+0x180/0x314 drivers/base/dd.c:755
 driver_probe_device+0x78/0x34c drivers/base/dd.c:785
 __device_attach_driver+0x274/0x4c4 drivers/base/dd.c:907
 bus_for_each_drv+0x150/0x1d8 drivers/base/bus.c:429
 __device_attach+0x2a8/0x3d4 drivers/base/dd.c:979
 device_initial_probe+0x24/0x34 drivers/base/dd.c:1028
 bus_probe_device+0xbc/0x1c4 drivers/base/bus.c:489
 device_add+0xb04/0xf94 drivers/base/core.c:3412
 usb_new_device+0x7ec/0x1164 drivers/usb/core/hub.c:2604
 register_root_hub+0x224/0x538 drivers/usb/core/hcd.c:1021
 usb_add_hcd+0x90c/0xd5c drivers/usb/core/hcd.c:3001
 dummy_hcd_probe+0x148/0x27c drivers/usb/gadget/udc/dummy_hcd.c:2675
 platform_probe+0x13c/0x1b4 drivers/base/platform.c:1391
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x26c/0xaec drivers/base/dd.c:595
 __driver_probe_device+0x180/0x314 drivers/base/dd.c:755
 driver_probe_device+0x78/0x34c drivers/base/dd.c:785
 __device_attach_driver+0x274/0x4c4 drivers/base/dd.c:907
 bus_for_each_drv+0x150/0x1d8 drivers/base/bus.c:429
 __device_attach+0x2a8/0x3d4 drivers/base/dd.c:979
 device_initial_probe+0x24/0x34 drivers/base/dd.c:1028
 bus_probe_device+0xbc/0x1c4 drivers/base/bus.c:489
 device_add+0xb04/0xf94 drivers/base/core.c:3412
 platform_device_add+0x3f8/0x6ec drivers/base/platform.c:712
 init+0x35c/0xf38 drivers/usb/gadget/udc/dummy_hcd.c:2828
 do_one_initcall+0x228/0x8b0 init/main.c:1302
 do_initcall_level+0x154/0x214 init/main.c:1375
 do_initcalls+0x58/0xac init/main.c:1391
 do_basic_setup+0x8c/0xa0 init/main.c:1410
 kernel_init_freeable+0x404/0x5fc init/main.c:1615
 kernel_init+0x24/0x1d0 init/main.c:1506
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870

The buggy address belongs to the object at ffff0000cee88200
 which belongs to the cache kmalloc-256 of size 256
The buggy address is located 8 bytes inside of
 256-byte region [ffff0000cee88200, ffff0000cee88300)
The buggy address belongs to the page:
page:0000000071683bf9 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10ee88
head:0000000071683bf9 order:1 compound_mapcount:0
flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff)
raw: 05ffc00000010200 0000000000000000 0000000600000001 ffff0000c0002480
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff0000cee88100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff0000cee88180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff0000cee88200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                      ^
 ffff0000cee88280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff0000cee88300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/12 03:32 linux-5.15.y 3b8db0e4f263 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read in lbmIODone
* Struck through repros no longer work on HEAD.