ci2 starts bisection 2023-05-26 19:23:45.394079586 +0000 UTC m=+7118.355518567 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: 11f01e6da7bb943fc849654f3ca47b5679b0d9c647fdac485ef703ff02477e4d run #0: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #1: crashed: kernel BUG in udf_adinicb_writepage run #2: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #3: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #4: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #5: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #6: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #7: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #8: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #9: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #10: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #11: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #12: crashed: kernel BUG in udf_adinicb_writepage run #13: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #14: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #15: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #16: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #17: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #18: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage run #19: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage testing current HEAD 0d85b27b0cc6b5cf54567c5ad913a247a71583ce testing commit 0d85b27b0cc6b5cf54567c5ad913a247a71583ce gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 971a9c82be2ff0ddeec246a6b36db56e5f84c294ae3185c763ead24f7ea39ebd all runs: crashed: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage crash still not fixed/happens on the oldest tested release revisions tested: 2, total time: 1h6m6.918070864s (build: 54m41.150331567s, test: 10m39.356407298s) crash still not fixed on HEAD or HEAD had kernel test errors commit msg: Merge tag '6.4-rc3-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 crash: KASAN: slab-out-of-bounds Write in udf_adinicb_writepage loop2: detected capacity change from 0 to 2048 UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) ================================================================== BUG: KASAN: slab-out-of-bounds in memcpy_from_file_folio include/linux/highmem.h:466 [inline] BUG: KASAN: slab-out-of-bounds in udf_adinicb_writepage+0x25b/0x490 fs/udf/inode.c:196 Write of size 1690 at addr ffff888028761c00 by task syz-executor.2/7123 CPU: 0 PID: 7123 Comm: syz-executor.2 Not tainted 6.4.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/16/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:351 [inline] print_report+0x163/0x540 mm/kasan/report.c:462 kasan_report+0x176/0x1b0 mm/kasan/report.c:572 kasan_check_range+0x283/0x290 mm/kasan/generic.c:187 __asan_memcpy+0x40/0x70 mm/kasan/shadow.c:106 memcpy_from_file_folio include/linux/highmem.h:466 [inline] udf_adinicb_writepage+0x25b/0x490 fs/udf/inode.c:196 write_cache_pages+0x692/0xd80 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:1127 generic_file_fsync+0x6e/0xd0 fs/libfs.c:1168 generic_write_sync include/linux/fs.h:2469 [inline] udf_file_write_iter+0x447/0x530 fs/udf/file.c:126 do_iter_write+0x776/0xbd0 fs/read_write.c:860 iter_file_splice_write+0x7c4/0xfc0 fs/splice.c:795 do_splice_from fs/splice.c:873 [inline] direct_splice_actor+0xe2/0x1a0 fs/splice.c:1039 splice_direct_to_actor+0x42e/0xa60 fs/splice.c:994 do_splice_direct+0x268/0x3a0 fs/splice.c:1082 do_sendfile+0x4f5/0xc20 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64+0x143/0x190 fs/read_write.c:1308 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:0x7f036ea8c0f9 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:00007f036f89a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f036ebabf80 RCX: 00007f036ea8c0f9 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006 RBP: 00007f036eae7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff3225759f R14: 00007f036f89a300 R15: 0000000000022000 Allocated by task 7123: 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:966 [inline] __kmalloc+0xb9/0x230 mm/slab_common.c:979 udf_new_inode+0x28d/0xc50 udf_create+0x18/0xd0 fs/udf/namei.c:384 lookup_open fs/namei.c:3492 [inline] open_last_lookups fs/namei.c:3560 [inline] path_openat+0xf1e/0x2c10 fs/namei.c:3788 do_filp_open+0x22a/0x440 fs/namei.c:3818 do_sys_openat2+0x10f/0x430 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_creat fs/open.c:1448 [inline] __se_sys_creat fs/open.c:1442 [inline] __x64_sys_creat+0x11e/0x160 fs/open.c:1442 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:1365 __queue_work+0x886/0xb30 kernel/workqueue.c:1526 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:2627 [inline] call_rcu+0x167/0xa70 kernel/rcu/tree.c:2741 fib6_info_release include/net/ip6_fib.h:337 [inline] ip6_route_info_create+0x8b4/0x1170 net/ipv6/route.c:3821 ip6_route_add+0x17/0xe0 net/ipv6/route.c:3835 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:4933 rtnetlink_rcv_msg+0x65c/0xbf0 net/core/rtnetlink.c:6395 netlink_rcv_skb+0x1dd/0x3d0 net/netlink/af_netlink.c:2546 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:1913 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg net/socket.c:747 [inline] __sys_sendto+0x3e8/0x570 net/socket.c:2144 __do_sys_sendto net/socket.c:2156 [inline] __se_sys_sendto net/socket.c:2152 [inline] __x64_sys_sendto+0xd9/0xf0 net/socket.c:2152 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 ffff888028761c00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 0 bytes inside of allocated 336-byte region [ffff888028761c00, ffff888028761d50) The buggy address belongs to the physical page: page:ffffea0000a1d800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x28760 head:ffffea0000a1d800 order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000010200 ffff888011041c80 dead000000000100 dead000000000122 raw: 0000000000000000 0000000080100010 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 5000, tgid 5000 (kworker/1:4), ts 72545413444, free_ts 71952515944 prep_new_page mm/page_alloc.c:1738 [inline] get_page_from_freelist+0x321c/0x33a0 mm/page_alloc.c:3502 __alloc_pages+0x255/0x670 mm/page_alloc.c:4768 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:3192 __slab_alloc mm/slub.c:3291 [inline] __slab_alloc_node mm/slub.c:3344 [inline] slab_alloc_node mm/slub.c:3441 [inline] __kmem_cache_alloc_node+0x1b8/0x290 mm/slub.c:3490 __do_kmalloc_node mm/slab_common.c:965 [inline] __kmalloc+0xa8/0x230 mm/slab_common.c:979 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:680 [inline] fib6_info_alloc+0x29/0xc0 net/ipv6/ip6_fib.c:155 ip6_route_info_create+0x360/0x1170 net/ipv6/route.c:3741 addrconf_f6i_alloc+0x380/0x6d0 net/ipv6/route.c:4563 ipv6_add_addr+0x392/0xf40 net/ipv6/addrconf.c:1105 addrconf_add_linklocal+0x2c8/0x920 net/ipv6/addrconf.c:3215 addrconf_addr_gen+0x74a/0xb30 net/ipv6/addrconf.c:3346 addrconf_init_auto_addrs+0x796/0xd00 addrconf_notify+0x891/0xcf0 net/ipv6/addrconf.c:3642 notifier_call_chain+0x120/0x260 kernel/notifier.c:93 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1302 [inline] free_unref_page_prepare+0x8fe/0xa10 mm/page_alloc.c:2564 free_unref_page+0x37/0x3f0 mm/page_alloc.c:2659 qlist_free_all+0x22/0x60 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x14b/0x160 mm/kasan/quarantine.c:292 __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:711 slab_alloc_node mm/slub.c:3451 [inline] kmem_cache_alloc_node+0x157/0x350 mm/slub.c:3496 __alloc_skb+0x11e/0x3b0 net/core/skbuff.c:644 alloc_skb include/linux/skbuff.h:1288 [inline] netlink_alloc_large_skb net/netlink/af_netlink.c:1211 [inline] netlink_sendmsg+0x5ec/0xb50 net/netlink/af_netlink.c:1888 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg net/socket.c:747 [inline] __sys_sendto+0x3e8/0x570 net/socket.c:2144 __do_sys_sendto net/socket.c:2156 [inline] __se_sys_sendto net/socket.c:2152 [inline] __x64_sys_sendto+0xd9/0xf0 net/socket.c:2152 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 Memory state around the buggy address: ffff888028761c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888028761c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888028761d00: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ^ ffff888028761d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888028761e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================