================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read include/linux/instrumented.h:68 [inline] BUG: KASAN: null-ptr-deref in atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] BUG: KASAN: null-ptr-deref in buffer_busy fs/buffer.c:2881 [inline] BUG: KASAN: null-ptr-deref in drop_buffers+0x6f/0x710 fs/buffer.c:2893 Read of size 4 at addr 0000000000000060 by task syz.1.7096/22855 CPU: 0 UID: 0 PID: 22855 Comm: syz.1.7096 Not tainted 6.12.0-rc2-next-20241008-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_report+0xe8/0x550 mm/kasan/report.c:491 kasan_report+0x143/0x180 mm/kasan/report.c:601 kasan_check_range+0x282/0x290 mm/kasan/generic.c:189 instrument_atomic_read include/linux/instrumented.h:68 [inline] atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] buffer_busy fs/buffer.c:2881 [inline] drop_buffers+0x6f/0x710 fs/buffer.c:2893 try_to_free_buffers+0x295/0x5f0 fs/buffer.c:2947 shrink_folio_list+0x240c/0x8cc0 mm/vmscan.c:1432 evict_folios+0x549b/0x7b50 mm/vmscan.c:4590 try_to_shrink_lruvec+0x9ab/0xbb0 mm/vmscan.c:4785 lru_gen_shrink_lruvec mm/vmscan.c:4927 [inline] shrink_lruvec+0x541/0x31b0 mm/vmscan.c:5682 shrink_node_memcgs mm/vmscan.c:5918 [inline] shrink_node+0xb09/0x3df0 mm/vmscan.c:5958 shrink_zones mm/vmscan.c:6203 [inline] do_try_to_free_pages+0x78c/0x1cf0 mm/vmscan.c:6265 try_to_free_mem_cgroup_pages+0x48f/0xb10 mm/vmscan.c:6597 try_charge_memcg+0x8c2/0x1170 mm/memcontrol.c:2209 obj_cgroup_charge_pages+0x91/0x230 mm/memcontrol.c:2625 obj_cgroup_charge+0x380/0x5d0 mm/memcontrol.c:2916 __memcg_slab_post_alloc_hook+0x1b1/0x7e0 mm/memcontrol.c:2977 memcg_slab_post_alloc_hook mm/slub.c:2160 [inline] slab_post_alloc_hook mm/slub.c:4121 [inline] slab_alloc_node mm/slub.c:4160 [inline] kmem_cache_alloc_noprof+0x287/0x380 mm/slub.c:4167 alloc_buffer_head+0x2a/0x290 fs/buffer.c:3020 folio_alloc_buffers+0x2bc/0x660 fs/buffer.c:928 create_empty_buffers+0x3a/0x740 fs/buffer.c:1667 block_read_full_folio+0x25c/0xcd0 fs/buffer.c:2382 filemap_read_folio+0x14b/0x630 mm/filemap.c:2367 do_read_cache_folio+0x3f5/0x850 mm/filemap.c:3827 read_mapping_folio include/linux/pagemap.h:1011 [inline] dir_get_folio fs/sysv/dir.c:64 [inline] sysv_find_entry+0x16a/0x4b0 fs/sysv/dir.c:154 sysv_inode_by_name+0x98/0x2a0 fs/sysv/dir.c:370 sysv_lookup+0x6b/0xe0 fs/sysv/namei.c:38 lookup_open fs/namei.c:3573 [inline] open_last_lookups fs/namei.c:3694 [inline] path_openat+0x11a7/0x3590 fs/namei.c:3930 do_filp_open+0x235/0x490 fs/namei.c:3960 do_sys_openat2+0x13e/0x1d0 fs/open.c:1415 do_sys_open fs/open.c:1430 [inline] __do_sys_openat fs/open.c:1446 [inline] __se_sys_openat fs/open.c:1441 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1441 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd713d7dff9 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:00007fd714c51038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fd713f35f80 RCX: 00007fd713d7dff9 RDX: 000000000000275a RSI: 0000000020000080 RDI: ffffffffffffff9c RBP: 00007fd713df0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd713f35f80 R15: 00007ffcca9c96e8 ==================================================================