From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B782C433F5 for ; Sat, 18 Dec 2021 14:04:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 54B936B0072; Sat, 18 Dec 2021 09:04:34 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4FB4B6B0073; Sat, 18 Dec 2021 09:04:34 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3E9C16B0074; Sat, 18 Dec 2021 09:04:34 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0040.hostedemail.com [216.40.44.40]) by kanga.kvack.org (Postfix) with ESMTP id 2EDB36B0072 for ; Sat, 18 Dec 2021 09:04:34 -0500 (EST) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id D862E18090197 for ; Sat, 18 Dec 2021 14:04:23 +0000 (UTC) X-FDA: 78931084806.08.BE68F19 Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by imf02.hostedemail.com (Postfix) with ESMTP id B453380015 for ; Sat, 18 Dec 2021 14:04:20 +0000 (UTC) Received: by mail-il1-f199.google.com with SMTP id i11-20020a056e0212cb00b002ae39e26bb0so3035547ilm.4 for ; Sat, 18 Dec 2021 06:04:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:in-reply-to:message-id:subject :from:to; bh=p9weZrbhbMWwsfKPE7dVXuUEsd7QPkZdiaPp2RwnUuU=; b=rIZiUt2F5g6Kh8bP1moeIVYRyEqgJjbNt/rO4CMIUZMCsvZNyZva9EVkG/9OABdtew ojYCljdRJqjx8zWNKASlhx/bN6GzmzqL4oo3eKIvaHPPSsp2Mgk1xhUIMWpdq5M781Br M2v6K7+ewIQuKPj8nA5cRwb5kdlSyfKZOfMhERtilA48QuUCDNGF8GBIBLfpsOr/XBbl kwGxRuVvUolj+W82vFIbzRjSar9h8VNbWf88SaeLMeAu5bGPtYmYH/oruGjx1HcIvF+J I29ifVA7UDWbvslEZGS1grHqH5EXFUew6Fk/0C5xQ0KgzQqMDvNVIWSnZAvwOfXVhYwc VQCQ== X-Gm-Message-State: AOAM530a3mNx35t17CuHTb5bcaQq2HTjP2qfYHZf7H2HTtV7WbJcma+/ k5JXQ2tE48Fw9/XrR6bJkkZzHr1zI8bhDZDGy3OyWi5K7bN4 X-Google-Smtp-Source: ABdhPJwg+s+FzqsSVARK5Ra54kR9DLeVVtUU6EdkokG9Ie0WeU/qe8MB2gNsoUzpNvNOsSqxNxYjUEgHgsAKx3CzOsL9hMiaXGvn MIME-Version: 1.0 X-Received: by 2002:a92:c246:: with SMTP id k6mr3719889ilo.280.1639836262943; Sat, 18 Dec 2021 06:04:22 -0800 (PST) Date: Sat, 18 Dec 2021 06:04:22 -0800 In-Reply-To: <00000000000021bb9b05d14bf0c7@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000f1504c05d36c21ea@google.com> Subject: Re: [syzbot] WARNING in page_counter_cancel (3) From: syzbot To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: B453380015 X-Stat-Signature: u96ja65ybwfa38cpqeunaaxi9jj5za5f Authentication-Results: imf02.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none); spf=pass (imf02.hostedemail.com: domain of 3Zuq9YQkbAEc178tjuun0jyyrm.pxxpun31n0lxw2nw2.lxv@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.199 as permitted sender) smtp.mailfrom=3Zuq9YQkbAEc178tjuun0jyyrm.pxxpun31n0lxw2nw2.lxv@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com X-Rspamd-Server: rspam02 X-HE-Tag: 1639836260-407321 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: syzbot has found a reproducer for the following issue on: HEAD commit: fbf252e09678 Add linux-next specific files for 20211216 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1797de99b00000 kernel config: https://syzkaller.appspot.com/x/.config?x=7fcbb9aa19a433c8 dashboard link: https://syzkaller.appspot.com/bug?extid=bc9e2d2dbcb347dd215a compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=135d179db00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=113edb6db00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+bc9e2d2dbcb347dd215a@syzkaller.appspotmail.com R13: 00007ffdeb858640 R14: 00007ffdeb858680 R15: 0000000000000004 ------------[ cut here ]------------ page_counter underflow: -4294966651 nr_pages=4294967295 WARNING: CPU: 1 PID: 3665 at mm/page_counter.c:56 page_counter_cancel+0xcf/0xe0 mm/page_counter.c:56 mm/page_counter.c:56 Modules linked in: CPU: 1 PID: 3665 Comm: syz-executor933 Not tainted 5.16.0-rc5-next-20211216-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:page_counter_cancel+0xcf/0xe0 mm/page_counter.c:56 mm/page_counter.c:56 Code: c7 04 24 00 00 00 00 45 31 f6 eb 97 e8 ba 77 af ff 4c 89 ea 48 89 ee 48 c7 c7 60 fe b8 89 c6 05 5f b3 b5 0b 01 e8 a6 85 48 07 <0f> 0b eb a8 4c 89 e7 e8 d5 85 fa ff eb c7 0f 1f 00 41 56 41 55 49 RSP: 0018:ffffc90002b1f620 EFLAGS: 00010086 RAX: 0000000000000000 RBX: ffff88807b6e8120 RCX: 0000000000000000 RDX: ffff88807ad31d40 RSI: ffffffff815f4748 RDI: fffff52000563eb6 RBP: ffffffff00000285 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff815ee4ae R11: 0000000000000000 R12: ffff88807b6e8120 R13: 00000000ffffffff R14: 0000000000000000 R15: 0000000000000001 FS: 000055555596c300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000080 CR3: 000000007f24a000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: page_counter_uncharge+0x2e/0x60 mm/page_counter.c:159 mm/page_counter.c:159 drain_stock+0xc1/0x170 mm/memcontrol.c:2172 mm/memcontrol.c:2172 refill_stock+0x131/0x1b0 mm/memcontrol.c:2224 mm/memcontrol.c:2224 __sk_mem_reduce_allocated+0x24d/0x550 net/core/sock.c:2951 net/core/sock.c:2951 __mptcp_rmem_reclaim net/mptcp/protocol.c:169 [inline] __mptcp_rmem_reclaim net/mptcp/protocol.c:169 [inline] net/mptcp/protocol.c:978 __mptcp_mem_reclaim_partial+0x124/0x410 net/mptcp/protocol.c:978 net/mptcp/protocol.c:978 mptcp_mem_reclaim_partial net/mptcp/protocol.c:985 [inline] mptcp_alloc_tx_skb net/mptcp/protocol.c:1215 [inline] mptcp_mem_reclaim_partial net/mptcp/protocol.c:985 [inline] net/mptcp/protocol.c:1282 mptcp_alloc_tx_skb net/mptcp/protocol.c:1215 [inline] net/mptcp/protocol.c:1282 mptcp_sendmsg_frag+0x1ada/0x2410 net/mptcp/protocol.c:1282 net/mptcp/protocol.c:1282 __mptcp_push_pending+0x232/0x7a0 net/mptcp/protocol.c:1548 net/mptcp/protocol.c:1548 mptcp_release_cb+0xfe/0x200 net/mptcp/protocol.c:3013 net/mptcp/protocol.c:3013 release_sock+0xb4/0x1b0 net/core/sock.c:3312 net/core/sock.c:3312 sk_stream_wait_memory+0x608/0xed0 net/core/stream.c:145 net/core/stream.c:145 mptcp_sendmsg+0x8df/0x1300 net/mptcp/protocol.c:1745 net/mptcp/protocol.c:1745 inet6_sendmsg+0x99/0xe0 net/ipv6/af_inet6.c:641 net/ipv6/af_inet6.c:641 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg_nosec net/socket.c:704 [inline] net/socket.c:724 sock_sendmsg+0xcf/0x120 net/socket.c:724 net/socket.c:724 sock_write_iter+0x289/0x3c0 net/socket.c:1057 net/socket.c:1057 call_write_iter include/linux/fs.h:2079 [inline] call_write_iter include/linux/fs.h:2079 [inline] fs/read_write.c:503 new_sync_write+0x429/0x660 fs/read_write.c:503 fs/read_write.c:503 vfs_write+0x7cd/0xae0 fs/read_write.c:590 fs/read_write.c:590 ksys_write+0x1ee/0x250 fs/read_write.c:643 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_x64 arch/x86/entry/common.c:50 [inline] arch/x86/entry/common.c:80 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f4cc423cf49 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 15 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffdeb8585f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f4cc423cf49 RDX: 0000000000017f88 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00007ffdeb858620 R08: 0000000000000001 R09: 00007ffdeb858630 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00007ffdeb858640 R14: 00007ffdeb858680 R15: 0000000000000004