From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90F11238C0A for ; Sat, 4 Jul 2026 14:34:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783175662; cv=none; b=nPFUF5Wen7yjRu4yIbB2EvQ73Hnyp8kBVCHaBRDXGrGA4KHAxrJyZMP14bDHaLhQ9fQQCSixyW9u1uuuwK/HQbwl2Agg3T8BjD7ZIM6cIVYHvQRGzuvX7PfoUt2ye0t4fd3xH0KxsKYviHtKSgzfRIctjO5BcVkS4hcev6XcCmA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783175662; c=relaxed/simple; bh=+iMqLLWqgJkwif8agwc9EXbwznVxg/qEdVpKVyhjW+Y=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=T5M/Qq7pWZ21Qe7dRoTUyeqNIJgXyhzW6mhc/9tVDcIb7AUDi/dr+HxclDGYmpsS3t6YKHYyadROHoCSjJp/61R0o3cRTQlAPznRGf23HBykhFMDLcbahatJDo7dKXwV4uSChGOA+jSvpLsknzez6ETChU7KChLxU/L2jPiSD5E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=TbuxvRX1; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TbuxvRX1" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783175659; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=qfW8gimvScjge6vYJbZCM7k4aRkSC+tyrod+N12mUHA=; b=TbuxvRX1FsWWe+bIDe5OieeC6R8jxJEquzxM0aUi8bTItdpBE6uNwXSuVFi7MYafOWGObC esnRf4TecICcqmtZzsUhabSiGXQ7qxYmPki5EiULjGCvxiRDWpVdS8LXdHtY6GNruABy07 jwyyaBcrKG34a0MI4EMSrCJAMZ2pP+0= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-635-GbE95WSPPlSQXtRmF9xrvQ-1; Sat, 04 Jul 2026 10:34:16 -0400 X-MC-Unique: GbE95WSPPlSQXtRmF9xrvQ-1 X-Mimecast-MFC-AGG-ID: GbE95WSPPlSQXtRmF9xrvQ_1783175655 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6675F18908C3; Sat, 4 Jul 2026 14:34:14 +0000 (UTC) Received: from fedora (unknown [10.44.32.112]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id C9A613000232; Sat, 4 Jul 2026 14:34:11 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Sat, 4 Jul 2026 16:34:13 +0200 (CEST) Date: Sat, 4 Jul 2026 16:34:10 +0200 From: Oleg Nesterov To: Andrew Morton Cc: Bradley Morgan , Christian Brauner , "Eric W. Biederman" , linux-kernel@vger.kernel.org Subject: [PATCH -mm 0/1] signal: avoid unconditional siginfo copy in send_signal_locked() Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 On top of signal-avoid-shared-siginfo-namespace-rewrites.patch in -mm tree. To clarify, this (simple) change looks like a cleanup to me even if it slightly complicates send_signal_locked(). But cleanups are always subjective, so I won't argue if anyone thinks otherwise. To remind, I think we should shift this namespace translation into __send_signal_locked() -> copy_siginfo() path, but this needs something like [PATCH v2 2/3] signal: turn the "bool force" arg of __send_signal_locked() into "int flags" https://lore.kernel.org/all/ajVDzniRXROuyRgD@redhat.com/ Oleg.