Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3695002rwi; Wed, 12 Oct 2022 05:45:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4JYp/3VanOU58IwwMmEbXaiXOoRVAF75hmwdGM9SWSsyWn9b1RcZVrgN6XhKYL5ZEoGxdm X-Received: by 2002:a17:902:f682:b0:17c:6aa1:8c63 with SMTP id l2-20020a170902f68200b0017c6aa18c63mr29739678plg.129.1665578705985; Wed, 12 Oct 2022 05:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665578705; cv=none; d=google.com; s=arc-20160816; b=ud1iBHgzci8oLcRS5w0lN62tu4Datx8GGT2CODQmO985uy0U+k9rsob0LzBRTeQWdr n+w+mChv2N31SapOywhVVvsPu2Ts3wOOFP6VDa+NbFwdVt8NqRu6btoSukTyl94iZbCW dhLt6oN2lmznxzfC51iU7LfKNUHX1AXqc/UWF1szf0+nP4E0pBt+ioGJgGV2YYkSTLGU srRDhmRAA+7+MuXk95ChM9matlU7envSsaKLfqek5w9YoS5oyhv0nbd/UUK4gGGRR+BQ 8uUUUUzIyRM36WWbJY+xiN66v87Tlr+AYsxksPwmHJ1Ld5kNBc/j76vJ1sGE0wlhp1Qk h/ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=u1AMcvv7taYOuHiirpvzZyNURP/MRqokBLvNSR8M5Vk=; b=yy6WThNif/QtK9fz5Tndmq6wm2FqCqyQwY9M9bemnfEp7bpxm2KZU7vJq5ZBBEC+r2 0N4LgGe/wDaU1F4RMswdhxU6M900iB2hcuN7PANpoZcwcCtV+1fzOnFq5bawxAU5qTt1 fu/SpXBEtwKyKglvcoJg6l9HnGvsvPZUERYFa8VVQJgdRAK3/Ylnf0oVDsFDCqfk/9wT 69LmOBWfxQNDi6ZV1WDyU9yrM7O9pVU3qlPMYJHEHnInD4Rhfnf1a14yy7qOdEnlzch6 8HL5OT8bcAj1aKz7BdNskxCIYbjrK/MRN0x/Rv/gbOD3RO2G4L7Ks+E9oMloRrEVEmh5 CO3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=fM9RA6CY; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=xk5JTfWs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 134-20020a62178c000000b00565ba4c501asi879914pfx.276.2022.10.12.05.44.39; Wed, 12 Oct 2022 05:45:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=fM9RA6CY; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=xk5JTfWs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229714AbiJLMah (ORCPT + 99 others); Wed, 12 Oct 2022 08:30:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbiJLMaX (ORCPT ); Wed, 12 Oct 2022 08:30:23 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 398114A809 for ; Wed, 12 Oct 2022 05:30:17 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1076721F2C; Wed, 12 Oct 2022 12:30:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1665577816; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=u1AMcvv7taYOuHiirpvzZyNURP/MRqokBLvNSR8M5Vk=; b=fM9RA6CYhZU5/ypkeJO2yPVrxnE9UvZ+IqrHN1Am1tVP/Y/3Zk6XZzFJs3Lz2IRCH056V8 TegKaiZlAbUKNKBz95LFkZSzoN3EKUY0atBMNyVLhX373+3Jfyp2Bkb1fEa6Kzgeo/JDb0 1+8QyVp4GZdbNhYqq0hof/qpjT0o9Uk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1665577816; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=u1AMcvv7taYOuHiirpvzZyNURP/MRqokBLvNSR8M5Vk=; b=xk5JTfWsfNrE05XizhmVT7mqihZPMxfSijRJDO+Miom0emZWDcY288FQ6AnpAtGXoe0kX+ eCRHWu2C07VwbZBw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B0E2C13A5C; Wed, 12 Oct 2022 12:30:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id SemQKlezRmOWWgAAMHmgww (envelope-from ); Wed, 12 Oct 2022 12:30:15 +0000 Message-ID: Date: Wed, 12 Oct 2022 14:30:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH v2] mm: slab, with same context require fs_reclaim lock To: Steven Rostedt , eadavis@sina.com Cc: syzbot+dfcc5f4da15868df7d4d@syzkaller.appspotmail.com, akpm@linux-foundation.org, keescook@chromium.org, linux-kernel@vger.kernel.org, mark.rutland@arm.com, mhiramat@kernel.org, syzkaller-bugs@googlegroups.com, Thomas Gleixner , Peter Zijlstra References: <00000000000074b50005e997178a@google.com> <20220927071134.1674904-1-eadavis@sina.com> <20221012072319.1a678100@rorschach.local.home> Content-Language: en-US From: Vlastimil Babka In-Reply-To: <20221012072319.1a678100@rorschach.local.home> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_SOFTFAIL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/12/22 13:23, Steven Rostedt wrote: > On Tue, 27 Sep 2022 15:11:34 +0800 > eadavis@sina.com wrote: >> --- a/mm/slab.c >> +++ b/mm/slab.c >> @@ -3275,15 +3275,19 @@ slab_alloc(struct kmem_cache *cachep, struct list_lru *lru, gfp_t flags, >> bool init = false; >> >> flags &= gfp_allowed_mask; >> + local_irq_save(save_flags); > > Please do not do this. Open coding interrupt disabling due to locking > issues is not the solution. You need to make the locks themselves > disable interrupts if need be. This breaks PREEMPT_RT, and creates a > "big kernel lock" situation where there's random interrupts being > disabled for no apparent reason. > > -- Steve And FWIW the problem was in the calling context of io_uring, not slab code itself in the first place, see: https://lore.kernel.org/all/20220929135627.ykivmdks2w5vzrwg@quack3/