Linux RTC
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Atharva Tiwari" <atharvatiwarilinuxdev@gmail.com>
Cc: "Ihor Odainyi" <pv4k@odayny.com>,
	"Antoine Sidem" <sidemantoine@gmail.com>,
	"Aditya Garg" <aditya.garg@linux.dev>,
	"Bjorn Helgaas" <bhelgaas@google.com>,
	"Thomas Gleixner" <tglx@kernel.org>,
	"Ingo Molnar" <mingo@redhat.com>,
	"Borislav Petkov" <bp@alien8.de>,
	"Dave Hansen" <dave.hansen@linux.intel.com>,
	x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	"Len Brown" <lenb@kernel.org>,
	"Linus Walleij" <linusw@kernel.org>,
	"Bartosz Golaszewski" <brgl@kernel.org>,
	"Sven Peter" <sven@kernel.org>, "Janne Grunau" <j@jannau.net>,
	"Neal Gompa" <neal@gompa.dev>,
	"Guenter Roeck" <linux@roeck-us.net>,
	"Jonathan Cameron" <jic23@kernel.org>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>, "Lee Jones" <lee@kernel.org>,
	"Pavel Machek" <pavel@kernel.org>,
	"Griffin Kroah-Hartman" <griffin@kroah.com>,
	"Hans de Goede" <hansg@kernel.org>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Sebastian Reichel" <sre@kernel.org>,
	"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
	"Wim Van Sebroeck" <wim@linux-watchdog.org>,
	"Jarkko Sakkinen" <jarkko@kernel.org>,
	"Mimi Zohar" <zohar@linux.ibm.com>,
	"Roberto Sassu" <roberto.sassu@huawei.com>,
	"Dmitry Kasatkin" <dmitry.kasatkin@gmail.com>,
	"Eric Snowberg" <eric.snowberg@oracle.com>,
	"Paul Moore" <paul@paul-moore.com>,
	"James Morris" <jmorris@namei.org>,
	"Serge E. Hallyn" <serge@hallyn.com>,
	linux-pci@vger.kernel.org, linux-gpio@vger.kernel.org,
	linux-hwmon@vger.kernel.org, linux-leds@vger.kernel.org,
	mfd@lists.linux.dev, linux-rtc@vger.kernel.org,
	linux-watchdog@vger.kernel.org, keyrings@vger.kernel.org,
	linux-security-module@vger.kernel.org
Subject: Re: [PATCH 14/14] mfd/macsmc: add ioctl to access smc keys
Date: Fri, 04 Dec 2026 14:48:48 +0000	[thread overview]
Message-ID: <sashiko-outbox-250013@kernel.org> (raw)
In-Reply-To: <20261204131619.5059-15-atharvatiwarilinuxdev@gmail.com>

Thank you for your contribution! Sashiko AI review found 17 potential
issues to consider:
- [High] mfd: macsmc: use-after-free in apple_smc_fops_ioctl() after
  device unbind
- [Medium] mfd: macsmc: IOCTL_SMC_WRITE ignores FMODE_WRITE on /dev/smc
  fd
- [Medium] mfd: macsmc: missing APPLE_SMC_WRITABLE check and late
  allowlist validation
- [Medium] mfd: macsmc: raw /dev/smc ioctl UAPI in MFD core with
  undocumented allowlist
- [Medium] mfd: macsmc: commit message mischaracterizes 6-key write
  allowlist
- [Medium] mfd: macsmc: Missing index bounds check in
  IOCTL_SMC_GET_KEY_INDEX
- [Medium] mfd: macsmc: apple_smc_probe() omits OSWD and NATi for
  macsmc-wdt
- [Medium] mfd: macsmc: kernel-only BIT() macro used in UAPI header
- [Medium] mfd: macsmc: UAPI ioctl structs have implicit padding and
  32-byte key cap
- [Medium] mfd: macsmc: unconditional /dev/smc registration and
  unfiltered key reads
- [Low] mfd: macsmc: return -ENOTTY for unknown cmd in
  apple_smc_fops_ioctl()
- [Low] mfd: macsmc: implicit padding holes in new UAPI ioctl structs
- [Low] mfd: macsmc: commit subject violates MFD prefix and
  capitalization rules
- [Low] mfd: macsmc: invalid SPDX license expression in UAPI header
- [Low] mfd: macsmc: apple_smc_fops_ioctl() returns -EINVAL for unknown
  commands
- [Low] mfd: macsmc: ioctl magic 'S' conflicts and lacks
  ioctl-number.rst entry
- [Low] mfd: macsmc: commit message misdescribes IOCTL_SMC_WRITE key
  allowlist
--

commit 4104c5546b08cdfee61eacef164c47b7d69ce901
Author: Atharva Tiwari <atharvatiwarilinuxdev@gmail.com>

mfd/macsmc: add ioctl to access smc keys

This commit registers a /dev/smc miscdevice in macsmc-core and adds a
UAPI header exposing ioctls to read keys, write a fixed set of keys,
enumerate keys by index, and query key metadata.

> mfd/macsmc: add ioctl to access smc keys

[Severity: Low]
This isn't a bug, but MFD commit subjects use the format
"mfd: <driver>: <Capitalized description>", e.g.
"mfd: macsmc: Add ioctl to access SMC keys".

> Keys already managed by kernel drivers can't be written this
> way, to avoid conflicts.

[Severity: Medium]
Does this accurately describe the write restriction?  The changelog
describes a denylist of driver-managed keys, whereas
apple_smc_fops_ioctl() enforces a strict hardcoded allowlist of six
keys (HE0N, HE2N, HI0N, MSTS, MSPC, QENA) and rejects every other key
with -EPERM.

> diff --git a/drivers/mfd/macsmc-core.c b/drivers/mfd/macsmc-core.c
> index bc4200f574bd5..a53df6f6cd3f2 100644
> --- a/drivers/mfd/macsmc-core.c
> +++ b/drivers/mfd/macsmc-core.c

[ ... ]

> @@ -112,6 +115,129 @@ static void apple_smc_disable_notifications(void *data)
>  	smc->be->disable_notifications(smc->be_cookie);
>  }
>  
> +static long apple_smc_fops_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
> +{

[ ... ]

> +	case IOCTL_SMC_WRITE: {
> +		struct ioctl_smc_rw_payload payload;
> +		struct apple_smc_key_info info;
> +
> +		if (copy_from_user(&payload, argp, sizeof(payload)))
> +			return -EFAULT;

[Severity: Medium]
Can an O_RDONLY file descriptor write SMC keys here?  vfs_ioctl() does
not enforce FMODE_WRITE on behalf of drivers, so IOCTL_SMC_WRITE should
reject callers whose file->f_mode lacks FMODE_WRITE.

> +		ret = apple_smc_get_key_info(smc, payload.key, &info);
> +		if (ret < 0)
> +			return ret;
> +
> +		if (payload.size != info.size)
> +			return -EINVAL;
> +
> +		if (payload.size > 32)
> +			return -EINVAL;
> +
> +		switch (payload.key) {
> +		case __SMC_KEY('H', 'E', '0', 'N'):
> +		case __SMC_KEY('H', 'E', '2', 'N'):
> +		case __SMC_KEY('H', 'I', '0', 'N'):
> +		case __SMC_KEY('M', 'S', 'T', 'S'):
> +		case __SMC_KEY('M', 'S', 'P', 'C'):
> +		case __SMC_KEY('Q', 'E', 'N', 'A'):
> +			break;
> +		default:
> +			return -EPERM;
> +		}

[Severity: Medium]
Should IOCTL_SMC_WRITE check (info.flags & APPLE_SMC_WRITABLE) before
writing, and validate payload.size and the key allowlist before calling
apple_smc_get_key_info()?

Unlike IOCTL_SMC_READ, IOCTL_SMC_WRITE omits the writability flag check;
on the ACPI PIO backend, apple_smc_acpi_port_write() does not read back
a firmware error status, so a write to a read-only key can silently
succeed.  Running apple_smc_get_key_info() before the static size and
allowlist checks also acquires smc->mutex and performs hardware IPC for
disallowed or oversized requests (and on ACPI PIO, a nonexistent key
stalls for 1000 ms and clears smc->interrupt_enabled).

[Severity: Low]
Neither the commit message nor comments here explain what these six
allowlisted keys control or why userspace needs write access to them;
the changelog only mentions excluding driver-managed keys.

[ ... ]

> +	case IOCTL_SMC_GET_KEY_INDEX: {
> +		struct ioctl_smc_index_payload payload;
> +
> +		if (copy_from_user(&payload, argp, sizeof(payload)))
> +			return -EFAULT;
> +
> +		ret = apple_smc_get_key_by_index(smc, payload.index, &payload.key);

[Severity: Medium]
Does IOCTL_SMC_GET_KEY_INDEX need to check payload.index >= smc->key_count
before calling apple_smc_get_key_by_index()?

Because the UAPI documents sequential enumeration with increasing index
values, normal callers will pass payload.index == smc->key_count to find
the end of the table.  On ACPI PIO Intel Macs, an out-of-range query
stalls apple_smc_acpi_port_wait() for up to 2 seconds while holding
smc->mutex and permanently clears smc->interrupt_enabled = 0, reverting
subsequent SMC PIO transactions to polling.

[ ... ]

> +	default:
> +		return -EINVAL;
> +	}
> +}

[Severity: Low]
Should unrecognized ioctl commands return -ENOTTY instead of -EINVAL?
Returning -EINVAL breaks standard userspace ioctl probing such as
isatty() / TCGETS on /dev/smc.

[Severity: Low]
Per Documentation/driver-api/ioctl.rst, unlocked_ioctl handlers should
return -ENOTTY (or -ENOIOCTLCMD) for unknown command numbers so
userspace can distinguish unsupported ioctls from invalid payload
arguments (-EINVAL).

[ ... ]

> @@ -150,6 +276,20 @@ int apple_smc_probe(struct device *dev, const struct apple_smc_backend_ops *ops,
>  	if (ret)
>  		return ret;
>  
> +	smc->miscdev.minor = MISC_DYNAMIC_MINOR;
> +	smc->miscdev.name = "smc";
> +	smc->miscdev.fops = &apple_smc_fops;
> +	smc->miscdev.parent = dev;
> +	smc->miscdev.mode = 0600;
> +
> +	ret = misc_register(&smc->miscdev);
> +	if (ret)
> +		return ret;
> +
> +	ret = devm_add_action_or_reset(dev, apple_smc_misc_unregister, &smc->miscdev);
> +	if (ret)
> +		return ret;
> +
>  	if (smc->is_acpi) {
>  		ret = devm_mfd_add_devices(dev, -1, apple_smc_acpi_common,
>  			ARRAY_SIZE(apple_smc_acpi_common), NULL, 0, NULL);

[Severity: High]
Can apple_smc_fops_ioctl() hit a use-after-free when the SMC device is
unbound or a backend module is unloaded while /dev/smc is open?

struct apple_smc and its backend context are devm-allocated,
apple_smc_fops_open() caches a raw pointer to smc in file->private_data
with no reference counting or revocation lock, and apple_smc_fops.owner
pins only macsmc-core rather than the loadable macsmc-acpi or
macsmc-rtkit backend modules.  misc_deregister() does not revoke open
file descriptors or wait for in-flight ioctls:

CPU0                              CPU1
sysfs unbind / rmmod macsmc-acpi  open("/dev/smc")
  devres_release_all()              file->private_data = smc
    misc_deregister()
    kfree(smc) & backend teardown
                                  ioctl(fd, IOCTL_SMC_READ, ...)
                                    apple_smc_fops_ioctl()
                                      mutex_lock(&smc->mutex) <-- UAF
                                      smc->be->read(...)

The same race also exists if devm_mfd_add_devices() fails after
misc_register() exposes /dev/smc.  Registering the miscdevice after MFD
child registration, refcounting the open-file context independently of
devm, and synchronizing deregistration with a lock (such as an
rw_semaphore) before tearing down backend resources would prevent this.

[Severity: Medium]
As reported by Jonathan Cameron on RFC [1], should a raw firmware
pass-through miscdevice and custom ioctl UAPI live in drivers/mfd/?

Core MFD drivers normally handle only shared resources and child
registration, and exposing a permanent opaque ioctl interface for six
undocumented keys bypasses standard kernel subsystems (or fwctl) without
explaining what those keys do or why standard interfaces cannot be used.

[Severity: Medium]
As reported by Sasha Finkelstein on RFC [2], why is /dev/smc registered
unconditionally here instead of being restricted to T2 Macs, and why
does IOCTL_SMC_READ allow reading arbitrary readable keys?

Because misc_register() runs before checking smc->is_acpi or
has_apple_t2_chip (added in commit "treewide: Add a flag to detect the
Apple T2 chip"), /dev/smc is exposed on Apple Silicon RTKit and non-T2
Intel Macs as well.  On the read path, IOCTL_SMC_READ only checks
APPLE_SMC_READABLE and size <= 32, without a read allowlist or
filtering read-sensitive keys such as APPLE_SMC_FUNCTION or
APPLE_SMC_PRIVATE_READ.

[Severity: Medium]
In the smc->is_acpi branch right below, apple_smc_probe() gates
apple_smc_acpi_wdt registration solely on SMC_KEY(NATJ).

macsmc_wdt_probe() in drivers/watchdog/macsmc_wdt.c supports newer SMCs
via SMC_KEY(OSWD) and otherwise requires both SMC_KEY(NATJ) and
SMC_KEY(NATi).  Checking only NATJ leaves the watchdog unregistered on
OSWD-only Macs and registers it even when NATi is absent.

> diff --git a/include/uapi/linux/macsmc.h b/include/uapi/linux/macsmc.h
> new file mode 100644
> index 0000000000000..ef784539d3252
> --- /dev/null
> +++ b/include/uapi/linux/macsmc.h
> @@ -0,0 +1,119 @@
> +/* SPDX-License-Identifier: GPL-2.0-only OR MIT WITH Linux-syscall-note */

[Severity: Low]
Is this SPDX expression valid?  WITH binds more tightly than OR, so this
attaches Linux-syscall-note to MIT (which scripts/spdxcheck.py rejects)
and leaves GPL-2.0-only without the syscall note.  It should be
"(GPL-2.0-only WITH Linux-syscall-note) OR MIT".

[ ... ]

> +#define APPLE_SMC_READABLE		BIT(7)
> +#define APPLE_SMC_WRITABLE		BIT(6)
> +#define APPLE_SMC_FUNCTION		BIT(4)
> +#define APPLE_SMC_CONST		BIT(3)
> +#define APPLE_SMC_ATOMIC		BIT(2)
> +#define APPLE_SMC_PRIVATE_READ		BIT(1)
> +#define APPLE_SMC_PRIVATE_WRITE		BIT(0)

[Severity: Medium]
Does this break userspace compilation when any APPLE_SMC_* flag is
referenced?  BIT() is a kernel-internal macro not provided by UAPI
headers; UAPI constants should use _BITUL() (with <linux/const.h>) or
plain unsigned shifts such as (1U << 7).

[ ... ]

> +struct ioctl_smc_rw_payload {
> +	smc_key key;
> +	__u32 size;
> +	__u8 buf[32];
> +};

[Severity: Medium]
Does hardcoding __u8 buf[32] permanently prevent accessing SMC keys
larger than 32 bytes?  struct apple_smc_key_info.size is __u8 and the
RTKit backend defines SMC_MAX_SIZE as 255, so baking sizeof(struct
ioctl_smc_rw_payload) into the ioctl ABI makes larger keys inaccessible
without new ioctls.

In addition, struct ioctl_smc_index_payload narrows index to __u16
despite u32 smc->key_count (with a 2-byte internal padding hole), and
struct apple_smc_key_info leaves 2 bytes of implicit tail padding when
embedded in struct ioctl_smc_info_payload.

[ ... ]

> +struct ioctl_smc_index_payload {
> +	__u16 index;
> +	smc_key key;
> +};

[Severity: Low]
Both struct ioctl_smc_index_payload (between __u16 index and smc_key
key) and struct apple_smc_key_info (trailing 2 bytes) contain implicit
compiler padding holes.  Widening index to __u32 and adding explicit
reserved padding fields avoids unnamed holes in the UAPI structs.

[ ... ]

> +#define APPLE_SMC_MAGIC 'S'
> +#define IOCTL_SMC_READ    _IOWR(APPLE_SMC_MAGIC, 1, struct ioctl_smc_rw_payload)
> +#define IOCTL_SMC_WRITE   _IOW(APPLE_SMC_MAGIC, 2, struct ioctl_smc_rw_payload)
> +#define IOCTL_SMC_GET_KEY_INDEX  _IOWR(APPLE_SMC_MAGIC, 3, struct ioctl_smc_index_payload)
> +#define IOCTL_SMC_GET_KEY_INFO   _IOWR(APPLE_SMC_MAGIC, 4, struct ioctl_smc_info_payload)

[Severity: Low]
Does APPLE_SMC_MAGIC 'S' conflict with existing ioctl numbers?
Documentation/userspace-api/ioctl/ioctl-number.rst already lists 'S' as
conflicted across cdrom.h, asequencer.h, scsi_ioctl.h, and scsi.h, and
this new range is not registered there.

[1] https://lore.kernel.org/r/20261101013817.22d67ea7@jic23-hlaptop
[2] https://lore.kernel.org/r/525E5B4D-A947-4567-9FCD-5FFF2CA8B161@chaosmail.tech

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204131619.5059-1-atharvatiwarilinuxdev@gmail.com?part=14

  reply	other threads:[~2026-12-04 14:48 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 13:12 [PATCH 00/14] Add macsmc support for Intel Macs, replacing applesmc Atharva Tiwari
2026-12-04 13:12 ` [PATCH 01/14] treewide: Add backend for macsmc Atharva Tiwari
2026-12-04 13:56   ` sashiko-bot
2026-12-04 14:07   ` Andy Shevchenko
2026-12-04 16:45   ` Sven Peter
2026-12-04 13:12 ` [PATCH 02/14] platform/x86: add backend for macsmc in intel macs Atharva Tiwari
2026-12-04 13:58   ` sashiko-bot
2026-12-04 14:19   ` Andy Shevchenko
2026-12-04 14:52     ` Aditya Garg
2026-12-04 17:23       ` Andy Shevchenko
2026-12-04 18:34         ` Aditya Garg
2026-12-04 19:57     ` Atharva Tiwari
2026-12-04 20:23       ` Andy Shevchenko
2026-12-04 13:12 ` [PATCH 03/14] watchdog: add driver for apple smc Atharva Tiwari
2026-12-04 13:48   ` sashiko-bot
2026-12-04 13:12 ` [PATCH 04/14] iio/light: add new driver for macsmc Atharva Tiwari
2026-12-04 13:47   ` sashiko-bot
2026-12-04 13:12 ` [PATCH 05/14] iio/accel: add driver for apple SMS Atharva Tiwari
2026-12-04 14:11   ` sashiko-bot
2026-12-04 13:12 ` [PATCH 06/14] leds: add support for macsmc kbl Atharva Tiwari
2026-12-04 14:07   ` sashiko-bot
2026-12-04 13:12 ` [PATCH 07/14] rtc: add support for x86 macs in macsmc-rtc Atharva Tiwari
2026-12-04 14:12   ` Andy Shevchenko
2026-12-04 14:48     ` Aditya Garg
2026-12-04 17:06       ` Andy Shevchenko
2026-12-04 17:10         ` Aditya Garg
2026-12-04 17:18           ` Andy Shevchenko
2026-12-04 17:26       ` Sven Peter
2026-12-04 14:16   ` sashiko-bot
2026-12-04 13:12 ` [PATCH 08/14] treewide: Add a flag to detect the Apple T2 chip Atharva Tiwari
2026-12-04 14:11   ` sashiko-bot
2026-12-04 13:12 ` [PATCH 09/14] treewide: disable other rtc's in t2 macs Atharva Tiwari
2026-12-04 14:27   ` sashiko-bot
2026-12-04 13:12 ` [PATCH 10/14] power/supply: add support for x86 macs in macsmc-power Atharva Tiwari
2026-12-04 14:39   ` sashiko-bot
2026-12-04 13:12 ` [PATCH 11/14] acpi: disable battery and adapter for x86 apple machines Atharva Tiwari
2026-12-04 14:08   ` Andy Shevchenko
2026-12-04 14:56     ` Aditya Garg
2026-12-04 17:14       ` Andy Shevchenko
2026-12-04 18:51         ` Aditya Garg
2026-12-04 20:02           ` Andy Shevchenko
2026-12-04 20:13             ` Andy Shevchenko
2026-12-04 14:25   ` sashiko-bot
2026-12-04 13:12 ` [PATCH 12/14] hwmon/macsmc: add more types Atharva Tiwari
2026-12-04 14:37   ` sashiko-bot
2026-12-04 18:44     ` Guenter Roeck
2026-12-04 13:12 ` [PATCH 13/14] hwmon: add support for x86 macs in macsmc-hwmon Atharva Tiwari
2026-12-04 14:48   ` sashiko-bot
2026-12-04 18:45     ` Guenter Roeck
2026-12-04 20:13       ` Jarkko Sakkinen
2026-12-04 13:12 ` [PATCH 14/14] mfd/macsmc: add ioctl to access smc keys Atharva Tiwari
2026-12-04 14:48   ` sashiko-bot [this message]
2026-12-04 14:20 ` [PATCH 00/14] Add macsmc support for Intel Macs, replacing applesmc Andy Shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-250013@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=aditya.garg@linux.dev \
    --cc=alexandre.belloni@bootlin.com \
    --cc=andy@kernel.org \
    --cc=atharvatiwarilinuxdev@gmail.com \
    --cc=bhelgaas@google.com \
    --cc=bp@alien8.de \
    --cc=brgl@kernel.org \
    --cc=dave.hansen@linux.intel.com \
    --cc=dlechner@baylibre.com \
    --cc=dmitry.kasatkin@gmail.com \
    --cc=eric.snowberg@oracle.com \
    --cc=griffin@kroah.com \
    --cc=hansg@kernel.org \
    --cc=hpa@zytor.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=j@jannau.net \
    --cc=jarkko@kernel.org \
    --cc=jic23@kernel.org \
    --cc=jmorris@namei.org \
    --cc=keyrings@vger.kernel.org \
    --cc=lee@kernel.org \
    --cc=lenb@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=mfd@lists.linux.dev \
    --cc=mingo@redhat.com \
    --cc=neal@gompa.dev \
    --cc=nuno.sa@analog.com \
    --cc=paul@paul-moore.com \
    --cc=pavel@kernel.org \
    --cc=pv4k@odayny.com \
    --cc=rafael@kernel.org \
    --cc=roberto.sassu@huawei.com \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=serge@hallyn.com \
    --cc=sidemantoine@gmail.com \
    --cc=sre@kernel.org \
    --cc=sven@kernel.org \
    --cc=tglx@kernel.org \
    --cc=wim@linux-watchdog.org \
    --cc=x86@kernel.org \
    --cc=zohar@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox