ci starts bisection 2023-04-30 22:22:04.458501878 +0000 UTC m=+176793.020576405 bisecting fixing commit since 4da34b7d175dc99b8befebd69e96546c960d526c building syzkaller on c0b80a55c9c8cfe75e77c555ed0d4ae7aa373cc2 ensuring issue is reproducible on original commit 4da34b7d175dc99b8befebd69e96546c960d526c testing commit 4da34b7d175dc99b8befebd69e96546c960d526c gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: b1f511b19d72bc363f6c9d48dfd5c9e3e8dcecfae0e590de9b7a19ba0e4d51e8 all runs: crashed: general protection fault in d_flags_for_inode testing current HEAD 58390c8ce1bddb6c623f62e7ed36383e7fa5c02f testing commit 58390c8ce1bddb6c623f62e7ed36383e7fa5c02f gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 35c0c602b1ad4cf9ac7517256334bf570b8d05ed6d27cc216362c0cd921413d4 all runs: crashed: KASAN: out-of-bounds Write in end_buffer_read_sync revisions tested: 2, total time: 24m38.469064077s (build: 13m24.884743498s, test: 10m29.573936949s) the crash still happens on HEAD commit msg: Merge tag 'iommu-updates-v6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu crash: KASAN: out-of-bounds Write in end_buffer_read_sync ================================================================== BUG: KASAN: out-of-bounds in instrument_atomic_read_write include/linux/instrumented.h:96 [inline] BUG: KASAN: out-of-bounds in atomic_dec include/linux/atomic/atomic-instrumented.h:257 [inline] BUG: KASAN: out-of-bounds in put_bh include/linux/buffer_head.h:329 [inline] BUG: KASAN: out-of-bounds in end_buffer_read_sync+0x5c/0x90 fs/buffer.c:161 Write of size 4 at addr ffffc9000b50f978 by task ksoftirqd/1/21 CPU: 1 PID: 21 Comm: ksoftirqd/1 Not tainted 6.3.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x60/0xa0 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:351 print_report mm/kasan/report.c:462 [inline] kasan_report+0x118/0x130 mm/kasan/report.c:572 check_region_inline mm/kasan/generic.c:181 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:187 instrument_atomic_read_write include/linux/instrumented.h:96 [inline] atomic_dec include/linux/atomic/atomic-instrumented.h:257 [inline] put_bh include/linux/buffer_head.h:329 [inline] end_buffer_read_sync+0x5c/0x90 fs/buffer.c:161 end_bio_bh_io_sync+0xa9/0xf0 fs/buffer.c:2730 req_bio_endio block/blk-mq.c:761 [inline] blk_update_request+0x45b/0x1320 block/blk-mq.c:906 blk_mq_end_request+0x51/0x3f0 block/blk-mq.c:1023 blk_complete_reqs+0xa0/0xd0 block/blk-mq.c:1101 __do_softirq+0x1d0/0x901 kernel/softirq.c:571 run_ksoftirqd kernel/softirq.c:939 [inline] run_ksoftirqd+0x2d/0x60 kernel/softirq.c:931 smpboot_thread_fn+0x548/0x8c0 kernel/smpboot.c:164 kthread+0x2e6/0x3c0 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 The buggy address belongs to the virtual mapping at [ffffc9000b508000, ffffc9000b511000) created by: kernel_clone+0xb8/0x5f0 kernel/fork.c:2918 The buggy address belongs to the physical page: page:ffffea0001f3ef40 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7cfbd memcg:ffff888029fa1f82 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff888029fa1f82 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 14112, tgid 14112 (syz-executor.0), ts 340836092964, free_ts 305019552157 prep_new_page mm/page_alloc.c:1729 [inline] get_page_from_freelist+0xf85/0x2ca0 mm/page_alloc.c:3493 __alloc_pages+0x1c7/0x490 mm/page_alloc.c:4759 vm_area_alloc_pages mm/vmalloc.c:3009 [inline] __vmalloc_area_node mm/vmalloc.c:3085 [inline] __vmalloc_node_range+0x7fb/0x1060 mm/vmalloc.c:3257 alloc_thread_stack_node kernel/fork.c:313 [inline] dup_task_struct kernel/fork.c:1116 [inline] copy_process+0x117a/0x6c40 kernel/fork.c:2333 kernel_clone+0xb8/0x5f0 kernel/fork.c:2918 __do_sys_clone+0xa1/0xe0 kernel/fork.c:3061 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd 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+0x620/0xc80 mm/page_alloc.c:2555 free_unref_page_list+0xdf/0xa70 mm/page_alloc.c:2696 release_pages+0x31c/0x10c0 mm/swap.c:1042 tlb_batch_pages_flush+0x85/0x160 mm/mmu_gather.c:97 tlb_flush_mmu_free mm/mmu_gather.c:292 [inline] tlb_flush_mmu mm/mmu_gather.c:299 [inline] tlb_finish_mmu+0x110/0x6c0 mm/mmu_gather.c:391 exit_mmap+0x239/0x750 mm/mmap.c:3123 __mmput+0xf3/0x440 kernel/fork.c:1351 exit_mm kernel/exit.c:564 [inline] do_exit+0x885/0x2470 kernel/exit.c:858 do_group_exit+0xb0/0x250 kernel/exit.c:1021 __do_sys_exit_group kernel/exit.c:1032 [inline] __se_sys_exit_group kernel/exit.c:1030 [inline] __x64_sys_exit_group+0x35/0x40 kernel/exit.c:1030 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffffc9000b50f880: f3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000b50f900: 00 00 00 00 00 f1 f1 f1 f1 00 f3 f3 f3 00 00 00 >ffffc9000b50f980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc9000b50fa00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000b50fa80: 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 00 00 00 f3 ==================================================================