================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:101 [inline] BUG: KASAN: null-ptr-deref in atomic_long_add_return_acquire include/linux/atomic/atomic-instrumented.h:1309 [inline] BUG: KASAN: null-ptr-deref in rwsem_read_trylock kernel/locking/rwsem.c:238 [inline] BUG: KASAN: null-ptr-deref in __down_read_common kernel/locking/rwsem.c:1251 [inline] BUG: KASAN: null-ptr-deref in __down_read kernel/locking/rwsem.c:1261 [inline] BUG: KASAN: null-ptr-deref in down_read+0xa5/0x450 kernel/locking/rwsem.c:1501 Write of size 8 at addr 00000000000000e8 by task syz-executor.4/20259 CPU: 0 PID: 20259 Comm: syz-executor.4 Not tainted 6.0.0-rc3-next-20220901-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 kasan_report+0xb1/0x1e0 mm/kasan/report.c:495 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:189 instrument_atomic_read_write include/linux/instrumented.h:101 [inline] atomic_long_add_return_acquire include/linux/atomic/atomic-instrumented.h:1309 [inline] rwsem_read_trylock kernel/locking/rwsem.c:238 [inline] __down_read_common kernel/locking/rwsem.c:1251 [inline] __down_read kernel/locking/rwsem.c:1261 [inline] down_read+0xa5/0x450 kernel/locking/rwsem.c:1501 mmap_read_lock include/linux/mmap_lock.h:117 [inline] binder_alloc_print_pages+0x65/0x3f0 drivers/android/binder_alloc.c:936 print_binder_proc_stats drivers/android/binder.c:6301 [inline] stats_show+0x417/0x620 drivers/android/binder.c:6364 traverse.part.0+0xcf/0x5f0 fs/seq_file.c:111 traverse fs/seq_file.c:101 [inline] seq_read_iter+0x90f/0x1280 fs/seq_file.c:195 seq_read+0x16d/0x210 fs/seq_file.c:162 full_proxy_read+0x118/0x180 fs/debugfs/file.c:231 do_loop_readv_writev fs/read_write.c:750 [inline] do_loop_readv_writev fs/read_write.c:737 [inline] do_iter_read+0x4f8/0x750 fs/read_write.c:792 vfs_readv+0xe5/0x150 fs/read_write.c:910 do_preadv fs/read_write.c:1002 [inline] __do_sys_preadv fs/read_write.c:1052 [inline] __se_sys_preadv fs/read_write.c:1047 [inline] __x64_sys_preadv+0x22b/0x310 fs/read_write.c:1047 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 RIP: 0033:0x7f87b26893c9 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f87b3779168 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00007f87b279bf80 RCX: 00007f87b26893c9 RDX: 0000000000000001 RSI: 00000000200028c0 RDI: 0000000000000003 RBP: 00007f87b26e433f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcc240e96f R14: 00007f87b3779300 R15: 0000000000022000 ==================================================================