ci2 starts bisection 2023-04-19 06:03:33.645802333 +0000 UTC m=+453.267873739 bisecting fixing commit since e8d018dd0257f744ca50a729e3d042cf2ec9da65 building syzkaller on 7939252e4ddf50bbb9912069a40d32f6c83c4f8e ensuring issue is reproducible on original commit e8d018dd0257f744ca50a729e3d042cf2ec9da65 testing commit e8d018dd0257f744ca50a729e3d042cf2ec9da65 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a812cf93115cf46a09018ffc403acf9cf0dad2d3afa727e4f782161c6e1f270f all runs: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage testing current HEAD af67688dca57999fd848f051eeea1d375ba546b2 testing commit af67688dca57999fd848f051eeea1d375ba546b2 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2fee4c43c1d68f9d80d5fc120a055b3cf27078591dc1b8634172096a6cd2ff49 all runs: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage revisions tested: 2, total time: 51m40.688231823s (build: 38m30.101357426s, test: 11m4.194734457s) the crash still happens on HEAD commit msg: Merge tag 'mmc-v6.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc crash: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy_from_page include/linux/highmem.h:391 [inline] BUG: KASAN: slab-out-of-bounds in udf_adinicb_writepage+0x182/0x2b0 fs/udf/inode.c:196 Write of size 1030 at addr ffff88806bdb8400 by task syz-executor.4/7077 CPU: 0 PID: 7077 Comm: syz-executor.4 Not tainted 6.3.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x167/0x220 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:319 [inline] print_report+0x163/0x540 mm/kasan/report.c:430 kasan_report+0x176/0x1b0 mm/kasan/report.c:536 kasan_check_range+0x283/0x290 mm/kasan/generic.c:187 __asan_memcpy+0x40/0x70 mm/kasan/shadow.c:106 memcpy_from_page include/linux/highmem.h:391 [inline] udf_adinicb_writepage+0x182/0x2b0 fs/udf/inode.c:196 write_cache_pages+0x696/0xd90 mm/page-writeback.c:2473 do_writepages+0x33b/0x5d0 mm/page-writeback.c:2551 filemap_fdatawrite_wbc+0xe1/0x140 mm/filemap.c:390 __filemap_fdatawrite_range mm/filemap.c:423 [inline] file_write_and_wait_range+0x1ca/0x290 mm/filemap.c:781 __generic_file_fsync+0x6d/0x110 fs/libfs.c:1132 generic_file_fsync+0x6e/0xd0 fs/libfs.c:1173 generic_write_sync include/linux/fs.h:2452 [inline] udf_file_write_iter+0x447/0x530 fs/udf/file.c:126 do_iter_write+0x668/0xad0 fs/read_write.c:861 iter_file_splice_write+0x7c4/0xfc0 fs/splice.c:778 do_splice_from fs/splice.c:856 [inline] direct_splice_actor+0xe2/0x1a0 fs/splice.c:1022 splice_direct_to_actor+0x42e/0xa60 fs/splice.c:977 do_splice_direct+0x268/0x3a0 fs/splice.c:1065 do_sendfile+0x4f5/0xc20 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x143/0x190 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f842b28c0f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f842bf24168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f842b3abf80 RCX: 00007f842b28c0f9 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006 RBP: 00007f842b2e7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffe195814f R14: 00007f842bf24300 R15: 0000000000022000 Allocated by task 7077: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:196 [inline] __do_kmalloc_node mm/slab_common.c:967 [inline] __kmalloc+0xb9/0x230 mm/slab_common.c:980 udf_new_inode+0x28d/0xc50 udf_create+0x18/0xd0 fs/udf/namei.c:384 lookup_open fs/namei.c:3416 [inline] open_last_lookups fs/namei.c:3484 [inline] path_openat+0xf1e/0x2c10 fs/namei.c:3712 do_filp_open+0x22a/0x440 fs/namei.c:3742 do_sys_openat2+0x10f/0x430 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_creat fs/open.c:1440 [inline] __se_sys_creat fs/open.c:1434 [inline] __x64_sys_creat+0x11e/0x160 fs/open.c:1434 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Last potentially related work creation: kasan_save_stack+0x3f/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb0/0xc0 mm/kasan/generic.c:491 insert_work+0x4f/0x330 kernel/workqueue.c:1361 __queue_work+0x886/0xb30 kernel/workqueue.c:1524 call_timer_fn+0x12f/0x3a0 kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1746 [inline] __run_timers+0x5c6/0x6e0 kernel/time/timer.c:2022 run_timer_softirq+0x4a/0xb0 kernel/time/timer.c:2035 __do_softirq+0x2ab/0x908 kernel/softirq.c:571 Second to last potentially related work creation: kasan_save_stack+0x3f/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb0/0xc0 mm/kasan/generic.c:491 __call_rcu_common kernel/rcu/tree.c:2622 [inline] call_rcu+0x167/0xa70 kernel/rcu/tree.c:2736 fib6_info_release include/net/ip6_fib.h:340 [inline] ip6_route_info_create+0x8b4/0x1170 net/ipv6/route.c:3822 ip6_route_add+0x17/0xe0 net/ipv6/route.c:3836 addrconf_prefix_route+0x2d2/0x4c0 net/ipv6/addrconf.c:2425 inet6_addr_add+0x3e5/0x870 net/ipv6/addrconf.c:2972 inet6_rtm_newaddr+0x8bf/0x2390 net/ipv6/addrconf.c:4932 rtnetlink_rcv_msg+0x65c/0xbf0 net/core/rtnetlink.c:6181 netlink_rcv_skb+0x1dd/0x3d0 net/netlink/af_netlink.c:2577 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x5ca/0x830 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x7a0/0xb50 net/netlink/af_netlink.c:1942 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg net/socket.c:747 [inline] __sys_sendto+0x3e8/0x570 net/socket.c:2142 __do_sys_sendto net/socket.c:2154 [inline] __se_sys_sendto net/socket.c:2150 [inline] __x64_sys_sendto+0xd9/0xf0 net/socket.c:2150 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88806bdb8400 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 0 bytes inside of allocated 336-byte region [ffff88806bdb8400, ffff88806bdb8550) The buggy address belongs to the physical page: page:ffffea0001af6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6bdb8 head:ffffea0001af6e00 order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffff888011041c80 ffffea0001aaf500 dead000000000002 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 5539, tgid 5539 (syz-executor.0), ts 79321831409, free_ts 78531083827 prep_new_page mm/page_alloc.c:2553 [inline] get_page_from_freelist+0x3246/0x33c0 mm/page_alloc.c:4326 __alloc_pages+0x255/0x670 mm/page_alloc.c:5592 alloc_slab_page+0x6a/0x160 mm/slub.c:1851 allocate_slab mm/slub.c:1998 [inline] new_slab+0x84/0x2f0 mm/slub.c:2051 ___slab_alloc+0xa85/0x10a0 mm/slub.c:3193 __slab_alloc mm/slub.c:3292 [inline] __slab_alloc_node mm/slub.c:3345 [inline] slab_alloc_node mm/slub.c:3442 [inline] __kmem_cache_alloc_node+0x1b8/0x290 mm/slub.c:3491 __do_kmalloc_node mm/slab_common.c:966 [inline] __kmalloc+0xa8/0x230 mm/slab_common.c:980 kmalloc include/linux/slab.h:584 [inline] kzalloc include/linux/slab.h:720 [inline] fib6_info_alloc+0x29/0xc0 net/ipv6/ip6_fib.c:155 ip6_route_info_create+0x360/0x1170 net/ipv6/route.c:3742 addrconf_f6i_alloc+0x380/0x6d0 net/ipv6/route.c:4564 ipv6_add_addr+0x38e/0xee0 net/ipv6/addrconf.c:1105 inet6_addr_add+0x30b/0x870 net/ipv6/addrconf.c:2969 inet6_rtm_newaddr+0x8bf/0x2390 net/ipv6/addrconf.c:4932 rtnetlink_rcv_msg+0x65c/0xbf0 net/core/rtnetlink.c:6181 netlink_rcv_skb+0x1dd/0x3d0 net/netlink/af_netlink.c:2577 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x5ca/0x830 net/netlink/af_netlink.c:1365 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1454 [inline] free_pcp_prepare mm/page_alloc.c:1504 [inline] free_unref_page_prepare+0xe2f/0xe70 mm/page_alloc.c:3388 free_unref_page+0x37/0x3f0 mm/page_alloc.c:3483 discard_slab mm/slub.c:2098 [inline] __unfreeze_partials+0x1b1/0x1f0 mm/slub.c:2637 put_cpu_partial+0x116/0x180 mm/slub.c:2713 qlist_free_all+0x22/0x60 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x14b/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x23/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook+0x68/0x3a0 mm/slab.h:769 slab_alloc_node mm/slub.c:3452 [inline] __kmem_cache_alloc_node+0x14c/0x290 mm/slub.c:3491 kmalloc_trace+0x2a/0xe0 mm/slab_common.c:1061 kmalloc include/linux/slab.h:580 [inline] kzalloc include/linux/slab.h:720 [inline] kernfs_fop_open+0x319/0xb10 fs/kernfs/file.c:670 do_dentry_open+0x5fc/0xdd0 fs/open.c:920 do_open fs/namei.c:3560 [inline] path_openat+0x255a/0x2c10 fs/namei.c:3715 do_filp_open+0x22a/0x440 fs/namei.c:3742 do_sys_openat2+0x10f/0x430 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_openat fs/open.c:1380 [inline] __se_sys_openat fs/open.c:1375 [inline] __x64_sys_openat+0x20d/0x260 fs/open.c:1375 Memory state around the buggy address: ffff88806bdb8400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806bdb8480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806bdb8500: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ^ ffff88806bdb8580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806bdb8600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================