ci2 starts bisection 2025-03-27 01:51:18.665552863 +0000 UTC m=+33782.196479090 bisecting fixing commit since fbe98d68b6b391887a690d6f212fdc2ff29f1eb7 building syzkaller on 9fbd772e8b64ff0c8c90bdfb86237aefa530a06c ensuring issue is reproducible on original commit fbe98d68b6b391887a690d6f212fdc2ff29f1eb7 testing commit fbe98d68b6b391887a690d6f212fdc2ff29f1eb7 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d2255b8ff99e1aa0acd6e0b7a7602d359aae14b4c27342cfefe343135120648d all runs: crashed: KASAN: slab-out-of-bounds Read in xfrm_policy_inexact_list_reinsert representative crash: KASAN: slab-out-of-bounds Read in xfrm_policy_inexact_list_reinsert, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit fbe98d68b6b391887a690d6f212fdc2ff29f1eb7 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f2b99d144307728842a1fe929f136555a08cf1625bf10df0272609025197b841 all runs: crashed: KASAN: slab-out-of-bounds Read in xfrm_policy_inexact_list_reinsert representative crash: KASAN: slab-out-of-bounds Read in xfrm_policy_inexact_list_reinsert, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed kconfig minimization: base=4789 full=6023 leaves diff=244 split chunks (needed=false): <244> split chunk #0 of len 244 into 5 parts testing without sub-chunk 1/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit fbe98d68b6b391887a690d6f212fdc2ff29f1eb7 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7cf711d1c9ad1fb993db61d10199626d14955eac4023e9d9b0eed33621952bb1 all runs: crashed: KASAN: slab-out-of-bounds Read in xfrm_policy_inexact_list_reinsert representative crash: KASAN: slab-out-of-bounds Read in xfrm_policy_inexact_list_reinsert, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit fbe98d68b6b391887a690d6f212fdc2ff29f1eb7 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 318d9ea2fb4bba180fd52b55101b04b81283bcf777f552e4ac249373e56cfa11 all runs: crashed: KASAN: slab-out-of-bounds Read in xfrm_policy_inexact_list_reinsert representative crash: KASAN: slab-out-of-bounds Read in xfrm_policy_inexact_list_reinsert, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit fbe98d68b6b391887a690d6f212fdc2ff29f1eb7 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 262ac121058b5df5a51d798173f466fded287206f80056d8d79a8144934ecc32 all runs: crashed: KASAN: slab-out-of-bounds Read in xfrm_policy_inexact_list_reinsert representative crash: KASAN: slab-out-of-bounds Read in xfrm_policy_inexact_list_reinsert, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit fbe98d68b6b391887a690d6f212fdc2ff29f1eb7 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5800dd6e5fae74089f4965b3bd0232a5eb395e56dcef1dcbd3192d72daf3e16f all runs: crashed: KASAN: slab-out-of-bounds Read in xfrm_policy_inexact_list_reinsert representative crash: KASAN: slab-out-of-bounds Read in xfrm_policy_inexact_list_reinsert, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit fbe98d68b6b391887a690d6f212fdc2ff29f1eb7 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building fbe98d68b6b391887a690d6f212fdc2ff29f1eb7: net/socket.c:1128: undefined reference to `wext_handle_ioctl' net/socket.c:3397: undefined reference to `compat_wext_handle_ioctl' net/core/net-procfs.c:346: undefined reference to `wext_proc_exit' net/core/net-procfs.c:330: undefined reference to `wext_proc_init' minimized to 48 configs; suspects: [HID_ZEROPLUS USB_NET_DM9601 USB_NET_GL620A USB_NET_MCS7830 USB_NET_NET1080 USB_NET_PLUSB USB_NET_RNDIS_HOST USB_NET_SMSC75XX USB_NET_SMSC95XX USB_NET_SR9700 USB_NET_SR9800 USB_NET_ZAURUS USB_OHCI_HCD USB_OHCI_HCD_PCI USB_OHCI_HCD_PLATFORM USB_OTG USB_OTG_FSM USB_PRINTER USB_SERIAL USB_SERIAL_FTDI_SIO USB_SERIAL_GENERIC USB_SERIAL_PL2303 USB_STORAGE_ALAUDA USB_STORAGE_CYPRESS_ATACB USB_STORAGE_DATAFAB USB_STORAGE_FREECOM USB_STORAGE_ISD200 USB_STORAGE_JUMPSHOT USB_STORAGE_KARMA USB_STORAGE_ONETOUCH USB_STORAGE_SDDR09 USB_STORAGE_SDDR55 USB_STORAGE_USBAT USB_TRANCEVIBRATOR USB_U_AUDIO USB_U_ETHER USB_U_SERIAL USB_WDM USB_XHCI_PCI_RENESAS WLAN WLAN_VENDOR_ATH WLAN_VENDOR_ATMEL WLAN_VENDOR_BROADCOM WLAN_VENDOR_INTERSIL WLAN_VENDOR_MARVELL WLAN_VENDOR_MEDIATEK WLAN_VENDOR_MICROCHIP WLAN_VENDOR_RALINK WLAN_VENDOR_REALTEK WLAN_VENDOR_RSI WLAN_VENDOR_ZYDAS X86_X32 ZEROPLUS_FF] disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing current HEAD 094fc3778d6b9c795d8075cf20171fe70ace5af2 testing commit 094fc3778d6b9c795d8075cf20171fe70ace5af2 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 92ad354fcdc3975b2660a12de73d656aff762111c84cfa634bc407b340f5c378 all runs: crashed: KASAN: slab-out-of-bounds Read in xfrm_policy_inexact_list_reinsert representative crash: KASAN: slab-out-of-bounds Read in xfrm_policy_inexact_list_reinsert, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 48m17.482449628s (build: 22m38.86237322s, test: 24m17.272429348s) crash still not fixed or there were kernel test errors commit msg: Merge 9d091e874b66 ("cpufreq: schedutil: Simplify sugov_update_next_freq()") into android13-5.10-lts crash: KASAN: slab-out-of-bounds Read in xfrm_policy_inexact_list_reinsert ================================================================== BUG: KASAN: slab-out-of-bounds in xfrm_policy_inexact_list_reinsert.constprop.0+0x3e4/0x560 net/xfrm/xfrm_policy.c:853 Read of size 1 at addr ffff8881128a53d8 by task syz.2.16/479 CPU: 0 PID: 479 Comm: syz.2.16 Not tainted 5.10.234-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x81/0xac lib/dump_stack.c:118 print_address_description.constprop.0+0x24/0x160 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report.cold+0x82/0xdb mm/kasan/report.c:452 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306 xfrm_policy_inexact_list_reinsert.constprop.0+0x3e4/0x560 net/xfrm/xfrm_policy.c:853 xfrm_policy_inexact_node_merge net/xfrm/xfrm_policy.c:985 [inline] xfrm_policy_inexact_insert_node.constprop.0+0x392/0xb40 net/xfrm/xfrm_policy.c:1041 xfrm_policy_inexact_alloc_chain.isra.0+0x2a2/0x620 net/xfrm/xfrm_policy.c:1157 xfrm_policy_inexact_insert+0x63/0xb50 net/xfrm/xfrm_policy.c:1200 xfrm_policy_insert+0x468/0x770 net/xfrm/xfrm_policy.c:1583 xfrm_add_policy+0x3bf/0x830 net/xfrm/xfrm_user.c:1733 xfrm_user_rcv_msg+0x2d9/0x850 net/xfrm/xfrm_user.c:2789 netlink_rcv_skb+0x133/0x3c0 net/netlink/af_netlink.c:2485 xfrm_netlink_rcv+0x68/0x90 net/xfrm/xfrm_user.c:2811 netlink_unicast_kernel net/netlink/af_netlink.c:1307 [inline] netlink_unicast+0x4f8/0x810 net/netlink/af_netlink.c:1333 netlink_sendmsg+0x815/0xd10 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg+0xb5/0xf0 net/socket.c:664 ____sys_sendmsg+0x694/0x990 net/socket.c:2376 ___sys_sendmsg+0xfc/0x190 net/socket.c:2430 __sys_sendmsg+0xc3/0x160 net/socket.c:2459 __do_sys_sendmsg net/socket.c:2468 [inline] __se_sys_sendmsg net/socket.c:2466 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2466 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f4b9bbfcd29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4b9b66f038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f4b9be15fa0 RCX: 00007f4b9bbfcd29 RDX: 0000000000000000 RSI: 0000000020000580 RDI: 0000000000000003 RBP: 00007f4b9bc7e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f4b9be15fa0 R15: 00007ffe199d1f78 Allocated by task 479: kasan_save_stack+0x26/0x50 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:430 [inline] ____kasan_kmalloc mm/kasan/common.c:509 [inline] ____kasan_kmalloc mm/kasan/common.c:468 [inline] __kasan_kmalloc+0xae/0xe0 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] __kmalloc+0x1cd/0x360 mm/slub.c:4033 kmalloc include/linux/slab.h:557 [inline] sk_prot_alloc+0xdb/0x300 net/core/sock.c:1716 sk_alloc+0x2c/0x550 net/core/sock.c:1774 pfkey_create+0x111/0x600 net/key/af_key.c:154 __sock_create+0x1c8/0x450 net/socket.c:1436 sock_create net/socket.c:1487 [inline] __sys_socket+0xdd/0x1d0 net/socket.c:1529 __do_sys_socket net/socket.c:1538 [inline] __se_sys_socket net/socket.c:1536 [inline] __x64_sys_socket+0x6e/0xb0 net/socket.c:1536 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff8881128a5000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 984 bytes inside of 1024-byte region [ffff8881128a5000, ffff8881128a5400) The buggy address belongs to the page: page:ffffea00044a2800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1128a0 head:ffffea00044a2800 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100042f00 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 479, ts 57478739423, free_ts 57461476181 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page mm/page_alloc.c:2462 [inline] get_page_from_freelist+0x1fee/0x2ad0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x2ae/0x23d0 mm/page_alloc.c:5348 __alloc_pages include/linux/gfp.h:544 [inline] __alloc_pages_node include/linux/gfp.h:557 [inline] alloc_pages_node include/linux/gfp.h:571 [inline] alloc_pages include/linux/gfp.h:590 [inline] alloc_slab_page mm/slub.c:1665 [inline] allocate_slab+0x30f/0x460 mm/slub.c:1808 new_slab mm/slub.c:1869 [inline] new_slab_objects mm/slub.c:2627 [inline] ___slab_alloc.constprop.0+0x32b/0x730 mm/slub.c:2791 __slab_alloc mm/slub.c:2831 [inline] slab_alloc_node mm/slub.c:2913 [inline] slab_alloc mm/slub.c:2955 [inline] __kmalloc_track_caller+0x325/0x360 mm/slub.c:4536 __kmalloc_reserve net/core/skbuff.c:144 [inline] __alloc_skb+0x74/0x4d0 net/core/skbuff.c:212 alloc_skb include/linux/skbuff.h:1126 [inline] nlmsg_new include/net/netlink.h:953 [inline] xfrm_notify_policy net/xfrm/xfrm_user.c:3243 [inline] xfrm_send_policy_notify+0x47e/0x1470 net/xfrm/xfrm_user.c:3327 km_policy_notify+0x5b/0xa0 net/xfrm/xfrm_state.c:2176 xfrm_add_policy+0x4c5/0x830 net/xfrm/xfrm_user.c:1745 xfrm_user_rcv_msg+0x2d9/0x850 net/xfrm/xfrm_user.c:2789 netlink_rcv_skb+0x133/0x3c0 net/netlink/af_netlink.c:2485 xfrm_netlink_rcv+0x68/0x90 net/xfrm/xfrm_user.c:2811 netlink_unicast_kernel net/netlink/af_netlink.c:1307 [inline] netlink_unicast+0x4f8/0x810 net/netlink/af_netlink.c:1333 netlink_sendmsg+0x815/0xd10 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:652 [inline] __sock_sendmsg+0xb5/0xf0 net/socket.c:664 ____sys_sendmsg+0x694/0x990 net/socket.c:2376 page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] __free_pages_ok+0x44b/0x840 mm/page_alloc.c:1629 free_the_page mm/page_alloc.c:5409 [inline] __free_pages+0xda/0xf0 mm/page_alloc.c:5418 __free_slab+0xde/0x1d0 mm/slub.c:1894 free_slab mm/slub.c:1909 [inline] discard_slab+0x2b/0x40 mm/slub.c:1915 unfreeze_partials+0x1e1/0x240 mm/slub.c:2410 put_cpu_partial+0xce/0x120 mm/slub.c:2446 __slab_free+0x23f/0x560 mm/slub.c:3095 do_slab_free mm/slub.c:3191 [inline] ___cache_free+0x255/0x2b0 mm/slub.c:3210 qlink_free mm/kasan/quarantine.c:157 [inline] qlist_free_all+0x71/0x150 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x15f/0x1c0 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0xaa/0xc0 mm/kasan/common.c:440 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook mm/slab.h:583 [inline] slab_alloc_node mm/slub.c:2947 [inline] slab_alloc mm/slub.c:2955 [inline] kmem_cache_alloc+0x15d/0x4f0 mm/slub.c:2960 getname_flags.part.0+0x4d/0x480 fs/namei.c:141 getname_flags include/linux/audit.h:320 [inline] user_path_at_empty+0x8e/0xf0 fs/namei.c:2740 do_readlinkat+0xbf/0x2b0 fs/stat.c:414 __do_sys_readlink fs/stat.c:447 [inline] __se_sys_readlink fs/stat.c:444 [inline] __x64_sys_readlink+0x73/0xb0 fs/stat.c:444 Memory state around the buggy address: ffff8881128a5280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881128a5300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881128a5380: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff8881128a5400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881128a5480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================