Displaying 1 50 of 634,626 commits (0.096s)

NetBSD — sys/arch/x86/x86 pmap.c

Mmh, restore PG_G on the direct map, we still want that in the non-SVS
Delta File
+6 -4 sys/arch/x86/x86/pmap.c
+6 -4 1 file

NetBSD — sys/arch/amd64/amd64 amd64_trap.S trap.c

Fix the double-fault handler. We're executing on ist1 and must not jump
out of it, so don't enable interrupts. And use the SVS_*_ALTSTACK macros.

While here, fix the NMI handler too: it should use SVS_LEAVE_ALTSTACK.

NetBSD — sys/arch/amd64/amd64 machdep.c

Improve two comments and a KASSERT.
Delta File
+6 -7 sys/arch/amd64/amd64/machdep.c
+6 -7 1 file

NetBSD — sys/arch/powerpc/include spr.h

Add a copyright (approx 16.5 years later).
Delta File
+26 -1 sys/arch/powerpc/include/spr.h
+26 -1 1 file

NetBSD — sys/dev/raidframe rf_compat80.c rf_compat80.h

fixes for the previous, noted by nakayama@.

- RAIDFRAME_CONFIGURE needs to be versioned as the rows was removed,
  adding RAIDFRAME_CONFIGURE80, rf_config80() etc.
- RAIDFRAME_CONFIGURE32 changes to match
- rf_get_info80() passed the wrong source to copyout()

some fixes to my original change were independantly made by nakayama@
who confirmed the changes work properly now.

NetBSD — sys/compat/netbsd32 netbsd32_ioctl.c netbsd32_ioctl.h

add conversion goop for WSDISPLAYIO_LDFONT and _SFONT
tested on mips64

NetBSD — sys/dev/pci/voyager voyagerfb.c

enable font loading
Delta File
+11 -5 sys/dev/pci/voyager/voyagerfb.c
+11 -5 1 file

NetBSD — libexec/ld.elf_so/arch/mips mips_reloc.c

don't forget to eat the high bits.

NetBSD — sys/net if_mpls.c

Several changes:

 * Declare TRIM_LABEL as a function.

 * In mpls_unlabel_inet, copy the label locally. It's not incorrect to
   keep a pointer on the mbuf, but it's bug-friendly.

 * In mpls_label_inetX, fix the length check. Meanwhile add an XXX: we
   just want to make sure that m_copydata won't fail, but if we were
   guaranteed that m has M_PKTHDR set, we could simply check the length
   against m->m_pkthdr.len.
Delta File
+41 -27 sys/net/if_mpls.c
+41 -27 1 file

NetBSD — usr.sbin/traceroute traceroute.c

Fix build failure, the structure is already defined now.
Delta File
+8 -29 usr.sbin/traceroute/traceroute.c
+8 -29 1 file

NetBSD — sys/netmpls mpls_ttl.c

Add XXX.
Delta File
+8 -4 sys/netmpls/mpls_ttl.c
+8 -4 1 file

NetBSD — sys/netinet ip_icmp.c

Fix a buffer overflow in icmp_error. We create in 'm' a packet that must

  IPv4 header | Fixed part of ICMP header | Variable part of ICMP header

But we perform length checks on 'totlen', which does not count the IPv4

So now, add sizeof(struct ip) in totlen, and stop doing this m_data
nonsense, just get the pointers as usual.
Delta File
+18 -30 sys/netinet/ip_icmp.c
+18 -30 1 file

NetBSD — sys/netinet ip_icmp.c

Clarify icmp_error:

 * Rename (and constify) oiplen -> oiphlen.

 * Rename icmplen -> datalen, it's the size of the variable part of
   the ICMP header, not the total size of the ICMP header itself.

 * Introduce totlen, this is the total size of the ICMP header (icmp_ip

No real functional change.
Delta File
+69 -49 sys/netinet/ip_icmp.c
+69 -49 1 file

NetBSD — sys/arch/sparc64/sparc64 cpu.c

sun4v doesn't have %ver register.
Delta File
+3 -3 sys/arch/sparc64/sparc64/cpu.c
+3 -3 1 file

NetBSD — sys/net if_ethersubr.c

Fix inverted logic.
Delta File
+3 -3 sys/net/if_ethersubr.c
+3 -3 1 file

NetBSD — sys/netinet ip_icmp.h, sys/netmpls mpls_ttl.c

Move the ICMP Extension structures from mpls_ttl.c to ip_icmp.h; that's
part of the ICMP protocol (per RFC4884), and not specific to MPLS. Also
add ih_exthdr in struct icmp, the 'length' field appeared.

While here, style in MPLS.
Delta File
+49 -61 sys/netmpls/mpls_ttl.c
+35 -1 sys/netinet/ip_icmp.h
+84 -62 2 files

NetBSD — sys/netinet ip_icmp.h

Style, explain a bit, and fix icmp_radv, it should be icmp_dun.id_radv.
Delta File
+52 -33 sys/netinet/ip_icmp.h
+52 -33 1 file

NetBSD — sys/dev/raidframe rf_netbsdkintf.c

Fix some ARM kernel builds.  ARM abuses compat32 for ABI compatibility and
this means some ioctls overlap.
Delta File
+12 -2 sys/dev/raidframe/rf_netbsdkintf.c
+12 -2 1 file

NetBSD — sys/net route.c, sys/netinet in.c

Suppress noisy debugging outputs

Even if DEBUG they are too noisy under load.
Delta File
+4 -4 sys/netinet/in.c
+4 -4 sys/netinet6/in6.c
+3 -3 sys/net/route.c
+11 -11 3 files

NetBSD — sys/net80211 ieee80211_crypto_wep.c

Style, no functional change.
Delta File
+16 -11 sys/net80211/ieee80211_crypto_wep.c
+16 -11 1 file

NetBSD — sys/net80211 ieee80211_crypto_tkip.c

Style, and check the return value of m_append.
Delta File
+16 -10 sys/net80211/ieee80211_crypto_tkip.c
+16 -10 1 file

NetBSD — sys/net80211 ieee80211_crypto_ccmp.c ieee80211_crypto_none.c

Style, no functional change.

NetBSD — sys/netinet tcp_timer.c tcp_subr.c

Run tcp_slowtimo in workqueue if NET_MPSAFE

If NET_MPSAFE is enabled, we have to avoid taking softnet_lock in softint as
much as possible to prevent any softint handlers including callout handlers
such as tcp_slowtimo from sticking on softnet_lock because it results in
undesired delays of executing subsequent softint handlers.


NetBSD — sys/net80211 ieee80211_crypto.c

Style, and make sure that there is a header+trailer included in the
packet. The crypto functions can touch the trailer, but they don't check
whether it's there in the first place.
Delta File
+22 -6 sys/net80211/ieee80211_crypto.c
+22 -6 1 file

NetBSD — sys/net rtsock.c

Release rt_so_mtx on updating a rtentry to avoid a deadlock with route_intr

The deadlock happened only if NET_MPSAFE on.
Delta File
+24 -2 sys/net/rtsock.c
+24 -2 1 file

NetBSD — sys/arch/evbmips/conf LOONGSON

Use usbdevices. add midi needed to build umidi.
Remove now redundant USB entries.

So we will stop missing random USB drivers.
Delta File
+12 -58 sys/arch/evbmips/conf/LOONGSON
+12 -58 1 file

NetBSD — sys/net80211 ieee80211_node.c

Style, no functional change.
Delta File
+77 -27 sys/net80211/ieee80211_node.c
+77 -27 1 file

NetBSD — sys/net80211 ieee80211_netbsd.c

Style, and zero out 'ns' entirely, otherwise some bytes get leaked to
userland (eg ns_rsvd0).
Delta File
+34 -25 sys/net80211/ieee80211_netbsd.c
+34 -25 1 file

NetBSD — sys/net80211 ieee80211_output.c

Several changes:

 * Make the code more readable.

 * Add a panic in ieee80211_compute_duration(). I'm not sure there's
   a bug here - I don't have the hardware -, but looking at the code, it
   may be possible for 'paylen' to go negative. Obviously that's not the
   correct way to fix it, but at least we'll see if it happens.
Delta File
+77 -45 sys/net80211/ieee80211_output.c
+77 -45 1 file

NetBSD — sys/arch/arm/arm syscall.c

Fix test for SMI_IMB{,range} that was broken in 1.46

From Ramakrishna Rao Desetti
Delta File
+5 -4 sys/arch/arm/arm/syscall.c
+5 -4 1 file

NetBSD — sys/compat/netbsd32 netbsd32_module.c, sys/kern sys_module.c

Don't return the address of the kernel modules if the user is not
privileged. Discussed on tech-kern@.

NetBSD — sys/net80211 ieee80211_output.c

Several changes:

 * Make the code more readable. In particular, declare variables as const
   along the way.

 * Explain what we're doing in ieee80211_send_mgmt(). The
   IEEE80211_FC0_SUBTYPE_PROBE_RESP case has some inconsistencies, but
   they are not inherently wrong so I'm not changing that.

 * When sending IEEE80211_FC0_SUBTYPE_REASSOC_RESP frames, make sure to
   zero out the 'association ID', otherwise two bytes are leaked.

 * Fix a possible memory leak in ieee80211_send_probereq().
Delta File
+122 -58 sys/net80211/ieee80211_output.c
+122 -58 1 file

NetBSD — sys/arch/arm/cortex a9_mpsubr.S

Use r0 in the tlbiall instruction to avoid confusion.

From Ramakrishna Rao Desetti
Delta File
+2 -2 sys/arch/arm/cortex/a9_mpsubr.S
+2 -2 1 file

NetBSD — share/man/man4 wm.4

More markup.
Delta File
+5 -3 share/man/man4/wm.4
+5 -3 1 file

NetBSD — share/man/man4 wm.4

Delta File
+6 -2 share/man/man4/wm.4
+6 -2 1 file

NetBSD — sys/dev/pci if_wm.c

wm_txeof() can limit the loop count the same as wm_rxeof() now.
Delta File
+33 -14 sys/dev/pci/if_wm.c
+33 -14 1 file

NetBSD — sys/kern kern_mutex.c

typo in comment
Delta File
+3 -3 sys/kern/kern_mutex.c
+3 -3 1 file

NetBSD — sys/arch/amd64/amd64 machdep.c locore.S, sys/arch/amd64/include frameasm.h

Unmap the kernel heap from the user page tables (SVS).

This implementation is optimized and organized in such a way that we
don't need to copy the kernel stack to a safe place during user<->kernel
transitions. We create two VAs that point to the same physical page; one
will be mapped in userland and is offset in order to contain only the
trapframe, the other is mapped in the kernel and maps the entire stack.

Sent on tech-kern@ a week ago.


note netbsd32 support for raid(4).
Delta File
+2 -1 doc/CHANGES
+2 -1 1 file

NetBSD — sbin/raidctl rf_configure.c raidctl.8, sys/conf files

implement 32-bit compat support for raidframe.

convert several raidframe ioctls to be bitsize idempotent so that
they work the same in 32 and 64 bit worlds, allowing netbsd32 to
configure and query raid properly.  remove useless 'row' in a few
places.  add COMPAT_80 and put the old ioctls there.

  - remove, unused
  - convert to label not pointer to label
  - convert to progress info not pointer to info
  - version entirely.
  - rf_recon_req{} has row, flags and raidPtr removed (they're
    not a useful part of this interface.)
  - RF_Config_s{} and RF_DeviceConfig_s{} have numRow/rows removed.
  - RF_RaidDisk_s{} is re-ordered slightly to fix alignment
    padding - the actual data was already OK.
  - InstallSpareTable() loses row argument

    [31 lines not shown]

NetBSD — sys/arch/sparc64/dev ebus.c

merge the ebus at pci attach output to be like most PCI drivers:

ebus0 at pci1 dev 1 function 0
ebus0: Sun Microsystems PCIO Ebus2, revision 0x01


ebus0 at pci1 dev 1 function 0: Sun Microsystems PCIO Ebus2, revision 0x01
Delta File
+3 -4 sys/arch/sparc64/dev/ebus.c
+3 -4 1 file

NetBSD — sys/arch/arm/arm32 pmap.c db_interface.c, sys/arch/arm/conf files.arm


NetBSD — sys/net80211 ieee80211_crypto.c ieee80211_crypto_tkip.c

Style, and fix two pretty bad mistakes in the crypto functions:

 * They call M_PREPEND, but don't pass the updated pointer back to the

 * They use memmove on the mbuf data, but they don't ensure that the
   area they touch is contiguous.

This fix is not complete, ieee80211_crypto_encap too needs to pass back
the updated pointer. This will be done in another commit.


Track 3rd party firmware in our tree.
Delta File
+327 -1 doc/3RDPARTY
+327 -1 1 file

NetBSD — sys/net80211 ieee80211_input.c

Several changes:

 * Style in several places, to make the code more readable or easier to

 * Instead of checking m->m_pkthdr.len, check m->m_len. m_pkthdr.len is
   the total size of the packet, not the size of the current mbuf (which
   may be smaller).

 * Add a missing length check when handling QoS frames.

 * Cast the lengths passed in IEEE80211_VERIFY_LENGTH to size_t.

 * Remove the length check on scan.sp_xrates, that I added yesterday.
   xrates gets silently truncated in ieee80211_setup_rates().

 * Fix several buffer overflows in the parsers of the MANAGEMENT frames.
Delta File
+151 -93 sys/net80211/ieee80211_input.c
+151 -93 1 file


Note veriexec being enabed by default on macppc port
Delta File
+2 -1 doc/CHANGES
+2 -1 1 file

NetBSD — share/man/man8 veriexec.8

Note fileassoc(9) support is a dependency Veriexec.

Resolves PR kern/52909
Delta File
+5 -2 share/man/man8/veriexec.8
+5 -2 1 file

NetBSD — share/man/man4 veriexec.4, sys/arch/macppc/conf GENERIC

    Enable veriexec(4) support by default on the macppc port and update the manual to 
mention it.
    Closes PR port-powerpc/52908

NetBSD — share/man/man9 pfil.9

Use more semantic markup.
Delta File
+31 -18 share/man/man9/pfil.9
+31 -18 1 file

NetBSD — sys/arch/sparc/sparc cpu.c cpuvar.h

fix previous:
into the cacheinfo.  don't revive the no longer used value, but
fix the non-sun4m code to match cpu.c 1.251.